@foblex/flow 12.3.6 → 12.4.0

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 (183) hide show
  1. package/README.md +25 -9
  2. package/domain/get-external-nodes-rect/get-external-nodes-rect.execution.d.ts +14 -0
  3. package/domain/get-external-nodes-rect/get-external-nodes-rect.request.d.ts +2 -0
  4. package/domain/get-external-nodes-rect/index.d.ts +2 -0
  5. package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +2 -0
  6. package/domain/index.d.ts +1 -0
  7. package/domain/intersections/rounded-rect/rounded-rect.d.ts +1 -0
  8. package/domain/providers.d.ts +2 -1
  9. package/esm2022/domain/clear-selection/clear-selection.execution.mjs +5 -4
  10. package/esm2022/domain/create-connection-markers/create-connection-markers-request.mjs +2 -1
  11. package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +4 -4
  12. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +7 -4
  13. package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +9 -11
  14. package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +6 -1
  15. package/esm2022/domain/get-connection.handler.mjs +5 -4
  16. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +2 -1
  17. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +5 -4
  18. package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.execution.mjs +35 -0
  19. package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.request.mjs +3 -0
  20. package/esm2022/domain/get-external-nodes-rect/index.mjs +3 -0
  21. package/esm2022/domain/get-incoming-connections.handler.mjs +5 -4
  22. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow-request.mjs +2 -1
  23. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.mjs +3 -1
  24. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.mjs +6 -4
  25. package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +12 -9
  26. package/esm2022/domain/get-outgoing-connections.handler.mjs +5 -4
  27. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow-request.mjs +2 -1
  28. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.mjs +3 -1
  29. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.mjs +6 -4
  30. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +2 -1
  31. package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +5 -4
  32. package/esm2022/domain/get-selection/get-selection.execution.mjs +5 -4
  33. package/esm2022/domain/index.mjs +2 -1
  34. package/esm2022/domain/intersections/rounded-rect/rounded-rect.mjs +41 -7
  35. package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +9 -4
  36. package/esm2022/domain/providers.mjs +3 -1
  37. package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +6 -4
  38. package/esm2022/domain/select/select.execution.mjs +6 -4
  39. package/esm2022/domain/select/select.request.mjs +3 -1
  40. package/esm2022/domain/select-all/select-all.execution.mjs +6 -4
  41. package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +7 -4
  42. package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.request.mjs +2 -1
  43. package/esm2022/domain/update-item-layer/update-item-layer.execution.mjs +5 -6
  44. package/esm2022/domain/update-item-layer/update-item-layer.request.mjs +3 -1
  45. package/esm2022/f-backgroud/f-background-base.mjs +4 -4
  46. package/esm2022/f-backgroud/f-background.component.mjs +7 -4
  47. package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +16 -13
  48. package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +19 -15
  49. package/esm2022/f-canvas/domain/f-canvas-change.event.mjs +3 -1
  50. package/esm2022/f-canvas/f-canvas-base.mjs +5 -4
  51. package/esm2022/f-canvas/f-canvas.component.mjs +10 -5
  52. package/esm2022/f-canvas/f-zoom/f-zoom-base.mjs +4 -3
  53. package/esm2022/f-canvas/f-zoom/f-zoom.directive.mjs +8 -8
  54. package/esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.mjs +3 -1
  55. package/esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.mjs +2 -1
  56. package/esm2022/f-connection/common/f-connection-base.mjs +10 -8
  57. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +8 -6
  58. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +7 -4
  59. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +15 -6
  60. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +6 -4
  61. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +6 -4
  62. package/esm2022/f-connection/common/f-path/get-path-marker-id.mjs +6 -6
  63. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +6 -4
  64. package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +3 -2
  65. package/esm2022/f-connection/f-connection/f-connection.component.mjs +27 -16
  66. package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +9 -9
  67. package/esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs +4 -4
  68. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +25 -14
  69. package/esm2022/f-connection/f-marker/f-marker-base.mjs +4 -4
  70. package/esm2022/f-connection/f-marker/f-marker.directive.mjs +13 -11
  71. package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.mjs +3 -1
  72. package/esm2022/f-connectors/f-connector-base.mjs +5 -7
  73. package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +5 -8
  74. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +14 -11
  75. package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +6 -9
  76. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +12 -9
  77. package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +5 -8
  78. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +15 -12
  79. package/esm2022/f-connectors/index.mjs +1 -2
  80. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +5 -4
  81. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs +2 -1
  82. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +5 -4
  83. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +6 -4
  84. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs +2 -1
  85. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +6 -4
  86. package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +4 -3
  87. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +7 -4
  88. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs +2 -1
  89. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +5 -4
  90. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +7 -4
  91. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs +4 -1
  92. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +6 -4
  93. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs +2 -1
  94. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +6 -4
  95. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs +2 -1
  96. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +5 -4
  97. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +6 -4
  98. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs +2 -1
  99. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +6 -4
  100. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +8 -8
  101. package/esm2022/f-draggable/connections/create-connection/f-create-connection.event.mjs +4 -1
  102. package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +5 -4
  103. package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs +2 -1
  104. package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +5 -4
  105. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +5 -4
  106. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs +3 -1
  107. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +5 -4
  108. package/esm2022/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs +5 -1
  109. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +7 -4
  110. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs +2 -1
  111. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +5 -4
  112. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +10 -4
  113. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs +2 -1
  114. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +6 -4
  115. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +8 -6
  116. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.execution.mjs +7 -4
  117. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.request.mjs +2 -1
  118. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.validator.mjs +5 -4
  119. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.mjs +7 -4
  120. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.request.mjs +2 -1
  121. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.validator.mjs +5 -4
  122. package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +6 -4
  123. package/esm2022/f-draggable/external-item/f-create-node.event.mjs +3 -1
  124. package/esm2022/f-draggable/f-draggable-base.mjs +82 -80
  125. package/esm2022/f-draggable/f-draggable-data-context.mjs +11 -11
  126. package/esm2022/f-draggable/f-draggable.directive.mjs +33 -16
  127. package/esm2022/f-draggable/f-selection-change-event.mjs +3 -1
  128. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +8 -6
  129. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +8 -6
  130. package/esm2022/f-draggable/node/connection.drag-handler.mjs +7 -5
  131. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +9 -4
  132. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +7 -4
  133. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs +2 -1
  134. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +5 -4
  135. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +7 -4
  136. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs +2 -1
  137. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +6 -4
  138. package/esm2022/f-draggable/node/node.drag-handler.mjs +5 -3
  139. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +5 -4
  140. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.mjs +2 -1
  141. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +5 -4
  142. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +7 -4
  143. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.mjs +2 -1
  144. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +6 -4
  145. package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +7 -2
  146. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.execution.mjs +5 -4
  147. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.request.mjs +2 -1
  148. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.validator.mjs +5 -4
  149. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.execution.mjs +7 -4
  150. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.mjs +2 -1
  151. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.validator.mjs +5 -4
  152. package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +7 -4
  153. package/esm2022/f-draggable/single-select/single-select.execution.mjs +8 -4
  154. package/esm2022/f-draggable/single-select/single-select.request.mjs +2 -1
  155. package/esm2022/f-draggable/single-select/single-select.validator.mjs +5 -4
  156. package/esm2022/f-external-item/f-external-item-base.mjs +4 -4
  157. package/esm2022/f-external-item/f-external-item.directive.mjs +10 -7
  158. package/esm2022/f-external-item/f-external-item.service.mjs +5 -7
  159. package/esm2022/f-flow/f-flow.component.mjs +14 -11
  160. package/esm2022/f-flow.module.mjs +5 -5
  161. package/esm2022/f-line-alignment/domain/line-element.mjs +3 -2
  162. package/esm2022/f-line-alignment/domain/line-service.mjs +4 -1
  163. package/esm2022/f-line-alignment/domain/nearest-coordinate.mjs +4 -1
  164. package/esm2022/f-line-alignment/f-line-alignment-base.mjs +4 -4
  165. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +14 -9
  166. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +6 -5
  167. package/esm2022/f-node/f-node-base.mjs +4 -5
  168. package/esm2022/f-node/f-node.directive.mjs +16 -13
  169. package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +7 -6
  170. package/esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs +3 -2
  171. package/esm2022/f-selection-area/f-selection-area-base.mjs +4 -4
  172. package/esm2022/f-selection-area/f-selection-area.component.mjs +7 -5
  173. package/esm2022/f-storage/f-components-store.mjs +16 -13
  174. package/esm2022/infrastructure/f-mediator/f-flow-mediator.mjs +6 -5
  175. package/esm2022/infrastructure/pipeline/pipeline.mjs +3 -1
  176. package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +2 -1
  177. package/f-connectors/index.d.ts +0 -1
  178. package/f-draggable/f-draggable.directive.d.ts +2 -0
  179. package/fesm2022/foblex-flow.mjs +985 -630
  180. package/fesm2022/foblex-flow.mjs.map +1 -1
  181. package/package.json +6 -1
  182. package/esm2022/f-connectors/cast-to-connectable-side.mjs +0 -9
  183. package/f-connectors/cast-to-connectable-side.d.ts +0 -2
@@ -10,37 +10,41 @@ const F_BACKGROUND_PATTERN = new InjectionToken('F_BACKGROUND_PATTERN');
10
10
 
11
11
  let uniqueId$a = 0;
12
12
  class FRectPatternComponent {
13
+ elementReference;
14
+ _subscription$ = new Subscription();
15
+ _stateChanges = new Subject();
13
16
  get hostElement() {
14
17
  return this.elementReference.nativeElement;
15
18
  }
19
+ id = `f-pattern-${uniqueId$a++}`;
20
+ _vColor = 'rgba(0,0,0,0.1)';
16
21
  set vColor(value) {
17
22
  this._vColor = value;
18
23
  this._stateChanges.next();
19
24
  }
25
+ _hColor = 'rgba(0,0,0,0.1)';
20
26
  set hColor(value) {
21
27
  this._vColor = value;
22
28
  this._stateChanges.next();
23
29
  }
30
+ _vSize = 20;
24
31
  set vSize(value) {
25
32
  this._vSize = value;
26
33
  this._stateChanges.next();
27
34
  }
35
+ _hSize = 20;
28
36
  set hSize(value) {
29
37
  this._hSize = value;
30
38
  this._stateChanges.next();
31
39
  }
40
+ _transform = TransformModelExtensions.default();
41
+ _position = PointExtensions.initialize();
42
+ _size = SizeExtensions.initialize(this._hSize, this._vSize);
43
+ _pattern;
44
+ _vLine;
45
+ _hLine;
32
46
  constructor(elementReference) {
33
47
  this.elementReference = elementReference;
34
- this._subscription$ = new Subscription();
35
- this._stateChanges = new Subject();
36
- this.id = `f-pattern-${uniqueId$a++}`;
37
- this._vColor = 'rgba(0,0,0,0.1)';
38
- this._hColor = 'rgba(0,0,0,0.1)';
39
- this._vSize = 20;
40
- this._hSize = 20;
41
- this._transform = TransformModelExtensions.default();
42
- this._position = PointExtensions.initialize();
43
- this._size = SizeExtensions.initialize(this._hSize, this._vSize);
44
48
  this.createPattern();
45
49
  }
46
50
  createPattern() {
@@ -91,12 +95,12 @@ class FRectPatternComponent {
91
95
  ngOnDestroy() {
92
96
  this._subscription$.unsubscribe();
93
97
  }
94
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FRectPatternComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
95
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FRectPatternComponent, selector: "f-rect-pattern", inputs: { id: "id", vColor: "vColor", hColor: "hColor", vSize: "vSize", hSize: "hSize" }, host: { properties: { "attr.id": "id" } }, providers: [
98
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FRectPatternComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
99
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FRectPatternComponent, selector: "f-rect-pattern", inputs: { id: "id", vColor: "vColor", hColor: "hColor", vSize: "vSize", hSize: "hSize" }, host: { properties: { "attr.id": "id" } }, providers: [
96
100
  { provide: F_BACKGROUND_PATTERN, useExisting: FRectPatternComponent }
97
- ], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
+ ], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
98
102
  }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FRectPatternComponent, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FRectPatternComponent, decorators: [{
100
104
  type: Component,
101
105
  args: [{
102
106
  selector: "f-rect-pattern",
@@ -123,27 +127,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
123
127
 
124
128
  let uniqueId$9 = 0;
125
129
  class FCirclePatternComponent {
130
+ elementReference;
131
+ _subscription$ = new Subscription();
132
+ _stateChanges = new Subject();
126
133
  get hostElement() {
127
134
  return this.elementReference.nativeElement;
128
135
  }
136
+ id = `f-pattern-${uniqueId$9++}`;
137
+ _color = 'rgba(0,0,0,0.1)';
129
138
  set color(value) {
130
139
  this._color = value;
131
140
  this._stateChanges.next();
132
141
  }
142
+ _radius = 20;
143
+ _scaledRadius = 20;
133
144
  set radius(value) {
134
145
  this._radius = value;
135
146
  this._stateChanges.next();
136
147
  }
148
+ _transform = TransformModelExtensions.default();
149
+ _position = PointExtensions.initialize();
150
+ _pattern;
151
+ _circle;
137
152
  constructor(elementReference) {
138
153
  this.elementReference = elementReference;
139
- this._subscription$ = new Subscription();
140
- this._stateChanges = new Subject();
141
- this.id = `f-pattern-${uniqueId$9++}`;
142
- this._color = 'rgba(0,0,0,0.1)';
143
- this._radius = 20;
144
- this._scaledRadius = 20;
145
- this._transform = TransformModelExtensions.default();
146
- this._position = PointExtensions.initialize();
147
154
  this.createPattern();
148
155
  }
149
156
  createPattern() {
@@ -190,12 +197,12 @@ class FCirclePatternComponent {
190
197
  ngOnDestroy() {
191
198
  this._subscription$.unsubscribe();
192
199
  }
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCirclePatternComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
194
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FCirclePatternComponent, selector: "f-circle-pattern", inputs: { id: "id", color: "color", radius: "radius" }, host: { properties: { "attr.id": "id" } }, providers: [
200
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCirclePatternComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
201
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FCirclePatternComponent, selector: "f-circle-pattern", inputs: { id: "id", color: "color", radius: "radius" }, host: { properties: { "attr.id": "id" } }, providers: [
195
202
  { provide: F_BACKGROUND_PATTERN, useExisting: FCirclePatternComponent }
196
- ], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
203
+ ], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
197
204
  }
198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCirclePatternComponent, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCirclePatternComponent, decorators: [{
199
206
  type: Component,
200
207
  args: [{
201
208
  selector: "f-circle-pattern",
@@ -218,29 +225,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
218
225
 
219
226
  const F_BACKGROUND = new InjectionToken('F_BACKGROUND');
220
227
  class FBackgroundBase {
221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FBackgroundBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
222
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FBackgroundBase, ngImport: i0 }); }
228
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FBackgroundBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
229
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FBackgroundBase, ngImport: i0 });
223
230
  }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FBackgroundBase, decorators: [{
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FBackgroundBase, decorators: [{
225
232
  type: Directive
226
233
  }] });
227
234
 
228
235
  class FComponentsStore {
229
- constructor() {
230
- this.changes = new Subject();
231
- this.fNodes = [];
232
- this.fConnections = [];
233
- this.fMarkers = [];
234
- this.fOutputs = [];
235
- this.fInputs = [];
236
- this.fOutlets = [];
237
- }
236
+ changes = new Subject();
238
237
  get flowHost() {
239
238
  return this.fFlow?.hostElement;
240
239
  }
241
240
  get transform() {
242
241
  return this.fCanvas?.transform;
243
242
  }
243
+ fFlow;
244
+ fCanvas;
245
+ fBackground;
246
+ fNodes = [];
247
+ fConnections = [];
248
+ fTempConnection;
249
+ fMarkers = [];
250
+ fOutputs = [];
251
+ fInputs = [];
252
+ fOutlets = [];
253
+ fDraggable;
244
254
  findNode(element) {
245
255
  return this.fNodes.find(n => n.isContains(element));
246
256
  }
@@ -255,18 +265,21 @@ class FComponentsStore {
255
265
  this.changes.next();
256
266
  }
257
267
  }
258
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FComponentsStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
259
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FComponentsStore }); }
268
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FComponentsStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
269
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FComponentsStore });
260
270
  }
261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FComponentsStore, decorators: [{
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FComponentsStore, decorators: [{
262
272
  type: Injectable
263
273
  }] });
264
274
 
265
275
  let uniqueId$8 = 0;
266
276
  class FBackgroundComponent extends FBackgroundBase {
277
+ elementReference;
278
+ fComponentsStore;
267
279
  get hostElement() {
268
280
  return this.elementReference.nativeElement;
269
281
  }
282
+ fBackgroundPattern;
270
283
  constructor(elementReference, fComponentsStore) {
271
284
  super();
272
285
  this.elementReference = elementReference;
@@ -302,10 +315,10 @@ class FBackgroundComponent extends FBackgroundBase {
302
315
  ngOnDestroy() {
303
316
  this.fComponentsStore.fBackground = undefined;
304
317
  }
305
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FBackgroundComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component }); }
306
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FBackgroundComponent, selector: "f-background", host: { classAttribute: "f-component f-background" }, providers: [{ provide: F_BACKGROUND, useExisting: FBackgroundComponent }], queries: [{ propertyName: "fBackgroundPattern", first: true, predicate: F_BACKGROUND_PATTERN, descendants: true }], usesInheritance: true, ngImport: i0, template: "<svg><ng-content></ng-content></svg>\n", styles: [":host{position:absolute;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}:host svg{width:100%;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
318
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FBackgroundComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component });
319
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FBackgroundComponent, selector: "f-background", host: { classAttribute: "f-component f-background" }, providers: [{ provide: F_BACKGROUND, useExisting: FBackgroundComponent }], queries: [{ propertyName: "fBackgroundPattern", first: true, predicate: F_BACKGROUND_PATTERN, descendants: true }], usesInheritance: true, ngImport: i0, template: "<svg><ng-content></ng-content></svg>\n", styles: [":host{position:absolute;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}:host svg{width:100%;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
307
320
  }
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FBackgroundComponent, decorators: [{
321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FBackgroundComponent, decorators: [{
309
322
  type: Component,
310
323
  args: [{ selector: "f-background", host: {
311
324
  'class': 'f-component f-background'
@@ -322,6 +335,8 @@ const F_BACKGROUND_PROVIDERS = [
322
335
  ];
323
336
 
324
337
  class FCanvasChangeEvent {
338
+ position;
339
+ scale;
325
340
  constructor(position, scale) {
326
341
  this.position = position;
327
342
  this.scale = scale;
@@ -330,23 +345,24 @@ class FCanvasChangeEvent {
330
345
 
331
346
  const F_DRAG_HANDLE = new InjectionToken('F_DRAG_HANDLE');
332
347
  class FDragHandleDirective {
348
+ elementReference;
333
349
  get disabled() {
334
350
  return this.isDisabled;
335
351
  }
336
352
  set disabled(isDisabled) {
337
353
  this.isDisabled = BooleanExtensions.castToBoolean(isDisabled);
338
354
  }
355
+ isDisabled = false;
339
356
  get hostElement() {
340
357
  return this.elementReference.nativeElement;
341
358
  }
342
359
  constructor(elementReference) {
343
360
  this.elementReference = elementReference;
344
- this.isDisabled = false;
345
361
  }
346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDragHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
347
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FDragHandleDirective, selector: "[fDragHandle]", inputs: { disabled: ["fDragHandleDisabled", "disabled"] }, host: { properties: { "class.f-drag-handle-disabled": "disabled" }, classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 }); }
362
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDragHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
363
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FDragHandleDirective, selector: "[fDragHandle]", inputs: { disabled: ["fDragHandleDisabled", "disabled"] }, host: { properties: { "class.f-drag-handle-disabled": "disabled" }, classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 });
348
364
  }
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDragHandleDirective, decorators: [{
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDragHandleDirective, decorators: [{
350
366
  type: Directive,
351
367
  args: [{
352
368
  selector: "[fDragHandle]",
@@ -373,6 +389,8 @@ class ClearSelectionRequest {
373
389
  }
374
390
 
375
391
  class Pipeline {
392
+ validator;
393
+ execution;
376
394
  handle(request, injector) {
377
395
  let isValid = true;
378
396
  if (this.validator) {
@@ -392,10 +410,11 @@ class Pipeline {
392
410
  }
393
411
 
394
412
  class FFlowMediator {
413
+ injector;
395
414
  constructor(injector) {
396
415
  this.injector = injector;
397
416
  }
398
- static { this.pipelines = new Map(); }
417
+ static pipelines = new Map();
399
418
  static registerPipeline(type, handler, isValidator) {
400
419
  const pipeline = this.pipelines.get(type.name) || new Pipeline();
401
420
  isValidator
@@ -410,10 +429,10 @@ class FFlowMediator {
410
429
  }
411
430
  throw new Error('Handler not registered for request type.');
412
431
  }
413
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowMediator, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
414
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowMediator }); }
432
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowMediator, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
433
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowMediator });
415
434
  }
416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowMediator, decorators: [{
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowMediator, decorators: [{
417
436
  type: Injectable
418
437
  }], ctorParameters: () => [{ type: i0.Injector }] });
419
438
 
@@ -430,19 +449,20 @@ function FValidatorRegister(requestType) {
430
449
  }
431
450
 
432
451
  class CanvasMoveFinalizeRequest {
452
+ event;
433
453
  constructor(event) {
434
454
  this.event = event;
435
455
  }
436
456
  }
437
457
 
438
458
  class FDraggableDataContext {
439
- constructor() {
440
- this.selectedItems = [];
441
- this.isSelectedChanged = false;
442
- this.onPointerDownScale = 1;
443
- this.onPointerDownPosition = new Point(0, 0);
444
- this.draggableItems = [];
445
- }
459
+ selectedItems = [];
460
+ isSelectedChanged = false;
461
+ onPointerDownScale = 1;
462
+ onPointerDownPosition = new Point(0, 0);
463
+ draggableItems = [];
464
+ fSelectionArea;
465
+ fLineAlignment;
446
466
  reset() {
447
467
  this.draggableItems = [];
448
468
  this.onPointerDownScale = 1;
@@ -451,14 +471,15 @@ class FDraggableDataContext {
451
471
  markSelectionAsChanged() {
452
472
  this.isSelectedChanged = true;
453
473
  }
454
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDataContext, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
455
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDataContext }); }
474
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDataContext, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
475
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDataContext });
456
476
  }
457
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDataContext, decorators: [{
477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDataContext, decorators: [{
458
478
  type: Injectable
459
479
  }] });
460
480
 
461
481
  let CanvasMoveFinalizeExecution = class CanvasMoveFinalizeExecution {
482
+ fDraggableDataContext;
462
483
  constructor(fDraggableDataContext) {
463
484
  this.fDraggableDataContext = fDraggableDataContext;
464
485
  }
@@ -467,13 +488,13 @@ let CanvasMoveFinalizeExecution = class CanvasMoveFinalizeExecution {
467
488
  x.complete?.();
468
489
  });
469
490
  }
470
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
471
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeExecution }); }
491
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
492
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeExecution });
472
493
  };
473
494
  CanvasMoveFinalizeExecution = __decorate([
474
495
  FExecutionRegister(CanvasMoveFinalizeRequest)
475
496
  ], CanvasMoveFinalizeExecution);
476
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeExecution, decorators: [{
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeExecution, decorators: [{
477
498
  type: Injectable
478
499
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
479
500
 
@@ -491,19 +512,20 @@ var EFDraggableType;
491
512
  })(EFDraggableType || (EFDraggableType = {}));
492
513
 
493
514
  let CanvasMoveFinalizeValidator = class CanvasMoveFinalizeValidator {
515
+ fDraggableDataContext;
494
516
  constructor(fDraggableDataContext) {
495
517
  this.fDraggableDataContext = fDraggableDataContext;
496
518
  }
497
519
  handle(request) {
498
520
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.CANVAS);
499
521
  }
500
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
501
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeValidator }); }
522
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
523
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeValidator });
502
524
  };
503
525
  CanvasMoveFinalizeValidator = __decorate([
504
526
  FValidatorRegister(CanvasMoveFinalizeRequest)
505
527
  ], CanvasMoveFinalizeValidator);
506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMoveFinalizeValidator, decorators: [{
528
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMoveFinalizeValidator, decorators: [{
507
529
  type: Injectable
508
530
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
509
531
 
@@ -513,16 +535,18 @@ const CANVAS_MOVE_FINALIZE_PROVIDERS = [
513
535
  ];
514
536
 
515
537
  class CanvasMovePreparationRequest {
538
+ event;
516
539
  constructor(event) {
517
540
  this.event = event;
518
541
  }
519
542
  }
520
543
 
521
544
  class CanvasDragHandler {
545
+ fComponentsStore;
546
+ type = EFDraggableType.CANVAS;
547
+ onPointerDownPosition = PointExtensions.initialize();
522
548
  constructor(fComponentsStore) {
523
549
  this.fComponentsStore = fComponentsStore;
524
- this.type = EFDraggableType.CANVAS;
525
- this.onPointerDownPosition = PointExtensions.initialize();
526
550
  }
527
551
  initialize() {
528
552
  this.onPointerDownPosition = this.fComponentsStore.fCanvas.transform.position;
@@ -537,6 +561,8 @@ class CanvasDragHandler {
537
561
  }
538
562
 
539
563
  let CanvasMovePreparationExecution = class CanvasMovePreparationExecution {
564
+ fComponentsStore;
565
+ fDraggableDataContext;
540
566
  get flowHost() {
541
567
  return this.fComponentsStore.fFlow.hostElement;
542
568
  }
@@ -552,17 +578,19 @@ let CanvasMovePreparationExecution = class CanvasMovePreparationExecution {
552
578
  new CanvasDragHandler(this.fComponentsStore)
553
579
  ];
554
580
  }
555
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
556
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationExecution }); }
581
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
582
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationExecution });
557
583
  };
558
584
  CanvasMovePreparationExecution = __decorate([
559
585
  FExecutionRegister(CanvasMovePreparationRequest)
560
586
  ], CanvasMovePreparationExecution);
561
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationExecution, decorators: [{
587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationExecution, decorators: [{
562
588
  type: Injectable
563
589
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
564
590
 
565
591
  let CanvasMovePreparationValidator = class CanvasMovePreparationValidator {
592
+ fComponentsStore;
593
+ fDraggableDataContext;
566
594
  get flowHost() {
567
595
  return this.fComponentsStore.fFlow.hostElement;
568
596
  }
@@ -587,13 +615,13 @@ let CanvasMovePreparationValidator = class CanvasMovePreparationValidator {
587
615
  }
588
616
  return result;
589
617
  }
590
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
591
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationValidator }); }
618
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
619
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationValidator });
592
620
  };
593
621
  CanvasMovePreparationValidator = __decorate([
594
622
  FValidatorRegister(CanvasMovePreparationRequest)
595
623
  ], CanvasMovePreparationValidator);
596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CanvasMovePreparationValidator, decorators: [{
624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CanvasMovePreparationValidator, decorators: [{
597
625
  type: Injectable
598
626
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
599
627
 
@@ -653,6 +681,8 @@ class CalculateConnectorConnectableSideHandler {
653
681
  }
654
682
 
655
683
  class CalculateConnectorConnectableSideRequest {
684
+ fConnector;
685
+ fNodeHost;
656
686
  constructor(fConnector, fNodeHost) {
657
687
  this.fConnector = fConnector;
658
688
  this.fNodeHost = fNodeHost;
@@ -660,12 +690,10 @@ class CalculateConnectorConnectableSideRequest {
660
690
  }
661
691
 
662
692
  class FConnectorBase {
663
- constructor() {
664
- this.stateChanges = new Subject();
665
- this.isSelfConnectable = true;
666
- this.fConnectableSide = EFConnectableSide.AUTO;
667
- this._fConnectableSide = EFConnectableSide.AUTO;
668
- }
693
+ stateChanges = new Subject();
694
+ isSelfConnectable = true;
695
+ fConnectableSide = EFConnectableSide.AUTO;
696
+ _fConnectableSide = EFConnectableSide.AUTO;
669
697
  isContains(element) {
670
698
  return this.hostElement.contains(element);
671
699
  }
@@ -676,17 +704,14 @@ class FConnectorBase {
676
704
 
677
705
  const F_NODE_INPUT = new InjectionToken('F_NODE_INPUT');
678
706
  class FNodeInputBase extends FConnectorBase {
679
- constructor() {
680
- super(...arguments);
681
- this.isConnected = false;
682
- }
707
+ isConnected = false;
683
708
  get canBeConnected() {
684
709
  return !this.disabled && (this.multiple ? true : !this.isConnected);
685
710
  }
686
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeInputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
687
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeInputBase, usesInheritance: true, ngImport: i0 }); }
711
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeInputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
712
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeInputBase, usesInheritance: true, ngImport: i0 });
688
713
  }
689
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeInputBase, decorators: [{
714
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeInputBase, decorators: [{
690
715
  type: Directive
691
716
  }] });
692
717
 
@@ -694,16 +719,13 @@ function isNodeInput(element) {
694
719
  return !!element.closest('[fNodeInput]');
695
720
  }
696
721
 
697
- function castToConnectableSide(type) {
698
- const result = EFConnectableSide[type.toUpperCase()];
699
- if (result === undefined) {
700
- throw new Error(`Unknown connectable side: ${type}. Accepted values: ${Object.keys(EFConnectableSide).join(', ')}`);
701
- }
702
- return result;
703
- }
704
-
705
722
  let uniqueId$7 = 0;
706
723
  class FNodeInputDirective extends FNodeInputBase {
724
+ elementReference;
725
+ fNode;
726
+ fComponentsStore;
727
+ id = `f-node-input-${uniqueId$7++}`;
728
+ multiple = true;
707
729
  get disabled() {
708
730
  return this.isDisabled;
709
731
  }
@@ -714,13 +736,16 @@ class FNodeInputDirective extends FNodeInputBase {
714
736
  this.stateChanges.next();
715
737
  }
716
738
  }
739
+ isDisabled = false;
717
740
  set _fSide(value) {
718
- this._fConnectableSide = castToConnectableSide(value);
741
+ this._fConnectableSide = castToEnum(value, 'fInputConnectableSide', EFConnectableSide);
719
742
  this.fNode.refresh();
720
743
  }
721
744
  get _fSide() {
722
745
  return this._fConnectableSide;
723
746
  }
747
+ _fConnectableSide = EFConnectableSide.AUTO;
748
+ isConnected = false;
724
749
  get hostElement() {
725
750
  return this.elementReference.nativeElement;
726
751
  }
@@ -729,11 +754,6 @@ class FNodeInputDirective extends FNodeInputBase {
729
754
  this.elementReference = elementReference;
730
755
  this.fNode = fNode;
731
756
  this.fComponentsStore = fComponentsStore;
732
- this.id = `f-node-input-${uniqueId$7++}`;
733
- this.multiple = true;
734
- this.isDisabled = false;
735
- this._fConnectableSide = EFConnectableSide.AUTO;
736
- this.isConnected = false;
737
757
  }
738
758
  ngOnInit() {
739
759
  this.fComponentsStore.addComponent(this.fComponentsStore.fInputs, this);
@@ -747,10 +767,10 @@ class FNodeInputDirective extends FNodeInputBase {
747
767
  this.fNode.removeConnector(this);
748
768
  this.fComponentsStore.removeComponent(this.fComponentsStore.fInputs, this);
749
769
  }
750
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeInputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
751
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeInputDirective, selector: "[fNodeInput]", inputs: { id: ["fInputId", "id"], multiple: ["fInputMultiple", "multiple"], disabled: ["fInputDisabled", "disabled"], _fSide: ["fInputConnectableSide", "_fSide"] }, host: { properties: { "attr.data-f-input-id": "id", "class.f-node-input-multiple": "multiple", "class.f-node-input-disabled": "disabled", "class.f-node-input-not-connectable": "!canBeConnected" }, classAttribute: "f-component f-node-input" }, providers: [{ provide: F_NODE_INPUT, useExisting: FNodeInputDirective }], exportAs: ["fNodeInput"], usesInheritance: true, ngImport: i0 }); }
770
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeInputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
771
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeInputDirective, selector: "[fNodeInput]", inputs: { id: ["fInputId", "id"], multiple: ["fInputMultiple", "multiple"], disabled: ["fInputDisabled", "disabled"], _fSide: ["fInputConnectableSide", "_fSide"] }, host: { properties: { "attr.data-f-input-id": "id", "class.f-node-input-multiple": "multiple", "class.f-node-input-disabled": "disabled", "class.f-node-input-not-connectable": "!canBeConnected" }, classAttribute: "f-component f-node-input" }, providers: [{ provide: F_NODE_INPUT, useExisting: FNodeInputDirective }], exportAs: ["fNodeInput"], usesInheritance: true, ngImport: i0 });
752
772
  }
753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeInputDirective, decorators: [{
773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeInputDirective, decorators: [{
754
774
  type: Directive,
755
775
  args: [{
756
776
  selector: "[fNodeInput]",
@@ -783,21 +803,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
783
803
 
784
804
  const F_NODE_OUTLET = new InjectionToken('F_NODE_OUTLET');
785
805
  class FNodeOutletBase extends FConnectorBase {
786
- constructor() {
787
- super(...arguments);
788
- this.isConnected = false;
789
- this.outputs = [];
790
- }
806
+ isConnected = false;
807
+ outputs = [];
791
808
  get canBeConnected() {
792
809
  return !this.disabled && this.outputs.some((output) => output.canBeConnected);
793
810
  }
794
811
  setOutputs(outputs) {
795
812
  this.outputs = outputs;
796
813
  }
797
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutletBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
798
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeOutletBase, usesInheritance: true, ngImport: i0 }); }
814
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutletBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
815
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeOutletBase, usesInheritance: true, ngImport: i0 });
799
816
  }
800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutletBase, decorators: [{
817
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutletBase, decorators: [{
801
818
  type: Directive
802
819
  }] });
803
820
 
@@ -807,6 +824,10 @@ function isNodeOutlet(element) {
807
824
 
808
825
  let uniqueId$6 = 0;
809
826
  class FNodeOutletDirective extends FNodeOutletBase {
827
+ elementReference;
828
+ fNode;
829
+ fComponentsStore;
830
+ id = `f-node-outlet-${uniqueId$6++}`;
810
831
  get disabled() {
811
832
  return this.isDisabled;
812
833
  }
@@ -817,6 +838,10 @@ class FNodeOutletDirective extends FNodeOutletBase {
817
838
  this.stateChanges.next();
818
839
  }
819
840
  }
841
+ isDisabled = false;
842
+ fConnectableSide = EFConnectableSide.AUTO;
843
+ _fConnectableSide = EFConnectableSide.AUTO;
844
+ isConnectionFromOutlet = false;
820
845
  get hostElement() {
821
846
  return this.elementReference.nativeElement;
822
847
  }
@@ -825,11 +850,6 @@ class FNodeOutletDirective extends FNodeOutletBase {
825
850
  this.elementReference = elementReference;
826
851
  this.fNode = fNode;
827
852
  this.fComponentsStore = fComponentsStore;
828
- this.id = `f-node-outlet-${uniqueId$6++}`;
829
- this.isDisabled = false;
830
- this.fConnectableSide = EFConnectableSide.AUTO;
831
- this._fConnectableSide = EFConnectableSide.AUTO;
832
- this.isConnectionFromOutlet = false;
833
853
  }
834
854
  ngOnInit() {
835
855
  if (!this.fNode) {
@@ -840,10 +860,10 @@ class FNodeOutletDirective extends FNodeOutletBase {
840
860
  ngOnDestroy() {
841
861
  this.fComponentsStore.removeComponent(this.fComponentsStore.fOutlets, this);
842
862
  }
843
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutletDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
844
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeOutletDirective, selector: "[fNodeOutlet]", inputs: { id: ["fOutletId", "id"], disabled: ["fOutletDisabled", "disabled"], isConnectionFromOutlet: "isConnectionFromOutlet" }, host: { properties: { "attr.data-f-outlet-id": "id", "class.f-node-outlet-disabled": "disabled" }, classAttribute: "f-component f-node-outlet" }, providers: [{ provide: F_NODE_OUTLET, useExisting: FNodeOutletDirective }], exportAs: ["fNodeOutlet"], usesInheritance: true, ngImport: i0 }); }
863
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutletDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
864
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeOutletDirective, selector: "[fNodeOutlet]", inputs: { id: ["fOutletId", "id"], disabled: ["fOutletDisabled", "disabled"], isConnectionFromOutlet: "isConnectionFromOutlet" }, host: { properties: { "attr.data-f-outlet-id": "id", "class.f-node-outlet-disabled": "disabled" }, classAttribute: "f-component f-node-outlet" }, providers: [{ provide: F_NODE_OUTLET, useExisting: FNodeOutletDirective }], exportAs: ["fNodeOutlet"], usesInheritance: true, ngImport: i0 });
845
865
  }
846
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutletDirective, decorators: [{
866
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutletDirective, decorators: [{
847
867
  type: Directive,
848
868
  args: [{
849
869
  selector: "[fNodeOutlet]",
@@ -870,17 +890,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
870
890
 
871
891
  const F_NODE_OUTPUT = new InjectionToken('F_NODE_OUTPUT');
872
892
  class FNodeOutputBase extends FConnectorBase {
873
- constructor() {
874
- super(...arguments);
875
- this.isConnected = false;
876
- }
893
+ isConnected = false;
877
894
  get canBeConnected() {
878
895
  return !this.disabled && (this.multiple ? true : !this.isConnected);
879
896
  }
880
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
881
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeOutputBase, usesInheritance: true, ngImport: i0 }); }
897
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutputBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
898
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeOutputBase, usesInheritance: true, ngImport: i0 });
882
899
  }
883
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutputBase, decorators: [{
900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutputBase, decorators: [{
884
901
  type: Directive
885
902
  }] });
886
903
 
@@ -890,6 +907,11 @@ function isNodeOutput(element) {
890
907
 
891
908
  let uniqueId$5 = 0;
892
909
  class FNodeOutputDirective extends FNodeOutputBase {
910
+ elementReference;
911
+ fNode;
912
+ fComponentsStore;
913
+ id = `f-node-output-${uniqueId$5++}`;
914
+ multiple = false;
893
915
  get disabled() {
894
916
  return this.isDisabled;
895
917
  }
@@ -900,13 +922,17 @@ class FNodeOutputDirective extends FNodeOutputBase {
900
922
  this.stateChanges.next();
901
923
  }
902
924
  }
925
+ isDisabled = false;
903
926
  set _fSide(value) {
904
- this._fConnectableSide = castToConnectableSide(value);
927
+ this._fConnectableSide = castToEnum(value, 'fOutputConnectableSide', EFConnectableSide);
905
928
  this.fNode.refresh();
906
929
  }
907
930
  get _fSide() {
908
931
  return this._fConnectableSide;
909
932
  }
933
+ _fConnectableSide = EFConnectableSide.AUTO;
934
+ isConnected = false;
935
+ isSelfConnectable = true;
910
936
  get hostElement() {
911
937
  return this.elementReference.nativeElement;
912
938
  }
@@ -915,12 +941,6 @@ class FNodeOutputDirective extends FNodeOutputBase {
915
941
  this.elementReference = elementReference;
916
942
  this.fNode = fNode;
917
943
  this.fComponentsStore = fComponentsStore;
918
- this.id = `f-node-output-${uniqueId$5++}`;
919
- this.multiple = false;
920
- this.isDisabled = false;
921
- this._fConnectableSide = EFConnectableSide.AUTO;
922
- this.isConnected = false;
923
- this.isSelfConnectable = true;
924
944
  }
925
945
  ngOnInit() {
926
946
  if (!this.fNode) {
@@ -937,10 +957,10 @@ class FNodeOutputDirective extends FNodeOutputBase {
937
957
  this.fNode.removeConnector(this);
938
958
  this.fComponentsStore.removeComponent(this.fComponentsStore.fOutputs, this);
939
959
  }
940
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
941
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeOutputDirective, selector: "[fNodeOutput]", inputs: { id: ["fOutputId", "id"], multiple: ["fOutputMultiple", "multiple"], disabled: ["fOutputDisabled", "disabled"], _fSide: ["fOutputConnectableSide", "_fSide"], isSelfConnectable: "isSelfConnectable" }, host: { properties: { "attr.data-f-output-id": "id", "class.f-node-output-disabled": "disabled" }, classAttribute: "f-component f-node-output" }, providers: [{ provide: F_NODE_OUTPUT, useExisting: FNodeOutputDirective }], exportAs: ["fNodeOutput"], usesInheritance: true, ngImport: i0 }); }
960
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
961
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeOutputDirective, selector: "[fNodeOutput]", inputs: { id: ["fOutputId", "id"], multiple: ["fOutputMultiple", "multiple"], disabled: ["fOutputDisabled", "disabled"], _fSide: ["fOutputConnectableSide", "_fSide"], isSelfConnectable: "isSelfConnectable" }, host: { properties: { "attr.data-f-output-id": "id", "class.f-node-output-disabled": "disabled" }, classAttribute: "f-component f-node-output" }, providers: [{ provide: F_NODE_OUTPUT, useExisting: FNodeOutputDirective }], exportAs: ["fNodeOutput"], usesInheritance: true, ngImport: i0 });
942
962
  }
943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeOutputDirective, decorators: [{
963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeOutputDirective, decorators: [{
944
964
  type: Directive,
945
965
  args: [{
946
966
  selector: "[fNodeOutput]",
@@ -978,12 +998,15 @@ const F_CONNECTORS_PROVIDERS = [
978
998
  ];
979
999
 
980
1000
  class CreateConnectionFinalizeRequest {
1001
+ event;
981
1002
  constructor(event) {
982
1003
  this.event = event;
983
1004
  }
984
1005
  }
985
1006
 
986
1007
  class GetInputUnderPointerRequest {
1008
+ event;
1009
+ dragHandler;
987
1010
  constructor(event, dragHandler) {
988
1011
  this.event = event;
989
1012
  this.dragHandler = dragHandler;
@@ -991,6 +1014,7 @@ class GetInputUnderPointerRequest {
991
1014
  }
992
1015
 
993
1016
  let GetInputUnderPointerExecution = class GetInputUnderPointerExecution {
1017
+ fComponentsStore;
994
1018
  get fNodes() {
995
1019
  return this.fComponentsStore.fNodes;
996
1020
  }
@@ -1045,13 +1069,13 @@ let GetInputUnderPointerExecution = class GetInputUnderPointerExecution {
1045
1069
  return sourceNode?.hostElement !== targetNode?.hostElement;
1046
1070
  });
1047
1071
  }
1048
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
1049
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerExecution }); }
1072
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1073
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerExecution });
1050
1074
  };
1051
1075
  GetInputUnderPointerExecution = __decorate([
1052
1076
  FExecutionRegister(GetInputUnderPointerRequest)
1053
1077
  ], GetInputUnderPointerExecution);
1054
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerExecution, decorators: [{
1078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerExecution, decorators: [{
1055
1079
  type: Injectable
1056
1080
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1057
1081
 
@@ -1088,6 +1112,7 @@ function RequiredOutput() {
1088
1112
  }
1089
1113
 
1090
1114
  let GetInputUnderPointerValidator = class GetInputUnderPointerValidator {
1115
+ fComponentsStore;
1091
1116
  constructor(fComponentsStore) {
1092
1117
  this.fComponentsStore = fComponentsStore;
1093
1118
  }
@@ -1104,13 +1129,13 @@ let GetInputUnderPointerValidator = class GetInputUnderPointerValidator {
1104
1129
  getOutlet(dragHandler) {
1105
1130
  return this.fComponentsStore.fOutlets.find((x) => x.id === dragHandler.connection.fOutputId);
1106
1131
  }
1107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
1108
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerValidator }); }
1132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1133
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerValidator });
1109
1134
  };
1110
1135
  GetInputUnderPointerValidator = __decorate([
1111
1136
  FValidatorRegister(GetInputUnderPointerRequest)
1112
1137
  ], GetInputUnderPointerValidator);
1113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputUnderPointerValidator, decorators: [{
1138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputUnderPointerValidator, decorators: [{
1114
1139
  type: Injectable
1115
1140
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1116
1141
 
@@ -1120,12 +1145,14 @@ const GET_INPUT_UNDER_POINTER_PROVIDERS = [
1120
1145
  ];
1121
1146
 
1122
1147
  class GetCanBeConnectedOutputByOutletRequest {
1148
+ outlet;
1123
1149
  constructor(outlet) {
1124
1150
  this.outlet = outlet;
1125
1151
  }
1126
1152
  }
1127
1153
 
1128
1154
  let GetCanBeConnectedOutputByOutletExecution = class GetCanBeConnectedOutputByOutletExecution {
1155
+ fComponentsStore;
1129
1156
  get fNodes() {
1130
1157
  return this.fComponentsStore.fNodes;
1131
1158
  }
@@ -1150,17 +1177,18 @@ let GetCanBeConnectedOutputByOutletExecution = class GetCanBeConnectedOutputByOu
1150
1177
  getNode(outlet) {
1151
1178
  return this.fNodes.find((x) => x.isContains(outlet.hostElement));
1152
1179
  }
1153
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
1154
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution }); }
1180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1181
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution });
1155
1182
  };
1156
1183
  GetCanBeConnectedOutputByOutletExecution = __decorate([
1157
1184
  FExecutionRegister(GetCanBeConnectedOutputByOutletRequest)
1158
1185
  ], GetCanBeConnectedOutputByOutletExecution);
1159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution, decorators: [{
1186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletExecution, decorators: [{
1160
1187
  type: Injectable
1161
1188
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1162
1189
 
1163
1190
  let GetCanBeConnectedOutputByOutletValidator = class GetCanBeConnectedOutputByOutletValidator {
1191
+ fComponentsStore;
1164
1192
  get fNodes() {
1165
1193
  return this.fComponentsStore.fNodes;
1166
1194
  }
@@ -1170,13 +1198,13 @@ let GetCanBeConnectedOutputByOutletValidator = class GetCanBeConnectedOutputByOu
1170
1198
  handle(request) {
1171
1199
  return !!this.fNodes.find((x) => x.isContains(request.outlet.hostElement));
1172
1200
  }
1173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
1174
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator }); }
1201
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1202
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator });
1175
1203
  };
1176
1204
  GetCanBeConnectedOutputByOutletValidator = __decorate([
1177
1205
  FValidatorRegister(GetCanBeConnectedOutputByOutletRequest)
1178
1206
  ], GetCanBeConnectedOutputByOutletValidator);
1179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator, decorators: [{
1207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeConnectedOutputByOutletValidator, decorators: [{
1180
1208
  type: Injectable
1181
1209
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1182
1210
 
@@ -1186,6 +1214,9 @@ const GET_CAN_BE_CONNECTED_OUTPUT_BY_OUTLET_PROVIDERS = [
1186
1214
  ];
1187
1215
 
1188
1216
  class FCreateConnectionEvent {
1217
+ fOutputId;
1218
+ fInputId;
1219
+ fDropPosition;
1189
1220
  constructor(fOutputId, fInputId, fDropPosition) {
1190
1221
  this.fOutputId = fOutputId;
1191
1222
  this.fInputId = fInputId;
@@ -1194,6 +1225,9 @@ class FCreateConnectionEvent {
1194
1225
  }
1195
1226
 
1196
1227
  let CreateConnectionFinalizeExecution = class CreateConnectionFinalizeExecution {
1228
+ fComponentsStore;
1229
+ fDraggableDataContext;
1230
+ fMediator;
1197
1231
  get dragHandler() {
1198
1232
  return this.fDraggableDataContext.draggableItems[0];
1199
1233
  }
@@ -1224,30 +1258,31 @@ let CreateConnectionFinalizeExecution = class CreateConnectionFinalizeExecution
1224
1258
  getInputUnderPointer(event) {
1225
1259
  return this.fMediator.send(new GetInputUnderPointerRequest(event, this.dragHandler));
1226
1260
  }
1227
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1228
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeExecution }); }
1261
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1262
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeExecution });
1229
1263
  };
1230
1264
  CreateConnectionFinalizeExecution = __decorate([
1231
1265
  FExecutionRegister(CreateConnectionFinalizeRequest)
1232
1266
  ], CreateConnectionFinalizeExecution);
1233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeExecution, decorators: [{
1267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeExecution, decorators: [{
1234
1268
  type: Injectable
1235
1269
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
1236
1270
 
1237
1271
  let CreateConnectionFinalizeValidator = class CreateConnectionFinalizeValidator {
1272
+ fDraggableDataContext;
1238
1273
  constructor(fDraggableDataContext) {
1239
1274
  this.fDraggableDataContext = fDraggableDataContext;
1240
1275
  }
1241
1276
  handle(request) {
1242
1277
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.CREATE_CONNECTION);
1243
1278
  }
1244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
1245
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeValidator }); }
1279
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
1280
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeValidator });
1246
1281
  };
1247
1282
  CreateConnectionFinalizeValidator = __decorate([
1248
1283
  FValidatorRegister(CreateConnectionFinalizeRequest)
1249
1284
  ], CreateConnectionFinalizeValidator);
1250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFinalizeValidator, decorators: [{
1285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFinalizeValidator, decorators: [{
1251
1286
  type: Injectable
1252
1287
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
1253
1288
 
@@ -1257,6 +1292,9 @@ const CREATE_CONNECTION_FINALIZE_PROVIDERS = [
1257
1292
  ];
1258
1293
 
1259
1294
  class CreateConnectionDragHandlerRequest {
1295
+ position;
1296
+ connector;
1297
+ connectorCenter;
1260
1298
  constructor(position, connector, connectorCenter) {
1261
1299
  this.position = position;
1262
1300
  this.connector = connector;
@@ -1265,14 +1303,17 @@ class CreateConnectionDragHandlerRequest {
1265
1303
  }
1266
1304
 
1267
1305
  class CreateConnectionDragHandler {
1306
+ fMediator;
1307
+ connection;
1308
+ mouseDownPoint;
1309
+ type = EFDraggableType.CREATE_CONNECTION;
1310
+ onPointerDownFromConnectorRect = new RoundedRect();
1311
+ onPointerDownToConnectorRect = new RoundedRect();
1312
+ outputSide = EFConnectableSide.BOTTOM;
1268
1313
  constructor(fMediator, connection, mouseDownPoint) {
1269
1314
  this.fMediator = fMediator;
1270
1315
  this.connection = connection;
1271
1316
  this.mouseDownPoint = mouseDownPoint;
1272
- this.type = EFDraggableType.CREATE_CONNECTION;
1273
- this.onPointerDownFromConnectorRect = new RoundedRect();
1274
- this.onPointerDownToConnectorRect = new RoundedRect();
1275
- this.outputSide = EFConnectableSide.BOTTOM;
1276
1317
  }
1277
1318
  initialize() {
1278
1319
  const outputRect = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -1283,9 +1324,6 @@ class CreateConnectionDragHandler {
1283
1324
  this.move(new Point(0, 0));
1284
1325
  }
1285
1326
  move(difference) {
1286
- console.log(difference);
1287
- console.log(JSON.stringify(this.onPointerDownToConnectorRect));
1288
- console.log(JSON.stringify(this.onPointerDownToConnectorRect.addPoint(difference)));
1289
1327
  const line = this.fMediator.send(new GetConnectionLineRequest(this.onPointerDownFromConnectorRect, this.onPointerDownToConnectorRect.addPoint(difference), this.connection.fBehavior, this.outputSide, EFConnectableSide.TOP));
1290
1328
  this.connection.setLine(line.point1, this.outputSide, line.point2, EFConnectableSide.TOP);
1291
1329
  this.connection.redraw();
@@ -1297,6 +1335,9 @@ class CreateConnectionDragHandler {
1297
1335
  }
1298
1336
 
1299
1337
  let CreateConnectionDragHandlerExecution = class CreateConnectionDragHandlerExecution {
1338
+ fComponentsStore;
1339
+ fDraggableDataContext;
1340
+ fMediator;
1300
1341
  get transform() {
1301
1342
  return this.fComponentsStore.fCanvas.transform;
1302
1343
  }
@@ -1314,13 +1355,13 @@ let CreateConnectionDragHandlerExecution = class CreateConnectionDragHandlerExec
1314
1355
  new CreateConnectionDragHandler(this.fMediator, this.fComponentsStore.fTempConnection, request.connectorCenter)
1315
1356
  ];
1316
1357
  }
1317
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionDragHandlerExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1318
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionDragHandlerExecution }); }
1358
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionDragHandlerExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1359
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionDragHandlerExecution });
1319
1360
  };
1320
1361
  CreateConnectionDragHandlerExecution = __decorate([
1321
1362
  FExecutionRegister(CreateConnectionDragHandlerRequest)
1322
1363
  ], CreateConnectionDragHandlerExecution);
1323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionDragHandlerExecution, decorators: [{
1364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionDragHandlerExecution, decorators: [{
1324
1365
  type: Injectable
1325
1366
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
1326
1367
 
@@ -1329,12 +1370,15 @@ const CREATE_CONNECTION_DRAG_HANDLER_PROVIDERS = [
1329
1370
  ];
1330
1371
 
1331
1372
  class CreateConnectionFromOutletPreparationRequest {
1373
+ event;
1332
1374
  constructor(event) {
1333
1375
  this.event = event;
1334
1376
  }
1335
1377
  }
1336
1378
 
1337
1379
  let CreateConnectionFromOutletPreparationExecution = class CreateConnectionFromOutletPreparationExecution {
1380
+ fComponentsStore;
1381
+ fMediator;
1338
1382
  get flowHost() {
1339
1383
  return this.fComponentsStore.fFlow.hostElement;
1340
1384
  }
@@ -1371,13 +1415,13 @@ let CreateConnectionFromOutletPreparationExecution = class CreateConnectionFromO
1371
1415
  createDragHandler(position, output, outletCenter) {
1372
1416
  this.fMediator.send(new CreateConnectionDragHandlerRequest(position, output, outletCenter));
1373
1417
  }
1374
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1375
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution }); }
1418
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1419
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution });
1376
1420
  };
1377
1421
  CreateConnectionFromOutletPreparationExecution = __decorate([
1378
1422
  FExecutionRegister(CreateConnectionFromOutletPreparationRequest)
1379
1423
  ], CreateConnectionFromOutletPreparationExecution);
1380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, decorators: [{
1424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, decorators: [{
1381
1425
  type: Injectable
1382
1426
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1383
1427
 
@@ -1386,12 +1430,15 @@ const CREATE_CONNECTION_FROM_OUTLET_PREPARATION_PROVIDERS = [
1386
1430
  ];
1387
1431
 
1388
1432
  class CreateConnectionFromOutputPreparationRequest {
1433
+ event;
1389
1434
  constructor(event) {
1390
1435
  this.event = event;
1391
1436
  }
1392
1437
  }
1393
1438
 
1394
1439
  let CreateConnectionFromOutputPreparationExecution = class CreateConnectionFromOutputPreparationExecution {
1440
+ fComponentsStore;
1441
+ fMediator;
1395
1442
  get flowHost() {
1396
1443
  return this.fComponentsStore.fFlow.hostElement;
1397
1444
  }
@@ -1416,17 +1463,18 @@ let CreateConnectionFromOutputPreparationExecution = class CreateConnectionFromO
1416
1463
  createDragHandler(position, output, outletCenter) {
1417
1464
  this.fMediator.send(new CreateConnectionDragHandlerRequest(position, output, outletCenter));
1418
1465
  }
1419
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1420
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution }); }
1466
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1467
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution });
1421
1468
  };
1422
1469
  CreateConnectionFromOutputPreparationExecution = __decorate([
1423
1470
  FExecutionRegister(CreateConnectionFromOutputPreparationRequest)
1424
1471
  ], CreateConnectionFromOutputPreparationExecution);
1425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, decorators: [{
1472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, decorators: [{
1426
1473
  type: Injectable
1427
1474
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1428
1475
 
1429
1476
  let CreateConnectionFromOutputPreparationValidator = class CreateConnectionFromOutputPreparationValidator {
1477
+ fComponentsStore;
1430
1478
  constructor(fComponentsStore) {
1431
1479
  this.fComponentsStore = fComponentsStore;
1432
1480
  }
@@ -1442,13 +1490,13 @@ let CreateConnectionFromOutputPreparationValidator = class CreateConnectionFromO
1442
1490
  getOutlets(node) {
1443
1491
  return this.fComponentsStore.fOutlets.filter((x) => node.isContains(x.hostElement));
1444
1492
  }
1445
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
1446
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator }); }
1493
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1494
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator });
1447
1495
  };
1448
1496
  CreateConnectionFromOutputPreparationValidator = __decorate([
1449
1497
  FValidatorRegister(CreateConnectionFromOutputPreparationRequest)
1450
1498
  ], CreateConnectionFromOutputPreparationValidator);
1451
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, decorators: [{
1499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, decorators: [{
1452
1500
  type: Injectable
1453
1501
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1454
1502
 
@@ -1458,12 +1506,15 @@ const CREATE_CONNECTION_FROM_OUTPUT_PREPARATION_PROVIDERS = [
1458
1506
  ];
1459
1507
 
1460
1508
  class CreateConnectionPreparationRequest {
1509
+ event;
1461
1510
  constructor(event) {
1462
1511
  this.event = event;
1463
1512
  }
1464
1513
  }
1465
1514
 
1466
1515
  let CreateConnectionPreparationExecution = class CreateConnectionPreparationExecution {
1516
+ fComponentsStore;
1517
+ fMediator;
1467
1518
  constructor(fComponentsStore, fMediator) {
1468
1519
  this.fComponentsStore = fComponentsStore;
1469
1520
  this.fMediator = fMediator;
@@ -1485,17 +1536,19 @@ let CreateConnectionPreparationExecution = class CreateConnectionPreparationExec
1485
1536
  getOutlets(node) {
1486
1537
  return this.fComponentsStore.fOutlets.filter((x) => node.isContains(x.hostElement));
1487
1538
  }
1488
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1489
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationExecution }); }
1539
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1540
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationExecution });
1490
1541
  };
1491
1542
  CreateConnectionPreparationExecution = __decorate([
1492
1543
  FExecutionRegister(CreateConnectionPreparationRequest)
1493
1544
  ], CreateConnectionPreparationExecution);
1494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationExecution, decorators: [{
1545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationExecution, decorators: [{
1495
1546
  type: Injectable
1496
1547
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1497
1548
 
1498
1549
  let CreateConnectionPreparationValidator = class CreateConnectionPreparationValidator {
1550
+ fComponentsStore;
1551
+ fDraggableDataContext;
1499
1552
  constructor(fComponentsStore, fDraggableDataContext) {
1500
1553
  this.fComponentsStore = fComponentsStore;
1501
1554
  this.fDraggableDataContext = fDraggableDataContext;
@@ -1509,13 +1562,13 @@ let CreateConnectionPreparationValidator = class CreateConnectionPreparationVali
1509
1562
  isValidConditions() {
1510
1563
  return !this.fDraggableDataContext.draggableItems.length && !!this.fComponentsStore.fTempConnection;
1511
1564
  }
1512
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
1513
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationValidator }); }
1565
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
1566
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationValidator });
1514
1567
  };
1515
1568
  CreateConnectionPreparationValidator = __decorate([
1516
1569
  FValidatorRegister(CreateConnectionPreparationRequest)
1517
1570
  ], CreateConnectionPreparationValidator);
1518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
1571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
1519
1572
  type: Injectable
1520
1573
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
1521
1574
 
@@ -1528,12 +1581,17 @@ const CREATE_CONNECTION_PREPARATION_PROVIDERS = [
1528
1581
  ];
1529
1582
 
1530
1583
  class ReassignConnectionFinalizeRequest {
1584
+ event;
1531
1585
  constructor(event) {
1532
1586
  this.event = event;
1533
1587
  }
1534
1588
  }
1535
1589
 
1536
1590
  class FReassignConnectionEvent {
1591
+ connectionId;
1592
+ fOutputId;
1593
+ oldFInputId;
1594
+ newFInputId;
1537
1595
  constructor(connectionId, fOutputId, oldFInputId, newFInputId) {
1538
1596
  this.connectionId = connectionId;
1539
1597
  this.fOutputId = fOutputId;
@@ -1543,6 +1601,9 @@ class FReassignConnectionEvent {
1543
1601
  }
1544
1602
 
1545
1603
  let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecution {
1604
+ fComponentsStore;
1605
+ fDraggableDataContext;
1606
+ fMediator;
1546
1607
  get fDraggable() {
1547
1608
  return this.fComponentsStore.fDraggable;
1548
1609
  }
@@ -1571,30 +1632,31 @@ let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecut
1571
1632
  isReassignToDifferentInput(inputsUnderPointer) {
1572
1633
  return this.dragHandler.connection.fInputId !== inputsUnderPointer.id;
1573
1634
  }
1574
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
1575
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeExecution }); }
1635
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
1636
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeExecution });
1576
1637
  };
1577
1638
  ReassignConnectionFinalizeExecution = __decorate([
1578
1639
  FExecutionRegister(ReassignConnectionFinalizeRequest)
1579
1640
  ], ReassignConnectionFinalizeExecution);
1580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
1641
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
1581
1642
  type: Injectable
1582
1643
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
1583
1644
 
1584
1645
  let ReassignConnectionFinalizeValidator = class ReassignConnectionFinalizeValidator {
1646
+ fDraggableDataContext;
1585
1647
  constructor(fDraggableDataContext) {
1586
1648
  this.fDraggableDataContext = fDraggableDataContext;
1587
1649
  }
1588
1650
  handle(request) {
1589
1651
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.REASSIGN_CONNECTION);
1590
1652
  }
1591
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
1592
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeValidator }); }
1653
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
1654
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator });
1593
1655
  };
1594
1656
  ReassignConnectionFinalizeValidator = __decorate([
1595
1657
  FValidatorRegister(ReassignConnectionFinalizeRequest)
1596
1658
  ], ReassignConnectionFinalizeValidator);
1597
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeValidator, decorators: [{
1659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator, decorators: [{
1598
1660
  type: Injectable
1599
1661
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
1600
1662
 
@@ -1604,6 +1666,7 @@ const REASSIGN_CONNECTION_FINALIZE_PROVIDERS = [
1604
1666
  ];
1605
1667
 
1606
1668
  class ReassignConnectionPreparationRequest {
1669
+ event;
1607
1670
  constructor(event) {
1608
1671
  this.event = event;
1609
1672
  }
@@ -1621,6 +1684,8 @@ class CalculateCenterBetweenPointsHandler {
1621
1684
  }
1622
1685
 
1623
1686
  class CalculateCenterBetweenPointsRequest {
1687
+ source;
1688
+ target;
1624
1689
  constructor(source, target) {
1625
1690
  this.source = source;
1626
1691
  this.target = target;
@@ -1663,6 +1728,7 @@ class CalculateConnectionCenterHandler {
1663
1728
  }
1664
1729
 
1665
1730
  class CalculateConnectionCenterRequest {
1731
+ points;
1666
1732
  constructor(points) {
1667
1733
  this.points = points;
1668
1734
  }
@@ -1873,17 +1939,19 @@ const F_CONNECTION_IDENTIFIERS = {
1873
1939
  const F_CONNECTION = new InjectionToken('F_CONNECTION');
1874
1940
 
1875
1941
  class FConnectionTextPathDirective {
1942
+ elementReference;
1943
+ base;
1876
1944
  get linkToConnection() {
1877
1945
  return F_CONNECTION_IDENTIFIERS.linkToConnection(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
1878
1946
  }
1879
1947
  get hostElement() {
1880
1948
  return this.elementReference.nativeElement;
1881
1949
  }
1950
+ symbolWidth = 8;
1951
+ fontSize = '12px';
1882
1952
  constructor(elementReference, base) {
1883
1953
  this.elementReference = elementReference;
1884
1954
  this.base = base;
1885
- this.symbolWidth = 8;
1886
- this.fontSize = '12px';
1887
1955
  }
1888
1956
  ngOnInit() {
1889
1957
  this.hostElement.setAttribute('startOffset', '50%');
@@ -1914,10 +1982,10 @@ class FConnectionTextPathDirective {
1914
1982
  const symbolWidth = metrics.width / text.length;
1915
1983
  return symbolWidth;
1916
1984
  }
1917
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextPathDirective, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Directive }); }
1918
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionTextPathDirective, selector: "textPath[f-connection-text-path]", host: { properties: { "attr.href": "linkToConnection" } }, ngImport: i0 }); }
1985
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextPathDirective, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Directive });
1986
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionTextPathDirective, selector: "textPath[f-connection-text-path]", host: { properties: { "attr.href": "linkToConnection" } }, ngImport: i0 });
1919
1987
  }
1920
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextPathDirective, decorators: [{
1988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextPathDirective, decorators: [{
1921
1989
  type: Directive,
1922
1990
  args: [{
1923
1991
  selector: 'textPath[f-connection-text-path]',
@@ -1933,6 +2001,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
1933
2001
  const CONNECTION_TEXT = new InjectionToken('CONNECTION_TEXT');
1934
2002
 
1935
2003
  class FConnectionTextComponent {
2004
+ elementReference;
2005
+ base;
1936
2006
  get textId() {
1937
2007
  return F_CONNECTION_IDENTIFIERS.textId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
1938
2008
  }
@@ -1942,6 +2012,7 @@ class FConnectionTextComponent {
1942
2012
  get text() {
1943
2013
  return this.base.fText || '';
1944
2014
  }
2015
+ textPathDirective;
1945
2016
  constructor(elementReference, base) {
1946
2017
  this.elementReference = elementReference;
1947
2018
  this.base = base;
@@ -1973,10 +2044,10 @@ class FConnectionTextComponent {
1973
2044
  const vectorLength = PointExtensions.hypotenuse(line.point1, line.point2);
1974
2045
  return vectorLength / 2 - ((name || '').length * symbolWidth) / 2;
1975
2046
  }
1976
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component }); }
1977
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionTextComponent, selector: "text[f-connection-text]", host: { properties: { "attr.id": "textId" }, classAttribute: "f-component f-connection-text" }, providers: [{ provide: CONNECTION_TEXT, useExisting: FConnectionTextComponent }], viewQueries: [{ propertyName: "textPathDirective", first: true, predicate: FConnectionTextPathDirective, descendants: true, static: true }], ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <svg:textPath f-connection-text-path>\n {{ text }}\n </svg:textPath>\n</ng-container>\n", dependencies: [{ kind: "directive", type: FConnectionTextPathDirective, selector: "textPath[f-connection-text-path]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2047
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component });
2048
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionTextComponent, selector: "text[f-connection-text]", host: { properties: { "attr.id": "textId" }, classAttribute: "f-component f-connection-text" }, providers: [{ provide: CONNECTION_TEXT, useExisting: FConnectionTextComponent }], viewQueries: [{ propertyName: "textPathDirective", first: true, predicate: FConnectionTextPathDirective, descendants: true, static: true }], ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <svg:textPath f-connection-text-path>\n {{ text }}\n </svg:textPath>\n</ng-container>\n", dependencies: [{ kind: "directive", type: FConnectionTextPathDirective, selector: "textPath[f-connection-text-path]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1978
2049
  }
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextComponent, decorators: [{
2050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextComponent, decorators: [{
1980
2051
  type: Component,
1981
2052
  args: [{ selector: "text[f-connection-text]", changeDetection: ChangeDetectionStrategy.OnPush, host: {
1982
2053
  class: "f-component f-connection-text",
@@ -1992,21 +2063,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
1992
2063
 
1993
2064
  const F_CONNECTION_DRAG_HANDLE_CLASS = 'f-connection-drag-handle';
1994
2065
  class FConnectionDragHandleComponent {
2066
+ elementReference;
2067
+ class = F_CONNECTION_DRAG_HANDLE_CLASS;
1995
2068
  get hostElement() {
1996
2069
  return this.elementReference.nativeElement;
1997
2070
  }
1998
2071
  constructor(elementReference) {
1999
2072
  this.elementReference = elementReference;
2000
- this.class = F_CONNECTION_DRAG_HANDLE_CLASS;
2001
2073
  }
2002
- redraw(point) {
2074
+ redraw(start, end) {
2075
+ const point = this.calculateCircleCenter(start, end, 8);
2003
2076
  this.hostElement.setAttribute('cx', point.x.toString());
2004
2077
  this.hostElement.setAttribute('cy', point.y.toString());
2005
2078
  }
2006
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionDragHandleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
2007
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]", host: { properties: { "class": "class" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2079
+ calculateCircleCenter(start, end, radius) {
2080
+ const direction = { x: end.x - start.x, y: end.y - start.y };
2081
+ const length = Math.sqrt(direction.x * direction.x + direction.y * direction.y);
2082
+ const unitDirection = { x: direction.x / length, y: direction.y / length };
2083
+ const scaledDirection = { x: unitDirection.x * radius, y: unitDirection.y * radius };
2084
+ return { x: end.x - scaledDirection.x, y: end.y - scaledDirection.y };
2085
+ }
2086
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionDragHandleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2087
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]", host: { properties: { "class": "class" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2008
2088
  }
2009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionDragHandleComponent, decorators: [{
2089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionDragHandleComponent, decorators: [{
2010
2090
  type: Component,
2011
2091
  args: [{
2012
2092
  selector: "circle[f-connection-drag-handle]",
@@ -2021,6 +2101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2021
2101
  const CONNECTION_GRADIENT = new InjectionToken('CONNECTION_GRADIENT');
2022
2102
 
2023
2103
  class FConnectionGradientComponent {
2104
+ elementReference;
2105
+ base;
2024
2106
  get gradientId() {
2025
2107
  return F_CONNECTION_IDENTIFIERS.gradientId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
2026
2108
  }
@@ -2063,10 +2145,10 @@ class FConnectionGradientComponent {
2063
2145
  this.hostElement.setAttribute('y2', to.y.toString());
2064
2146
  this.updateGradient();
2065
2147
  }
2066
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionGradientComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component }); }
2067
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]", host: { properties: { "attr.id": "gradientId" }, classAttribute: "f-component f-connection-gradient" }, providers: [{ provide: CONNECTION_GRADIENT, useExisting: FConnectionGradientComponent }], ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <svg:stop/>\n <svg:stop/>\n</ng-container>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2148
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionGradientComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component });
2149
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]", host: { properties: { "attr.id": "gradientId" }, classAttribute: "f-component f-connection-gradient" }, providers: [{ provide: CONNECTION_GRADIENT, useExisting: FConnectionGradientComponent }], ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <svg:stop/>\n <svg:stop/>\n</ng-container>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
2068
2150
  }
2069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionGradientComponent, decorators: [{
2151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionGradientComponent, decorators: [{
2070
2152
  type: Component,
2071
2153
  args: [{ selector: "linearGradient[fConnectionGradient]", changeDetection: ChangeDetectionStrategy.OnPush, host: {
2072
2154
  class: "f-component f-connection-gradient",
@@ -2079,28 +2161,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2079
2161
 
2080
2162
  const CONNECTION_PATH = new InjectionToken('CONNECTION_PATH');
2081
2163
 
2082
- var EFMarkerType;
2083
- (function (EFMarkerType) {
2084
- EFMarkerType["START"] = "f-connection-marker-start";
2085
- EFMarkerType["END"] = "f-connection-marker-end";
2086
- EFMarkerType["SELECTED_START"] = "f-connection-selected-marker-start";
2087
- EFMarkerType["SELECTED_END"] = "f-connection-selected-marker-end";
2088
- })(EFMarkerType || (EFMarkerType = {}));
2089
-
2164
+ //import { EFMarkerType } from '../../f-marker';
2090
2165
  function getMarkerStartId(fConnectionId) {
2091
- return sanitizeElementId(`${EFMarkerType.START}-${fConnectionId}`);
2166
+ return sanitizeElementId(`f-connection-marker-start-${fConnectionId}`);
2092
2167
  }
2093
2168
  function getMarkerEndId(fConnectionId) {
2094
- return sanitizeElementId(`${EFMarkerType.END}-${fConnectionId}`);
2169
+ return sanitizeElementId(`f-connection-marker-end-${fConnectionId}`);
2095
2170
  }
2096
2171
  function getMarkerSelectedStartId(fConnectionId) {
2097
- return sanitizeElementId(`${EFMarkerType.SELECTED_START}-${fConnectionId}`);
2172
+ return sanitizeElementId(`f-connection-selected-marker-start-${fConnectionId}`);
2098
2173
  }
2099
2174
  function getMarkerSelectedEndId(fConnectionId) {
2100
- return sanitizeElementId(`${EFMarkerType.SELECTED_END}-${fConnectionId}`);
2175
+ return sanitizeElementId(`f-connection-selected-marker-end-${fConnectionId}`);
2101
2176
  }
2102
2177
 
2103
2178
  class FConnectionPathComponent {
2179
+ elementReference;
2180
+ base;
2104
2181
  get fPathId() {
2105
2182
  return this.base.fConnectionId;
2106
2183
  }
@@ -2131,10 +2208,10 @@ class FConnectionPathComponent {
2131
2208
  this.hostElement.setAttribute('marker-start', `url(#${getMarkerStartId(this.base.fConnectionId)})`);
2132
2209
  this.hostElement.setAttribute('marker-end', `url(#${getMarkerEndId(this.base.fConnectionId)})`);
2133
2210
  }
2134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionPathComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component }); }
2135
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionPathComponent, selector: "path[f-connection-path]", host: { properties: { "attr.id": "attrConnectionId", "attr.data-f-path-id": "fPathId", "attr.stroke": "linkToGradient" }, classAttribute: "f-component f-connection-path" }, providers: [{ provide: CONNECTION_PATH, useExisting: FConnectionPathComponent }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionPathComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component });
2212
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionPathComponent, selector: "path[f-connection-path]", host: { properties: { "attr.id": "attrConnectionId", "attr.data-f-path-id": "fPathId", "attr.stroke": "linkToGradient" }, classAttribute: "f-component f-connection-path" }, providers: [{ provide: CONNECTION_PATH, useExisting: FConnectionPathComponent }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2136
2213
  }
2137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionPathComponent, decorators: [{
2214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionPathComponent, decorators: [{
2138
2215
  type: Component,
2139
2216
  args: [{
2140
2217
  selector: "path[f-connection-path]",
@@ -2154,6 +2231,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2154
2231
  }] }] });
2155
2232
 
2156
2233
  class FConnectionSelectionComponent {
2234
+ elementReference;
2235
+ base;
2157
2236
  get connectionForSelectionId() {
2158
2237
  return F_CONNECTION_IDENTIFIERS.connectionForSelectionId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
2159
2238
  }
@@ -2167,10 +2246,10 @@ class FConnectionSelectionComponent {
2167
2246
  setPath(path) {
2168
2247
  this.hostElement.setAttribute("d", `${path}`);
2169
2248
  }
2170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionSelectionComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component }); }
2171
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]", host: { properties: { "attr.id": "connectionForSelectionId" }, classAttribute: "f-component f-connection-selection" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2249
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionSelectionComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component });
2250
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]", host: { properties: { "attr.id": "connectionForSelectionId" }, classAttribute: "f-component f-connection-selection" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2172
2251
  }
2173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionSelectionComponent, decorators: [{
2252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionSelectionComponent, decorators: [{
2174
2253
  type: Component,
2175
2254
  args: [{
2176
2255
  selector: "path[fConnectionSelection]",
@@ -2189,6 +2268,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2189
2268
  const F_SELECTED_CLASS = 'f-selected';
2190
2269
  function mixinChangeConnectionSelection(base) {
2191
2270
  return class extends base {
2271
+ fSelectionDisabled = false;
2272
+ fPath;
2192
2273
  deselect() {
2193
2274
  this.fPath?.deselect();
2194
2275
  this.hostElement.classList.remove(F_SELECTED_CLASS);
@@ -2204,7 +2285,6 @@ function mixinChangeConnectionSelection(base) {
2204
2285
  }
2205
2286
  constructor(...args) {
2206
2287
  super(...args);
2207
- this.fSelectionDisabled = false;
2208
2288
  }
2209
2289
  };
2210
2290
  }
@@ -2226,12 +2306,12 @@ function mixinChangeConnectionVisibility(base) {
2226
2306
  const F_CONNECTION_BUILDERS = new InjectionToken('F_CONNECTION_BUILDERS');
2227
2307
 
2228
2308
  class FConnectionFactory {
2309
+ builders = {
2310
+ [EFConnectionType.STRAIGHT]: new FStraightPathBuilder(),
2311
+ [EFConnectionType.BEZIER]: new FBezierPathBuilder(),
2312
+ [EFConnectionType.SEGMENT]: new FSegmentPathBuilder(),
2313
+ };
2229
2314
  constructor(builders) {
2230
- this.builders = {
2231
- [EFConnectionType.STRAIGHT]: new FStraightPathBuilder(),
2232
- [EFConnectionType.BEZIER]: new FBezierPathBuilder(),
2233
- [EFConnectionType.SEGMENT]: new FSegmentPathBuilder(),
2234
- };
2235
2315
  if (builders) {
2236
2316
  this.builders = { ...this.builders, ...builders };
2237
2317
  }
@@ -2243,10 +2323,10 @@ class FConnectionFactory {
2243
2323
  }
2244
2324
  return builder.handle(request.payload);
2245
2325
  }
2246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionFactory, deps: [{ token: F_CONNECTION_BUILDERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2247
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionFactory }); }
2326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionFactory, deps: [{ token: F_CONNECTION_BUILDERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2327
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionFactory });
2248
2328
  }
2249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionFactory, decorators: [{
2329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionFactory, decorators: [{
2250
2330
  type: Injectable
2251
2331
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2252
2332
  type: Optional
@@ -2256,17 +2336,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2256
2336
  }] }] });
2257
2337
 
2258
2338
  const MIXIN_BASE$1 = mixinChangeConnectionSelection(mixinChangeConnectionVisibility(class {
2339
+ hostElement;
2259
2340
  constructor(hostElement) {
2260
2341
  this.hostElement = hostElement;
2261
2342
  }
2262
2343
  }));
2263
2344
  class FConnectionBase extends MIXIN_BASE$1 {
2345
+ cFactory;
2346
+ path = '';
2347
+ line = LineExtensions.initialize();
2348
+ stateChanges = new Subject();
2264
2349
  constructor(elementReference, cFactory) {
2265
2350
  super(elementReference.nativeElement);
2266
2351
  this.cFactory = cFactory;
2267
- this.path = '';
2268
- this.line = LineExtensions.initialize();
2269
- this.stateChanges = new Subject();
2270
2352
  }
2271
2353
  initialize() {
2272
2354
  this.fPath.initialize();
@@ -2297,13 +2379,13 @@ class FConnectionBase extends MIXIN_BASE$1 {
2297
2379
  this.fPath.setPath(this.path);
2298
2380
  this.fSelection.setPath(this.path);
2299
2381
  this.fGradient.redraw(this.line);
2300
- this.fDragHandle.redraw(this.line.point2);
2382
+ this.fDragHandle.redraw(this.line.point1, this.line.point2);
2301
2383
  this.fTextComponent.redraw(this.line);
2302
2384
  }
2303
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionBase, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
2304
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionBase, usesInheritance: true, ngImport: i0 }); }
2385
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionBase, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }], target: i0.ɵɵFactoryTarget.Directive });
2386
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionBase, usesInheritance: true, ngImport: i0 });
2305
2387
  }
2306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionBase, decorators: [{
2388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionBase, decorators: [{
2307
2389
  type: Directive
2308
2390
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FConnectionFactory }] });
2309
2391
 
@@ -2322,10 +2404,10 @@ var EFConnectionType;
2322
2404
  })(EFConnectionType || (EFConnectionType = {}));
2323
2405
 
2324
2406
  class FConnectionCenterDirective {
2325
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionCenterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2326
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionCenterDirective, selector: "[fConnectionCenter]", ngImport: i0 }); }
2407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionCenterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2408
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionCenterDirective, selector: "[fConnectionCenter]", ngImport: i0 });
2327
2409
  }
2328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionCenterDirective, decorators: [{
2410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionCenterDirective, decorators: [{
2329
2411
  type: Directive,
2330
2412
  args: [{
2331
2413
  selector: "[fConnectionCenter]"
@@ -2334,6 +2416,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2334
2416
 
2335
2417
  let uniqueId$4 = 0;
2336
2418
  class FConnectionForCreateComponent extends FConnectionBase {
2419
+ fComponentsStore;
2420
+ fConnectionId = `f-connection-for-create-${uniqueId$4++}`;
2421
+ fText = '';
2422
+ _fStartColor = 'black';
2337
2423
  set fStartColor(value) {
2338
2424
  this._fStartColor = value;
2339
2425
  this.fComponentsStore.changes.next();
@@ -2341,6 +2427,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2341
2427
  get fStartColor() {
2342
2428
  return this._fStartColor;
2343
2429
  }
2430
+ _fEndColor = 'black';
2344
2431
  set fEndColor(value) {
2345
2432
  this._fEndColor = value;
2346
2433
  this.fComponentsStore.changes.next();
@@ -2348,6 +2435,9 @@ class FConnectionForCreateComponent extends FConnectionBase {
2348
2435
  get fEndColor() {
2349
2436
  return this._fEndColor;
2350
2437
  }
2438
+ fOutputId;
2439
+ fInputId;
2440
+ _fRadius = 8;
2351
2441
  set fRadius(value) {
2352
2442
  this._fRadius = value;
2353
2443
  this.fComponentsStore.changes.next();
@@ -2355,6 +2445,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2355
2445
  get fRadius() {
2356
2446
  return this._fRadius;
2357
2447
  }
2448
+ _fOffset = 32;
2358
2449
  set fOffset(value) {
2359
2450
  this._fOffset = value;
2360
2451
  this.fComponentsStore.changes.next();
@@ -2362,6 +2453,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2362
2453
  get fOffset() {
2363
2454
  return this._fOffset;
2364
2455
  }
2456
+ _behavior = EFConnectionBehavior.FIXED;
2365
2457
  set fBehavior(value) {
2366
2458
  this._behavior = castToEnum(value, 'fBehavior', EFConnectionBehavior);
2367
2459
  this.fComponentsStore.changes.next();
@@ -2369,6 +2461,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2369
2461
  get fBehavior() {
2370
2462
  return this._behavior;
2371
2463
  }
2464
+ _type = EFConnectionType.STRAIGHT;
2372
2465
  set fType(value) {
2373
2466
  this._type = castToEnum(value, 'fType', EFConnectionType);
2374
2467
  this.fComponentsStore.changes.next();
@@ -2376,27 +2469,27 @@ class FConnectionForCreateComponent extends FConnectionBase {
2376
2469
  get fType() {
2377
2470
  return this._type;
2378
2471
  }
2472
+ fDraggingDisabled = false;
2473
+ fSelectionDisabled = false;
2474
+ fDefs;
2379
2475
  get fMarkers() {
2380
2476
  return this.fComponentsStore.fMarkers.filter((x) => {
2381
2477
  return this.hostElement.contains(x.hostElement);
2382
2478
  });
2383
2479
  }
2480
+ fPath;
2481
+ fGradient;
2482
+ fDragHandle;
2483
+ fSelection;
2484
+ fTextComponent;
2485
+ fConnectionCenter;
2486
+ fConnectionCenters;
2384
2487
  get boundingElement() {
2385
2488
  return this.fPath.hostElement;
2386
2489
  }
2387
2490
  constructor(elementReference, fConnectionFactory, fComponentsStore) {
2388
2491
  super(elementReference, fConnectionFactory);
2389
2492
  this.fComponentsStore = fComponentsStore;
2390
- this.fConnectionId = `f-connection-for-create-${uniqueId$4++}`;
2391
- this.fText = '';
2392
- this._fStartColor = 'black';
2393
- this._fEndColor = 'black';
2394
- this._fRadius = 8;
2395
- this._fOffset = 32;
2396
- this._behavior = EFConnectionBehavior.FIXED;
2397
- this._type = EFConnectionType.STRAIGHT;
2398
- this.fDraggingDisabled = false;
2399
- this.fSelectionDisabled = false;
2400
2493
  }
2401
2494
  ngOnInit() {
2402
2495
  this.fComponentsStore.fTempConnection = this;
@@ -2407,10 +2500,10 @@ class FConnectionForCreateComponent extends FConnectionBase {
2407
2500
  ngOnDestroy() {
2408
2501
  this.fComponentsStore.fTempConnection = undefined;
2409
2502
  }
2410
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionForCreateComponent, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component }); }
2411
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionForCreateComponent, selector: "f-connection-for-create", inputs: { fStartColor: "fStartColor", fEndColor: "fEndColor", fRadius: "fRadius", fOffset: "fOffset", fBehavior: "fBehavior", fType: "fType" }, host: { classAttribute: "f-component f-connection f-connection-for-create" }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionForCreateComponent }], queries: [{ propertyName: "fConnectionCenters", predicate: FConnectionCenterDirective, descendants: true }], viewQueries: [{ propertyName: "fDefs", first: true, predicate: ["defs"], descendants: true, static: true }, { propertyName: "fPath", first: true, predicate: CONNECTION_PATH, descendants: true, static: true }, { propertyName: "fGradient", first: true, predicate: CONNECTION_GRADIENT, descendants: true, static: true }, { propertyName: "fDragHandle", first: true, predicate: FConnectionDragHandleComponent, descendants: true, static: true }, { propertyName: "fSelection", first: true, predicate: FConnectionSelectionComponent, descendants: true, static: true }, { propertyName: "fTextComponent", first: true, predicate: CONNECTION_TEXT, descendants: true, static: true }, { propertyName: "fConnectionCenter", first: true, predicate: ["fConnectionCenter"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <defs #defs></defs>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path\n [attr.d]=\"path\">\n </path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n <ng-content></ng-content>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FConnectionTextComponent, selector: "text[f-connection-text]" }, { kind: "component", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]" }, { kind: "component", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]" }, { kind: "component", type: FConnectionPathComponent, selector: "path[f-connection-path]" }, { kind: "component", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2503
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionForCreateComponent, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component });
2504
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionForCreateComponent, selector: "f-connection-for-create", inputs: { fStartColor: "fStartColor", fEndColor: "fEndColor", fRadius: "fRadius", fOffset: "fOffset", fBehavior: "fBehavior", fType: "fType" }, host: { classAttribute: "f-component f-connection f-connection-for-create" }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionForCreateComponent }], queries: [{ propertyName: "fConnectionCenters", predicate: FConnectionCenterDirective, descendants: true }], viewQueries: [{ propertyName: "fDefs", first: true, predicate: ["defs"], descendants: true, static: true }, { propertyName: "fPath", first: true, predicate: CONNECTION_PATH, descendants: true, static: true }, { propertyName: "fGradient", first: true, predicate: CONNECTION_GRADIENT, descendants: true, static: true }, { propertyName: "fDragHandle", first: true, predicate: FConnectionDragHandleComponent, descendants: true, static: true }, { propertyName: "fSelection", first: true, predicate: FConnectionSelectionComponent, descendants: true, static: true }, { propertyName: "fTextComponent", first: true, predicate: CONNECTION_TEXT, descendants: true, static: true }, { propertyName: "fConnectionCenter", first: true, predicate: ["fConnectionCenter"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <defs #defs></defs>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path\n [attr.d]=\"path\">\n </path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n <ng-content></ng-content>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FConnectionTextComponent, selector: "text[f-connection-text]" }, { kind: "component", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]" }, { kind: "component", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]" }, { kind: "component", type: FConnectionPathComponent, selector: "path[f-connection-path]" }, { kind: "component", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2412
2505
  }
2413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionForCreateComponent, decorators: [{
2506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionForCreateComponent, decorators: [{
2414
2507
  type: Component,
2415
2508
  args: [{ selector: "f-connection-for-create", changeDetection: ChangeDetectionStrategy.OnPush, host: {
2416
2509
  class: "f-component f-connection f-connection-for-create"
@@ -2455,6 +2548,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2455
2548
 
2456
2549
  let uniqueId$3 = 0;
2457
2550
  class FConnectionComponent extends FConnectionBase {
2551
+ fComponentsStore;
2552
+ fConnectionId = `f-connection-${uniqueId$3++}`;
2553
+ _fText = '';
2458
2554
  set fText(value) {
2459
2555
  this._fText = value;
2460
2556
  this.fComponentsStore.changes.next();
@@ -2462,6 +2558,7 @@ class FConnectionComponent extends FConnectionBase {
2462
2558
  get fText() {
2463
2559
  return this._fText;
2464
2560
  }
2561
+ _fStartColor = 'black';
2465
2562
  set fStartColor(value) {
2466
2563
  this._fStartColor = value;
2467
2564
  this.fComponentsStore.changes.next();
@@ -2469,6 +2566,7 @@ class FConnectionComponent extends FConnectionBase {
2469
2566
  get fStartColor() {
2470
2567
  return this._fStartColor;
2471
2568
  }
2569
+ _fEndColor = 'black';
2472
2570
  set fEndColor(value) {
2473
2571
  this._fEndColor = value;
2474
2572
  this.fComponentsStore.changes.next();
@@ -2476,6 +2574,7 @@ class FConnectionComponent extends FConnectionBase {
2476
2574
  get fEndColor() {
2477
2575
  return this._fEndColor;
2478
2576
  }
2577
+ _fOutputId;
2479
2578
  set fOutputId(value) {
2480
2579
  this._fOutputId = value;
2481
2580
  this.fComponentsStore.changes.next();
@@ -2483,6 +2582,7 @@ class FConnectionComponent extends FConnectionBase {
2483
2582
  get fOutputId() {
2484
2583
  return this._fOutputId;
2485
2584
  }
2585
+ _fInputId;
2486
2586
  set fInputId(value) {
2487
2587
  this._fInputId = value;
2488
2588
  this.fComponentsStore.changes.next();
@@ -2490,6 +2590,7 @@ class FConnectionComponent extends FConnectionBase {
2490
2590
  get fInputId() {
2491
2591
  return this._fInputId;
2492
2592
  }
2593
+ _fRadius = 8;
2493
2594
  set fRadius(value) {
2494
2595
  this._fRadius = value;
2495
2596
  this.fComponentsStore.changes.next();
@@ -2497,6 +2598,7 @@ class FConnectionComponent extends FConnectionBase {
2497
2598
  get fRadius() {
2498
2599
  return this._fRadius;
2499
2600
  }
2601
+ _fOffset = 32;
2500
2602
  set fOffset(value) {
2501
2603
  this._fOffset = value;
2502
2604
  this.fComponentsStore.changes.next();
@@ -2504,6 +2606,7 @@ class FConnectionComponent extends FConnectionBase {
2504
2606
  get fOffset() {
2505
2607
  return this._fOffset;
2506
2608
  }
2609
+ _behavior = EFConnectionBehavior.FIXED;
2507
2610
  set fBehavior(value) {
2508
2611
  this._behavior = castToEnum(value, 'fBehavior', EFConnectionBehavior);
2509
2612
  this.fComponentsStore.changes.next();
@@ -2511,34 +2614,35 @@ class FConnectionComponent extends FConnectionBase {
2511
2614
  get fBehavior() {
2512
2615
  return this._behavior;
2513
2616
  }
2617
+ _type = EFConnectionType.STRAIGHT;
2514
2618
  set fType(value) {
2515
- this._type = castToEnum(value, 'fType', EFConnectionType);
2619
+ this._type = value; //castToEnum(value, 'fType', EFConnectionType);
2516
2620
  this.fComponentsStore.changes.next();
2517
2621
  }
2518
2622
  get fType() {
2519
2623
  return this._type;
2520
2624
  }
2625
+ fDraggingDisabled = false;
2626
+ fSelectionDisabled = false;
2627
+ fDefs;
2521
2628
  get fMarkers() {
2522
2629
  return this.fComponentsStore.fMarkers.filter((x) => {
2523
2630
  return this.hostElement.contains(x.hostElement);
2524
2631
  });
2525
2632
  }
2633
+ fPath;
2634
+ fGradient;
2635
+ fDragHandle;
2636
+ fSelection;
2637
+ fTextComponent;
2638
+ fConnectionCenter;
2639
+ fConnectionCenters;
2526
2640
  get boundingElement() {
2527
2641
  return this.fPath.hostElement;
2528
2642
  }
2529
2643
  constructor(elementReference, fConnectionFactory, fComponentsStore) {
2530
2644
  super(elementReference, fConnectionFactory);
2531
2645
  this.fComponentsStore = fComponentsStore;
2532
- this.fConnectionId = `f-connection-${uniqueId$3++}`;
2533
- this._fText = '';
2534
- this._fStartColor = 'black';
2535
- this._fEndColor = 'black';
2536
- this._fRadius = 8;
2537
- this._fOffset = 32;
2538
- this._behavior = EFConnectionBehavior.FIXED;
2539
- this._type = EFConnectionType.STRAIGHT;
2540
- this.fDraggingDisabled = false;
2541
- this.fSelectionDisabled = false;
2542
2646
  }
2543
2647
  ngOnInit() {
2544
2648
  this.fComponentsStore.addComponent(this.fComponentsStore.fConnections, this);
@@ -2546,17 +2650,17 @@ class FConnectionComponent extends FConnectionBase {
2546
2650
  ngOnDestroy() {
2547
2651
  this.fComponentsStore.removeComponent(this.fComponentsStore.fConnections, this);
2548
2652
  }
2549
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionComponent, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component }); }
2550
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FConnectionComponent, selector: "f-connection", inputs: { fConnectionId: "fConnectionId", fText: "fText", fStartColor: "fStartColor", fEndColor: "fEndColor", fOutputId: "fOutputId", fInputId: "fInputId", fRadius: "fRadius", fOffset: "fOffset", fBehavior: "fBehavior", fType: "fType", fDraggingDisabled: ["fReassignDisabled", "fDraggingDisabled"], fSelectionDisabled: "fSelectionDisabled" }, host: { properties: { "attr.id": "fConnectionId", "class.f-connection-selection-disabled": "fSelectionDisabled", "class.f-connection-reassign-disabled": "fDraggingDisabled" }, classAttribute: "f-component f-connection" }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionComponent }], queries: [{ propertyName: "fConnectionCenters", predicate: FConnectionCenterDirective, descendants: true }], viewQueries: [{ propertyName: "fDefs", first: true, predicate: ["defs"], descendants: true, static: true }, { propertyName: "fPath", first: true, predicate: CONNECTION_PATH, descendants: true, static: true }, { propertyName: "fGradient", first: true, predicate: CONNECTION_GRADIENT, descendants: true, static: true }, { propertyName: "fDragHandle", first: true, predicate: FConnectionDragHandleComponent, descendants: true, static: true }, { propertyName: "fSelection", first: true, predicate: FConnectionSelectionComponent, descendants: true, static: true }, { propertyName: "fTextComponent", first: true, predicate: CONNECTION_TEXT, descendants: true, static: true }, { propertyName: "fConnectionCenter", first: true, predicate: ["fConnectionCenter"], descendants: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"overflow: visible; display: block; vertical-align: middle;\">\n <defs #defs></defs>\n <ng-content></ng-content>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path [attr.d]=\"path\">\n </path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}:host .f-connection-center{pointer-events:all}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FConnectionTextComponent, selector: "text[f-connection-text]" }, { kind: "component", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]" }, { kind: "component", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]" }, { kind: "component", type: FConnectionPathComponent, selector: "path[f-connection-path]" }, { kind: "component", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2653
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionComponent, deps: [{ token: i0.ElementRef }, { token: FConnectionFactory }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component });
2654
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionComponent, selector: "f-connection", inputs: { fConnectionId: "fConnectionId", fText: "fText", fStartColor: "fStartColor", fEndColor: "fEndColor", fOutputId: "fOutputId", fInputId: "fInputId", fRadius: "fRadius", fOffset: "fOffset", fBehavior: "fBehavior", fType: "fType", fDraggingDisabled: ["fReassignDisabled", "fDraggingDisabled"], fSelectionDisabled: "fSelectionDisabled" }, host: { properties: { "attr.id": "fConnectionId", "class.f-connection-selection-disabled": "fSelectionDisabled", "class.f-connection-reassign-disabled": "fDraggingDisabled" }, classAttribute: "f-component f-connection" }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionComponent }], queries: [{ propertyName: "fConnectionCenters", predicate: FConnectionCenterDirective, descendants: true }], viewQueries: [{ propertyName: "fDefs", first: true, predicate: ["defs"], descendants: true, static: true }, { propertyName: "fPath", first: true, predicate: CONNECTION_PATH, descendants: true, static: true }, { propertyName: "fGradient", first: true, predicate: CONNECTION_GRADIENT, descendants: true, static: true }, { propertyName: "fDragHandle", first: true, predicate: FConnectionDragHandleComponent, descendants: true, static: true }, { propertyName: "fSelection", first: true, predicate: FConnectionSelectionComponent, descendants: true, static: true }, { propertyName: "fTextComponent", first: true, predicate: CONNECTION_TEXT, descendants: true, static: true }, { propertyName: "fConnectionCenter", first: true, predicate: ["fConnectionCenter"], descendants: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"overflow: visible; display: block; vertical-align: middle;\">\n <defs #defs></defs>\n <ng-content></ng-content>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path [attr.d]=\"path\"></path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}:host .f-connection-center{pointer-events:all}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FConnectionTextComponent, selector: "text[f-connection-text]" }, { kind: "component", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]" }, { kind: "component", type: FConnectionGradientComponent, selector: "linearGradient[fConnectionGradient]" }, { kind: "component", type: FConnectionPathComponent, selector: "path[f-connection-path]" }, { kind: "component", type: FConnectionSelectionComponent, selector: "path[fConnectionSelection]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2551
2655
  }
2552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionComponent, decorators: [{
2656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionComponent, decorators: [{
2553
2657
  type: Component,
2554
2658
  args: [{ selector: "f-connection", exportAs: 'fComponent', changeDetection: ChangeDetectionStrategy.OnPush, host: {
2555
2659
  '[attr.id]': 'fConnectionId',
2556
2660
  class: "f-component f-connection",
2557
2661
  '[class.f-connection-selection-disabled]': 'fSelectionDisabled',
2558
2662
  '[class.f-connection-reassign-disabled]': 'fDraggingDisabled',
2559
- }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionComponent }], template: "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"overflow: visible; display: block; vertical-align: middle;\">\n <defs #defs></defs>\n <ng-content></ng-content>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path [attr.d]=\"path\">\n </path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}:host .f-connection-center{pointer-events:all}\n"] }]
2663
+ }, providers: [{ provide: F_CONNECTION, useExisting: FConnectionComponent }], template: "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"overflow: visible; display: block; vertical-align: middle;\">\n <defs #defs></defs>\n <ng-content></ng-content>\n <g class=\"f-connection-group\">\n <linearGradient fConnectionGradient></linearGradient>\n <path fConnectionSelection [attr.d]=\"path\"></path>\n <g>\n <path f-connection-path [attr.d]=\"path\"></path>\n <circle f-connection-drag-handle r=\"8\"></circle>\n </g>\n <text f-connection-text></text>\n </g>\n</svg>\n<div #fConnectionCenter class=\"f-connection-center\" *ngIf=\"fConnectionCenters.length\">\n <ng-content select=\"[fConnectionCenter]\"></ng-content>\n</div>\n", styles: [":host{pointer-events:none;position:absolute}:host svg{overflow:visible}:host svg .f-connection-group{pointer-events:all}:host .f-connection-center{pointer-events:all}\n"] }]
2560
2664
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FConnectionFactory }, { type: FComponentsStore }], propDecorators: { fConnectionId: [{
2561
2665
  type: Input
2562
2666
  }], fText: [{
@@ -2608,30 +2712,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2608
2712
  args: [FConnectionCenterDirective, { descendants: true }]
2609
2713
  }] } });
2610
2714
 
2715
+ var EFMarkerType;
2716
+ (function (EFMarkerType) {
2717
+ EFMarkerType["START"] = "f-connection-marker-start";
2718
+ EFMarkerType["END"] = "f-connection-marker-end";
2719
+ EFMarkerType["SELECTED_START"] = "f-connection-selected-marker-start";
2720
+ EFMarkerType["SELECTED_END"] = "f-connection-selected-marker-end";
2721
+ })(EFMarkerType || (EFMarkerType = {}));
2722
+
2611
2723
  const F_MARKER = new InjectionToken('F_MARKER');
2612
2724
  class FMarkerBase {
2613
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2614
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FMarkerBase, ngImport: i0 }); }
2725
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2726
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FMarkerBase, ngImport: i0 });
2615
2727
  }
2616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerBase, decorators: [{
2728
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerBase, decorators: [{
2617
2729
  type: Directive
2618
2730
  }] });
2619
2731
 
2620
2732
  class FMarkerDirective extends FMarkerBase {
2733
+ fComponentsStore;
2734
+ elementReference;
2621
2735
  get hostElement() {
2622
2736
  return this.elementReference.nativeElement;
2623
2737
  }
2738
+ width = 0;
2739
+ height = 0;
2740
+ refX = 0;
2741
+ refY = 0;
2742
+ type = EFMarkerType.START;
2743
+ orient = 'auto';
2744
+ markerUnits = 'strokeWidth';
2624
2745
  constructor(fComponentsStore, elementReference) {
2625
2746
  super();
2626
2747
  this.fComponentsStore = fComponentsStore;
2627
2748
  this.elementReference = elementReference;
2628
- this.width = 0;
2629
- this.height = 0;
2630
- this.refX = 0;
2631
- this.refY = 0;
2632
- this.type = EFMarkerType.START;
2633
- this.orient = 'auto';
2634
- this.markerUnits = 'strokeWidth';
2635
2749
  this.hostElement.style.display = 'none';
2636
2750
  }
2637
2751
  ngOnInit() {
@@ -2640,10 +2754,10 @@ class FMarkerDirective extends FMarkerBase {
2640
2754
  ngOnDestroy() {
2641
2755
  this.fComponentsStore.removeComponent(this.fComponentsStore.fMarkers, this);
2642
2756
  }
2643
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerDirective, deps: [{ token: FComponentsStore }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2644
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FMarkerDirective, selector: "svg[fMarker]", inputs: { hostElement: "hostElement", width: "width", height: "height", refX: "refX", refY: "refY", type: "type", orient: "orient", markerUnits: "markerUnits" }, host: { classAttribute: "f-component f-marker" }, providers: [{ provide: F_MARKER, useExisting: FMarkerDirective }], usesInheritance: true, ngImport: i0 }); }
2757
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerDirective, deps: [{ token: FComponentsStore }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2758
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FMarkerDirective, selector: "svg[fMarker]", inputs: { hostElement: "hostElement", width: "width", height: "height", refX: "refX", refY: "refY", type: "type", orient: "orient", markerUnits: "markerUnits" }, host: { classAttribute: "f-component f-marker" }, providers: [{ provide: F_MARKER, useExisting: FMarkerDirective }], usesInheritance: true, ngImport: i0 });
2645
2759
  }
2646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerDirective, decorators: [{
2760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerDirective, decorators: [{
2647
2761
  type: Directive,
2648
2762
  args: [{
2649
2763
  selector: "svg[fMarker]",
@@ -2684,14 +2798,16 @@ const F_CONNECTION_PROVIDERS = [
2684
2798
  ];
2685
2799
 
2686
2800
  class ReassignConnectionDragHandler {
2801
+ fMediator;
2802
+ connection;
2803
+ type = EFDraggableType.REASSIGN_CONNECTION;
2804
+ onPointerDownFromConnectorRect = new RoundedRect();
2805
+ onPointerDownToConnectorRect = new RoundedRect();
2806
+ outputSide = EFConnectableSide.BOTTOM;
2807
+ inputSide = EFConnectableSide.TOP;
2687
2808
  constructor(fMediator, connection) {
2688
2809
  this.fMediator = fMediator;
2689
2810
  this.connection = connection;
2690
- this.type = EFDraggableType.REASSIGN_CONNECTION;
2691
- this.onPointerDownFromConnectorRect = new RoundedRect();
2692
- this.onPointerDownToConnectorRect = new RoundedRect();
2693
- this.outputSide = EFConnectableSide.BOTTOM;
2694
- this.inputSide = EFConnectableSide.TOP;
2695
2811
  }
2696
2812
  initialize() {
2697
2813
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -2715,6 +2831,9 @@ class ReassignConnectionDragHandler {
2715
2831
  }
2716
2832
 
2717
2833
  let ReassignConnectionPreparationExecution = class ReassignConnectionPreparationExecution {
2834
+ fComponentsStore;
2835
+ fDraggableDataContext;
2836
+ fMediator;
2718
2837
  get transform() {
2719
2838
  return this.fComponentsStore.fCanvas.transform;
2720
2839
  }
@@ -2731,6 +2850,9 @@ let ReassignConnectionPreparationExecution = class ReassignConnectionPreparation
2731
2850
  }
2732
2851
  handle(request) {
2733
2852
  const connectionToReassign = this.getConnectionHandler(this.getDragHandleElement(request.event.getPosition()));
2853
+ if (connectionToReassign.fDraggingDisabled) {
2854
+ return;
2855
+ }
2734
2856
  this.fMediator.send(new UpdateItemLayerRequest(connectionToReassign, this.fComponentsStore.fCanvas.fConnectionsContainer.nativeElement));
2735
2857
  this.fDraggableDataContext.onPointerDownScale = this.transform.scale;
2736
2858
  this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
@@ -2750,17 +2872,19 @@ let ReassignConnectionPreparationExecution = class ReassignConnectionPreparation
2750
2872
  getConnectionHandler(element) {
2751
2873
  return this.fConnections.find(c => c.isContains(element));
2752
2874
  }
2753
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
2754
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationExecution }); }
2875
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
2876
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationExecution });
2755
2877
  };
2756
2878
  ReassignConnectionPreparationExecution = __decorate([
2757
2879
  FExecutionRegister(ReassignConnectionPreparationRequest)
2758
2880
  ], ReassignConnectionPreparationExecution);
2759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationExecution, decorators: [{
2881
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationExecution, decorators: [{
2760
2882
  type: Injectable
2761
2883
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
2762
2884
 
2763
2885
  let ReassignConnectionPreparationValidator = class ReassignConnectionPreparationValidator {
2886
+ fComponentsStore;
2887
+ fDraggableDataContext;
2764
2888
  get fConnections() {
2765
2889
  return this.fComponentsStore.fConnections;
2766
2890
  }
@@ -2783,13 +2907,13 @@ let ReassignConnectionPreparationValidator = class ReassignConnectionPreparation
2783
2907
  getConnectionHandler(element) {
2784
2908
  return this.fConnections.find(c => c.isContains(element));
2785
2909
  }
2786
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
2787
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationValidator }); }
2910
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
2911
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationValidator });
2788
2912
  };
2789
2913
  ReassignConnectionPreparationValidator = __decorate([
2790
2914
  FValidatorRegister(ReassignConnectionPreparationRequest)
2791
2915
  ], ReassignConnectionPreparationValidator);
2792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationValidator, decorators: [{
2916
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationValidator, decorators: [{
2793
2917
  type: Injectable
2794
2918
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
2795
2919
 
@@ -2808,12 +2932,15 @@ const CONNECTIONS_PROVIDERS = [
2808
2932
  ];
2809
2933
 
2810
2934
  class ExternalItemFinalizeRequest {
2935
+ event;
2811
2936
  constructor(event) {
2812
2937
  this.event = event;
2813
2938
  }
2814
2939
  }
2815
2940
 
2816
2941
  class FCreateNodeEvent {
2942
+ rect;
2943
+ data;
2817
2944
  constructor(rect, data) {
2818
2945
  this.rect = rect;
2819
2946
  this.data = data;
@@ -2821,6 +2948,9 @@ class FCreateNodeEvent {
2821
2948
  }
2822
2949
 
2823
2950
  let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
2951
+ fComponentsStore;
2952
+ fDraggableDataContext;
2953
+ fMediator;
2824
2954
  get flowHost() {
2825
2955
  return this.fComponentsStore.fFlow.hostElement;
2826
2956
  }
@@ -2854,30 +2984,31 @@ let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
2854
2984
  getRectInCanvas() {
2855
2985
  return this.fMediator.send(new GetElementRectInFlowRequest(this.dragHandler.placeholder));
2856
2986
  }
2857
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
2858
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeExecution }); }
2987
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
2988
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeExecution });
2859
2989
  };
2860
2990
  ExternalItemFinalizeExecution = __decorate([
2861
2991
  FExecutionRegister(ExternalItemFinalizeRequest)
2862
2992
  ], ExternalItemFinalizeExecution);
2863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
2993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
2864
2994
  type: Injectable
2865
2995
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
2866
2996
 
2867
2997
  let ExternalItemFinalizeValidator = class ExternalItemFinalizeValidator {
2998
+ fDraggableDataContext;
2868
2999
  constructor(fDraggableDataContext) {
2869
3000
  this.fDraggableDataContext = fDraggableDataContext;
2870
3001
  }
2871
3002
  handle(request) {
2872
3003
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.PALETTE_ITEM);
2873
3004
  }
2874
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
2875
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeValidator }); }
3005
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3006
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator });
2876
3007
  };
2877
3008
  ExternalItemFinalizeValidator = __decorate([
2878
3009
  FValidatorRegister(ExternalItemFinalizeRequest)
2879
3010
  ], ExternalItemFinalizeValidator);
2880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
3011
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
2881
3012
  type: Injectable
2882
3013
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
2883
3014
 
@@ -2887,6 +3018,7 @@ const EXTERNAL_ITEM_FINALIZE_PROVIDERS = [
2887
3018
  ];
2888
3019
 
2889
3020
  class ExternalItemPreparationRequest {
3021
+ event;
2890
3022
  constructor(event) {
2891
3023
  this.event = event;
2892
3024
  }
@@ -2894,10 +3026,10 @@ class ExternalItemPreparationRequest {
2894
3026
 
2895
3027
  const F_EXTERNAL_ITEM = new InjectionToken('F_EXTERNAL_ITEM');
2896
3028
  class FExternalItemBase {
2897
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2898
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FExternalItemBase, ngImport: i0 }); }
3029
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3030
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FExternalItemBase, ngImport: i0 });
2899
3031
  }
2900
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemBase, decorators: [{
3032
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemBase, decorators: [{
2901
3033
  type: Directive
2902
3034
  }] });
2903
3035
 
@@ -2909,9 +3041,7 @@ function getExternalItem(element) {
2909
3041
  }
2910
3042
 
2911
3043
  class FExternalItemService {
2912
- constructor() {
2913
- this.items = [];
2914
- }
3044
+ items = [];
2915
3045
  registerItem(item) {
2916
3046
  this.items.push(item);
2917
3047
  }
@@ -2924,10 +3054,10 @@ class FExternalItemService {
2924
3054
  this.items.splice(index, 1);
2925
3055
  }
2926
3056
  }
2927
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2928
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemService, providedIn: 'root' }); }
3057
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3058
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, providedIn: 'root' });
2929
3059
  }
2930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemService, decorators: [{
3060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, decorators: [{
2931
3061
  type: Injectable,
2932
3062
  args: [{
2933
3063
  providedIn: 'root'
@@ -2936,15 +3066,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2936
3066
 
2937
3067
  let uniqueId$2 = 0;
2938
3068
  class FExternalItemDirective extends FExternalItemBase {
3069
+ elementReference;
3070
+ fExternalItemService;
3071
+ fExternalItemId = `f-external-item-${uniqueId$2++}`;
2939
3072
  get hostElement() {
2940
3073
  return this.elementReference.nativeElement;
2941
3074
  }
3075
+ fData;
3076
+ fDisabled = false;
2942
3077
  constructor(elementReference, fExternalItemService) {
2943
3078
  super();
2944
3079
  this.elementReference = elementReference;
2945
3080
  this.fExternalItemService = fExternalItemService;
2946
- this.fExternalItemId = `f-external-item-${uniqueId$2++}`;
2947
- this.fDisabled = false;
2948
3081
  }
2949
3082
  ngOnInit() {
2950
3083
  this.fExternalItemService.registerItem(this);
@@ -2952,12 +3085,12 @@ class FExternalItemDirective extends FExternalItemBase {
2952
3085
  ngOnDestroy() {
2953
3086
  this.fExternalItemService.removeItem(this);
2954
3087
  }
2955
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemDirective, deps: [{ token: i0.ElementRef }, { token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Directive }); }
2956
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FExternalItemDirective, selector: "[fExternalItem]", inputs: { fExternalItemId: "fExternalItemId", fData: "fData", fDisabled: "fDisabled" }, host: { properties: { "attr.id": "fExternalItemId", "class.f-external-item-disabled": "fDisabled" }, classAttribute: "f-component f-external-item" }, providers: [
3088
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemDirective, deps: [{ token: i0.ElementRef }, { token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Directive });
3089
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FExternalItemDirective, selector: "[fExternalItem]", inputs: { fExternalItemId: "fExternalItemId", fData: "fData", fDisabled: "fDisabled" }, host: { properties: { "attr.id": "fExternalItemId", "class.f-external-item-disabled": "fDisabled" }, classAttribute: "f-component f-external-item" }, providers: [
2957
3090
  { provide: F_EXTERNAL_ITEM, useExisting: FExternalItemDirective }
2958
- ], usesInheritance: true, ngImport: i0 }); }
3091
+ ], usesInheritance: true, ngImport: i0 });
2959
3092
  }
2960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemDirective, decorators: [{
3093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemDirective, decorators: [{
2961
3094
  type: Directive,
2962
3095
  args: [{
2963
3096
  selector: "[fExternalItem]",
@@ -2983,11 +3116,13 @@ const F_EXTERNAL_ITEM_PROVIDERS = [
2983
3116
  ];
2984
3117
 
2985
3118
  class ExternalItemDragHandler {
3119
+ externalItem;
3120
+ type = EFDraggableType.PALETTE_ITEM;
3121
+ placeholder;
3122
+ onPointerDownRect = RectExtensions.initialize();
3123
+ difference = PointExtensions.initialize();
2986
3124
  constructor(externalItem) {
2987
3125
  this.externalItem = externalItem;
2988
- this.type = EFDraggableType.PALETTE_ITEM;
2989
- this.onPointerDownRect = RectExtensions.initialize();
2990
- this.difference = PointExtensions.initialize();
2991
3126
  }
2992
3127
  getStyle(position) {
2993
3128
  return `position: absolute; left: 0; top: 0; transform: translate(${position.x}px, ${position.y}px)`;
@@ -3017,6 +3152,9 @@ class ExternalItemDragHandler {
3017
3152
  }
3018
3153
 
3019
3154
  let ExternalItemPreparationExecution = class ExternalItemPreparationExecution {
3155
+ fComponentsStore;
3156
+ fDraggableDataContext;
3157
+ fExternalItemService;
3020
3158
  get flowHost() {
3021
3159
  return this.fComponentsStore.fFlow.hostElement;
3022
3160
  }
@@ -3035,17 +3173,18 @@ let ExternalItemPreparationExecution = class ExternalItemPreparationExecution {
3035
3173
  getExternalItem(targetElement) {
3036
3174
  return this.fExternalItemService.getItem(getExternalItem(targetElement));
3037
3175
  }
3038
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3039
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationExecution }); }
3176
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable });
3177
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationExecution });
3040
3178
  };
3041
3179
  ExternalItemPreparationExecution = __decorate([
3042
3180
  FExecutionRegister(ExternalItemPreparationRequest)
3043
3181
  ], ExternalItemPreparationExecution);
3044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationExecution, decorators: [{
3182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationExecution, decorators: [{
3045
3183
  type: Injectable
3046
3184
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FExternalItemService }] });
3047
3185
 
3048
3186
  let ExternalItemPreparationValidator = class ExternalItemPreparationValidator {
3187
+ fExternalItemService;
3049
3188
  constructor(fExternalItemService) {
3050
3189
  this.fExternalItemService = fExternalItemService;
3051
3190
  }
@@ -3056,13 +3195,13 @@ let ExternalItemPreparationValidator = class ExternalItemPreparationValidator {
3056
3195
  getExternalItem(targetElement) {
3057
3196
  return this.fExternalItemService.getItem(getExternalItem(targetElement));
3058
3197
  }
3059
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationValidator, deps: [{ token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3060
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationValidator }); }
3198
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator, deps: [{ token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable });
3199
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator });
3061
3200
  };
3062
3201
  ExternalItemPreparationValidator = __decorate([
3063
3202
  FValidatorRegister(ExternalItemPreparationRequest)
3064
3203
  ], ExternalItemPreparationValidator);
3065
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationValidator, decorators: [{
3204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator, decorators: [{
3066
3205
  type: Injectable
3067
3206
  }], ctorParameters: () => [{ type: FExternalItemService }] });
3068
3207
 
@@ -3080,11 +3219,13 @@ class CreateMoveNodesDragModelFromSelectionRequest {
3080
3219
  }
3081
3220
 
3082
3221
  class NodeDragHandler {
3222
+ fDraggableDataContext;
3223
+ fNode;
3224
+ type = EFDraggableType.NODE;
3225
+ onPointerDownPosition = PointExtensions.initialize();
3083
3226
  constructor(fDraggableDataContext, fNode) {
3084
3227
  this.fDraggableDataContext = fDraggableDataContext;
3085
3228
  this.fNode = fNode;
3086
- this.type = EFDraggableType.NODE;
3087
- this.onPointerDownPosition = PointExtensions.initialize();
3088
3229
  this.onPointerDownPosition = this.fNode.position;
3089
3230
  }
3090
3231
  move(difference) {
@@ -3099,13 +3240,15 @@ class NodeDragHandler {
3099
3240
  }
3100
3241
 
3101
3242
  class ConnectionDragHandler {
3243
+ fMediator;
3244
+ connection;
3245
+ type = EFDraggableType.CONNECTION;
3246
+ onPointerDownLine = LineExtensions.initialize();
3247
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3248
+ toConnectorSide = EFConnectableSide.TOP;
3102
3249
  constructor(fMediator, connection) {
3103
3250
  this.fMediator = fMediator;
3104
3251
  this.connection = connection;
3105
- this.type = EFDraggableType.CONNECTION;
3106
- this.onPointerDownLine = LineExtensions.initialize();
3107
- this.fromConnectorSide = EFConnectableSide.BOTTOM;
3108
- this.toConnectorSide = EFConnectableSide.TOP;
3109
3252
  }
3110
3253
  initialize() {
3111
3254
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3123,14 +3266,16 @@ class ConnectionDragHandler {
3123
3266
  }
3124
3267
 
3125
3268
  class ConnectionSourceDragHandler {
3269
+ fMediator;
3270
+ connection;
3271
+ type = EFDraggableType.CONNECTION;
3272
+ fromConnectorRect = new RoundedRect();
3273
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3274
+ toConnectorRect = new RoundedRect();
3275
+ toConnectorSide = EFConnectableSide.TOP;
3126
3276
  constructor(fMediator, connection) {
3127
3277
  this.fMediator = fMediator;
3128
3278
  this.connection = connection;
3129
- this.type = EFDraggableType.CONNECTION;
3130
- this.fromConnectorRect = new RoundedRect();
3131
- this.fromConnectorSide = EFConnectableSide.BOTTOM;
3132
- this.toConnectorRect = new RoundedRect();
3133
- this.toConnectorSide = EFConnectableSide.TOP;
3134
3279
  }
3135
3280
  initialize() {
3136
3281
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3148,14 +3293,16 @@ class ConnectionSourceDragHandler {
3148
3293
  }
3149
3294
 
3150
3295
  class ConnectionTargetDragHandler {
3296
+ fMediator;
3297
+ connection;
3298
+ type = EFDraggableType.CONNECTION;
3299
+ fromConnectorRect = new RoundedRect();
3300
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3301
+ toConnectorRect = new RoundedRect();
3302
+ toConnectorSide = EFConnectableSide.TOP;
3151
3303
  constructor(fMediator, connection) {
3152
3304
  this.fMediator = fMediator;
3153
3305
  this.connection = connection;
3154
- this.type = EFDraggableType.CONNECTION;
3155
- this.fromConnectorRect = new RoundedRect();
3156
- this.fromConnectorSide = EFConnectableSide.BOTTOM;
3157
- this.toConnectorRect = new RoundedRect();
3158
- this.toConnectorSide = EFConnectableSide.TOP;
3159
3306
  }
3160
3307
  initialize() {
3161
3308
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3173,6 +3320,11 @@ class ConnectionTargetDragHandler {
3173
3320
  }
3174
3321
 
3175
3322
  let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragModelFromSelectionExecution {
3323
+ fComponentsStore;
3324
+ fDraggableDataContext;
3325
+ getOutgoingConnectionsHandler;
3326
+ getIncomingConnectionsHandler;
3327
+ fMediator;
3176
3328
  constructor(fComponentsStore, fDraggableDataContext, getOutgoingConnectionsHandler, getIncomingConnectionsHandler, fMediator) {
3177
3329
  this.fComponentsStore = fComponentsStore;
3178
3330
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3239,13 +3391,13 @@ let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragMo
3239
3391
  }
3240
3392
  });
3241
3393
  }
3242
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: GetOutgoingConnectionsHandler }, { token: GetIncomingConnectionsHandler }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3243
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution }); }
3394
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: GetOutgoingConnectionsHandler }, { token: GetIncomingConnectionsHandler }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
3395
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution });
3244
3396
  };
3245
3397
  CreateMoveNodesDragModelFromSelectionExecution = __decorate([
3246
3398
  FExecutionRegister(CreateMoveNodesDragModelFromSelectionRequest)
3247
3399
  ], CreateMoveNodesDragModelFromSelectionExecution);
3248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, decorators: [{
3400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, decorators: [{
3249
3401
  type: Injectable
3250
3402
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: GetOutgoingConnectionsHandler }, { type: GetIncomingConnectionsHandler }, { type: FFlowMediator }] });
3251
3403
 
@@ -3254,12 +3406,16 @@ const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS = [
3254
3406
  ];
3255
3407
 
3256
3408
  class NodeMovePreparationRequest {
3409
+ event;
3257
3410
  constructor(event) {
3258
3411
  this.event = event;
3259
3412
  }
3260
3413
  }
3261
3414
 
3262
3415
  let NodeMovePreparationExecution = class NodeMovePreparationExecution {
3416
+ fComponentsStore;
3417
+ fDraggableDataContext;
3418
+ fMediator;
3263
3419
  get transform() {
3264
3420
  return this.fComponentsStore.fCanvas.transform;
3265
3421
  }
@@ -3296,17 +3452,19 @@ let NodeMovePreparationExecution = class NodeMovePreparationExecution {
3296
3452
  return items.filter((x) => x.type === EFDraggableType.NODE)
3297
3453
  .map(x => x.fNode);
3298
3454
  }
3299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationExecution }); }
3455
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
3456
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationExecution });
3301
3457
  };
3302
3458
  NodeMovePreparationExecution = __decorate([
3303
3459
  FExecutionRegister(NodeMovePreparationRequest)
3304
3460
  ], NodeMovePreparationExecution);
3305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationExecution, decorators: [{
3461
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationExecution, decorators: [{
3306
3462
  type: Injectable
3307
3463
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3308
3464
 
3309
3465
  let NodeMovePreparationValidator = class NodeMovePreparationValidator {
3466
+ fComponentsStore;
3467
+ fDraggableDataContext;
3310
3468
  constructor(fComponentsStore, fDraggableDataContext) {
3311
3469
  this.fComponentsStore = fComponentsStore;
3312
3470
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3328,13 +3486,13 @@ let NodeMovePreparationValidator = class NodeMovePreparationValidator {
3328
3486
  isDragHandleElement(targetElement) {
3329
3487
  return isElementWithClass(targetElement, '.f-drag-handle');
3330
3488
  }
3331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3332
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationValidator }); }
3489
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3490
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationValidator });
3333
3491
  };
3334
3492
  NodeMovePreparationValidator = __decorate([
3335
3493
  FValidatorRegister(NodeMovePreparationRequest)
3336
3494
  ], NodeMovePreparationValidator);
3337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationValidator, decorators: [{
3495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationValidator, decorators: [{
3338
3496
  type: Injectable
3339
3497
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
3340
3498
 
@@ -3344,6 +3502,7 @@ const NODE_MOVE_PREPARATION_PROVIDERS = [
3344
3502
  ];
3345
3503
 
3346
3504
  class NodeMoveFinalizeRequest {
3505
+ event;
3347
3506
  constructor(event) {
3348
3507
  this.event = event;
3349
3508
  }
@@ -3353,6 +3512,9 @@ class IsConnectionUnderNodeRequest {
3353
3512
  }
3354
3513
 
3355
3514
  let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
3515
+ fComponentsStore;
3516
+ fDraggableDataContext;
3517
+ fMediator;
3356
3518
  get flowHost() {
3357
3519
  return this.fComponentsStore.fFlow.hostElement;
3358
3520
  }
@@ -3382,30 +3544,31 @@ let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
3382
3544
  }
3383
3545
  return difference;
3384
3546
  }
3385
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3386
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeExecution }); }
3547
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
3548
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeExecution });
3387
3549
  };
3388
3550
  NodeMoveFinalizeExecution = __decorate([
3389
3551
  FExecutionRegister(NodeMoveFinalizeRequest)
3390
3552
  ], NodeMoveFinalizeExecution);
3391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeExecution, decorators: [{
3553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeExecution, decorators: [{
3392
3554
  type: Injectable
3393
3555
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3394
3556
 
3395
3557
  let NodeMoveFinalizeValidator = class NodeMoveFinalizeValidator {
3558
+ fDraggableDataContext;
3396
3559
  constructor(fDraggableDataContext) {
3397
3560
  this.fDraggableDataContext = fDraggableDataContext;
3398
3561
  }
3399
3562
  handle(request) {
3400
3563
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.NODE);
3401
3564
  }
3402
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3403
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeValidator }); }
3565
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3566
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator });
3404
3567
  };
3405
3568
  NodeMoveFinalizeValidator = __decorate([
3406
3569
  FValidatorRegister(NodeMoveFinalizeRequest)
3407
3570
  ], NodeMoveFinalizeValidator);
3408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeValidator, decorators: [{
3571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator, decorators: [{
3409
3572
  type: Injectable
3410
3573
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3411
3574
 
@@ -3421,12 +3584,14 @@ const NODE_PROVIDERS = [
3421
3584
  ];
3422
3585
 
3423
3586
  class NodeResizeFinalizeRequest {
3587
+ event;
3424
3588
  constructor(event) {
3425
3589
  this.event = event;
3426
3590
  }
3427
3591
  }
3428
3592
 
3429
3593
  let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
3594
+ fDraggableDataContext;
3430
3595
  constructor(fDraggableDataContext) {
3431
3596
  this.fDraggableDataContext = fDraggableDataContext;
3432
3597
  }
@@ -3435,30 +3600,31 @@ let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
3435
3600
  x.complete?.();
3436
3601
  });
3437
3602
  }
3438
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3439
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeExecution }); }
3603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3604
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution });
3440
3605
  };
3441
3606
  NodeResizeFinalizeExecution = __decorate([
3442
3607
  FExecutionRegister(NodeResizeFinalizeRequest)
3443
3608
  ], NodeResizeFinalizeExecution);
3444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
3609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
3445
3610
  type: Injectable
3446
3611
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3447
3612
 
3448
3613
  let NodeResizeFinalizeValidator = class NodeResizeFinalizeValidator {
3614
+ fDraggableDataContext;
3449
3615
  constructor(fDraggableDataContext) {
3450
3616
  this.fDraggableDataContext = fDraggableDataContext;
3451
3617
  }
3452
3618
  handle(request) {
3453
3619
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.NODE_RESIZE);
3454
3620
  }
3455
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3456
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeValidator }); }
3621
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3622
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator });
3457
3623
  };
3458
3624
  NodeResizeFinalizeValidator = __decorate([
3459
3625
  FValidatorRegister(NodeResizeFinalizeRequest)
3460
3626
  ], NodeResizeFinalizeValidator);
3461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
3627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
3462
3628
  type: Injectable
3463
3629
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3464
3630
 
@@ -3468,6 +3634,7 @@ const NODE_RESIZE_FINALIZE_PROVIDERS = [
3468
3634
  ];
3469
3635
 
3470
3636
  class NodeResizePreparationRequest {
3637
+ event;
3471
3638
  constructor(event) {
3472
3639
  this.event = event;
3473
3640
  }
@@ -3480,6 +3647,12 @@ const RESIZE_DIRECTIONS = {
3480
3647
  [EFResizeHandleType.RIGHT_BOTTOM]: { x: 1, y: 1 },
3481
3648
  };
3482
3649
  class NodeResizeDragHandler {
3650
+ fComponentsStore;
3651
+ fNode;
3652
+ fResizeHandleType;
3653
+ type = EFDraggableType.NODE_RESIZE;
3654
+ onPointerDownPosition;
3655
+ rect;
3483
3656
  get scale() {
3484
3657
  return this.fComponentsStore.fCanvas.transform.scale;
3485
3658
  }
@@ -3487,7 +3660,6 @@ class NodeResizeDragHandler {
3487
3660
  this.fComponentsStore = fComponentsStore;
3488
3661
  this.fNode = fNode;
3489
3662
  this.fResizeHandleType = fResizeHandleType;
3490
- this.type = EFDraggableType.NODE_RESIZE;
3491
3663
  this.onPointerDownPosition = this.fNode.position;
3492
3664
  this.rect = RectExtensions.fromElement(this.fNode.hostElement);
3493
3665
  }
@@ -3520,6 +3692,9 @@ class NodeResizeDragHandler {
3520
3692
  }
3521
3693
 
3522
3694
  let NodeResizePreparationExecution = class NodeResizePreparationExecution {
3695
+ fComponentsStore;
3696
+ fDraggableDataContext;
3697
+ fMediator;
3523
3698
  get transform() {
3524
3699
  return this.fComponentsStore.fCanvas.transform;
3525
3700
  }
@@ -3548,17 +3723,19 @@ let NodeResizePreparationExecution = class NodeResizePreparationExecution {
3548
3723
  getNode(targetElement) {
3549
3724
  return this.fComponentsStore.findNode(targetElement);
3550
3725
  }
3551
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3552
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationExecution }); }
3726
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
3727
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationExecution });
3553
3728
  };
3554
3729
  NodeResizePreparationExecution = __decorate([
3555
3730
  FExecutionRegister(NodeResizePreparationRequest)
3556
3731
  ], NodeResizePreparationExecution);
3557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
3732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
3558
3733
  type: Injectable
3559
3734
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3560
3735
 
3561
3736
  let NodeResizePreparationValidator = class NodeResizePreparationValidator {
3737
+ fComponentsStore;
3738
+ fDraggableDataContext;
3562
3739
  constructor(fComponentsStore, fDraggableDataContext) {
3563
3740
  this.fComponentsStore = fComponentsStore;
3564
3741
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3580,13 +3757,13 @@ let NodeResizePreparationValidator = class NodeResizePreparationValidator {
3580
3757
  isDragHandleElement(targetElement) {
3581
3758
  return isElementWithClass(targetElement, '.f-resize-handle');
3582
3759
  }
3583
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3584
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationValidator }); }
3760
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3761
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationValidator });
3585
3762
  };
3586
3763
  NodeResizePreparationValidator = __decorate([
3587
3764
  FValidatorRegister(NodeResizePreparationRequest)
3588
3765
  ], NodeResizePreparationValidator);
3589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
3766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
3590
3767
  type: Injectable
3591
3768
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
3592
3769
 
@@ -3601,12 +3778,14 @@ const NODE_RESIZE_PROVIDERS = [
3601
3778
  ];
3602
3779
 
3603
3780
  class SelectionAreaFinalizeRequest {
3781
+ event;
3604
3782
  constructor(event) {
3605
3783
  this.event = event;
3606
3784
  }
3607
3785
  }
3608
3786
 
3609
3787
  let SelectionAreaFinalizeExecution = class SelectionAreaFinalizeExecution {
3788
+ fDraggableDataContext;
3610
3789
  constructor(fDraggableDataContext) {
3611
3790
  this.fDraggableDataContext = fDraggableDataContext;
3612
3791
  }
@@ -3615,30 +3794,31 @@ let SelectionAreaFinalizeExecution = class SelectionAreaFinalizeExecution {
3615
3794
  x.complete?.();
3616
3795
  });
3617
3796
  }
3618
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3619
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeExecution }); }
3797
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3798
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution });
3620
3799
  };
3621
3800
  SelectionAreaFinalizeExecution = __decorate([
3622
3801
  FExecutionRegister(SelectionAreaFinalizeRequest)
3623
3802
  ], SelectionAreaFinalizeExecution);
3624
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeExecution, decorators: [{
3803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution, decorators: [{
3625
3804
  type: Injectable
3626
3805
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3627
3806
 
3628
3807
  let SelectionAreaFinalizeValidator = class SelectionAreaFinalizeValidator {
3808
+ fDraggableDataContext;
3629
3809
  constructor(fDraggableDataContext) {
3630
3810
  this.fDraggableDataContext = fDraggableDataContext;
3631
3811
  }
3632
3812
  handle(request) {
3633
3813
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.SELECTION);
3634
3814
  }
3635
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3636
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeValidator }); }
3815
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3816
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator });
3637
3817
  };
3638
3818
  SelectionAreaFinalizeValidator = __decorate([
3639
3819
  FValidatorRegister(SelectionAreaFinalizeRequest)
3640
3820
  ], SelectionAreaFinalizeValidator);
3641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeValidator, decorators: [{
3821
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator, decorators: [{
3642
3822
  type: Injectable
3643
3823
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3644
3824
 
@@ -3648,6 +3828,7 @@ const SELECTION_AREA_FINALIZE_PROVIDERS = [
3648
3828
  ];
3649
3829
 
3650
3830
  class SelectionAreaPreparationRequest {
3831
+ event;
3651
3832
  constructor(event) {
3652
3833
  this.event = event;
3653
3834
  }
@@ -3657,6 +3838,12 @@ class GetCanBeSelectedItemsRequest {
3657
3838
  }
3658
3839
 
3659
3840
  class SelectionAreaDragHandle {
3841
+ fComponentsStore;
3842
+ fDraggableDataContext;
3843
+ fMediator;
3844
+ type = EFDraggableType.SELECTION;
3845
+ canBeSelected = [];
3846
+ selectedByMove = [];
3660
3847
  get canvasPosition() {
3661
3848
  return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position).add(this.fComponentsStore.fCanvas.transform.scaledPosition);
3662
3849
  }
@@ -3664,9 +3851,6 @@ class SelectionAreaDragHandle {
3664
3851
  this.fComponentsStore = fComponentsStore;
3665
3852
  this.fDraggableDataContext = fDraggableDataContext;
3666
3853
  this.fMediator = fMediator;
3667
- this.type = EFDraggableType.SELECTION;
3668
- this.canBeSelected = [];
3669
- this.selectedByMove = [];
3670
3854
  }
3671
3855
  initialize() {
3672
3856
  this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
@@ -3706,6 +3890,9 @@ class SelectionAreaDragHandle {
3706
3890
  }
3707
3891
 
3708
3892
  let SelectionAreaPreparationExecution = class SelectionAreaPreparationExecution {
3893
+ fComponentsStore;
3894
+ fDraggableDataContext;
3895
+ fMediator;
3709
3896
  get flowHost() {
3710
3897
  return this.fComponentsStore.fFlow.hostElement;
3711
3898
  }
@@ -3722,17 +3909,18 @@ let SelectionAreaPreparationExecution = class SelectionAreaPreparationExecution
3722
3909
  this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
3723
3910
  .elementTransform(this.flowHost);
3724
3911
  }
3725
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3726
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationExecution }); }
3912
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
3913
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationExecution });
3727
3914
  };
3728
3915
  SelectionAreaPreparationExecution = __decorate([
3729
3916
  FExecutionRegister(SelectionAreaPreparationRequest)
3730
3917
  ], SelectionAreaPreparationExecution);
3731
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationExecution, decorators: [{
3918
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationExecution, decorators: [{
3732
3919
  type: Injectable
3733
3920
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3734
3921
 
3735
3922
  let SelectionAreaPreparationValidator = class SelectionAreaPreparationValidator {
3923
+ fDraggableDataContext;
3736
3924
  constructor(fDraggableDataContext) {
3737
3925
  this.fDraggableDataContext = fDraggableDataContext;
3738
3926
  }
@@ -3744,13 +3932,13 @@ let SelectionAreaPreparationValidator = class SelectionAreaPreparationValidator
3744
3932
  isDragHandlesEmpty() {
3745
3933
  return !this.fDraggableDataContext.draggableItems.length;
3746
3934
  }
3747
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
3748
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationValidator }); }
3935
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3936
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator });
3749
3937
  };
3750
3938
  SelectionAreaPreparationValidator = __decorate([
3751
3939
  FValidatorRegister(SelectionAreaPreparationRequest)
3752
3940
  ], SelectionAreaPreparationValidator);
3753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationValidator, decorators: [{
3941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator, decorators: [{
3754
3942
  type: Injectable
3755
3943
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3756
3944
 
@@ -3765,12 +3953,17 @@ const SELECTION_AREA_PROVIDERS = [
3765
3953
  ];
3766
3954
 
3767
3955
  class SingleSelectRequest {
3956
+ event;
3768
3957
  constructor(event) {
3769
3958
  this.event = event;
3770
3959
  }
3771
3960
  }
3772
3961
 
3773
3962
  let SingleSelectExecution = class SingleSelectExecution {
3963
+ fComponentsStore;
3964
+ fDraggableDataContext;
3965
+ getConnectionHandler;
3966
+ fMediator;
3774
3967
  constructor(fComponentsStore, fDraggableDataContext, getConnectionHandler, fMediator) {
3775
3968
  this.fComponentsStore = fComponentsStore;
3776
3969
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3828,30 +4021,31 @@ let SingleSelectExecution = class SingleSelectExecution {
3828
4021
  });
3829
4022
  this.fDraggableDataContext.selectedItems = [];
3830
4023
  }
3831
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: GetConnectionHandler }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
3832
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectExecution }); }
4024
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: GetConnectionHandler }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4025
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectExecution });
3833
4026
  };
3834
4027
  SingleSelectExecution = __decorate([
3835
4028
  FExecutionRegister(SingleSelectRequest)
3836
4029
  ], SingleSelectExecution);
3837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectExecution, decorators: [{
4030
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectExecution, decorators: [{
3838
4031
  type: Injectable
3839
4032
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: GetConnectionHandler }, { type: FFlowMediator }] });
3840
4033
 
3841
4034
  let SingleSelectValidator = class SingleSelectValidator {
4035
+ fComponentsStore;
3842
4036
  constructor(fComponentsStore) {
3843
4037
  this.fComponentsStore = fComponentsStore;
3844
4038
  }
3845
4039
  handle(request) {
3846
4040
  return this.fComponentsStore.fFlow.hostElement.contains(request.event.targetElement);
3847
4041
  }
3848
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
3849
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectValidator }); }
4042
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4043
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator });
3850
4044
  };
3851
4045
  SingleSelectValidator = __decorate([
3852
4046
  FValidatorRegister(SingleSelectRequest)
3853
4047
  ], SingleSelectValidator);
3854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectValidator, decorators: [{
4048
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator, decorators: [{
3855
4049
  type: Injectable
3856
4050
  }], ctorParameters: () => [{ type: FComponentsStore }] });
3857
4051
 
@@ -3863,89 +4057,79 @@ const SINGLE_SELECT_PROVIDERS = [
3863
4057
  const F_DRAGGABLE = new InjectionToken('F_DRAGGABLE');
3864
4058
  const MOUSE_EVENT_IGNORE_TIME = 800;
3865
4059
  class FDraggableBase {
4060
+ ngZone;
4061
+ document;
4062
+ mouseListeners = EventExtensions.emptyListener();
4063
+ touchListeners = EventExtensions.emptyListener();
4064
+ startListeners = EventExtensions.emptyListener();
3866
4065
  isSyntheticEvent(event) {
3867
4066
  return !!this.lastTouchEventTime &&
3868
4067
  (this.lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now());
3869
4068
  }
4069
+ lastTouchEventTime = 0;
4070
+ isDragStarted = false;
4071
+ dragStartThreshold = 3;
4072
+ dragStartDelay = 0;
4073
+ dragStartTime = 0;
4074
+ dragStartPosition = PointExtensions.initialize();
4075
+ moveHandler = this.checkDragSequenceToStart;
3870
4076
  constructor(ngZone) {
3871
4077
  this.ngZone = ngZone;
3872
- this.mouseListeners = EventExtensions.emptyListener();
3873
- this.touchListeners = EventExtensions.emptyListener();
3874
- this.startListeners = EventExtensions.emptyListener();
3875
- this.lastTouchEventTime = 0;
3876
- this.isDragStarted = false;
3877
- this.dragStartThreshold = 3;
3878
- this.dragStartDelay = 0;
3879
- this.dragStartTime = 0;
3880
- this.dragStartPosition = PointExtensions.initialize();
3881
- this.moveHandler = this.checkDragSequenceToStart;
3882
- this.onMouseDown = (event) => {
3883
- const isSyntheticEvent = this.isSyntheticEvent(event);
3884
- const isFakeEvent = isFakeMousedownFromScreenReader(event);
3885
- const mouseEvent = new IMouseEvent(event);
3886
- if (isSyntheticEvent || isFakeEvent || this.disabled) {
3887
- return;
3888
- }
3889
- let result = this.onPointerDown(mouseEvent);
3890
- if (result) {
3891
- this.dragStartTime = Date.now();
3892
- this.dragStartPosition = mouseEvent.getPosition();
3893
- this.ngZone.runOutsideAngular(() => {
3894
- this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
3895
- this.document?.addEventListener('mousemove', this.onMouseMove);
3896
- this.document?.addEventListener('mouseup', this.onMouseUp);
3897
- });
3898
- this.mouseListeners = () => {
3899
- this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
3900
- this.document?.removeEventListener('mousemove', this.onMouseMove);
3901
- this.document?.removeEventListener('mouseup', this.onMouseUp);
3902
- };
3903
- }
3904
- };
3905
- this.onTouchDown = (event) => {
3906
- const isFakeEvent = isFakeTouchstartFromScreenReader(event);
3907
- const touchEvent = new ITouchDownEvent(event);
3908
- if (isFakeEvent || this.disabled) {
3909
- return;
3910
- }
3911
- let result = this.onPointerDown(new ITouchDownEvent(event));
3912
- if (result) {
3913
- this.dragStartTime = Date.now();
3914
- this.dragStartPosition = touchEvent.getPosition();
3915
- this.ngZone.runOutsideAngular(() => {
3916
- this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
3917
- this.document?.addEventListener('touchmove', this.onTouchMove);
3918
- this.document?.addEventListener('touchend', this.onTouchUp);
3919
- });
3920
- this.touchListeners = () => {
3921
- this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
3922
- this.document?.removeEventListener('touchmove', this.onTouchMove);
3923
- this.document?.removeEventListener('touchend', this.onTouchUp);
3924
- };
3925
- }
3926
- };
3927
- this.onSelectStart = (event) => {
3928
- this.onSelect(event);
3929
- };
3930
- this.onMouseMove = (event) => {
3931
- this.moveHandler(new IMouseEvent(event));
3932
- };
3933
- this.onTouchMove = (event) => {
3934
- this.moveHandler(new ITouchMoveEvent(event));
3935
- };
3936
- this.onMouseUp = (event) => {
3937
- if (this.isDragStarted) {
3938
- this.onPointerUp(new IMouseEvent(event));
3939
- }
3940
- this.endDragSequence();
3941
- };
3942
- this.onTouchUp = (event) => {
3943
- if (this.isDragStarted) {
3944
- this.onPointerUp(new ITouchUpEvent(event));
3945
- }
3946
- this.endDragSequence();
3947
- };
3948
4078
  }
4079
+ onMouseDown = (event) => {
4080
+ const isSyntheticEvent = this.isSyntheticEvent(event);
4081
+ const isFakeEvent = isFakeMousedownFromScreenReader(event);
4082
+ const mouseEvent = new IMouseEvent(event);
4083
+ if (isSyntheticEvent || isFakeEvent || this.disabled) {
4084
+ return;
4085
+ }
4086
+ let result = this.onPointerDown(mouseEvent);
4087
+ if (result) {
4088
+ this.dragStartTime = Date.now();
4089
+ this.dragStartPosition = mouseEvent.getPosition();
4090
+ this.ngZone.runOutsideAngular(() => {
4091
+ this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4092
+ this.document?.addEventListener('mousemove', this.onMouseMove);
4093
+ this.document?.addEventListener('mouseup', this.onMouseUp);
4094
+ });
4095
+ this.mouseListeners = () => {
4096
+ this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4097
+ this.document?.removeEventListener('mousemove', this.onMouseMove);
4098
+ this.document?.removeEventListener('mouseup', this.onMouseUp);
4099
+ };
4100
+ }
4101
+ };
4102
+ onTouchDown = (event) => {
4103
+ const isFakeEvent = isFakeTouchstartFromScreenReader(event);
4104
+ const touchEvent = new ITouchDownEvent(event);
4105
+ if (isFakeEvent || this.disabled) {
4106
+ return;
4107
+ }
4108
+ let result = this.onPointerDown(new ITouchDownEvent(event));
4109
+ if (result) {
4110
+ this.dragStartTime = Date.now();
4111
+ this.dragStartPosition = touchEvent.getPosition();
4112
+ this.ngZone.runOutsideAngular(() => {
4113
+ this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4114
+ this.document?.addEventListener('touchmove', this.onTouchMove);
4115
+ this.document?.addEventListener('touchend', this.onTouchUp);
4116
+ });
4117
+ this.touchListeners = () => {
4118
+ this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4119
+ this.document?.removeEventListener('touchmove', this.onTouchMove);
4120
+ this.document?.removeEventListener('touchend', this.onTouchUp);
4121
+ };
4122
+ }
4123
+ };
4124
+ onSelectStart = (event) => {
4125
+ this.onSelect(event);
4126
+ };
4127
+ onMouseMove = (event) => {
4128
+ this.moveHandler(new IMouseEvent(event));
4129
+ };
4130
+ onTouchMove = (event) => {
4131
+ this.moveHandler(new ITouchMoveEvent(event));
4132
+ };
3949
4133
  checkDragSequenceToStart(event) {
3950
4134
  const pointerPosition = event.getPosition();
3951
4135
  if (!this.isDragStarted) {
@@ -3968,6 +4152,18 @@ class FDraggableBase {
3968
4152
  }
3969
4153
  }
3970
4154
  }
4155
+ onMouseUp = (event) => {
4156
+ if (this.isDragStarted) {
4157
+ this.onPointerUp(new IMouseEvent(event));
4158
+ }
4159
+ this.endDragSequence();
4160
+ };
4161
+ onTouchUp = (event) => {
4162
+ if (this.isDragStarted) {
4163
+ this.onPointerUp(new ITouchUpEvent(event));
4164
+ }
4165
+ this.endDragSequence();
4166
+ };
3971
4167
  endDragSequence() {
3972
4168
  this.isDragStarted = false;
3973
4169
  this.moveHandler = this.checkDragSequenceToStart;
@@ -3999,10 +4195,10 @@ class FDraggableBase {
3999
4195
  this.mouseListeners();
4000
4196
  this.mouseListeners = EventExtensions.emptyListener();
4001
4197
  }
4002
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
4003
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FDraggableBase, ngImport: i0 }); }
4198
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
4199
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FDraggableBase, ngImport: i0 });
4004
4200
  }
4005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableBase, decorators: [{
4201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableBase, decorators: [{
4006
4202
  type: Directive
4007
4203
  }], ctorParameters: () => [{ type: undefined }] });
4008
4204
  function isTouchEvent(event) {
@@ -4020,9 +4216,22 @@ function isFakeTouchstartFromScreenReader(event) {
4020
4216
  }
4021
4217
 
4022
4218
  class FDraggableDirective extends FDraggableBase {
4219
+ elementReference;
4220
+ fDraggableDataContext;
4221
+ fComponentsStore;
4222
+ fMediator;
4223
+ doc;
4224
+ subscriptions$ = new Subscription();
4225
+ disabled = false;
4023
4226
  get hostElement() {
4024
4227
  return this.elementReference.nativeElement;
4025
4228
  }
4229
+ fSelectionChange = new EventEmitter();
4230
+ // @Output()
4231
+ // public override fConnectionIntersectNode: EventEmitter<ConnectionIntersectNodeEvent> = new EventEmitter<ConnectionIntersectNodeEvent>();
4232
+ fCreateNode = new EventEmitter();
4233
+ fReassignConnection = new EventEmitter();
4234
+ fCreateConnection = new EventEmitter();
4026
4235
  constructor(elementReference, fDraggableDataContext, ngZone, fComponentsStore, fMediator, doc) {
4027
4236
  super(ngZone);
4028
4237
  this.elementReference = elementReference;
@@ -4030,14 +4239,6 @@ class FDraggableDirective extends FDraggableBase {
4030
4239
  this.fComponentsStore = fComponentsStore;
4031
4240
  this.fMediator = fMediator;
4032
4241
  this.doc = doc;
4033
- this.subscriptions$ = new Subscription();
4034
- this.disabled = false;
4035
- this.fSelectionChange = new EventEmitter();
4036
- // @Output()
4037
- // public override fConnectionIntersectNode: EventEmitter<ConnectionIntersectNodeEvent> = new EventEmitter<ConnectionIntersectNodeEvent>();
4038
- this.fCreateNode = new EventEmitter();
4039
- this.fReassignConnection = new EventEmitter();
4040
- this.fCreateConnection = new EventEmitter();
4041
4242
  }
4042
4243
  ngOnInit() {
4043
4244
  this.fComponentsStore.fDraggable = this;
@@ -4071,12 +4272,24 @@ class FDraggableDirective extends FDraggableBase {
4071
4272
  }
4072
4273
  }
4073
4274
  onSelect(event) {
4074
- const isTargetNotHtml = event.constructor.name === 'Event';
4075
- const target = isTargetNotHtml ? event.target.parentNode : event.target;
4076
- if (target && isExternalItem(target)) {
4275
+ if (this.isTargetItemExternal(event)) {
4077
4276
  event.preventDefault();
4078
4277
  }
4079
4278
  }
4279
+ isTargetItemExternal(event) {
4280
+ let isTargetItemExternal = this.isExternalItem(event.target);
4281
+ let isTargetParentItemExternal = this.isExternalItem(event.target.parentNode);
4282
+ return isTargetItemExternal || isTargetParentItemExternal;
4283
+ }
4284
+ isExternalItem(target) {
4285
+ let result = false;
4286
+ try {
4287
+ result = isExternalItem(target);
4288
+ }
4289
+ catch (e) {
4290
+ }
4291
+ return result;
4292
+ }
4080
4293
  onPointerMove(event) {
4081
4294
  const pointerPositionInCanvas = Point.fromPoint(event.getPosition()).elementTransform(this.hostElement);
4082
4295
  const difference = pointerPositionInCanvas.div(this.fDraggableDataContext.onPointerDownScale).sub(this.fDraggableDataContext.onPointerDownPosition);
@@ -4109,12 +4322,12 @@ class FDraggableDirective extends FDraggableBase {
4109
4322
  super.unsubscribe();
4110
4323
  this.subscriptions$.unsubscribe();
4111
4324
  }
4112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDirective, deps: [{ token: i0.ElementRef }, { token: FDraggableDataContext }, { token: i0.NgZone }, { token: FComponentsStore }, { token: FFlowMediator }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
4113
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FDraggableDirective, selector: "f-flow[fDraggable]", inputs: { disabled: ["fDraggableDisabled", "disabled"] }, outputs: { fSelectionChange: "fSelectionChange", fCreateNode: "fCreateNode", fReassignConnection: "fReassignConnection", fCreateConnection: "fCreateConnection" }, providers: [
4325
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDirective, deps: [{ token: i0.ElementRef }, { token: FDraggableDataContext }, { token: i0.NgZone }, { token: FComponentsStore }, { token: FFlowMediator }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
4326
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FDraggableDirective, selector: "f-flow[fDraggable]", inputs: { disabled: ["fDraggableDisabled", "disabled"] }, outputs: { fSelectionChange: "fSelectionChange", fCreateNode: "fCreateNode", fReassignConnection: "fReassignConnection", fCreateConnection: "fCreateConnection" }, providers: [
4114
4327
  { provide: F_DRAGGABLE, useExisting: FDraggableDirective }
4115
- ], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 }); }
4328
+ ], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 });
4116
4329
  }
4117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDirective, decorators: [{
4330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDirective, decorators: [{
4118
4331
  type: Directive,
4119
4332
  args: [{
4120
4333
  selector: "f-flow[fDraggable]",
@@ -4140,6 +4353,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
4140
4353
  }] } });
4141
4354
 
4142
4355
  class FSelectionChangeEvent {
4356
+ nodes;
4357
+ connections;
4143
4358
  constructor(nodes, connections) {
4144
4359
  this.nodes = nodes;
4145
4360
  this.connections = connections;
@@ -4157,6 +4372,7 @@ const F_DRAGGABLE_PROVIDERS = [
4157
4372
  ];
4158
4373
 
4159
4374
  let ClearSelectionExecution = class ClearSelectionExecution {
4375
+ fDraggableDataContext;
4160
4376
  constructor(fDraggableDataContext) {
4161
4377
  this.fDraggableDataContext = fDraggableDataContext;
4162
4378
  }
@@ -4167,17 +4383,18 @@ let ClearSelectionExecution = class ClearSelectionExecution {
4167
4383
  this.fDraggableDataContext.selectedItems = [];
4168
4384
  this.fDraggableDataContext.isSelectedChanged = true;
4169
4385
  }
4170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ClearSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
4171
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ClearSelectionExecution }); }
4386
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
4387
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution });
4172
4388
  };
4173
4389
  ClearSelectionExecution = __decorate([
4174
4390
  FExecutionRegister(ClearSelectionRequest)
4175
4391
  ], ClearSelectionExecution);
4176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ClearSelectionExecution, decorators: [{
4392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution, decorators: [{
4177
4393
  type: Injectable
4178
4394
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
4179
4395
 
4180
4396
  class CreateConnectionMarkersRequest {
4397
+ fConnection;
4181
4398
  constructor(fConnection) {
4182
4399
  this.fConnection = fConnection;
4183
4400
  }
@@ -4215,17 +4432,18 @@ let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
4215
4432
  markerElement.setAttribute('markerUnits', `${marker.markerUnits}`);
4216
4433
  return markerElement;
4217
4434
  }
4218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionMarkersExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4219
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionMarkersExecution }); }
4435
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4436
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution });
4220
4437
  };
4221
4438
  CreateConnectionMarkersExecution = __decorate([
4222
4439
  FExecutionRegister(CreateConnectionMarkersRequest)
4223
4440
  ], CreateConnectionMarkersExecution);
4224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
4441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
4225
4442
  type: Injectable
4226
4443
  }] });
4227
4444
 
4228
4445
  class GetElementRectInFlowRequest {
4446
+ element;
4229
4447
  constructor(element) {
4230
4448
  this.element = element;
4231
4449
  }
@@ -4237,6 +4455,16 @@ var EFConnectorShape;
4237
4455
  })(EFConnectorShape || (EFConnectorShape = {}));
4238
4456
 
4239
4457
  class RoundedRect {
4458
+ x;
4459
+ y;
4460
+ width;
4461
+ height;
4462
+ radius1;
4463
+ radius2;
4464
+ radius3;
4465
+ radius4;
4466
+ type = EFConnectorShape.ROUNDED_RECT;
4467
+ gravityCenter = { x: 0, y: 0 };
4240
4468
  constructor(x = 0, y = 0, width = 0, height = 0, radius1 = 0, radius2 = 0, radius3 = 0, radius4 = 0) {
4241
4469
  this.x = x;
4242
4470
  this.y = y;
@@ -4246,8 +4474,6 @@ class RoundedRect {
4246
4474
  this.radius2 = radius2;
4247
4475
  this.radius3 = radius3;
4248
4476
  this.radius4 = radius4;
4249
- this.type = EFConnectorShape.ROUNDED_RECT;
4250
- this.gravityCenter = { x: 0, y: 0 };
4251
4477
  this.gravityCenter = this.calculateGravityCenter(this);
4252
4478
  }
4253
4479
  calculateGravityCenter(rect) {
@@ -4264,12 +4490,38 @@ class RoundedRect {
4264
4490
  return this.setRadiusFromElement(new RoundedRect(x, y, width, height), element);
4265
4491
  }
4266
4492
  static setRadiusFromElement(rect, element) {
4267
- rect.radius1 = parseFloat(element.style.borderTopLeftRadius) || 0;
4268
- rect.radius2 = parseFloat(element.style.borderTopRightRadius) || 0;
4269
- rect.radius3 = parseFloat(element.style.borderBottomRightRadius) || 0;
4270
- rect.radius4 = parseFloat(element.style.borderBottomLeftRadius) || 0;
4493
+ const data = getComputedStyle(element);
4494
+ rect.radius1 = this.convertToPixels(data.borderTopLeftRadius, element.clientWidth, element.clientHeight, data.fontSize) || 0;
4495
+ rect.radius2 = this.convertToPixels(data.borderTopRightRadius, element.clientWidth, element.clientHeight, data.fontSize) || 0;
4496
+ rect.radius3 = this.convertToPixels(data.borderBottomRightRadius, element.clientWidth, element.clientHeight, data.fontSize) || 0;
4497
+ rect.radius4 = this.convertToPixels(data.borderBottomLeftRadius, element.clientWidth, element.clientHeight, data.fontSize) || 0;
4271
4498
  return rect;
4272
4499
  }
4500
+ static convertToPixels(value, clientWidth, clientHeight, fontSize) {
4501
+ if (value.endsWith('px')) {
4502
+ return parseFloat(value);
4503
+ }
4504
+ else if (value.endsWith('%')) {
4505
+ const percentage = parseFloat(value) / 100;
4506
+ return Math.max(clientWidth, clientHeight) * percentage;
4507
+ }
4508
+ else if (value.endsWith('em')) {
4509
+ return parseFloat(value) * parseFloat(fontSize);
4510
+ }
4511
+ else if (value.endsWith('rem')) {
4512
+ return parseFloat(value) * parseFloat(getComputedStyle(document.documentElement).fontSize);
4513
+ }
4514
+ else if (value.endsWith('vh')) {
4515
+ const vh = window.innerHeight / 100;
4516
+ return parseFloat(value) * vh;
4517
+ }
4518
+ else if (value.endsWith('vw')) {
4519
+ const vw = window.innerWidth / 100;
4520
+ return parseFloat(value) * vw;
4521
+ }
4522
+ return parseFloat(value) || 0;
4523
+ }
4524
+ ;
4273
4525
  addPoint(point) {
4274
4526
  const copy = RoundedRect.fromRoundedRect(this);
4275
4527
  copy.x += point.x;
@@ -4478,6 +4730,7 @@ class IntersectionFinder {
4478
4730
  }
4479
4731
 
4480
4732
  let GetElementRectInFlowExecution = class GetElementRectInFlowExecution {
4733
+ fComponentsStore;
4481
4734
  get transform() {
4482
4735
  return this.fComponentsStore.transform;
4483
4736
  }
@@ -4499,17 +4752,20 @@ let GetElementRectInFlowExecution = class GetElementRectInFlowExecution {
4499
4752
  transformElementSizeInFlow(rect) {
4500
4753
  return SizeExtensions.initialize(rect.width / this.transform.scale, rect.height / this.transform.scale);
4501
4754
  }
4502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetElementRectInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
4503
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetElementRectInFlowExecution }); }
4755
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4756
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution });
4504
4757
  };
4505
4758
  GetElementRectInFlowExecution = __decorate([
4506
4759
  FExecutionRegister(GetElementRectInFlowRequest)
4507
4760
  ], GetElementRectInFlowExecution);
4508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetElementRectInFlowExecution, decorators: [{
4761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution, decorators: [{
4509
4762
  type: Injectable
4510
4763
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4511
4764
 
4512
4765
  let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
4766
+ fComponentsStore;
4767
+ fDraggableDataContext;
4768
+ fMediator;
4513
4769
  get fNodes() {
4514
4770
  return this.fComponentsStore.fNodes;
4515
4771
  }
@@ -4545,17 +4801,22 @@ let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
4545
4801
  };
4546
4802
  });
4547
4803
  }
4548
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeSelectedItemsExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
4549
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeSelectedItemsExecution }); }
4804
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeSelectedItemsExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4805
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeSelectedItemsExecution });
4550
4806
  };
4551
4807
  GetCanBeSelectedItemsExecution = __decorate([
4552
4808
  FExecutionRegister(GetCanBeSelectedItemsRequest)
4553
4809
  ], GetCanBeSelectedItemsExecution);
4554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
4810
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
4555
4811
  type: Injectable
4556
4812
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
4557
4813
 
4558
4814
  class GetConnectionLineRequest {
4815
+ outputRect;
4816
+ inputRect;
4817
+ behavior;
4818
+ outputSide;
4819
+ inputSide;
4559
4820
  constructor(outputRect, inputRect, behavior, outputSide, inputSide) {
4560
4821
  this.outputRect = outputRect;
4561
4822
  this.inputRect = inputRect;
@@ -4566,13 +4827,11 @@ class GetConnectionLineRequest {
4566
4827
  }
4567
4828
 
4568
4829
  let GetConnectionLineExecution = class GetConnectionLineExecution {
4569
- constructor() {
4570
- this.behaviorHandlers = {
4571
- [EFConnectionBehavior.FLOATING.toString()]: this.floatingBehavior,
4572
- [EFConnectionBehavior.FIXED_CENTER.toString()]: this.fixedCenterBehavior,
4573
- [EFConnectionBehavior.FIXED.toString()]: this.fixedOutboundBehaviour,
4574
- };
4575
- }
4830
+ behaviorHandlers = {
4831
+ [EFConnectionBehavior.FLOATING.toString()]: this.floatingBehavior,
4832
+ [EFConnectionBehavior.FIXED_CENTER.toString()]: this.fixedCenterBehavior,
4833
+ [EFConnectionBehavior.FIXED.toString()]: this.fixedOutboundBehaviour,
4834
+ };
4576
4835
  handle(payload) {
4577
4836
  return this.behaviorHandlers[payload.behavior](payload);
4578
4837
  }
@@ -4587,13 +4846,13 @@ let GetConnectionLineExecution = class GetConnectionLineExecution {
4587
4846
  fixedOutboundBehaviour(payload) {
4588
4847
  return new Line(positionFixedOutbound[payload.outputSide === EFConnectableSide.AUTO ? EFConnectableSide.BOTTOM : payload.outputSide](payload.outputRect), positionFixedOutbound[payload.inputSide === EFConnectableSide.AUTO ? EFConnectableSide.TOP : payload.inputSide](payload.inputRect));
4589
4848
  }
4590
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionLineExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4591
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionLineExecution }); }
4849
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4850
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution });
4592
4851
  };
4593
4852
  GetConnectionLineExecution = __decorate([
4594
4853
  FExecutionRegister(GetConnectionLineRequest)
4595
4854
  ], GetConnectionLineExecution);
4596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionLineExecution, decorators: [{
4855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution, decorators: [{
4597
4856
  type: Injectable
4598
4857
  }] });
4599
4858
  const positionFixedOutbound = {
@@ -4623,13 +4882,46 @@ const positionFixedOutbound = {
4623
4882
  },
4624
4883
  };
4625
4884
 
4885
+ class GetExternalNodesRectRequest {
4886
+ }
4887
+
4888
+ let GetExternalNodesRectExecution = class GetExternalNodesRectExecution {
4889
+ fComponentsStore;
4890
+ constructor(fComponentsStore) {
4891
+ this.fComponentsStore = fComponentsStore;
4892
+ }
4893
+ handle(request) {
4894
+ return RectExtensions.union(this.getNodesRects());
4895
+ }
4896
+ getNodesRects() {
4897
+ return this.getNodes().map((x) => {
4898
+ const rect = RectExtensions.fromElement(x.hostElement);
4899
+ return RectExtensions.initialize(x.position.x, x.position.y, rect.width, rect.height);
4900
+ });
4901
+ }
4902
+ getNodes() {
4903
+ return this.fComponentsStore.fNodes;
4904
+ }
4905
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetExternalNodesRectExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4906
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetExternalNodesRectExecution });
4907
+ };
4908
+ GetExternalNodesRectExecution = __decorate([
4909
+ FExecutionRegister(GetExternalNodesRectRequest)
4910
+ ], GetExternalNodesRectExecution);
4911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetExternalNodesRectExecution, decorators: [{
4912
+ type: Injectable
4913
+ }], ctorParameters: () => [{ type: FComponentsStore }] });
4914
+
4626
4915
  class GetInputRectInFlowRequest {
4916
+ fInputId;
4627
4917
  constructor(fInputId) {
4628
4918
  this.fInputId = fInputId;
4629
4919
  }
4630
4920
  }
4631
4921
 
4632
4922
  class GetInputRectInFlowResponse {
4923
+ rect;
4924
+ fConnectableSide;
4633
4925
  constructor(rect, fConnectableSide) {
4634
4926
  this.rect = rect;
4635
4927
  this.fConnectableSide = fConnectableSide;
@@ -4637,6 +4929,8 @@ class GetInputRectInFlowResponse {
4637
4929
  }
4638
4930
 
4639
4931
  let GetInputRectInFlowExecution = class GetInputRectInFlowExecution {
4932
+ fComponentsStore;
4933
+ fMediator;
4640
4934
  constructor(fComponentsStore, fMediator) {
4641
4935
  this.fComponentsStore = fComponentsStore;
4642
4936
  this.fMediator = fMediator;
@@ -4648,13 +4942,13 @@ let GetInputRectInFlowExecution = class GetInputRectInFlowExecution {
4648
4942
  }
4649
4943
  return new GetInputRectInFlowResponse(this.fMediator.send(new GetElementRectInFlowRequest(input.hostElement)), input.fConnectableSide);
4650
4944
  }
4651
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputRectInFlowExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
4652
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputRectInFlowExecution }); }
4945
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputRectInFlowExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4946
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputRectInFlowExecution });
4653
4947
  };
4654
4948
  GetInputRectInFlowExecution = __decorate([
4655
4949
  FExecutionRegister(GetInputRectInFlowRequest)
4656
4950
  ], GetInputRectInFlowExecution);
4657
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputRectInFlowExecution, decorators: [{
4951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputRectInFlowExecution, decorators: [{
4658
4952
  type: Injectable
4659
4953
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4660
4954
 
@@ -4662,33 +4956,39 @@ class GetNodesRectRequest {
4662
4956
  }
4663
4957
 
4664
4958
  let GetNodesRectExecution = class GetNodesRectExecution {
4959
+ fComponentsStore;
4665
4960
  constructor(fComponentsStore) {
4666
4961
  this.fComponentsStore = fComponentsStore;
4667
4962
  }
4668
4963
  handle(request) {
4669
- const fNodes = this.fComponentsStore.fNodes;
4670
- const rects = fNodes.map((x) => {
4671
- return RectExtensions.fromElement(x.hostElement);
4672
- });
4673
- return RectExtensions.union(rects);
4964
+ return RectExtensions.union(this.getNodesRects());
4965
+ }
4966
+ getNodesRects() {
4967
+ return this.getNodes().map((x) => RectExtensions.fromElement(x.hostElement));
4674
4968
  }
4675
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetNodesRectExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
4676
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetNodesRectExecution }); }
4969
+ getNodes() {
4970
+ return this.fComponentsStore.fNodes;
4971
+ }
4972
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4973
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution });
4677
4974
  };
4678
4975
  GetNodesRectExecution = __decorate([
4679
4976
  FExecutionRegister(GetNodesRectRequest)
4680
4977
  ], GetNodesRectExecution);
4681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetNodesRectExecution, decorators: [{
4978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution, decorators: [{
4682
4979
  type: Injectable
4683
4980
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4684
4981
 
4685
4982
  class GetOutputRectInFlowRequest {
4983
+ fOutputId;
4686
4984
  constructor(fOutputId) {
4687
4985
  this.fOutputId = fOutputId;
4688
4986
  }
4689
4987
  }
4690
4988
 
4691
4989
  class GetOutputRectInFlowResponse {
4990
+ rect;
4991
+ fConnectableSide;
4692
4992
  constructor(rect, fConnectableSide) {
4693
4993
  this.rect = rect;
4694
4994
  this.fConnectableSide = fConnectableSide;
@@ -4696,6 +4996,8 @@ class GetOutputRectInFlowResponse {
4696
4996
  }
4697
4997
 
4698
4998
  let GetOutputRectInFlowExecution = class GetOutputRectInFlowExecution {
4999
+ fComponentsStore;
5000
+ fMediator;
4699
5001
  constructor(fComponentsStore, fMediator) {
4700
5002
  this.fComponentsStore = fComponentsStore;
4701
5003
  this.fMediator = fMediator;
@@ -4711,23 +5013,25 @@ let GetOutputRectInFlowExecution = class GetOutputRectInFlowExecution {
4711
5013
  const result = this.fMediator.send(new GetElementRectInFlowRequest(output.hostElement));
4712
5014
  return new GetOutputRectInFlowResponse(result, output.fConnectableSide);
4713
5015
  }
4714
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutputRectInFlowExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
4715
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutputRectInFlowExecution }); }
5016
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutputRectInFlowExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5017
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutputRectInFlowExecution });
4716
5018
  };
4717
5019
  GetOutputRectInFlowExecution = __decorate([
4718
5020
  FExecutionRegister(GetOutputRectInFlowRequest)
4719
5021
  ], GetOutputRectInFlowExecution);
4720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutputRectInFlowExecution, decorators: [{
5022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutputRectInFlowExecution, decorators: [{
4721
5023
  type: Injectable
4722
5024
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4723
5025
 
4724
5026
  class GetPositionInFlowRequest {
5027
+ position;
4725
5028
  constructor(position) {
4726
5029
  this.position = position;
4727
5030
  }
4728
5031
  }
4729
5032
 
4730
5033
  let GetPositionInFlowExecution = class GetPositionInFlowExecution {
5034
+ fComponentsStore;
4731
5035
  get transform() {
4732
5036
  return this.fComponentsStore.transform;
4733
5037
  }
@@ -4741,13 +5045,13 @@ let GetPositionInFlowExecution = class GetPositionInFlowExecution {
4741
5045
  return Point.fromPoint(request.position).elementTransform(this.flowHost)
4742
5046
  .sub(this.transform.scaledPosition).sub(this.transform.position).div(this.transform.scale);
4743
5047
  }
4744
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetPositionInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
4745
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetPositionInFlowExecution }); }
5048
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5049
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution });
4746
5050
  };
4747
5051
  GetPositionInFlowExecution = __decorate([
4748
5052
  FExecutionRegister(GetPositionInFlowRequest)
4749
5053
  ], GetPositionInFlowExecution);
4750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetPositionInFlowExecution, decorators: [{
5054
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution, decorators: [{
4751
5055
  type: Injectable
4752
5056
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4753
5057
 
@@ -4755,6 +5059,7 @@ class GetSelectionRequest {
4755
5059
  }
4756
5060
 
4757
5061
  let GetSelectionExecution = class GetSelectionExecution {
5062
+ fDraggableDataContext;
4758
5063
  constructor(fDraggableDataContext) {
4759
5064
  this.fDraggableDataContext = fDraggableDataContext;
4760
5065
  }
@@ -4771,17 +5076,18 @@ let GetSelectionExecution = class GetSelectionExecution {
4771
5076
  });
4772
5077
  return new FSelectionChangeEvent(selectedNodes, selectedConnections);
4773
5078
  }
4774
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
4775
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetSelectionExecution }); }
5079
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5080
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution });
4776
5081
  };
4777
5082
  GetSelectionExecution = __decorate([
4778
5083
  FExecutionRegister(GetSelectionRequest)
4779
5084
  ], GetSelectionExecution);
4780
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetSelectionExecution, decorators: [{
5085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution, decorators: [{
4781
5086
  type: Injectable
4782
5087
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
4783
5088
 
4784
5089
  class GetOutgoingConnectionsHandler {
5090
+ fComponentsStore;
4785
5091
  get fConnections() {
4786
5092
  return this.fComponentsStore.fConnections;
4787
5093
  }
@@ -4794,14 +5100,15 @@ class GetOutgoingConnectionsHandler {
4794
5100
  return outputsIds.includes(x.fOutputId);
4795
5101
  });
4796
5102
  }
4797
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutgoingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
4798
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutgoingConnectionsHandler }); }
5103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5104
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler });
4799
5105
  }
4800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutgoingConnectionsHandler, decorators: [{
5106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler, decorators: [{
4801
5107
  type: Injectable
4802
5108
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4803
5109
 
4804
5110
  class GetIncomingConnectionsHandler {
5111
+ fComponentsStore;
4805
5112
  get fConnections() {
4806
5113
  return this.fComponentsStore.fConnections;
4807
5114
  }
@@ -4814,14 +5121,19 @@ class GetIncomingConnectionsHandler {
4814
5121
  return inputsIds.includes(x.fInputId);
4815
5122
  });
4816
5123
  }
4817
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetIncomingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
4818
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetIncomingConnectionsHandler }); }
5124
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5125
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler });
4819
5126
  }
4820
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetIncomingConnectionsHandler, decorators: [{
5127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler, decorators: [{
4821
5128
  type: Injectable
4822
5129
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4823
5130
 
4824
5131
  let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
5132
+ fComponentsStore;
5133
+ fDraggableDataContext;
5134
+ fMediator;
5135
+ getOutgoingConnectionsHandler;
5136
+ getIncomingConnectionsHandler;
4825
5137
  get transform() {
4826
5138
  return this.fComponentsStore.fCanvas.transform;
4827
5139
  }
@@ -4878,13 +5190,13 @@ let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
4878
5190
  return ([]).length > 0;
4879
5191
  });
4880
5192
  }
4881
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IsConnectionUnderNodeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }, { token: GetOutgoingConnectionsHandler }, { token: GetIncomingConnectionsHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
4882
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IsConnectionUnderNodeExecution }); }
5193
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: IsConnectionUnderNodeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }, { token: GetOutgoingConnectionsHandler }, { token: GetIncomingConnectionsHandler }], target: i0.ɵɵFactoryTarget.Injectable });
5194
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: IsConnectionUnderNodeExecution });
4883
5195
  };
4884
5196
  IsConnectionUnderNodeExecution = __decorate([
4885
5197
  FExecutionRegister(IsConnectionUnderNodeRequest)
4886
5198
  ], IsConnectionUnderNodeExecution);
4887
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IsConnectionUnderNodeExecution, decorators: [{
5199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: IsConnectionUnderNodeExecution, decorators: [{
4888
5200
  type: Injectable
4889
5201
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }, { type: GetOutgoingConnectionsHandler }, { type: GetIncomingConnectionsHandler }] });
4890
5202
 
@@ -4892,6 +5204,8 @@ class RedrawConnectionsRequest {
4892
5204
  }
4893
5205
 
4894
5206
  let RedrawConnectionsExecution = class RedrawConnectionsExecution {
5207
+ fComponentsStore;
5208
+ fMediator;
4895
5209
  constructor(fComponentsStore, fMediator) {
4896
5210
  this.fComponentsStore = fComponentsStore;
4897
5211
  this.fMediator = fMediator;
@@ -4930,17 +5244,19 @@ let RedrawConnectionsExecution = class RedrawConnectionsExecution {
4930
5244
  setMarkers(connection) {
4931
5245
  this.fMediator.send(new CreateConnectionMarkersRequest(connection));
4932
5246
  }
4933
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: RedrawConnectionsExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
4934
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: RedrawConnectionsExecution }); }
5247
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: RedrawConnectionsExecution, deps: [{ token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5248
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: RedrawConnectionsExecution });
4935
5249
  };
4936
5250
  RedrawConnectionsExecution = __decorate([
4937
5251
  FExecutionRegister(RedrawConnectionsRequest)
4938
5252
  ], RedrawConnectionsExecution);
4939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: RedrawConnectionsExecution, decorators: [{
5253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: RedrawConnectionsExecution, decorators: [{
4940
5254
  type: Injectable
4941
5255
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4942
5256
 
4943
5257
  class SelectRequest {
5258
+ nodes;
5259
+ connections;
4944
5260
  constructor(nodes, connections) {
4945
5261
  this.nodes = nodes;
4946
5262
  this.connections = connections;
@@ -4948,6 +5264,8 @@ class SelectRequest {
4948
5264
  }
4949
5265
 
4950
5266
  let SelectExecution = class SelectExecution {
5267
+ fDataContext;
5268
+ fDraggableDataContext;
4951
5269
  constructor(fDataContext, fDraggableDataContext) {
4952
5270
  this.fDataContext = fDataContext;
4953
5271
  this.fDraggableDataContext = fDraggableDataContext;
@@ -4973,13 +5291,13 @@ let SelectExecution = class SelectExecution {
4973
5291
  });
4974
5292
  this.fDraggableDataContext.isSelectedChanged = true;
4975
5293
  }
4976
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
4977
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectExecution }); }
5294
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5295
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectExecution });
4978
5296
  };
4979
5297
  SelectExecution = __decorate([
4980
5298
  FExecutionRegister(SelectRequest)
4981
5299
  ], SelectExecution);
4982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectExecution, decorators: [{
5300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectExecution, decorators: [{
4983
5301
  type: Injectable
4984
5302
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
4985
5303
 
@@ -4987,6 +5305,8 @@ class SelectAllRequest {
4987
5305
  }
4988
5306
 
4989
5307
  let SelectAllExecution = class SelectAllExecution {
5308
+ fDataContext;
5309
+ fDraggableDataContext;
4990
5310
  constructor(fDataContext, fDraggableDataContext) {
4991
5311
  this.fDataContext = fDataContext;
4992
5312
  this.fDraggableDataContext = fDraggableDataContext;
@@ -5006,23 +5326,26 @@ let SelectAllExecution = class SelectAllExecution {
5006
5326
  });
5007
5327
  this.fDraggableDataContext.isSelectedChanged = true;
5008
5328
  }
5009
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAllExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
5010
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAllExecution }); }
5329
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAllExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5330
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAllExecution });
5011
5331
  };
5012
5332
  SelectAllExecution = __decorate([
5013
5333
  FExecutionRegister(SelectAllRequest)
5014
5334
  ], SelectAllExecution);
5015
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAllExecution, decorators: [{
5335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAllExecution, decorators: [{
5016
5336
  type: Injectable
5017
5337
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
5018
5338
 
5019
5339
  class SelectAndUpdateNodeLayerRequest {
5340
+ node;
5020
5341
  constructor(node) {
5021
5342
  this.node = node;
5022
5343
  }
5023
5344
  }
5024
5345
 
5025
5346
  class UpdateItemLayerRequest {
5347
+ item;
5348
+ itemContainer;
5026
5349
  constructor(item, itemContainer) {
5027
5350
  this.item = item;
5028
5351
  this.itemContainer = itemContainer;
@@ -5032,9 +5355,8 @@ class UpdateItemLayerRequest {
5032
5355
  let UpdateItemLayerExecution = class UpdateItemLayerExecution {
5033
5356
  handle(request) {
5034
5357
  const elements = Array.from(request.itemContainer.children);
5035
- const elementsCount = elements.length;
5036
5358
  const targetIndex = elements.findIndex((x) => x === request.item.hostElement);
5037
- if (targetIndex !== elementsCount - 1) {
5359
+ if (targetIndex !== -1 && targetIndex !== elements.length - 1) {
5038
5360
  const afterElements = elements.splice(targetIndex + 1);
5039
5361
  afterElements.forEach((x) => {
5040
5362
  request.itemContainer.removeChild(x);
@@ -5042,17 +5364,20 @@ let UpdateItemLayerExecution = class UpdateItemLayerExecution {
5042
5364
  });
5043
5365
  }
5044
5366
  }
5045
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UpdateItemLayerExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5046
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UpdateItemLayerExecution }); }
5367
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5368
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution });
5047
5369
  };
5048
5370
  UpdateItemLayerExecution = __decorate([
5049
5371
  FExecutionRegister(UpdateItemLayerRequest)
5050
5372
  ], UpdateItemLayerExecution);
5051
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UpdateItemLayerExecution, decorators: [{
5373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution, decorators: [{
5052
5374
  type: Injectable
5053
5375
  }] });
5054
5376
 
5055
5377
  let SelectAndUpdateNodeLayerExecution = class SelectAndUpdateNodeLayerExecution {
5378
+ fDraggableDataContext;
5379
+ fComponentsStore;
5380
+ fMediator;
5056
5381
  constructor(fDraggableDataContext, fComponentsStore, fMediator) {
5057
5382
  this.fDraggableDataContext = fDraggableDataContext;
5058
5383
  this.fComponentsStore = fComponentsStore;
@@ -5069,13 +5394,13 @@ let SelectAndUpdateNodeLayerExecution = class SelectAndUpdateNodeLayerExecution
5069
5394
  this.fDraggableDataContext.isSelectedChanged = true;
5070
5395
  }
5071
5396
  }
5072
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, deps: [{ token: FDraggableDataContext }, { token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
5073
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAndUpdateNodeLayerExecution }); }
5397
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, deps: [{ token: FDraggableDataContext }, { token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5398
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAndUpdateNodeLayerExecution });
5074
5399
  };
5075
5400
  SelectAndUpdateNodeLayerExecution = __decorate([
5076
5401
  FExecutionRegister(SelectAndUpdateNodeLayerRequest)
5077
5402
  ], SelectAndUpdateNodeLayerExecution);
5078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, decorators: [{
5403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, decorators: [{
5079
5404
  type: Injectable
5080
5405
  }], ctorParameters: () => [{ type: FDraggableDataContext }, { type: FComponentsStore }, { type: FFlowMediator }] });
5081
5406
 
@@ -5092,6 +5417,7 @@ function getKeyByValue(object, value) {
5092
5417
  }
5093
5418
 
5094
5419
  class GetConnectionHandler {
5420
+ fComponentsStore;
5095
5421
  get fConnections() {
5096
5422
  return this.fComponentsStore.fConnections;
5097
5423
  }
@@ -5101,10 +5427,10 @@ class GetConnectionHandler {
5101
5427
  handle(element) {
5102
5428
  return this.fConnections.find(c => c.isContains(element) || c.fConnectionCenter?.nativeElement?.contains(element));
5103
5429
  }
5104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
5105
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler }); }
5430
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5431
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler });
5106
5432
  }
5107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler, decorators: [{
5433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler, decorators: [{
5108
5434
  type: Injectable
5109
5435
  }], ctorParameters: () => [{ type: FComponentsStore }] });
5110
5436
 
@@ -5129,6 +5455,7 @@ const COMMON_PROVIDERS = [
5129
5455
  GetCanBeSelectedItemsExecution,
5130
5456
  GetConnectionLineExecution,
5131
5457
  GetElementRectInFlowExecution,
5458
+ GetExternalNodesRectExecution,
5132
5459
  GetNodesRectExecution,
5133
5460
  GetOutputRectInFlowExecution,
5134
5461
  GetPositionInFlowExecution,
@@ -5147,12 +5474,15 @@ const COMMON_PROVIDERS = [
5147
5474
 
5148
5475
  const F_RESIZE_HANDLE = new InjectionToken('F_RESIZE_HANDLE');
5149
5476
  class FResizeHandleDirective {
5477
+ elementReference;
5478
+ isDisabled = false;
5150
5479
  set disabled(isDisabled) {
5151
5480
  this.isDisabled = BooleanExtensions.castToBoolean(isDisabled);
5152
5481
  }
5153
5482
  get disabled() {
5154
5483
  return this.isDisabled;
5155
5484
  }
5485
+ _type = EFResizeHandleType.LEFT_TOP;
5156
5486
  set type(type) {
5157
5487
  this._type = castToEnum(type, 'fResizeHandleType', EFResizeHandleType);
5158
5488
  }
@@ -5167,13 +5497,11 @@ class FResizeHandleDirective {
5167
5497
  }
5168
5498
  constructor(elementReference) {
5169
5499
  this.elementReference = elementReference;
5170
- this.isDisabled = false;
5171
- this._type = EFResizeHandleType.LEFT_TOP;
5172
5500
  }
5173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FResizeHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5174
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FResizeHandleDirective, selector: "[fResizeHandle]", inputs: { disabled: ["fResizeHandleDisabled", "disabled"], type: ["fResizeHandleType", "type"] }, host: { properties: { "class.f-resize-handle-disabled": "disabled", "attr.data-f-resize-handle-type": "type", "class": "this.typeClass" }, classAttribute: "f-resize-handle f-component" }, providers: [{ provide: F_RESIZE_HANDLE, useExisting: FResizeHandleDirective }], ngImport: i0 }); }
5501
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FResizeHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
5502
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FResizeHandleDirective, selector: "[fResizeHandle]", inputs: { disabled: ["fResizeHandleDisabled", "disabled"], type: ["fResizeHandleType", "type"] }, host: { properties: { "class.f-resize-handle-disabled": "disabled", "attr.data-f-resize-handle-type": "type", "class": "this.typeClass" }, classAttribute: "f-resize-handle f-component" }, providers: [{ provide: F_RESIZE_HANDLE, useExisting: FResizeHandleDirective }], ngImport: i0 });
5175
5503
  }
5176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FResizeHandleDirective, decorators: [{
5504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FResizeHandleDirective, decorators: [{
5177
5505
  type: Directive,
5178
5506
  args: [{
5179
5507
  selector: "[fResizeHandle]",
@@ -5206,6 +5534,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
5206
5534
  // providers: [ { provide: F_ROTATE_HANDLE, useExisting: FRotateHandleDirective } ],
5207
5535
  // })
5208
5536
  class FRotateHandleDirective {
5537
+ elementReference;
5538
+ isDisabled = false;
5209
5539
  // @Input('fRotateHandleDisabled')
5210
5540
  // public set disabled(isDisabled: boolean | undefined | string) {
5211
5541
  // this.isDisabled = BooleanExtensions.castToBoolean(isDisabled);
@@ -5218,16 +5548,14 @@ class FRotateHandleDirective {
5218
5548
  }
5219
5549
  constructor(elementReference) {
5220
5550
  this.elementReference = elementReference;
5221
- this.isDisabled = false;
5222
5551
  }
5223
5552
  }
5224
5553
 
5225
5554
  const F_NODE = new InjectionToken('F_NODE');
5226
5555
  class FNodeBase {
5227
- constructor() {
5228
- this.stateChanges = new Subject();
5229
- this._position = PointExtensions.initialize();
5230
- }
5556
+ stateChanges = new Subject();
5557
+ _position = PointExtensions.initialize();
5558
+ _size;
5231
5559
  isContains(element) {
5232
5560
  return this.hostElement.contains(element);
5233
5561
  }
@@ -5272,6 +5600,11 @@ class FResizeObserver extends Observable {
5272
5600
 
5273
5601
  let uniqueId$1 = 0;
5274
5602
  class FNodeDirective extends FNodeBase {
5603
+ elementReference;
5604
+ renderer;
5605
+ fComponentsStore;
5606
+ subscriptions$ = new Subscription();
5607
+ fId = `f-node-${uniqueId$1++}`;
5275
5608
  set position(value) {
5276
5609
  this._position = PointExtensions.castToPoint(value);
5277
5610
  this.refresh();
@@ -5279,6 +5612,7 @@ class FNodeDirective extends FNodeBase {
5279
5612
  get position() {
5280
5613
  return this._position;
5281
5614
  }
5615
+ positionChange = new EventEmitter();
5282
5616
  set size(value) {
5283
5617
  this._size = value;
5284
5618
  this.refresh();
@@ -5286,22 +5620,19 @@ class FNodeDirective extends FNodeBase {
5286
5620
  get size() {
5287
5621
  return this._size;
5288
5622
  }
5623
+ sizeChange = new EventEmitter();
5624
+ fDraggingDisabled = false;
5625
+ fSelectionDisabled = false;
5626
+ fConnectOnNode = true;
5289
5627
  get hostElement() {
5290
5628
  return this.elementReference.nativeElement;
5291
5629
  }
5630
+ connectors = [];
5292
5631
  constructor(elementReference, renderer, fComponentsStore) {
5293
5632
  super();
5294
5633
  this.elementReference = elementReference;
5295
5634
  this.renderer = renderer;
5296
5635
  this.fComponentsStore = fComponentsStore;
5297
- this.subscriptions$ = new Subscription();
5298
- this.fId = `f-node-${uniqueId$1++}`;
5299
- this.positionChange = new EventEmitter();
5300
- this.sizeChange = new EventEmitter();
5301
- this.fDraggingDisabled = false;
5302
- this.fSelectionDisabled = false;
5303
- this.fConnectOnNode = true;
5304
- this.connectors = [];
5305
5636
  }
5306
5637
  ngOnInit() {
5307
5638
  this.setStyle('position', 'absolute');
@@ -5346,12 +5677,12 @@ class FNodeDirective extends FNodeBase {
5346
5677
  this.stateChanges.complete();
5347
5678
  this.subscriptions$.unsubscribe();
5348
5679
  }
5349
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
5350
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FNodeDirective, selector: "[fNode]", inputs: { fId: ["fNodeId", "fId"], position: ["fNodePosition", "position"], size: ["fNodeSize", "size"], fDraggingDisabled: ["fNodeDraggingDisabled", "fDraggingDisabled"], fSelectionDisabled: ["fNodeSelectionDisabled", "fSelectionDisabled"], fConnectOnNode: "fConnectOnNode" }, outputs: { positionChange: "fNodePositionChange", sizeChange: "fNodeSizeChange" }, host: { properties: { "attr.data-f-node-id": "fId", "class.f-node-dragging-disabled": "fDraggingDisabled", "class.f-node-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-node f-component" }, providers: [
5680
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
5681
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FNodeDirective, selector: "[fNode]", inputs: { fId: ["fNodeId", "fId"], position: ["fNodePosition", "position"], size: ["fNodeSize", "size"], fDraggingDisabled: ["fNodeDraggingDisabled", "fDraggingDisabled"], fSelectionDisabled: ["fNodeSelectionDisabled", "fSelectionDisabled"], fConnectOnNode: "fConnectOnNode" }, outputs: { positionChange: "fNodePositionChange", sizeChange: "fNodeSizeChange" }, host: { properties: { "attr.data-f-node-id": "fId", "class.f-node-dragging-disabled": "fDraggingDisabled", "class.f-node-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-node f-component" }, providers: [
5351
5682
  { provide: F_NODE, useExisting: FNodeDirective }
5352
- ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 }); }
5683
+ ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 });
5353
5684
  }
5354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeDirective, decorators: [{
5685
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeDirective, decorators: [{
5355
5686
  type: Directive,
5356
5687
  args: [{
5357
5688
  selector: "[fNode]",
@@ -5404,6 +5735,9 @@ const F_NODE_PROVIDERS = [
5404
5735
 
5405
5736
  const F_ZOOM = new InjectionToken('F_ZOOM');
5406
5737
  class FZoomBase {
5738
+ fComponentsStore;
5739
+ isEnabled = false;
5740
+ listeners = EventExtensions.emptyListener();
5407
5741
  get flowHost() {
5408
5742
  return this.fComponentsStore.flowHost;
5409
5743
  }
@@ -5412,8 +5746,6 @@ class FZoomBase {
5412
5746
  }
5413
5747
  constructor(fComponentsStore) {
5414
5748
  this.fComponentsStore = fComponentsStore;
5415
- this.isEnabled = false;
5416
- this.listeners = EventExtensions.emptyListener();
5417
5749
  }
5418
5750
  toggleZoom() {
5419
5751
  if (this.isEnabled) {
@@ -5504,12 +5836,12 @@ class FZoomDirective extends FZoomBase {
5504
5836
  this.toggleZoom();
5505
5837
  }
5506
5838
  }
5839
+ minimum = 0.1;
5840
+ maximum = 4;
5841
+ step = 0.1;
5842
+ dblClickStep = 0.5;
5507
5843
  constructor(fComponentsStore) {
5508
5844
  super(fComponentsStore);
5509
- this.minimum = 0.1;
5510
- this.maximum = 4;
5511
- this.step = 0.1;
5512
- this.dblClickStep = 0.5;
5513
5845
  }
5514
5846
  ngAfterViewInit() {
5515
5847
  super.toggleZoom();
@@ -5517,10 +5849,10 @@ class FZoomDirective extends FZoomBase {
5517
5849
  ngOnDestroy() {
5518
5850
  super.unsubscribe();
5519
5851
  }
5520
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FZoomDirective, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
5521
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FZoomDirective, selector: "f-canvas[fZoom]", inputs: { fFlowZoom: ["fZoom", "fFlowZoom"], minimum: ["fZoomMinimum", "minimum"], maximum: ["fZoomMaximum", "maximum"], step: ["fZoomStep", "step"], dblClickStep: ["fZoomDblClickStep", "dblClickStep"] }, host: { classAttribute: "f-zoom f-component" }, providers: [{ provide: F_ZOOM, useExisting: FZoomDirective }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 }); }
5852
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FZoomDirective, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
5853
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FZoomDirective, selector: "f-canvas[fZoom]", inputs: { fFlowZoom: ["fZoom", "fFlowZoom"], minimum: ["fZoomMinimum", "minimum"], maximum: ["fZoomMaximum", "maximum"], step: ["fZoomStep", "step"], dblClickStep: ["fZoomDblClickStep", "dblClickStep"] }, host: { classAttribute: "f-zoom f-component" }, providers: [{ provide: F_ZOOM, useExisting: FZoomDirective }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 });
5522
5854
  }
5523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FZoomDirective, decorators: [{
5855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FZoomDirective, decorators: [{
5524
5856
  type: Directive,
5525
5857
  args: [{
5526
5858
  selector: "f-canvas[fZoom]",
@@ -5549,6 +5881,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
5549
5881
 
5550
5882
  const F_CANVAS = new InjectionToken('F_CANVAS');
5551
5883
  const MIXIN_BASE = mixinChangePosition(mixinFitToParent(mixinOneToOneCentering(mixinChangeZoom(class {
5884
+ transform;
5552
5885
  constructor(transform) {
5553
5886
  this.transform = transform;
5554
5887
  }
@@ -5563,14 +5896,18 @@ class FCanvasBase extends MIXIN_BASE {
5563
5896
  getCanvasPosition() {
5564
5897
  return PointExtensions.sum(this.transform.position, this.transform.scaledPosition);
5565
5898
  }
5566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5567
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FCanvasBase, usesInheritance: true, ngImport: i0 }); }
5899
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5900
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FCanvasBase, usesInheritance: true, ngImport: i0 });
5568
5901
  }
5569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasBase, decorators: [{
5902
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasBase, decorators: [{
5570
5903
  type: Directive
5571
5904
  }], ctorParameters: () => [] });
5572
5905
 
5573
5906
  class FCanvasComponent extends FCanvasBase {
5907
+ elementReference;
5908
+ fMediator;
5909
+ fComponentsStore;
5910
+ fCanvasChange = new EventEmitter();
5574
5911
  set position(value) {
5575
5912
  if (!value) {
5576
5913
  return;
@@ -5595,12 +5932,13 @@ class FCanvasComponent extends FCanvasBase {
5595
5932
  get hostElement() {
5596
5933
  return this.elementReference.nativeElement;
5597
5934
  }
5935
+ fNodesContainer;
5936
+ fConnectionsContainer;
5598
5937
  constructor(elementReference, fMediator, fComponentsStore) {
5599
5938
  super();
5600
5939
  this.elementReference = elementReference;
5601
5940
  this.fMediator = fMediator;
5602
5941
  this.fComponentsStore = fComponentsStore;
5603
- this.fCanvasChange = new EventEmitter();
5604
5942
  }
5605
5943
  ngOnInit() {
5606
5944
  this.fComponentsStore.fCanvas = this;
@@ -5638,10 +5976,10 @@ class FCanvasComponent extends FCanvasBase {
5638
5976
  this.redrawWithAnimation();
5639
5977
  this.completeDrag();
5640
5978
  }
5641
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasComponent, deps: [{ token: i0.ElementRef }, { token: FFlowMediator }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component }); }
5642
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FCanvasComponent, selector: "f-canvas", inputs: { position: "position", scale: "scale" }, outputs: { fCanvasChange: "fCanvasChange" }, host: { classAttribute: "f-component f-canvas" }, providers: [{ provide: F_CANVAS, useExisting: FCanvasComponent }], viewQueries: [{ propertyName: "fNodesContainer", first: true, predicate: ["fNodesContainer"], descendants: true, static: true }, { propertyName: "fConnectionsContainer", first: true, predicate: ["fConnectionsContainer"], descendants: true, static: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <div #fConnectionsContainer>\n <ng-content select=\"f-connection\"></ng-content>\n <ng-content select=\"f-connection-for-create\"></ng-content>\n </div>\n <div #fNodesContainer>\n <ng-content select=\"[fGroup]\"></ng-content>\n <ng-content select=\"[fNode]\"></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:absolute;overflow:visible;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5979
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasComponent, deps: [{ token: i0.ElementRef }, { token: FFlowMediator }, { token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Component });
5980
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FCanvasComponent, selector: "f-canvas", inputs: { position: "position", scale: "scale" }, outputs: { fCanvasChange: "fCanvasChange" }, host: { classAttribute: "f-component f-canvas" }, providers: [{ provide: F_CANVAS, useExisting: FCanvasComponent }], viewQueries: [{ propertyName: "fNodesContainer", first: true, predicate: ["fNodesContainer"], descendants: true, static: true }, { propertyName: "fConnectionsContainer", first: true, predicate: ["fConnectionsContainer"], descendants: true, static: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <div #fConnectionsContainer>\n <ng-content select=\"f-connection\"></ng-content>\n <ng-content select=\"f-connection-for-create\"></ng-content>\n </div>\n <div #fNodesContainer>\n <ng-content select=\"[fGroup]\"></ng-content>\n <ng-content select=\"[fNode]\"></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:absolute;overflow:visible;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5643
5981
  }
5644
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasComponent, decorators: [{
5982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasComponent, decorators: [{
5645
5983
  type: Component,
5646
5984
  args: [{ selector: 'f-canvas', exportAs: 'fComponent', host: {
5647
5985
  'class': 'f-component f-canvas',
@@ -5666,9 +6004,10 @@ const F_CANVAS_PROVIDERS = [
5666
6004
  ];
5667
6005
 
5668
6006
  class LineElement {
6007
+ hostElement;
6008
+ element = DomElementExtensions.createHtmlElement('div');
5669
6009
  constructor(hostElement) {
5670
6010
  this.hostElement = hostElement;
5671
- this.element = DomElementExtensions.createHtmlElement('div');
5672
6011
  this.hostElement.appendChild(this.element);
5673
6012
  this.element.classList.add('f-line');
5674
6013
  }
@@ -5688,6 +6027,9 @@ class LineElement {
5688
6027
  }
5689
6028
 
5690
6029
  class LineService {
6030
+ hostElement;
6031
+ fHorizontalLine;
6032
+ fVerticalLine;
5691
6033
  constructor(hostElement) {
5692
6034
  this.hostElement = hostElement;
5693
6035
  this.fHorizontalLine = new LineElement(this.hostElement);
@@ -5723,6 +6065,9 @@ class LineService {
5723
6065
  * A class to find the nearest coordinate.
5724
6066
  */
5725
6067
  class NearestCoordinateFinder {
6068
+ alignThreshold;
6069
+ elements;
6070
+ target;
5726
6071
  /**
5727
6072
  * Constructor to initialize the NearestCoordinateFinder.
5728
6073
  * @param elements - The array of IRect elements.
@@ -5822,17 +6167,26 @@ class NearestCoordinateFinder {
5822
6167
 
5823
6168
  const F_LINE_ALIGNMENT = new InjectionToken('F_LINE_ALIGNMENT');
5824
6169
  class FLineAlignmentBase {
5825
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5826
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FLineAlignmentBase, ngImport: i0 }); }
6170
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6171
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FLineAlignmentBase, ngImport: i0 });
5827
6172
  }
5828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentBase, decorators: [{
6173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentBase, decorators: [{
5829
6174
  type: Directive
5830
6175
  }] });
5831
6176
 
5832
6177
  class FLineAlignmentComponent extends FLineAlignmentBase {
6178
+ elementReference;
6179
+ fComponentsStore;
6180
+ fDraggableDataContext;
6181
+ fMediator;
6182
+ fAlignThreshold = 10;
5833
6183
  get hostElement() {
5834
6184
  return this.elementReference.nativeElement;
5835
6185
  }
6186
+ lineService;
6187
+ size = SizeExtensions.initialize();
6188
+ draggedNodeRect = RectExtensions.initialize();
6189
+ rects = [];
5836
6190
  get transform() {
5837
6191
  return this.fComponentsStore.fCanvas.transform;
5838
6192
  }
@@ -5845,10 +6199,6 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
5845
6199
  this.fComponentsStore = fComponentsStore;
5846
6200
  this.fDraggableDataContext = fDraggableDataContext;
5847
6201
  this.fMediator = fMediator;
5848
- this.fAlignThreshold = 10;
5849
- this.size = SizeExtensions.initialize();
5850
- this.draggedNodeRect = RectExtensions.initialize();
5851
- this.rects = [];
5852
6202
  this.lineService = new LineService(this.hostElement);
5853
6203
  }
5854
6204
  ngOnInit() {
@@ -5895,12 +6245,12 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
5895
6245
  this.lineService.hideVerticalLine();
5896
6246
  this.lineService.hideHorizontalLine();
5897
6247
  }
5898
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Component }); }
5899
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FLineAlignmentComponent, selector: "f-line-alignment", inputs: { fAlignThreshold: "fAlignThreshold" }, host: { classAttribute: "f-line-alignment f-component" }, providers: [
6248
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }, { token: FDraggableDataContext }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Component });
6249
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FLineAlignmentComponent, selector: "f-line-alignment", inputs: { fAlignThreshold: "fAlignThreshold" }, host: { classAttribute: "f-line-alignment f-component" }, providers: [
5900
6250
  { provide: F_LINE_ALIGNMENT, useExisting: FLineAlignmentComponent }
5901
- ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "", isInline: true, styles: [":host{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}\n"] }); }
6251
+ ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "", isInline: true, styles: [":host{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}\n"] });
5902
6252
  }
5903
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentComponent, decorators: [{
6253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentComponent, decorators: [{
5904
6254
  type: Component,
5905
6255
  args: [{ selector: "f-line-alignment", template: "", exportAs: "fComponent", host: {
5906
6256
  'class': 'f-line-alignment f-component'
@@ -5917,14 +6267,16 @@ const F_LINE_ALIGNMENT_PROVIDERS = [
5917
6267
 
5918
6268
  const F_SELECTION_AREA = new InjectionToken('F_SELECTION_AREA');
5919
6269
  class FSelectionAreaBase {
5920
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5921
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FSelectionAreaBase, ngImport: i0 }); }
6270
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6271
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FSelectionAreaBase, ngImport: i0 });
5922
6272
  }
5923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaBase, decorators: [{
6273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaBase, decorators: [{
5924
6274
  type: Directive
5925
6275
  }] });
5926
6276
 
5927
6277
  class FSelectionAreaComponent extends FSelectionAreaBase {
6278
+ elementReference;
6279
+ fDraggableDataContext;
5928
6280
  get hostElement() {
5929
6281
  return this.elementReference.nativeElement;
5930
6282
  }
@@ -5950,12 +6302,12 @@ class FSelectionAreaComponent extends FSelectionAreaBase {
5950
6302
  style.width = object.width + 'px';
5951
6303
  style.height = object.height + 'px';
5952
6304
  }
5953
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaComponent, deps: [{ token: i0.ElementRef }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Component }); }
5954
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FSelectionAreaComponent, selector: "f-selection-area", host: { classAttribute: "f-selection-area f-component" }, providers: [
6305
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaComponent, deps: [{ token: i0.ElementRef }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Component });
6306
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FSelectionAreaComponent, selector: "f-selection-area", host: { classAttribute: "f-selection-area f-component" }, providers: [
5955
6307
  { provide: F_SELECTION_AREA, useExisting: FSelectionAreaComponent }
5956
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] }); }
6308
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] });
5957
6309
  }
5958
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaComponent, decorators: [{
6310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaComponent, decorators: [{
5959
6311
  type: Component,
5960
6312
  args: [{ selector: "f-selection-area", template: ``, host: {
5961
6313
  'class': 'f-selection-area f-component'
@@ -5974,18 +6326,21 @@ class FFlowBase {
5974
6326
 
5975
6327
  let uniqueId = 0;
5976
6328
  class FFlowComponent extends FFlowBase {
6329
+ elementReference;
6330
+ fComponentsStore;
6331
+ fMediator;
6332
+ subscription$ = new Subscription();
6333
+ fFlowId = `f-flow-${uniqueId++}`;
5977
6334
  get hostElement() {
5978
6335
  return this.elementReference.nativeElement;
5979
6336
  }
6337
+ fLoaded = new EventEmitter();
6338
+ isLoaded = false;
5980
6339
  constructor(elementReference, fComponentsStore, fMediator) {
5981
6340
  super();
5982
6341
  this.elementReference = elementReference;
5983
6342
  this.fComponentsStore = fComponentsStore;
5984
6343
  this.fMediator = fMediator;
5985
- this.subscription$ = new Subscription();
5986
- this.fFlowId = `f-flow-${uniqueId++}`;
5987
- this.fLoaded = new EventEmitter();
5988
- this.isLoaded = false;
5989
6344
  }
5990
6345
  ngOnInit() {
5991
6346
  this.fComponentsStore.fFlow = this;
@@ -6009,7 +6364,7 @@ class FFlowComponent extends FFlowBase {
6009
6364
  this.isLoaded = false;
6010
6365
  }
6011
6366
  getNodesRect() {
6012
- return this.fMediator.send(new GetNodesRectRequest());
6367
+ return this.fMediator.send(new GetExternalNodesRectRequest());
6013
6368
  }
6014
6369
  getSelection() {
6015
6370
  return this.fMediator.send(new GetSelectionRequest());
@@ -6029,8 +6384,8 @@ class FFlowComponent extends FFlowBase {
6029
6384
  ngOnDestroy() {
6030
6385
  this.subscription$.unsubscribe();
6031
6386
  }
6032
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Component }); }
6033
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FFlowComponent, selector: "f-flow", inputs: { fFlowId: "fFlowId" }, outputs: { fLoaded: "fLoaded" }, host: { properties: { "attr.id": "fFlowId" }, classAttribute: "f-component f-flow" }, providers: [
6387
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowComponent, deps: [{ token: i0.ElementRef }, { token: FComponentsStore }, { token: FFlowMediator }], target: i0.ɵɵFactoryTarget.Component });
6388
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FFlowComponent, selector: "f-flow", inputs: { fFlowId: "fFlowId" }, outputs: { fLoaded: "fLoaded" }, host: { properties: { "attr.id": "fFlowId" }, classAttribute: "f-component f-flow" }, providers: [
6034
6389
  FFlowMediator,
6035
6390
  FComponentsStore,
6036
6391
  FDraggableDataContext,
@@ -6038,9 +6393,9 @@ class FFlowComponent extends FFlowBase {
6038
6393
  ...F_DRAGGABLE_PROVIDERS,
6039
6394
  ...COMMON_PROVIDERS,
6040
6395
  { provide: F_FLOW, useExisting: FFlowComponent },
6041
- ], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <ng-content select=\"[fDefinitions]\"></ng-content>\n\n <ng-content select=\"f-background\"></ng-content>\n\n <ng-content select=\"f-line-alignment\"></ng-content>\n\n <ng-content select=\"f-canvas\"></ng-content>\n\n <ng-content select=\"f-selection-area\"></ng-content>\n\n <ng-content select=\"f-mini-map\"></ng-content>\n</ng-container>\n", styles: [":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:all;-webkit-user-select:none;user-select:none;touch-action:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
6396
+ ], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <ng-content select=\"[fDefinitions]\"></ng-content>\n\n <ng-content select=\"f-background\"></ng-content>\n\n <ng-content select=\"f-line-alignment\"></ng-content>\n\n <ng-content select=\"f-canvas\"></ng-content>\n\n <ng-content select=\"f-selection-area\"></ng-content>\n\n <ng-content select=\"f-mini-map\"></ng-content>\n</ng-container>\n", styles: [":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:all;-webkit-user-select:none;user-select:none;touch-action:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6042
6397
  }
6043
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowComponent, decorators: [{
6398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowComponent, decorators: [{
6044
6399
  type: Component,
6045
6400
  args: [{ selector: 'f-flow', host: {
6046
6401
  '[attr.id]': 'fFlowId',
@@ -6065,11 +6420,11 @@ const F_FLOW_PROVIDERS = [
6065
6420
  ];
6066
6421
 
6067
6422
  class FFlowModule {
6068
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6069
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, declarations: [FBackgroundComponent, FRectPatternComponent, FCirclePatternComponent, FCanvasComponent, FZoomDirective, FConnectionTextComponent, FConnectionTextPathDirective, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionComponent, FConnectionCenterDirective, FConnectionForCreateComponent, FMarkerDirective, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FExternalItemDirective, FFlowComponent, FLineAlignmentComponent, FNodeDirective, FDragHandleDirective, FResizeHandleDirective, FSelectionAreaComponent, FDraggableDirective], imports: [CommonModule], exports: [FBackgroundComponent, FRectPatternComponent, FCirclePatternComponent, FCanvasComponent, FZoomDirective, FConnectionTextComponent, FConnectionTextPathDirective, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionComponent, FConnectionCenterDirective, FConnectionForCreateComponent, FMarkerDirective, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FExternalItemDirective, FFlowComponent, FLineAlignmentComponent, FNodeDirective, FDragHandleDirective, FResizeHandleDirective, FSelectionAreaComponent, FDraggableDirective] }); }
6070
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, imports: [CommonModule] }); }
6423
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6424
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, declarations: [FBackgroundComponent, FRectPatternComponent, FCirclePatternComponent, FCanvasComponent, FZoomDirective, FConnectionTextComponent, FConnectionTextPathDirective, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionComponent, FConnectionCenterDirective, FConnectionForCreateComponent, FMarkerDirective, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FExternalItemDirective, FFlowComponent, FLineAlignmentComponent, FNodeDirective, FDragHandleDirective, FResizeHandleDirective, FSelectionAreaComponent, FDraggableDirective], imports: [CommonModule], exports: [FBackgroundComponent, FRectPatternComponent, FCirclePatternComponent, FCanvasComponent, FZoomDirective, FConnectionTextComponent, FConnectionTextPathDirective, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionComponent, FConnectionCenterDirective, FConnectionForCreateComponent, FMarkerDirective, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FExternalItemDirective, FFlowComponent, FLineAlignmentComponent, FNodeDirective, FDragHandleDirective, FResizeHandleDirective, FSelectionAreaComponent, FDraggableDirective] });
6425
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, imports: [CommonModule] });
6071
6426
  }
6072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, decorators: [{
6427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, decorators: [{
6073
6428
  type: NgModule,
6074
6429
  args: [{
6075
6430
  declarations: [
@@ -6106,5 +6461,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
6106
6461
  * Generated bundle index. Do not edit.
6107
6462
  */
6108
6463
 
6109
- export { CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_CONNECTION_DRAG_HANDLER_PROVIDERS, CREATE_CONNECTION_FINALIZE_PROVIDERS, CREATE_CONNECTION_FROM_OUTLET_PREPARATION_PROVIDERS, CREATE_CONNECTION_FROM_OUTPUT_PREPARATION_PROVIDERS, CREATE_CONNECTION_PREPARATION_PROVIDERS, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, ClearSelectionExecution, ClearSelectionRequest, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFConnectorShape, EFDraggableType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EXTERNAL_ITEM_PROVIDERS, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FConnectorShapeExtensions, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FExecutionRegister, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowMediator, FFlowModule, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeHandleDirective, FResizeObserver, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FStraightPathBuilder, FValidatorRegister, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_PROVIDERS, F_DRAGGABLE, F_DRAGGABLE_PROVIDERS, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_NODE, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA, F_SELECTION_AREA_PROVIDERS, F_ZOOM, GET_CAN_BE_CONNECTED_OUTPUT_BY_OUTLET_PROVIDERS, GET_INPUT_UNDER_POINTER_PROVIDERS, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetConnectionHandler, GetConnectionLineExecution, GetConnectionLineRequest, GetElementRectInFlowExecution, GetElementRectInFlowRequest, GetIncomingConnectionsHandler, GetInputRectInFlowExecution, GetInputRectInFlowRequest, GetInputRectInFlowResponse, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodesRectExecution, GetNodesRectRequest, GetOutgoingConnectionsHandler, GetOutputRectInFlowExecution, GetOutputRectInFlowRequest, GetOutputRectInFlowResponse, GetPositionInFlowExecution, GetPositionInFlowRequest, GetSelectionExecution, GetSelectionRequest, IntersectionFinder, IsConnectionUnderNodeExecution, LineElement, LineService, MOUSE_EVENT_IGNORE_TIME, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, Pipeline, REASSIGN_CONNECTION_FINALIZE_PROVIDERS, REASSIGN_CONNECTION_PREPARATION_PROVIDERS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawConnectionsExecution, RedrawConnectionsRequest, RoundedRect, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SELECTION_AREA_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, UpdateItemLayerExecution, UpdateItemLayerRequest, castToConnectableSide, castToEnum, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, getValueFromDataAttr, isElementWithClass, isExternalItem, isNode, isNodeInput, isNodeOutlet, isNodeOutput, mixinChangeConnectionSelection, mixinChangeConnectionVisibility };
6464
+ export { CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_CONNECTION_DRAG_HANDLER_PROVIDERS, CREATE_CONNECTION_FINALIZE_PROVIDERS, CREATE_CONNECTION_FROM_OUTLET_PREPARATION_PROVIDERS, CREATE_CONNECTION_FROM_OUTPUT_PREPARATION_PROVIDERS, CREATE_CONNECTION_PREPARATION_PROVIDERS, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, ClearSelectionExecution, ClearSelectionRequest, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFConnectorShape, EFDraggableType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EXTERNAL_ITEM_PROVIDERS, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FConnectorShapeExtensions, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FExecutionRegister, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowMediator, FFlowModule, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeHandleDirective, FResizeObserver, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FStraightPathBuilder, FValidatorRegister, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_PROVIDERS, F_DRAGGABLE, F_DRAGGABLE_PROVIDERS, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_NODE, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA, F_SELECTION_AREA_PROVIDERS, F_ZOOM, GET_CAN_BE_CONNECTED_OUTPUT_BY_OUTLET_PROVIDERS, GET_INPUT_UNDER_POINTER_PROVIDERS, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetConnectionHandler, GetConnectionLineExecution, GetConnectionLineRequest, GetElementRectInFlowExecution, GetElementRectInFlowRequest, GetExternalNodesRectExecution, GetExternalNodesRectRequest, GetIncomingConnectionsHandler, GetInputRectInFlowExecution, GetInputRectInFlowRequest, GetInputRectInFlowResponse, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodesRectExecution, GetNodesRectRequest, GetOutgoingConnectionsHandler, GetOutputRectInFlowExecution, GetOutputRectInFlowRequest, GetOutputRectInFlowResponse, GetPositionInFlowExecution, GetPositionInFlowRequest, GetSelectionExecution, GetSelectionRequest, IntersectionFinder, IsConnectionUnderNodeExecution, LineElement, LineService, MOUSE_EVENT_IGNORE_TIME, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, Pipeline, REASSIGN_CONNECTION_FINALIZE_PROVIDERS, REASSIGN_CONNECTION_PREPARATION_PROVIDERS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawConnectionsExecution, RedrawConnectionsRequest, RoundedRect, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SELECTION_AREA_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, UpdateItemLayerExecution, UpdateItemLayerRequest, castToEnum, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, getValueFromDataAttr, isElementWithClass, isExternalItem, isNode, isNodeInput, isNodeOutlet, isNodeOutput, mixinChangeConnectionSelection, mixinChangeConnectionVisibility };
6110
6465
  //# sourceMappingURL=foblex-flow.mjs.map