@foblex/flow 12.3.5 → 12.3.7

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 (171) hide show
  1. package/README.md +1 -1
  2. package/domain/cast-to-enum.d.ts +1 -1
  3. package/esm2022/domain/cast-to-enum.mjs +7 -26
  4. package/esm2022/domain/clear-selection/clear-selection.execution.mjs +5 -4
  5. package/esm2022/domain/create-connection-markers/create-connection-markers-request.mjs +2 -1
  6. package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +4 -4
  7. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +7 -4
  8. package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +9 -11
  9. package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +6 -1
  10. package/esm2022/domain/get-connection.handler.mjs +5 -4
  11. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +2 -1
  12. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +5 -4
  13. package/esm2022/domain/get-incoming-connections.handler.mjs +5 -4
  14. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow-request.mjs +2 -1
  15. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.mjs +3 -1
  16. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.mjs +6 -4
  17. package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +5 -4
  18. package/esm2022/domain/get-outgoing-connections.handler.mjs +5 -4
  19. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow-request.mjs +2 -1
  20. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.mjs +3 -1
  21. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.mjs +6 -4
  22. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +2 -1
  23. package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +5 -4
  24. package/esm2022/domain/get-selection/get-selection.execution.mjs +5 -4
  25. package/esm2022/domain/intersections/rounded-rect/rounded-rect.mjs +11 -3
  26. package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +9 -4
  27. package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +6 -4
  28. package/esm2022/domain/select/select.execution.mjs +6 -4
  29. package/esm2022/domain/select/select.request.mjs +3 -1
  30. package/esm2022/domain/select-all/select-all.execution.mjs +6 -4
  31. package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +7 -4
  32. package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.request.mjs +2 -1
  33. package/esm2022/domain/update-item-layer/update-item-layer.execution.mjs +5 -6
  34. package/esm2022/domain/update-item-layer/update-item-layer.request.mjs +3 -1
  35. package/esm2022/f-backgroud/f-background-base.mjs +4 -4
  36. package/esm2022/f-backgroud/f-background.component.mjs +7 -4
  37. package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +16 -13
  38. package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +19 -15
  39. package/esm2022/f-canvas/domain/f-canvas-change.event.mjs +3 -1
  40. package/esm2022/f-canvas/f-canvas-base.mjs +5 -4
  41. package/esm2022/f-canvas/f-canvas.component.mjs +10 -5
  42. package/esm2022/f-canvas/f-zoom/f-zoom-base.mjs +4 -3
  43. package/esm2022/f-canvas/f-zoom/f-zoom.directive.mjs +8 -8
  44. package/esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.mjs +3 -1
  45. package/esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.mjs +2 -1
  46. package/esm2022/f-connection/common/f-connection-base.mjs +9 -7
  47. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +8 -6
  48. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +7 -4
  49. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +6 -5
  50. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +6 -4
  51. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +6 -4
  52. package/esm2022/f-connection/common/f-path/get-path-marker-id.mjs +6 -6
  53. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +6 -4
  54. package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +3 -2
  55. package/esm2022/f-connection/f-connection/f-connection.component.mjs +27 -16
  56. package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +9 -9
  57. package/esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs +4 -4
  58. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +25 -14
  59. package/esm2022/f-connection/f-marker/f-marker-base.mjs +4 -4
  60. package/esm2022/f-connection/f-marker/f-marker.directive.mjs +13 -11
  61. package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.mjs +3 -1
  62. package/esm2022/f-connectors/f-connector-base.mjs +5 -7
  63. package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +5 -8
  64. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +14 -11
  65. package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +6 -9
  66. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +12 -9
  67. package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +5 -8
  68. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +15 -12
  69. package/esm2022/f-connectors/index.mjs +1 -2
  70. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +5 -4
  71. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs +2 -1
  72. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +5 -4
  73. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +6 -4
  74. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs +2 -1
  75. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +6 -4
  76. package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +4 -3
  77. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +7 -4
  78. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs +2 -1
  79. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +5 -4
  80. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +7 -4
  81. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs +4 -1
  82. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +6 -4
  83. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs +2 -1
  84. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +6 -4
  85. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs +2 -1
  86. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +5 -4
  87. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +6 -4
  88. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs +2 -1
  89. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +6 -4
  90. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +8 -5
  91. package/esm2022/f-draggable/connections/create-connection/f-create-connection.event.mjs +4 -1
  92. 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
  93. 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
  94. 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
  95. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +5 -4
  96. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs +3 -1
  97. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +5 -4
  98. package/esm2022/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs +5 -1
  99. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +7 -4
  100. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs +2 -1
  101. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +5 -4
  102. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +7 -4
  103. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs +2 -1
  104. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +6 -4
  105. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +8 -6
  106. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.execution.mjs +7 -4
  107. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.request.mjs +2 -1
  108. package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.validator.mjs +5 -4
  109. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.mjs +7 -4
  110. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.request.mjs +2 -1
  111. package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.validator.mjs +5 -4
  112. package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +6 -4
  113. package/esm2022/f-draggable/external-item/f-create-node.event.mjs +3 -1
  114. package/esm2022/f-draggable/f-draggable-base.mjs +82 -80
  115. package/esm2022/f-draggable/f-draggable-data-context.mjs +11 -11
  116. package/esm2022/f-draggable/f-draggable.directive.mjs +18 -13
  117. package/esm2022/f-draggable/f-selection-change-event.mjs +3 -1
  118. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +8 -6
  119. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +8 -6
  120. package/esm2022/f-draggable/node/connection.drag-handler.mjs +7 -5
  121. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +9 -4
  122. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +7 -4
  123. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs +2 -1
  124. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +5 -4
  125. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +7 -4
  126. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs +2 -1
  127. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +6 -4
  128. package/esm2022/f-draggable/node/node.drag-handler.mjs +5 -3
  129. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +5 -4
  130. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.mjs +2 -1
  131. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +5 -4
  132. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +7 -4
  133. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.mjs +2 -1
  134. package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +6 -4
  135. package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +7 -2
  136. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.execution.mjs +5 -4
  137. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.request.mjs +2 -1
  138. package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.validator.mjs +5 -4
  139. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.execution.mjs +7 -4
  140. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.mjs +2 -1
  141. package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.validator.mjs +5 -4
  142. package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +7 -4
  143. package/esm2022/f-draggable/single-select/single-select.execution.mjs +8 -4
  144. package/esm2022/f-draggable/single-select/single-select.request.mjs +2 -1
  145. package/esm2022/f-draggable/single-select/single-select.validator.mjs +5 -4
  146. package/esm2022/f-external-item/f-external-item-base.mjs +4 -4
  147. package/esm2022/f-external-item/f-external-item.directive.mjs +10 -7
  148. package/esm2022/f-external-item/f-external-item.service.mjs +5 -7
  149. package/esm2022/f-flow/f-flow.component.mjs +12 -9
  150. package/esm2022/f-flow.module.mjs +5 -5
  151. package/esm2022/f-line-alignment/domain/line-element.mjs +3 -2
  152. package/esm2022/f-line-alignment/domain/line-service.mjs +4 -1
  153. package/esm2022/f-line-alignment/domain/nearest-coordinate.mjs +4 -1
  154. package/esm2022/f-line-alignment/f-line-alignment-base.mjs +4 -4
  155. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +14 -9
  156. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +6 -5
  157. package/esm2022/f-node/f-node-base.mjs +4 -5
  158. package/esm2022/f-node/f-node.directive.mjs +16 -13
  159. package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +7 -6
  160. package/esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs +3 -2
  161. package/esm2022/f-selection-area/f-selection-area-base.mjs +4 -4
  162. package/esm2022/f-selection-area/f-selection-area.component.mjs +7 -5
  163. package/esm2022/f-storage/f-components-store.mjs +16 -13
  164. package/esm2022/infrastructure/f-mediator/f-flow-mediator.mjs +6 -5
  165. package/esm2022/infrastructure/pipeline/pipeline.mjs +3 -1
  166. package/f-connectors/index.d.ts +0 -1
  167. package/fesm2022/foblex-flow.mjs +894 -637
  168. package/fesm2022/foblex-flow.mjs.map +1 -1
  169. package/package.json +6 -1
  170. package/esm2022/f-connectors/cast-to-connectable-side.mjs +0 -9
  171. 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));
@@ -1297,6 +1338,9 @@ class CreateConnectionDragHandler {
1297
1338
  }
1298
1339
 
1299
1340
  let CreateConnectionDragHandlerExecution = class CreateConnectionDragHandlerExecution {
1341
+ fComponentsStore;
1342
+ fDraggableDataContext;
1343
+ fMediator;
1300
1344
  get transform() {
1301
1345
  return this.fComponentsStore.fCanvas.transform;
1302
1346
  }
@@ -1314,13 +1358,13 @@ let CreateConnectionDragHandlerExecution = class CreateConnectionDragHandlerExec
1314
1358
  new CreateConnectionDragHandler(this.fMediator, this.fComponentsStore.fTempConnection, request.connectorCenter)
1315
1359
  ];
1316
1360
  }
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 }); }
1361
+ 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 });
1362
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionDragHandlerExecution });
1319
1363
  };
1320
1364
  CreateConnectionDragHandlerExecution = __decorate([
1321
1365
  FExecutionRegister(CreateConnectionDragHandlerRequest)
1322
1366
  ], CreateConnectionDragHandlerExecution);
1323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionDragHandlerExecution, decorators: [{
1367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionDragHandlerExecution, decorators: [{
1324
1368
  type: Injectable
1325
1369
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
1326
1370
 
@@ -1329,12 +1373,15 @@ const CREATE_CONNECTION_DRAG_HANDLER_PROVIDERS = [
1329
1373
  ];
1330
1374
 
1331
1375
  class CreateConnectionFromOutletPreparationRequest {
1376
+ event;
1332
1377
  constructor(event) {
1333
1378
  this.event = event;
1334
1379
  }
1335
1380
  }
1336
1381
 
1337
1382
  let CreateConnectionFromOutletPreparationExecution = class CreateConnectionFromOutletPreparationExecution {
1383
+ fComponentsStore;
1384
+ fMediator;
1338
1385
  get flowHost() {
1339
1386
  return this.fComponentsStore.fFlow.hostElement;
1340
1387
  }
@@ -1371,13 +1418,13 @@ let CreateConnectionFromOutletPreparationExecution = class CreateConnectionFromO
1371
1418
  createDragHandler(position, output, outletCenter) {
1372
1419
  this.fMediator.send(new CreateConnectionDragHandlerRequest(position, output, outletCenter));
1373
1420
  }
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 }); }
1421
+ 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 });
1422
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution });
1376
1423
  };
1377
1424
  CreateConnectionFromOutletPreparationExecution = __decorate([
1378
1425
  FExecutionRegister(CreateConnectionFromOutletPreparationRequest)
1379
1426
  ], CreateConnectionFromOutletPreparationExecution);
1380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, decorators: [{
1427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutletPreparationExecution, decorators: [{
1381
1428
  type: Injectable
1382
1429
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1383
1430
 
@@ -1386,12 +1433,15 @@ const CREATE_CONNECTION_FROM_OUTLET_PREPARATION_PROVIDERS = [
1386
1433
  ];
1387
1434
 
1388
1435
  class CreateConnectionFromOutputPreparationRequest {
1436
+ event;
1389
1437
  constructor(event) {
1390
1438
  this.event = event;
1391
1439
  }
1392
1440
  }
1393
1441
 
1394
1442
  let CreateConnectionFromOutputPreparationExecution = class CreateConnectionFromOutputPreparationExecution {
1443
+ fComponentsStore;
1444
+ fMediator;
1395
1445
  get flowHost() {
1396
1446
  return this.fComponentsStore.fFlow.hostElement;
1397
1447
  }
@@ -1416,17 +1466,18 @@ let CreateConnectionFromOutputPreparationExecution = class CreateConnectionFromO
1416
1466
  createDragHandler(position, output, outletCenter) {
1417
1467
  this.fMediator.send(new CreateConnectionDragHandlerRequest(position, output, outletCenter));
1418
1468
  }
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 }); }
1469
+ 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 });
1470
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution });
1421
1471
  };
1422
1472
  CreateConnectionFromOutputPreparationExecution = __decorate([
1423
1473
  FExecutionRegister(CreateConnectionFromOutputPreparationRequest)
1424
1474
  ], CreateConnectionFromOutputPreparationExecution);
1425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, decorators: [{
1475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationExecution, decorators: [{
1426
1476
  type: Injectable
1427
1477
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1428
1478
 
1429
1479
  let CreateConnectionFromOutputPreparationValidator = class CreateConnectionFromOutputPreparationValidator {
1480
+ fComponentsStore;
1430
1481
  constructor(fComponentsStore) {
1431
1482
  this.fComponentsStore = fComponentsStore;
1432
1483
  }
@@ -1442,13 +1493,13 @@ let CreateConnectionFromOutputPreparationValidator = class CreateConnectionFromO
1442
1493
  getOutlets(node) {
1443
1494
  return this.fComponentsStore.fOutlets.filter((x) => node.isContains(x.hostElement));
1444
1495
  }
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 }); }
1496
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
1497
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator });
1447
1498
  };
1448
1499
  CreateConnectionFromOutputPreparationValidator = __decorate([
1449
1500
  FValidatorRegister(CreateConnectionFromOutputPreparationRequest)
1450
1501
  ], CreateConnectionFromOutputPreparationValidator);
1451
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, decorators: [{
1502
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionFromOutputPreparationValidator, decorators: [{
1452
1503
  type: Injectable
1453
1504
  }], ctorParameters: () => [{ type: FComponentsStore }] });
1454
1505
 
@@ -1458,12 +1509,15 @@ const CREATE_CONNECTION_FROM_OUTPUT_PREPARATION_PROVIDERS = [
1458
1509
  ];
1459
1510
 
1460
1511
  class CreateConnectionPreparationRequest {
1512
+ event;
1461
1513
  constructor(event) {
1462
1514
  this.event = event;
1463
1515
  }
1464
1516
  }
1465
1517
 
1466
1518
  let CreateConnectionPreparationExecution = class CreateConnectionPreparationExecution {
1519
+ fComponentsStore;
1520
+ fMediator;
1467
1521
  constructor(fComponentsStore, fMediator) {
1468
1522
  this.fComponentsStore = fComponentsStore;
1469
1523
  this.fMediator = fMediator;
@@ -1485,17 +1539,19 @@ let CreateConnectionPreparationExecution = class CreateConnectionPreparationExec
1485
1539
  getOutlets(node) {
1486
1540
  return this.fComponentsStore.fOutlets.filter((x) => node.isContains(x.hostElement));
1487
1541
  }
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 }); }
1542
+ 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 });
1543
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationExecution });
1490
1544
  };
1491
1545
  CreateConnectionPreparationExecution = __decorate([
1492
1546
  FExecutionRegister(CreateConnectionPreparationRequest)
1493
1547
  ], CreateConnectionPreparationExecution);
1494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationExecution, decorators: [{
1548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationExecution, decorators: [{
1495
1549
  type: Injectable
1496
1550
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
1497
1551
 
1498
1552
  let CreateConnectionPreparationValidator = class CreateConnectionPreparationValidator {
1553
+ fComponentsStore;
1554
+ fDraggableDataContext;
1499
1555
  constructor(fComponentsStore, fDraggableDataContext) {
1500
1556
  this.fComponentsStore = fComponentsStore;
1501
1557
  this.fDraggableDataContext = fDraggableDataContext;
@@ -1509,13 +1565,13 @@ let CreateConnectionPreparationValidator = class CreateConnectionPreparationVali
1509
1565
  isValidConditions() {
1510
1566
  return !this.fDraggableDataContext.draggableItems.length && !!this.fComponentsStore.fTempConnection;
1511
1567
  }
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 }); }
1568
+ 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 });
1569
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationValidator });
1514
1570
  };
1515
1571
  CreateConnectionPreparationValidator = __decorate([
1516
1572
  FValidatorRegister(CreateConnectionPreparationRequest)
1517
1573
  ], CreateConnectionPreparationValidator);
1518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
1574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
1519
1575
  type: Injectable
1520
1576
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
1521
1577
 
@@ -1528,12 +1584,17 @@ const CREATE_CONNECTION_PREPARATION_PROVIDERS = [
1528
1584
  ];
1529
1585
 
1530
1586
  class ReassignConnectionFinalizeRequest {
1587
+ event;
1531
1588
  constructor(event) {
1532
1589
  this.event = event;
1533
1590
  }
1534
1591
  }
1535
1592
 
1536
1593
  class FReassignConnectionEvent {
1594
+ connectionId;
1595
+ fOutputId;
1596
+ oldFInputId;
1597
+ newFInputId;
1537
1598
  constructor(connectionId, fOutputId, oldFInputId, newFInputId) {
1538
1599
  this.connectionId = connectionId;
1539
1600
  this.fOutputId = fOutputId;
@@ -1543,6 +1604,9 @@ class FReassignConnectionEvent {
1543
1604
  }
1544
1605
 
1545
1606
  let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecution {
1607
+ fComponentsStore;
1608
+ fDraggableDataContext;
1609
+ fMediator;
1546
1610
  get fDraggable() {
1547
1611
  return this.fComponentsStore.fDraggable;
1548
1612
  }
@@ -1571,30 +1635,31 @@ let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecut
1571
1635
  isReassignToDifferentInput(inputsUnderPointer) {
1572
1636
  return this.dragHandler.connection.fInputId !== inputsUnderPointer.id;
1573
1637
  }
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 }); }
1638
+ 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 });
1639
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeExecution });
1576
1640
  };
1577
1641
  ReassignConnectionFinalizeExecution = __decorate([
1578
1642
  FExecutionRegister(ReassignConnectionFinalizeRequest)
1579
1643
  ], ReassignConnectionFinalizeExecution);
1580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
1644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
1581
1645
  type: Injectable
1582
1646
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
1583
1647
 
1584
1648
  let ReassignConnectionFinalizeValidator = class ReassignConnectionFinalizeValidator {
1649
+ fDraggableDataContext;
1585
1650
  constructor(fDraggableDataContext) {
1586
1651
  this.fDraggableDataContext = fDraggableDataContext;
1587
1652
  }
1588
1653
  handle(request) {
1589
1654
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.REASSIGN_CONNECTION);
1590
1655
  }
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 }); }
1656
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
1657
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator });
1593
1658
  };
1594
1659
  ReassignConnectionFinalizeValidator = __decorate([
1595
1660
  FValidatorRegister(ReassignConnectionFinalizeRequest)
1596
1661
  ], ReassignConnectionFinalizeValidator);
1597
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionFinalizeValidator, decorators: [{
1662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionFinalizeValidator, decorators: [{
1598
1663
  type: Injectable
1599
1664
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
1600
1665
 
@@ -1604,6 +1669,7 @@ const REASSIGN_CONNECTION_FINALIZE_PROVIDERS = [
1604
1669
  ];
1605
1670
 
1606
1671
  class ReassignConnectionPreparationRequest {
1672
+ event;
1607
1673
  constructor(event) {
1608
1674
  this.event = event;
1609
1675
  }
@@ -1621,6 +1687,8 @@ class CalculateCenterBetweenPointsHandler {
1621
1687
  }
1622
1688
 
1623
1689
  class CalculateCenterBetweenPointsRequest {
1690
+ source;
1691
+ target;
1624
1692
  constructor(source, target) {
1625
1693
  this.source = source;
1626
1694
  this.target = target;
@@ -1663,6 +1731,7 @@ class CalculateConnectionCenterHandler {
1663
1731
  }
1664
1732
 
1665
1733
  class CalculateConnectionCenterRequest {
1734
+ points;
1666
1735
  constructor(points) {
1667
1736
  this.points = points;
1668
1737
  }
@@ -1873,17 +1942,19 @@ const F_CONNECTION_IDENTIFIERS = {
1873
1942
  const F_CONNECTION = new InjectionToken('F_CONNECTION');
1874
1943
 
1875
1944
  class FConnectionTextPathDirective {
1945
+ elementReference;
1946
+ base;
1876
1947
  get linkToConnection() {
1877
1948
  return F_CONNECTION_IDENTIFIERS.linkToConnection(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
1878
1949
  }
1879
1950
  get hostElement() {
1880
1951
  return this.elementReference.nativeElement;
1881
1952
  }
1953
+ symbolWidth = 8;
1954
+ fontSize = '12px';
1882
1955
  constructor(elementReference, base) {
1883
1956
  this.elementReference = elementReference;
1884
1957
  this.base = base;
1885
- this.symbolWidth = 8;
1886
- this.fontSize = '12px';
1887
1958
  }
1888
1959
  ngOnInit() {
1889
1960
  this.hostElement.setAttribute('startOffset', '50%');
@@ -1914,10 +1985,10 @@ class FConnectionTextPathDirective {
1914
1985
  const symbolWidth = metrics.width / text.length;
1915
1986
  return symbolWidth;
1916
1987
  }
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 }); }
1988
+ 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 });
1989
+ 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
1990
  }
1920
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextPathDirective, decorators: [{
1991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextPathDirective, decorators: [{
1921
1992
  type: Directive,
1922
1993
  args: [{
1923
1994
  selector: 'textPath[f-connection-text-path]',
@@ -1933,6 +2004,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
1933
2004
  const CONNECTION_TEXT = new InjectionToken('CONNECTION_TEXT');
1934
2005
 
1935
2006
  class FConnectionTextComponent {
2007
+ elementReference;
2008
+ base;
1936
2009
  get textId() {
1937
2010
  return F_CONNECTION_IDENTIFIERS.textId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
1938
2011
  }
@@ -1942,6 +2015,7 @@ class FConnectionTextComponent {
1942
2015
  get text() {
1943
2016
  return this.base.fText || '';
1944
2017
  }
2018
+ textPathDirective;
1945
2019
  constructor(elementReference, base) {
1946
2020
  this.elementReference = elementReference;
1947
2021
  this.base = base;
@@ -1973,10 +2047,10 @@ class FConnectionTextComponent {
1973
2047
  const vectorLength = PointExtensions.hypotenuse(line.point1, line.point2);
1974
2048
  return vectorLength / 2 - ((name || '').length * symbolWidth) / 2;
1975
2049
  }
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 }); }
2050
+ 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 });
2051
+ 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
2052
  }
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionTextComponent, decorators: [{
2053
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionTextComponent, decorators: [{
1980
2054
  type: Component,
1981
2055
  args: [{ selector: "text[f-connection-text]", changeDetection: ChangeDetectionStrategy.OnPush, host: {
1982
2056
  class: "f-component f-connection-text",
@@ -1992,21 +2066,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
1992
2066
 
1993
2067
  const F_CONNECTION_DRAG_HANDLE_CLASS = 'f-connection-drag-handle';
1994
2068
  class FConnectionDragHandleComponent {
2069
+ elementReference;
2070
+ class = F_CONNECTION_DRAG_HANDLE_CLASS;
1995
2071
  get hostElement() {
1996
2072
  return this.elementReference.nativeElement;
1997
2073
  }
1998
2074
  constructor(elementReference) {
1999
2075
  this.elementReference = elementReference;
2000
- this.class = F_CONNECTION_DRAG_HANDLE_CLASS;
2001
2076
  }
2002
2077
  redraw(point) {
2003
2078
  this.hostElement.setAttribute('cx', point.x.toString());
2004
2079
  this.hostElement.setAttribute('cy', point.y.toString());
2005
2080
  }
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 }); }
2081
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionDragHandleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2082
+ 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
2083
  }
2009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionDragHandleComponent, decorators: [{
2084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionDragHandleComponent, decorators: [{
2010
2085
  type: Component,
2011
2086
  args: [{
2012
2087
  selector: "circle[f-connection-drag-handle]",
@@ -2021,6 +2096,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2021
2096
  const CONNECTION_GRADIENT = new InjectionToken('CONNECTION_GRADIENT');
2022
2097
 
2023
2098
  class FConnectionGradientComponent {
2099
+ elementReference;
2100
+ base;
2024
2101
  get gradientId() {
2025
2102
  return F_CONNECTION_IDENTIFIERS.gradientId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
2026
2103
  }
@@ -2063,10 +2140,10 @@ class FConnectionGradientComponent {
2063
2140
  this.hostElement.setAttribute('y2', to.y.toString());
2064
2141
  this.updateGradient();
2065
2142
  }
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 }); }
2143
+ 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 });
2144
+ 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
2145
  }
2069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionGradientComponent, decorators: [{
2146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionGradientComponent, decorators: [{
2070
2147
  type: Component,
2071
2148
  args: [{ selector: "linearGradient[fConnectionGradient]", changeDetection: ChangeDetectionStrategy.OnPush, host: {
2072
2149
  class: "f-component f-connection-gradient",
@@ -2079,28 +2156,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2079
2156
 
2080
2157
  const CONNECTION_PATH = new InjectionToken('CONNECTION_PATH');
2081
2158
 
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
-
2159
+ //import { EFMarkerType } from '../../f-marker';
2090
2160
  function getMarkerStartId(fConnectionId) {
2091
- return sanitizeElementId(`${EFMarkerType.START}-${fConnectionId}`);
2161
+ return sanitizeElementId(`f-connection-marker-start-${fConnectionId}`);
2092
2162
  }
2093
2163
  function getMarkerEndId(fConnectionId) {
2094
- return sanitizeElementId(`${EFMarkerType.END}-${fConnectionId}`);
2164
+ return sanitizeElementId(`f-connection-marker-end-${fConnectionId}`);
2095
2165
  }
2096
2166
  function getMarkerSelectedStartId(fConnectionId) {
2097
- return sanitizeElementId(`${EFMarkerType.SELECTED_START}-${fConnectionId}`);
2167
+ return sanitizeElementId(`'f-connection-selected-marker-start-${fConnectionId}`);
2098
2168
  }
2099
2169
  function getMarkerSelectedEndId(fConnectionId) {
2100
- return sanitizeElementId(`${EFMarkerType.SELECTED_END}-${fConnectionId}`);
2170
+ return sanitizeElementId(`f-connection-selected-marker-end-${fConnectionId}`);
2101
2171
  }
2102
2172
 
2103
2173
  class FConnectionPathComponent {
2174
+ elementReference;
2175
+ base;
2104
2176
  get fPathId() {
2105
2177
  return this.base.fConnectionId;
2106
2178
  }
@@ -2131,10 +2203,10 @@ class FConnectionPathComponent {
2131
2203
  this.hostElement.setAttribute('marker-start', `url(#${getMarkerStartId(this.base.fConnectionId)})`);
2132
2204
  this.hostElement.setAttribute('marker-end', `url(#${getMarkerEndId(this.base.fConnectionId)})`);
2133
2205
  }
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 }); }
2206
+ 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 });
2207
+ 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
2208
  }
2137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionPathComponent, decorators: [{
2209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionPathComponent, decorators: [{
2138
2210
  type: Component,
2139
2211
  args: [{
2140
2212
  selector: "path[f-connection-path]",
@@ -2154,6 +2226,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2154
2226
  }] }] });
2155
2227
 
2156
2228
  class FConnectionSelectionComponent {
2229
+ elementReference;
2230
+ base;
2157
2231
  get connectionForSelectionId() {
2158
2232
  return F_CONNECTION_IDENTIFIERS.connectionForSelectionId(this.base.fConnectionId + this.base.fOutputId + this.base.fInputId);
2159
2233
  }
@@ -2167,10 +2241,10 @@ class FConnectionSelectionComponent {
2167
2241
  setPath(path) {
2168
2242
  this.hostElement.setAttribute("d", `${path}`);
2169
2243
  }
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 }); }
2244
+ 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 });
2245
+ 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
2246
  }
2173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionSelectionComponent, decorators: [{
2247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionSelectionComponent, decorators: [{
2174
2248
  type: Component,
2175
2249
  args: [{
2176
2250
  selector: "path[fConnectionSelection]",
@@ -2189,6 +2263,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2189
2263
  const F_SELECTED_CLASS = 'f-selected';
2190
2264
  function mixinChangeConnectionSelection(base) {
2191
2265
  return class extends base {
2266
+ fSelectionDisabled = false;
2267
+ fPath;
2192
2268
  deselect() {
2193
2269
  this.fPath?.deselect();
2194
2270
  this.hostElement.classList.remove(F_SELECTED_CLASS);
@@ -2204,7 +2280,6 @@ function mixinChangeConnectionSelection(base) {
2204
2280
  }
2205
2281
  constructor(...args) {
2206
2282
  super(...args);
2207
- this.fSelectionDisabled = false;
2208
2283
  }
2209
2284
  };
2210
2285
  }
@@ -2226,12 +2301,12 @@ function mixinChangeConnectionVisibility(base) {
2226
2301
  const F_CONNECTION_BUILDERS = new InjectionToken('F_CONNECTION_BUILDERS');
2227
2302
 
2228
2303
  class FConnectionFactory {
2304
+ builders = {
2305
+ [EFConnectionType.STRAIGHT]: new FStraightPathBuilder(),
2306
+ [EFConnectionType.BEZIER]: new FBezierPathBuilder(),
2307
+ [EFConnectionType.SEGMENT]: new FSegmentPathBuilder(),
2308
+ };
2229
2309
  constructor(builders) {
2230
- this.builders = {
2231
- [EFConnectionType.STRAIGHT]: new FStraightPathBuilder(),
2232
- [EFConnectionType.BEZIER]: new FBezierPathBuilder(),
2233
- [EFConnectionType.SEGMENT]: new FSegmentPathBuilder(),
2234
- };
2235
2310
  if (builders) {
2236
2311
  this.builders = { ...this.builders, ...builders };
2237
2312
  }
@@ -2243,10 +2318,10 @@ class FConnectionFactory {
2243
2318
  }
2244
2319
  return builder.handle(request.payload);
2245
2320
  }
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 }); }
2321
+ 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 });
2322
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionFactory });
2248
2323
  }
2249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionFactory, decorators: [{
2324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionFactory, decorators: [{
2250
2325
  type: Injectable
2251
2326
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2252
2327
  type: Optional
@@ -2256,17 +2331,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2256
2331
  }] }] });
2257
2332
 
2258
2333
  const MIXIN_BASE$1 = mixinChangeConnectionSelection(mixinChangeConnectionVisibility(class {
2334
+ hostElement;
2259
2335
  constructor(hostElement) {
2260
2336
  this.hostElement = hostElement;
2261
2337
  }
2262
2338
  }));
2263
2339
  class FConnectionBase extends MIXIN_BASE$1 {
2340
+ cFactory;
2341
+ path = '';
2342
+ line = LineExtensions.initialize();
2343
+ stateChanges = new Subject();
2264
2344
  constructor(elementReference, cFactory) {
2265
2345
  super(elementReference.nativeElement);
2266
2346
  this.cFactory = cFactory;
2267
- this.path = '';
2268
- this.line = LineExtensions.initialize();
2269
- this.stateChanges = new Subject();
2270
2347
  }
2271
2348
  initialize() {
2272
2349
  this.fPath.initialize();
@@ -2300,10 +2377,10 @@ class FConnectionBase extends MIXIN_BASE$1 {
2300
2377
  this.fDragHandle.redraw(this.line.point2);
2301
2378
  this.fTextComponent.redraw(this.line);
2302
2379
  }
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 }); }
2380
+ 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 });
2381
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionBase, usesInheritance: true, ngImport: i0 });
2305
2382
  }
2306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionBase, decorators: [{
2383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionBase, decorators: [{
2307
2384
  type: Directive
2308
2385
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FConnectionFactory }] });
2309
2386
 
@@ -2322,10 +2399,10 @@ var EFConnectionType;
2322
2399
  })(EFConnectionType || (EFConnectionType = {}));
2323
2400
 
2324
2401
  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 }); }
2402
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionCenterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2403
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FConnectionCenterDirective, selector: "[fConnectionCenter]", ngImport: i0 });
2327
2404
  }
2328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionCenterDirective, decorators: [{
2405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionCenterDirective, decorators: [{
2329
2406
  type: Directive,
2330
2407
  args: [{
2331
2408
  selector: "[fConnectionCenter]"
@@ -2334,6 +2411,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2334
2411
 
2335
2412
  let uniqueId$4 = 0;
2336
2413
  class FConnectionForCreateComponent extends FConnectionBase {
2414
+ fComponentsStore;
2415
+ fConnectionId = `f-connection-for-create-${uniqueId$4++}`;
2416
+ fText = '';
2417
+ _fStartColor = 'black';
2337
2418
  set fStartColor(value) {
2338
2419
  this._fStartColor = value;
2339
2420
  this.fComponentsStore.changes.next();
@@ -2341,6 +2422,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2341
2422
  get fStartColor() {
2342
2423
  return this._fStartColor;
2343
2424
  }
2425
+ _fEndColor = 'black';
2344
2426
  set fEndColor(value) {
2345
2427
  this._fEndColor = value;
2346
2428
  this.fComponentsStore.changes.next();
@@ -2348,6 +2430,9 @@ class FConnectionForCreateComponent extends FConnectionBase {
2348
2430
  get fEndColor() {
2349
2431
  return this._fEndColor;
2350
2432
  }
2433
+ fOutputId;
2434
+ fInputId;
2435
+ _fRadius = 8;
2351
2436
  set fRadius(value) {
2352
2437
  this._fRadius = value;
2353
2438
  this.fComponentsStore.changes.next();
@@ -2355,6 +2440,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2355
2440
  get fRadius() {
2356
2441
  return this._fRadius;
2357
2442
  }
2443
+ _fOffset = 32;
2358
2444
  set fOffset(value) {
2359
2445
  this._fOffset = value;
2360
2446
  this.fComponentsStore.changes.next();
@@ -2362,6 +2448,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2362
2448
  get fOffset() {
2363
2449
  return this._fOffset;
2364
2450
  }
2451
+ _behavior = EFConnectionBehavior.FIXED;
2365
2452
  set fBehavior(value) {
2366
2453
  this._behavior = castToEnum(value, 'fBehavior', EFConnectionBehavior);
2367
2454
  this.fComponentsStore.changes.next();
@@ -2369,6 +2456,7 @@ class FConnectionForCreateComponent extends FConnectionBase {
2369
2456
  get fBehavior() {
2370
2457
  return this._behavior;
2371
2458
  }
2459
+ _type = EFConnectionType.STRAIGHT;
2372
2460
  set fType(value) {
2373
2461
  this._type = castToEnum(value, 'fType', EFConnectionType);
2374
2462
  this.fComponentsStore.changes.next();
@@ -2376,27 +2464,27 @@ class FConnectionForCreateComponent extends FConnectionBase {
2376
2464
  get fType() {
2377
2465
  return this._type;
2378
2466
  }
2467
+ fDraggingDisabled = false;
2468
+ fSelectionDisabled = false;
2469
+ fDefs;
2379
2470
  get fMarkers() {
2380
2471
  return this.fComponentsStore.fMarkers.filter((x) => {
2381
2472
  return this.hostElement.contains(x.hostElement);
2382
2473
  });
2383
2474
  }
2475
+ fPath;
2476
+ fGradient;
2477
+ fDragHandle;
2478
+ fSelection;
2479
+ fTextComponent;
2480
+ fConnectionCenter;
2481
+ fConnectionCenters;
2384
2482
  get boundingElement() {
2385
2483
  return this.fPath.hostElement;
2386
2484
  }
2387
2485
  constructor(elementReference, fConnectionFactory, fComponentsStore) {
2388
2486
  super(elementReference, fConnectionFactory);
2389
2487
  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
2488
  }
2401
2489
  ngOnInit() {
2402
2490
  this.fComponentsStore.fTempConnection = this;
@@ -2407,10 +2495,10 @@ class FConnectionForCreateComponent extends FConnectionBase {
2407
2495
  ngOnDestroy() {
2408
2496
  this.fComponentsStore.fTempConnection = undefined;
2409
2497
  }
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 }); }
2498
+ 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 });
2499
+ 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
2500
  }
2413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionForCreateComponent, decorators: [{
2501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionForCreateComponent, decorators: [{
2414
2502
  type: Component,
2415
2503
  args: [{ selector: "f-connection-for-create", changeDetection: ChangeDetectionStrategy.OnPush, host: {
2416
2504
  class: "f-component f-connection f-connection-for-create"
@@ -2455,6 +2543,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2455
2543
 
2456
2544
  let uniqueId$3 = 0;
2457
2545
  class FConnectionComponent extends FConnectionBase {
2546
+ fComponentsStore;
2547
+ fConnectionId = `f-connection-${uniqueId$3++}`;
2548
+ _fText = '';
2458
2549
  set fText(value) {
2459
2550
  this._fText = value;
2460
2551
  this.fComponentsStore.changes.next();
@@ -2462,6 +2553,7 @@ class FConnectionComponent extends FConnectionBase {
2462
2553
  get fText() {
2463
2554
  return this._fText;
2464
2555
  }
2556
+ _fStartColor = 'black';
2465
2557
  set fStartColor(value) {
2466
2558
  this._fStartColor = value;
2467
2559
  this.fComponentsStore.changes.next();
@@ -2469,6 +2561,7 @@ class FConnectionComponent extends FConnectionBase {
2469
2561
  get fStartColor() {
2470
2562
  return this._fStartColor;
2471
2563
  }
2564
+ _fEndColor = 'black';
2472
2565
  set fEndColor(value) {
2473
2566
  this._fEndColor = value;
2474
2567
  this.fComponentsStore.changes.next();
@@ -2476,6 +2569,7 @@ class FConnectionComponent extends FConnectionBase {
2476
2569
  get fEndColor() {
2477
2570
  return this._fEndColor;
2478
2571
  }
2572
+ _fOutputId;
2479
2573
  set fOutputId(value) {
2480
2574
  this._fOutputId = value;
2481
2575
  this.fComponentsStore.changes.next();
@@ -2483,6 +2577,7 @@ class FConnectionComponent extends FConnectionBase {
2483
2577
  get fOutputId() {
2484
2578
  return this._fOutputId;
2485
2579
  }
2580
+ _fInputId;
2486
2581
  set fInputId(value) {
2487
2582
  this._fInputId = value;
2488
2583
  this.fComponentsStore.changes.next();
@@ -2490,6 +2585,7 @@ class FConnectionComponent extends FConnectionBase {
2490
2585
  get fInputId() {
2491
2586
  return this._fInputId;
2492
2587
  }
2588
+ _fRadius = 8;
2493
2589
  set fRadius(value) {
2494
2590
  this._fRadius = value;
2495
2591
  this.fComponentsStore.changes.next();
@@ -2497,6 +2593,7 @@ class FConnectionComponent extends FConnectionBase {
2497
2593
  get fRadius() {
2498
2594
  return this._fRadius;
2499
2595
  }
2596
+ _fOffset = 32;
2500
2597
  set fOffset(value) {
2501
2598
  this._fOffset = value;
2502
2599
  this.fComponentsStore.changes.next();
@@ -2504,6 +2601,7 @@ class FConnectionComponent extends FConnectionBase {
2504
2601
  get fOffset() {
2505
2602
  return this._fOffset;
2506
2603
  }
2604
+ _behavior = EFConnectionBehavior.FIXED;
2507
2605
  set fBehavior(value) {
2508
2606
  this._behavior = castToEnum(value, 'fBehavior', EFConnectionBehavior);
2509
2607
  this.fComponentsStore.changes.next();
@@ -2511,34 +2609,35 @@ class FConnectionComponent extends FConnectionBase {
2511
2609
  get fBehavior() {
2512
2610
  return this._behavior;
2513
2611
  }
2612
+ _type = EFConnectionType.STRAIGHT;
2514
2613
  set fType(value) {
2515
- this._type = castToEnum(value, 'fType', EFConnectionType);
2614
+ this._type = value; //castToEnum(value, 'fType', EFConnectionType);
2516
2615
  this.fComponentsStore.changes.next();
2517
2616
  }
2518
2617
  get fType() {
2519
2618
  return this._type;
2520
2619
  }
2620
+ fDraggingDisabled = false;
2621
+ fSelectionDisabled = false;
2622
+ fDefs;
2521
2623
  get fMarkers() {
2522
2624
  return this.fComponentsStore.fMarkers.filter((x) => {
2523
2625
  return this.hostElement.contains(x.hostElement);
2524
2626
  });
2525
2627
  }
2628
+ fPath;
2629
+ fGradient;
2630
+ fDragHandle;
2631
+ fSelection;
2632
+ fTextComponent;
2633
+ fConnectionCenter;
2634
+ fConnectionCenters;
2526
2635
  get boundingElement() {
2527
2636
  return this.fPath.hostElement;
2528
2637
  }
2529
2638
  constructor(elementReference, fConnectionFactory, fComponentsStore) {
2530
2639
  super(elementReference, fConnectionFactory);
2531
2640
  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
2641
  }
2543
2642
  ngOnInit() {
2544
2643
  this.fComponentsStore.addComponent(this.fComponentsStore.fConnections, this);
@@ -2546,17 +2645,17 @@ class FConnectionComponent extends FConnectionBase {
2546
2645
  ngOnDestroy() {
2547
2646
  this.fComponentsStore.removeComponent(this.fComponentsStore.fConnections, this);
2548
2647
  }
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 }); }
2648
+ 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 });
2649
+ 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
2650
  }
2552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FConnectionComponent, decorators: [{
2651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FConnectionComponent, decorators: [{
2553
2652
  type: Component,
2554
2653
  args: [{ selector: "f-connection", exportAs: 'fComponent', changeDetection: ChangeDetectionStrategy.OnPush, host: {
2555
2654
  '[attr.id]': 'fConnectionId',
2556
2655
  class: "f-component f-connection",
2557
2656
  '[class.f-connection-selection-disabled]': 'fSelectionDisabled',
2558
2657
  '[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"] }]
2658
+ }, 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
2659
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FConnectionFactory }, { type: FComponentsStore }], propDecorators: { fConnectionId: [{
2561
2660
  type: Input
2562
2661
  }], fText: [{
@@ -2608,30 +2707,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2608
2707
  args: [FConnectionCenterDirective, { descendants: true }]
2609
2708
  }] } });
2610
2709
 
2710
+ var EFMarkerType;
2711
+ (function (EFMarkerType) {
2712
+ EFMarkerType["START"] = "f-connection-marker-start";
2713
+ EFMarkerType["END"] = "f-connection-marker-end";
2714
+ EFMarkerType["SELECTED_START"] = "f-connection-selected-marker-start";
2715
+ EFMarkerType["SELECTED_END"] = "f-connection-selected-marker-end";
2716
+ })(EFMarkerType || (EFMarkerType = {}));
2717
+
2611
2718
  const F_MARKER = new InjectionToken('F_MARKER');
2612
2719
  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 }); }
2720
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2721
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FMarkerBase, ngImport: i0 });
2615
2722
  }
2616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerBase, decorators: [{
2723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerBase, decorators: [{
2617
2724
  type: Directive
2618
2725
  }] });
2619
2726
 
2620
2727
  class FMarkerDirective extends FMarkerBase {
2728
+ fComponentsStore;
2729
+ elementReference;
2621
2730
  get hostElement() {
2622
2731
  return this.elementReference.nativeElement;
2623
2732
  }
2733
+ width = 0;
2734
+ height = 0;
2735
+ refX = 0;
2736
+ refY = 0;
2737
+ type = EFMarkerType.START;
2738
+ orient = 'auto';
2739
+ markerUnits = 'strokeWidth';
2624
2740
  constructor(fComponentsStore, elementReference) {
2625
2741
  super();
2626
2742
  this.fComponentsStore = fComponentsStore;
2627
2743
  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
2744
  this.hostElement.style.display = 'none';
2636
2745
  }
2637
2746
  ngOnInit() {
@@ -2640,10 +2749,10 @@ class FMarkerDirective extends FMarkerBase {
2640
2749
  ngOnDestroy() {
2641
2750
  this.fComponentsStore.removeComponent(this.fComponentsStore.fMarkers, this);
2642
2751
  }
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 }); }
2752
+ 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 });
2753
+ 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
2754
  }
2646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FMarkerDirective, decorators: [{
2755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FMarkerDirective, decorators: [{
2647
2756
  type: Directive,
2648
2757
  args: [{
2649
2758
  selector: "svg[fMarker]",
@@ -2684,14 +2793,16 @@ const F_CONNECTION_PROVIDERS = [
2684
2793
  ];
2685
2794
 
2686
2795
  class ReassignConnectionDragHandler {
2796
+ fMediator;
2797
+ connection;
2798
+ type = EFDraggableType.REASSIGN_CONNECTION;
2799
+ onPointerDownFromConnectorRect = new RoundedRect();
2800
+ onPointerDownToConnectorRect = new RoundedRect();
2801
+ outputSide = EFConnectableSide.BOTTOM;
2802
+ inputSide = EFConnectableSide.TOP;
2687
2803
  constructor(fMediator, connection) {
2688
2804
  this.fMediator = fMediator;
2689
2805
  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
2806
  }
2696
2807
  initialize() {
2697
2808
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -2715,6 +2826,9 @@ class ReassignConnectionDragHandler {
2715
2826
  }
2716
2827
 
2717
2828
  let ReassignConnectionPreparationExecution = class ReassignConnectionPreparationExecution {
2829
+ fComponentsStore;
2830
+ fDraggableDataContext;
2831
+ fMediator;
2718
2832
  get transform() {
2719
2833
  return this.fComponentsStore.fCanvas.transform;
2720
2834
  }
@@ -2750,17 +2864,19 @@ let ReassignConnectionPreparationExecution = class ReassignConnectionPreparation
2750
2864
  getConnectionHandler(element) {
2751
2865
  return this.fConnections.find(c => c.isContains(element));
2752
2866
  }
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 }); }
2867
+ 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 });
2868
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationExecution });
2755
2869
  };
2756
2870
  ReassignConnectionPreparationExecution = __decorate([
2757
2871
  FExecutionRegister(ReassignConnectionPreparationRequest)
2758
2872
  ], ReassignConnectionPreparationExecution);
2759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationExecution, decorators: [{
2873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationExecution, decorators: [{
2760
2874
  type: Injectable
2761
2875
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
2762
2876
 
2763
2877
  let ReassignConnectionPreparationValidator = class ReassignConnectionPreparationValidator {
2878
+ fComponentsStore;
2879
+ fDraggableDataContext;
2764
2880
  get fConnections() {
2765
2881
  return this.fComponentsStore.fConnections;
2766
2882
  }
@@ -2783,13 +2899,13 @@ let ReassignConnectionPreparationValidator = class ReassignConnectionPreparation
2783
2899
  getConnectionHandler(element) {
2784
2900
  return this.fConnections.find(c => c.isContains(element));
2785
2901
  }
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 }); }
2902
+ 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 });
2903
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationValidator });
2788
2904
  };
2789
2905
  ReassignConnectionPreparationValidator = __decorate([
2790
2906
  FValidatorRegister(ReassignConnectionPreparationRequest)
2791
2907
  ], ReassignConnectionPreparationValidator);
2792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ReassignConnectionPreparationValidator, decorators: [{
2908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ReassignConnectionPreparationValidator, decorators: [{
2793
2909
  type: Injectable
2794
2910
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
2795
2911
 
@@ -2808,12 +2924,15 @@ const CONNECTIONS_PROVIDERS = [
2808
2924
  ];
2809
2925
 
2810
2926
  class ExternalItemFinalizeRequest {
2927
+ event;
2811
2928
  constructor(event) {
2812
2929
  this.event = event;
2813
2930
  }
2814
2931
  }
2815
2932
 
2816
2933
  class FCreateNodeEvent {
2934
+ rect;
2935
+ data;
2817
2936
  constructor(rect, data) {
2818
2937
  this.rect = rect;
2819
2938
  this.data = data;
@@ -2821,6 +2940,9 @@ class FCreateNodeEvent {
2821
2940
  }
2822
2941
 
2823
2942
  let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
2943
+ fComponentsStore;
2944
+ fDraggableDataContext;
2945
+ fMediator;
2824
2946
  get flowHost() {
2825
2947
  return this.fComponentsStore.fFlow.hostElement;
2826
2948
  }
@@ -2854,30 +2976,31 @@ let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
2854
2976
  getRectInCanvas() {
2855
2977
  return this.fMediator.send(new GetElementRectInFlowRequest(this.dragHandler.placeholder));
2856
2978
  }
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 }); }
2979
+ 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 });
2980
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeExecution });
2859
2981
  };
2860
2982
  ExternalItemFinalizeExecution = __decorate([
2861
2983
  FExecutionRegister(ExternalItemFinalizeRequest)
2862
2984
  ], ExternalItemFinalizeExecution);
2863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
2985
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
2864
2986
  type: Injectable
2865
2987
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
2866
2988
 
2867
2989
  let ExternalItemFinalizeValidator = class ExternalItemFinalizeValidator {
2990
+ fDraggableDataContext;
2868
2991
  constructor(fDraggableDataContext) {
2869
2992
  this.fDraggableDataContext = fDraggableDataContext;
2870
2993
  }
2871
2994
  handle(request) {
2872
2995
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.PALETTE_ITEM);
2873
2996
  }
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 }); }
2997
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
2998
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator });
2876
2999
  };
2877
3000
  ExternalItemFinalizeValidator = __decorate([
2878
3001
  FValidatorRegister(ExternalItemFinalizeRequest)
2879
3002
  ], ExternalItemFinalizeValidator);
2880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
3003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
2881
3004
  type: Injectable
2882
3005
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
2883
3006
 
@@ -2887,6 +3010,7 @@ const EXTERNAL_ITEM_FINALIZE_PROVIDERS = [
2887
3010
  ];
2888
3011
 
2889
3012
  class ExternalItemPreparationRequest {
3013
+ event;
2890
3014
  constructor(event) {
2891
3015
  this.event = event;
2892
3016
  }
@@ -2894,10 +3018,10 @@ class ExternalItemPreparationRequest {
2894
3018
 
2895
3019
  const F_EXTERNAL_ITEM = new InjectionToken('F_EXTERNAL_ITEM');
2896
3020
  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 }); }
3021
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3022
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FExternalItemBase, ngImport: i0 });
2899
3023
  }
2900
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemBase, decorators: [{
3024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemBase, decorators: [{
2901
3025
  type: Directive
2902
3026
  }] });
2903
3027
 
@@ -2909,9 +3033,7 @@ function getExternalItem(element) {
2909
3033
  }
2910
3034
 
2911
3035
  class FExternalItemService {
2912
- constructor() {
2913
- this.items = [];
2914
- }
3036
+ items = [];
2915
3037
  registerItem(item) {
2916
3038
  this.items.push(item);
2917
3039
  }
@@ -2924,10 +3046,10 @@ class FExternalItemService {
2924
3046
  this.items.splice(index, 1);
2925
3047
  }
2926
3048
  }
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' }); }
3049
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3050
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, providedIn: 'root' });
2929
3051
  }
2930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemService, decorators: [{
3052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemService, decorators: [{
2931
3053
  type: Injectable,
2932
3054
  args: [{
2933
3055
  providedIn: 'root'
@@ -2936,15 +3058,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
2936
3058
 
2937
3059
  let uniqueId$2 = 0;
2938
3060
  class FExternalItemDirective extends FExternalItemBase {
3061
+ elementReference;
3062
+ fExternalItemService;
3063
+ fExternalItemId = `f-external-item-${uniqueId$2++}`;
2939
3064
  get hostElement() {
2940
3065
  return this.elementReference.nativeElement;
2941
3066
  }
3067
+ fData;
3068
+ fDisabled = false;
2942
3069
  constructor(elementReference, fExternalItemService) {
2943
3070
  super();
2944
3071
  this.elementReference = elementReference;
2945
3072
  this.fExternalItemService = fExternalItemService;
2946
- this.fExternalItemId = `f-external-item-${uniqueId$2++}`;
2947
- this.fDisabled = false;
2948
3073
  }
2949
3074
  ngOnInit() {
2950
3075
  this.fExternalItemService.registerItem(this);
@@ -2952,12 +3077,12 @@ class FExternalItemDirective extends FExternalItemBase {
2952
3077
  ngOnDestroy() {
2953
3078
  this.fExternalItemService.removeItem(this);
2954
3079
  }
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: [
3080
+ 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 });
3081
+ 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
3082
  { provide: F_EXTERNAL_ITEM, useExisting: FExternalItemDirective }
2958
- ], usesInheritance: true, ngImport: i0 }); }
3083
+ ], usesInheritance: true, ngImport: i0 });
2959
3084
  }
2960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FExternalItemDirective, decorators: [{
3085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FExternalItemDirective, decorators: [{
2961
3086
  type: Directive,
2962
3087
  args: [{
2963
3088
  selector: "[fExternalItem]",
@@ -2983,11 +3108,13 @@ const F_EXTERNAL_ITEM_PROVIDERS = [
2983
3108
  ];
2984
3109
 
2985
3110
  class ExternalItemDragHandler {
3111
+ externalItem;
3112
+ type = EFDraggableType.PALETTE_ITEM;
3113
+ placeholder;
3114
+ onPointerDownRect = RectExtensions.initialize();
3115
+ difference = PointExtensions.initialize();
2986
3116
  constructor(externalItem) {
2987
3117
  this.externalItem = externalItem;
2988
- this.type = EFDraggableType.PALETTE_ITEM;
2989
- this.onPointerDownRect = RectExtensions.initialize();
2990
- this.difference = PointExtensions.initialize();
2991
3118
  }
2992
3119
  getStyle(position) {
2993
3120
  return `position: absolute; left: 0; top: 0; transform: translate(${position.x}px, ${position.y}px)`;
@@ -3017,6 +3144,9 @@ class ExternalItemDragHandler {
3017
3144
  }
3018
3145
 
3019
3146
  let ExternalItemPreparationExecution = class ExternalItemPreparationExecution {
3147
+ fComponentsStore;
3148
+ fDraggableDataContext;
3149
+ fExternalItemService;
3020
3150
  get flowHost() {
3021
3151
  return this.fComponentsStore.fFlow.hostElement;
3022
3152
  }
@@ -3035,17 +3165,18 @@ let ExternalItemPreparationExecution = class ExternalItemPreparationExecution {
3035
3165
  getExternalItem(targetElement) {
3036
3166
  return this.fExternalItemService.getItem(getExternalItem(targetElement));
3037
3167
  }
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 }); }
3168
+ 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 });
3169
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationExecution });
3040
3170
  };
3041
3171
  ExternalItemPreparationExecution = __decorate([
3042
3172
  FExecutionRegister(ExternalItemPreparationRequest)
3043
3173
  ], ExternalItemPreparationExecution);
3044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationExecution, decorators: [{
3174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationExecution, decorators: [{
3045
3175
  type: Injectable
3046
3176
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FExternalItemService }] });
3047
3177
 
3048
3178
  let ExternalItemPreparationValidator = class ExternalItemPreparationValidator {
3179
+ fExternalItemService;
3049
3180
  constructor(fExternalItemService) {
3050
3181
  this.fExternalItemService = fExternalItemService;
3051
3182
  }
@@ -3056,13 +3187,13 @@ let ExternalItemPreparationValidator = class ExternalItemPreparationValidator {
3056
3187
  getExternalItem(targetElement) {
3057
3188
  return this.fExternalItemService.getItem(getExternalItem(targetElement));
3058
3189
  }
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 }); }
3190
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator, deps: [{ token: FExternalItemService }], target: i0.ɵɵFactoryTarget.Injectable });
3191
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator });
3061
3192
  };
3062
3193
  ExternalItemPreparationValidator = __decorate([
3063
3194
  FValidatorRegister(ExternalItemPreparationRequest)
3064
3195
  ], ExternalItemPreparationValidator);
3065
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ExternalItemPreparationValidator, decorators: [{
3196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ExternalItemPreparationValidator, decorators: [{
3066
3197
  type: Injectable
3067
3198
  }], ctorParameters: () => [{ type: FExternalItemService }] });
3068
3199
 
@@ -3080,11 +3211,13 @@ class CreateMoveNodesDragModelFromSelectionRequest {
3080
3211
  }
3081
3212
 
3082
3213
  class NodeDragHandler {
3214
+ fDraggableDataContext;
3215
+ fNode;
3216
+ type = EFDraggableType.NODE;
3217
+ onPointerDownPosition = PointExtensions.initialize();
3083
3218
  constructor(fDraggableDataContext, fNode) {
3084
3219
  this.fDraggableDataContext = fDraggableDataContext;
3085
3220
  this.fNode = fNode;
3086
- this.type = EFDraggableType.NODE;
3087
- this.onPointerDownPosition = PointExtensions.initialize();
3088
3221
  this.onPointerDownPosition = this.fNode.position;
3089
3222
  }
3090
3223
  move(difference) {
@@ -3099,13 +3232,15 @@ class NodeDragHandler {
3099
3232
  }
3100
3233
 
3101
3234
  class ConnectionDragHandler {
3235
+ fMediator;
3236
+ connection;
3237
+ type = EFDraggableType.CONNECTION;
3238
+ onPointerDownLine = LineExtensions.initialize();
3239
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3240
+ toConnectorSide = EFConnectableSide.TOP;
3102
3241
  constructor(fMediator, connection) {
3103
3242
  this.fMediator = fMediator;
3104
3243
  this.connection = connection;
3105
- this.type = EFDraggableType.CONNECTION;
3106
- this.onPointerDownLine = LineExtensions.initialize();
3107
- this.fromConnectorSide = EFConnectableSide.BOTTOM;
3108
- this.toConnectorSide = EFConnectableSide.TOP;
3109
3244
  }
3110
3245
  initialize() {
3111
3246
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3123,14 +3258,16 @@ class ConnectionDragHandler {
3123
3258
  }
3124
3259
 
3125
3260
  class ConnectionSourceDragHandler {
3261
+ fMediator;
3262
+ connection;
3263
+ type = EFDraggableType.CONNECTION;
3264
+ fromConnectorRect = new RoundedRect();
3265
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3266
+ toConnectorRect = new RoundedRect();
3267
+ toConnectorSide = EFConnectableSide.TOP;
3126
3268
  constructor(fMediator, connection) {
3127
3269
  this.fMediator = fMediator;
3128
3270
  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
3271
  }
3135
3272
  initialize() {
3136
3273
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3148,14 +3285,16 @@ class ConnectionSourceDragHandler {
3148
3285
  }
3149
3286
 
3150
3287
  class ConnectionTargetDragHandler {
3288
+ fMediator;
3289
+ connection;
3290
+ type = EFDraggableType.CONNECTION;
3291
+ fromConnectorRect = new RoundedRect();
3292
+ fromConnectorSide = EFConnectableSide.BOTTOM;
3293
+ toConnectorRect = new RoundedRect();
3294
+ toConnectorSide = EFConnectableSide.TOP;
3151
3295
  constructor(fMediator, connection) {
3152
3296
  this.fMediator = fMediator;
3153
3297
  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
3298
  }
3160
3299
  initialize() {
3161
3300
  const fromConnector = this.fMediator.send(new GetOutputRectInFlowRequest(this.connection.fOutputId));
@@ -3173,6 +3312,11 @@ class ConnectionTargetDragHandler {
3173
3312
  }
3174
3313
 
3175
3314
  let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragModelFromSelectionExecution {
3315
+ fComponentsStore;
3316
+ fDraggableDataContext;
3317
+ getOutgoingConnectionsHandler;
3318
+ getIncomingConnectionsHandler;
3319
+ fMediator;
3176
3320
  constructor(fComponentsStore, fDraggableDataContext, getOutgoingConnectionsHandler, getIncomingConnectionsHandler, fMediator) {
3177
3321
  this.fComponentsStore = fComponentsStore;
3178
3322
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3239,13 +3383,13 @@ let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragMo
3239
3383
  }
3240
3384
  });
3241
3385
  }
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 }); }
3386
+ 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 });
3387
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution });
3244
3388
  };
3245
3389
  CreateMoveNodesDragModelFromSelectionExecution = __decorate([
3246
3390
  FExecutionRegister(CreateMoveNodesDragModelFromSelectionRequest)
3247
3391
  ], CreateMoveNodesDragModelFromSelectionExecution);
3248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, decorators: [{
3392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, decorators: [{
3249
3393
  type: Injectable
3250
3394
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: GetOutgoingConnectionsHandler }, { type: GetIncomingConnectionsHandler }, { type: FFlowMediator }] });
3251
3395
 
@@ -3254,12 +3398,16 @@ const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS = [
3254
3398
  ];
3255
3399
 
3256
3400
  class NodeMovePreparationRequest {
3401
+ event;
3257
3402
  constructor(event) {
3258
3403
  this.event = event;
3259
3404
  }
3260
3405
  }
3261
3406
 
3262
3407
  let NodeMovePreparationExecution = class NodeMovePreparationExecution {
3408
+ fComponentsStore;
3409
+ fDraggableDataContext;
3410
+ fMediator;
3263
3411
  get transform() {
3264
3412
  return this.fComponentsStore.fCanvas.transform;
3265
3413
  }
@@ -3296,17 +3444,19 @@ let NodeMovePreparationExecution = class NodeMovePreparationExecution {
3296
3444
  return items.filter((x) => x.type === EFDraggableType.NODE)
3297
3445
  .map(x => x.fNode);
3298
3446
  }
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 }); }
3447
+ 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 });
3448
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationExecution });
3301
3449
  };
3302
3450
  NodeMovePreparationExecution = __decorate([
3303
3451
  FExecutionRegister(NodeMovePreparationRequest)
3304
3452
  ], NodeMovePreparationExecution);
3305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationExecution, decorators: [{
3453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationExecution, decorators: [{
3306
3454
  type: Injectable
3307
3455
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3308
3456
 
3309
3457
  let NodeMovePreparationValidator = class NodeMovePreparationValidator {
3458
+ fComponentsStore;
3459
+ fDraggableDataContext;
3310
3460
  constructor(fComponentsStore, fDraggableDataContext) {
3311
3461
  this.fComponentsStore = fComponentsStore;
3312
3462
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3328,13 +3478,13 @@ let NodeMovePreparationValidator = class NodeMovePreparationValidator {
3328
3478
  isDragHandleElement(targetElement) {
3329
3479
  return isElementWithClass(targetElement, '.f-drag-handle');
3330
3480
  }
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 }); }
3481
+ 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 });
3482
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationValidator });
3333
3483
  };
3334
3484
  NodeMovePreparationValidator = __decorate([
3335
3485
  FValidatorRegister(NodeMovePreparationRequest)
3336
3486
  ], NodeMovePreparationValidator);
3337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMovePreparationValidator, decorators: [{
3487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMovePreparationValidator, decorators: [{
3338
3488
  type: Injectable
3339
3489
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
3340
3490
 
@@ -3344,6 +3494,7 @@ const NODE_MOVE_PREPARATION_PROVIDERS = [
3344
3494
  ];
3345
3495
 
3346
3496
  class NodeMoveFinalizeRequest {
3497
+ event;
3347
3498
  constructor(event) {
3348
3499
  this.event = event;
3349
3500
  }
@@ -3353,6 +3504,9 @@ class IsConnectionUnderNodeRequest {
3353
3504
  }
3354
3505
 
3355
3506
  let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
3507
+ fComponentsStore;
3508
+ fDraggableDataContext;
3509
+ fMediator;
3356
3510
  get flowHost() {
3357
3511
  return this.fComponentsStore.fFlow.hostElement;
3358
3512
  }
@@ -3382,30 +3536,31 @@ let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
3382
3536
  }
3383
3537
  return difference;
3384
3538
  }
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 }); }
3539
+ 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 });
3540
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeExecution });
3387
3541
  };
3388
3542
  NodeMoveFinalizeExecution = __decorate([
3389
3543
  FExecutionRegister(NodeMoveFinalizeRequest)
3390
3544
  ], NodeMoveFinalizeExecution);
3391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeExecution, decorators: [{
3545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeExecution, decorators: [{
3392
3546
  type: Injectable
3393
3547
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3394
3548
 
3395
3549
  let NodeMoveFinalizeValidator = class NodeMoveFinalizeValidator {
3550
+ fDraggableDataContext;
3396
3551
  constructor(fDraggableDataContext) {
3397
3552
  this.fDraggableDataContext = fDraggableDataContext;
3398
3553
  }
3399
3554
  handle(request) {
3400
3555
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.NODE);
3401
3556
  }
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 }); }
3557
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3558
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator });
3404
3559
  };
3405
3560
  NodeMoveFinalizeValidator = __decorate([
3406
3561
  FValidatorRegister(NodeMoveFinalizeRequest)
3407
3562
  ], NodeMoveFinalizeValidator);
3408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeMoveFinalizeValidator, decorators: [{
3563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeMoveFinalizeValidator, decorators: [{
3409
3564
  type: Injectable
3410
3565
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3411
3566
 
@@ -3421,12 +3576,14 @@ const NODE_PROVIDERS = [
3421
3576
  ];
3422
3577
 
3423
3578
  class NodeResizeFinalizeRequest {
3579
+ event;
3424
3580
  constructor(event) {
3425
3581
  this.event = event;
3426
3582
  }
3427
3583
  }
3428
3584
 
3429
3585
  let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
3586
+ fDraggableDataContext;
3430
3587
  constructor(fDraggableDataContext) {
3431
3588
  this.fDraggableDataContext = fDraggableDataContext;
3432
3589
  }
@@ -3435,30 +3592,31 @@ let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
3435
3592
  x.complete?.();
3436
3593
  });
3437
3594
  }
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 }); }
3595
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3596
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution });
3440
3597
  };
3441
3598
  NodeResizeFinalizeExecution = __decorate([
3442
3599
  FExecutionRegister(NodeResizeFinalizeRequest)
3443
3600
  ], NodeResizeFinalizeExecution);
3444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
3601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
3445
3602
  type: Injectable
3446
3603
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3447
3604
 
3448
3605
  let NodeResizeFinalizeValidator = class NodeResizeFinalizeValidator {
3606
+ fDraggableDataContext;
3449
3607
  constructor(fDraggableDataContext) {
3450
3608
  this.fDraggableDataContext = fDraggableDataContext;
3451
3609
  }
3452
3610
  handle(request) {
3453
3611
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.NODE_RESIZE);
3454
3612
  }
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 }); }
3613
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3614
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator });
3457
3615
  };
3458
3616
  NodeResizeFinalizeValidator = __decorate([
3459
3617
  FValidatorRegister(NodeResizeFinalizeRequest)
3460
3618
  ], NodeResizeFinalizeValidator);
3461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
3619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
3462
3620
  type: Injectable
3463
3621
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3464
3622
 
@@ -3468,6 +3626,7 @@ const NODE_RESIZE_FINALIZE_PROVIDERS = [
3468
3626
  ];
3469
3627
 
3470
3628
  class NodeResizePreparationRequest {
3629
+ event;
3471
3630
  constructor(event) {
3472
3631
  this.event = event;
3473
3632
  }
@@ -3480,6 +3639,12 @@ const RESIZE_DIRECTIONS = {
3480
3639
  [EFResizeHandleType.RIGHT_BOTTOM]: { x: 1, y: 1 },
3481
3640
  };
3482
3641
  class NodeResizeDragHandler {
3642
+ fComponentsStore;
3643
+ fNode;
3644
+ fResizeHandleType;
3645
+ type = EFDraggableType.NODE_RESIZE;
3646
+ onPointerDownPosition;
3647
+ rect;
3483
3648
  get scale() {
3484
3649
  return this.fComponentsStore.fCanvas.transform.scale;
3485
3650
  }
@@ -3487,7 +3652,6 @@ class NodeResizeDragHandler {
3487
3652
  this.fComponentsStore = fComponentsStore;
3488
3653
  this.fNode = fNode;
3489
3654
  this.fResizeHandleType = fResizeHandleType;
3490
- this.type = EFDraggableType.NODE_RESIZE;
3491
3655
  this.onPointerDownPosition = this.fNode.position;
3492
3656
  this.rect = RectExtensions.fromElement(this.fNode.hostElement);
3493
3657
  }
@@ -3520,6 +3684,9 @@ class NodeResizeDragHandler {
3520
3684
  }
3521
3685
 
3522
3686
  let NodeResizePreparationExecution = class NodeResizePreparationExecution {
3687
+ fComponentsStore;
3688
+ fDraggableDataContext;
3689
+ fMediator;
3523
3690
  get transform() {
3524
3691
  return this.fComponentsStore.fCanvas.transform;
3525
3692
  }
@@ -3548,17 +3715,19 @@ let NodeResizePreparationExecution = class NodeResizePreparationExecution {
3548
3715
  getNode(targetElement) {
3549
3716
  return this.fComponentsStore.findNode(targetElement);
3550
3717
  }
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 }); }
3718
+ 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 });
3719
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationExecution });
3553
3720
  };
3554
3721
  NodeResizePreparationExecution = __decorate([
3555
3722
  FExecutionRegister(NodeResizePreparationRequest)
3556
3723
  ], NodeResizePreparationExecution);
3557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
3724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
3558
3725
  type: Injectable
3559
3726
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3560
3727
 
3561
3728
  let NodeResizePreparationValidator = class NodeResizePreparationValidator {
3729
+ fComponentsStore;
3730
+ fDraggableDataContext;
3562
3731
  constructor(fComponentsStore, fDraggableDataContext) {
3563
3732
  this.fComponentsStore = fComponentsStore;
3564
3733
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3580,13 +3749,13 @@ let NodeResizePreparationValidator = class NodeResizePreparationValidator {
3580
3749
  isDragHandleElement(targetElement) {
3581
3750
  return isElementWithClass(targetElement, '.f-resize-handle');
3582
3751
  }
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 }); }
3752
+ 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 });
3753
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationValidator });
3585
3754
  };
3586
3755
  NodeResizePreparationValidator = __decorate([
3587
3756
  FValidatorRegister(NodeResizePreparationRequest)
3588
3757
  ], NodeResizePreparationValidator);
3589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
3758
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
3590
3759
  type: Injectable
3591
3760
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
3592
3761
 
@@ -3601,12 +3770,14 @@ const NODE_RESIZE_PROVIDERS = [
3601
3770
  ];
3602
3771
 
3603
3772
  class SelectionAreaFinalizeRequest {
3773
+ event;
3604
3774
  constructor(event) {
3605
3775
  this.event = event;
3606
3776
  }
3607
3777
  }
3608
3778
 
3609
3779
  let SelectionAreaFinalizeExecution = class SelectionAreaFinalizeExecution {
3780
+ fDraggableDataContext;
3610
3781
  constructor(fDraggableDataContext) {
3611
3782
  this.fDraggableDataContext = fDraggableDataContext;
3612
3783
  }
@@ -3615,30 +3786,31 @@ let SelectionAreaFinalizeExecution = class SelectionAreaFinalizeExecution {
3615
3786
  x.complete?.();
3616
3787
  });
3617
3788
  }
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 }); }
3789
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3790
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution });
3620
3791
  };
3621
3792
  SelectionAreaFinalizeExecution = __decorate([
3622
3793
  FExecutionRegister(SelectionAreaFinalizeRequest)
3623
3794
  ], SelectionAreaFinalizeExecution);
3624
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeExecution, decorators: [{
3795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeExecution, decorators: [{
3625
3796
  type: Injectable
3626
3797
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3627
3798
 
3628
3799
  let SelectionAreaFinalizeValidator = class SelectionAreaFinalizeValidator {
3800
+ fDraggableDataContext;
3629
3801
  constructor(fDraggableDataContext) {
3630
3802
  this.fDraggableDataContext = fDraggableDataContext;
3631
3803
  }
3632
3804
  handle(request) {
3633
3805
  return this.fDraggableDataContext.draggableItems.some((x) => x.type === EFDraggableType.SELECTION);
3634
3806
  }
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 }); }
3807
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3808
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator });
3637
3809
  };
3638
3810
  SelectionAreaFinalizeValidator = __decorate([
3639
3811
  FValidatorRegister(SelectionAreaFinalizeRequest)
3640
3812
  ], SelectionAreaFinalizeValidator);
3641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaFinalizeValidator, decorators: [{
3813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaFinalizeValidator, decorators: [{
3642
3814
  type: Injectable
3643
3815
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3644
3816
 
@@ -3648,6 +3820,7 @@ const SELECTION_AREA_FINALIZE_PROVIDERS = [
3648
3820
  ];
3649
3821
 
3650
3822
  class SelectionAreaPreparationRequest {
3823
+ event;
3651
3824
  constructor(event) {
3652
3825
  this.event = event;
3653
3826
  }
@@ -3657,6 +3830,12 @@ class GetCanBeSelectedItemsRequest {
3657
3830
  }
3658
3831
 
3659
3832
  class SelectionAreaDragHandle {
3833
+ fComponentsStore;
3834
+ fDraggableDataContext;
3835
+ fMediator;
3836
+ type = EFDraggableType.SELECTION;
3837
+ canBeSelected = [];
3838
+ selectedByMove = [];
3660
3839
  get canvasPosition() {
3661
3840
  return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position).add(this.fComponentsStore.fCanvas.transform.scaledPosition);
3662
3841
  }
@@ -3664,9 +3843,6 @@ class SelectionAreaDragHandle {
3664
3843
  this.fComponentsStore = fComponentsStore;
3665
3844
  this.fDraggableDataContext = fDraggableDataContext;
3666
3845
  this.fMediator = fMediator;
3667
- this.type = EFDraggableType.SELECTION;
3668
- this.canBeSelected = [];
3669
- this.selectedByMove = [];
3670
3846
  }
3671
3847
  initialize() {
3672
3848
  this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
@@ -3706,6 +3882,9 @@ class SelectionAreaDragHandle {
3706
3882
  }
3707
3883
 
3708
3884
  let SelectionAreaPreparationExecution = class SelectionAreaPreparationExecution {
3885
+ fComponentsStore;
3886
+ fDraggableDataContext;
3887
+ fMediator;
3709
3888
  get flowHost() {
3710
3889
  return this.fComponentsStore.fFlow.hostElement;
3711
3890
  }
@@ -3722,17 +3901,18 @@ let SelectionAreaPreparationExecution = class SelectionAreaPreparationExecution
3722
3901
  this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
3723
3902
  .elementTransform(this.flowHost);
3724
3903
  }
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 }); }
3904
+ 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 });
3905
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationExecution });
3727
3906
  };
3728
3907
  SelectionAreaPreparationExecution = __decorate([
3729
3908
  FExecutionRegister(SelectionAreaPreparationRequest)
3730
3909
  ], SelectionAreaPreparationExecution);
3731
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationExecution, decorators: [{
3910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationExecution, decorators: [{
3732
3911
  type: Injectable
3733
3912
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
3734
3913
 
3735
3914
  let SelectionAreaPreparationValidator = class SelectionAreaPreparationValidator {
3915
+ fDraggableDataContext;
3736
3916
  constructor(fDraggableDataContext) {
3737
3917
  this.fDraggableDataContext = fDraggableDataContext;
3738
3918
  }
@@ -3744,13 +3924,13 @@ let SelectionAreaPreparationValidator = class SelectionAreaPreparationValidator
3744
3924
  isDragHandlesEmpty() {
3745
3925
  return !this.fDraggableDataContext.draggableItems.length;
3746
3926
  }
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 }); }
3927
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3928
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator });
3749
3929
  };
3750
3930
  SelectionAreaPreparationValidator = __decorate([
3751
3931
  FValidatorRegister(SelectionAreaPreparationRequest)
3752
3932
  ], SelectionAreaPreparationValidator);
3753
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectionAreaPreparationValidator, decorators: [{
3933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectionAreaPreparationValidator, decorators: [{
3754
3934
  type: Injectable
3755
3935
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3756
3936
 
@@ -3765,12 +3945,17 @@ const SELECTION_AREA_PROVIDERS = [
3765
3945
  ];
3766
3946
 
3767
3947
  class SingleSelectRequest {
3948
+ event;
3768
3949
  constructor(event) {
3769
3950
  this.event = event;
3770
3951
  }
3771
3952
  }
3772
3953
 
3773
3954
  let SingleSelectExecution = class SingleSelectExecution {
3955
+ fComponentsStore;
3956
+ fDraggableDataContext;
3957
+ getConnectionHandler;
3958
+ fMediator;
3774
3959
  constructor(fComponentsStore, fDraggableDataContext, getConnectionHandler, fMediator) {
3775
3960
  this.fComponentsStore = fComponentsStore;
3776
3961
  this.fDraggableDataContext = fDraggableDataContext;
@@ -3828,30 +4013,31 @@ let SingleSelectExecution = class SingleSelectExecution {
3828
4013
  });
3829
4014
  this.fDraggableDataContext.selectedItems = [];
3830
4015
  }
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 }); }
4016
+ 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 });
4017
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectExecution });
3833
4018
  };
3834
4019
  SingleSelectExecution = __decorate([
3835
4020
  FExecutionRegister(SingleSelectRequest)
3836
4021
  ], SingleSelectExecution);
3837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectExecution, decorators: [{
4022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectExecution, decorators: [{
3838
4023
  type: Injectable
3839
4024
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: GetConnectionHandler }, { type: FFlowMediator }] });
3840
4025
 
3841
4026
  let SingleSelectValidator = class SingleSelectValidator {
4027
+ fComponentsStore;
3842
4028
  constructor(fComponentsStore) {
3843
4029
  this.fComponentsStore = fComponentsStore;
3844
4030
  }
3845
4031
  handle(request) {
3846
4032
  return this.fComponentsStore.fFlow.hostElement.contains(request.event.targetElement);
3847
4033
  }
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 }); }
4034
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4035
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator });
3850
4036
  };
3851
4037
  SingleSelectValidator = __decorate([
3852
4038
  FValidatorRegister(SingleSelectRequest)
3853
4039
  ], SingleSelectValidator);
3854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SingleSelectValidator, decorators: [{
4040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SingleSelectValidator, decorators: [{
3855
4041
  type: Injectable
3856
4042
  }], ctorParameters: () => [{ type: FComponentsStore }] });
3857
4043
 
@@ -3863,89 +4049,79 @@ const SINGLE_SELECT_PROVIDERS = [
3863
4049
  const F_DRAGGABLE = new InjectionToken('F_DRAGGABLE');
3864
4050
  const MOUSE_EVENT_IGNORE_TIME = 800;
3865
4051
  class FDraggableBase {
4052
+ ngZone;
4053
+ document;
4054
+ mouseListeners = EventExtensions.emptyListener();
4055
+ touchListeners = EventExtensions.emptyListener();
4056
+ startListeners = EventExtensions.emptyListener();
3866
4057
  isSyntheticEvent(event) {
3867
4058
  return !!this.lastTouchEventTime &&
3868
4059
  (this.lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now());
3869
4060
  }
4061
+ lastTouchEventTime = 0;
4062
+ isDragStarted = false;
4063
+ dragStartThreshold = 3;
4064
+ dragStartDelay = 0;
4065
+ dragStartTime = 0;
4066
+ dragStartPosition = PointExtensions.initialize();
4067
+ moveHandler = this.checkDragSequenceToStart;
3870
4068
  constructor(ngZone) {
3871
4069
  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
4070
  }
4071
+ onMouseDown = (event) => {
4072
+ const isSyntheticEvent = this.isSyntheticEvent(event);
4073
+ const isFakeEvent = isFakeMousedownFromScreenReader(event);
4074
+ const mouseEvent = new IMouseEvent(event);
4075
+ if (isSyntheticEvent || isFakeEvent || this.disabled) {
4076
+ return;
4077
+ }
4078
+ let result = this.onPointerDown(mouseEvent);
4079
+ if (result) {
4080
+ this.dragStartTime = Date.now();
4081
+ this.dragStartPosition = mouseEvent.getPosition();
4082
+ this.ngZone.runOutsideAngular(() => {
4083
+ this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4084
+ this.document?.addEventListener('mousemove', this.onMouseMove);
4085
+ this.document?.addEventListener('mouseup', this.onMouseUp);
4086
+ });
4087
+ this.mouseListeners = () => {
4088
+ this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4089
+ this.document?.removeEventListener('mousemove', this.onMouseMove);
4090
+ this.document?.removeEventListener('mouseup', this.onMouseUp);
4091
+ };
4092
+ }
4093
+ };
4094
+ onTouchDown = (event) => {
4095
+ const isFakeEvent = isFakeTouchstartFromScreenReader(event);
4096
+ const touchEvent = new ITouchDownEvent(event);
4097
+ if (isFakeEvent || this.disabled) {
4098
+ return;
4099
+ }
4100
+ let result = this.onPointerDown(new ITouchDownEvent(event));
4101
+ if (result) {
4102
+ this.dragStartTime = Date.now();
4103
+ this.dragStartPosition = touchEvent.getPosition();
4104
+ this.ngZone.runOutsideAngular(() => {
4105
+ this.document?.addEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4106
+ this.document?.addEventListener('touchmove', this.onTouchMove);
4107
+ this.document?.addEventListener('touchend', this.onTouchUp);
4108
+ });
4109
+ this.touchListeners = () => {
4110
+ this.document?.removeEventListener('selectstart', this.onSelectStart, EventExtensions.activeListener());
4111
+ this.document?.removeEventListener('touchmove', this.onTouchMove);
4112
+ this.document?.removeEventListener('touchend', this.onTouchUp);
4113
+ };
4114
+ }
4115
+ };
4116
+ onSelectStart = (event) => {
4117
+ this.onSelect(event);
4118
+ };
4119
+ onMouseMove = (event) => {
4120
+ this.moveHandler(new IMouseEvent(event));
4121
+ };
4122
+ onTouchMove = (event) => {
4123
+ this.moveHandler(new ITouchMoveEvent(event));
4124
+ };
3949
4125
  checkDragSequenceToStart(event) {
3950
4126
  const pointerPosition = event.getPosition();
3951
4127
  if (!this.isDragStarted) {
@@ -3968,6 +4144,18 @@ class FDraggableBase {
3968
4144
  }
3969
4145
  }
3970
4146
  }
4147
+ onMouseUp = (event) => {
4148
+ if (this.isDragStarted) {
4149
+ this.onPointerUp(new IMouseEvent(event));
4150
+ }
4151
+ this.endDragSequence();
4152
+ };
4153
+ onTouchUp = (event) => {
4154
+ if (this.isDragStarted) {
4155
+ this.onPointerUp(new ITouchUpEvent(event));
4156
+ }
4157
+ this.endDragSequence();
4158
+ };
3971
4159
  endDragSequence() {
3972
4160
  this.isDragStarted = false;
3973
4161
  this.moveHandler = this.checkDragSequenceToStart;
@@ -3999,10 +4187,10 @@ class FDraggableBase {
3999
4187
  this.mouseListeners();
4000
4188
  this.mouseListeners = EventExtensions.emptyListener();
4001
4189
  }
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 }); }
4190
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
4191
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FDraggableBase, ngImport: i0 });
4004
4192
  }
4005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableBase, decorators: [{
4193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableBase, decorators: [{
4006
4194
  type: Directive
4007
4195
  }], ctorParameters: () => [{ type: undefined }] });
4008
4196
  function isTouchEvent(event) {
@@ -4020,9 +4208,22 @@ function isFakeTouchstartFromScreenReader(event) {
4020
4208
  }
4021
4209
 
4022
4210
  class FDraggableDirective extends FDraggableBase {
4211
+ elementReference;
4212
+ fDraggableDataContext;
4213
+ fComponentsStore;
4214
+ fMediator;
4215
+ doc;
4216
+ subscriptions$ = new Subscription();
4217
+ disabled = false;
4023
4218
  get hostElement() {
4024
4219
  return this.elementReference.nativeElement;
4025
4220
  }
4221
+ fSelectionChange = new EventEmitter();
4222
+ // @Output()
4223
+ // public override fConnectionIntersectNode: EventEmitter<ConnectionIntersectNodeEvent> = new EventEmitter<ConnectionIntersectNodeEvent>();
4224
+ fCreateNode = new EventEmitter();
4225
+ fReassignConnection = new EventEmitter();
4226
+ fCreateConnection = new EventEmitter();
4026
4227
  constructor(elementReference, fDraggableDataContext, ngZone, fComponentsStore, fMediator, doc) {
4027
4228
  super(ngZone);
4028
4229
  this.elementReference = elementReference;
@@ -4030,14 +4231,6 @@ class FDraggableDirective extends FDraggableBase {
4030
4231
  this.fComponentsStore = fComponentsStore;
4031
4232
  this.fMediator = fMediator;
4032
4233
  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
4234
  }
4042
4235
  ngOnInit() {
4043
4236
  this.fComponentsStore.fDraggable = this;
@@ -4109,12 +4302,12 @@ class FDraggableDirective extends FDraggableBase {
4109
4302
  super.unsubscribe();
4110
4303
  this.subscriptions$.unsubscribe();
4111
4304
  }
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: [
4305
+ 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 });
4306
+ 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
4307
  { provide: F_DRAGGABLE, useExisting: FDraggableDirective }
4115
- ], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 }); }
4308
+ ], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 });
4116
4309
  }
4117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FDraggableDirective, decorators: [{
4310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FDraggableDirective, decorators: [{
4118
4311
  type: Directive,
4119
4312
  args: [{
4120
4313
  selector: "f-flow[fDraggable]",
@@ -4140,6 +4333,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
4140
4333
  }] } });
4141
4334
 
4142
4335
  class FSelectionChangeEvent {
4336
+ nodes;
4337
+ connections;
4143
4338
  constructor(nodes, connections) {
4144
4339
  this.nodes = nodes;
4145
4340
  this.connections = connections;
@@ -4157,6 +4352,7 @@ const F_DRAGGABLE_PROVIDERS = [
4157
4352
  ];
4158
4353
 
4159
4354
  let ClearSelectionExecution = class ClearSelectionExecution {
4355
+ fDraggableDataContext;
4160
4356
  constructor(fDraggableDataContext) {
4161
4357
  this.fDraggableDataContext = fDraggableDataContext;
4162
4358
  }
@@ -4167,17 +4363,18 @@ let ClearSelectionExecution = class ClearSelectionExecution {
4167
4363
  this.fDraggableDataContext.selectedItems = [];
4168
4364
  this.fDraggableDataContext.isSelectedChanged = true;
4169
4365
  }
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 }); }
4366
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
4367
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution });
4172
4368
  };
4173
4369
  ClearSelectionExecution = __decorate([
4174
4370
  FExecutionRegister(ClearSelectionRequest)
4175
4371
  ], ClearSelectionExecution);
4176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ClearSelectionExecution, decorators: [{
4372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: ClearSelectionExecution, decorators: [{
4177
4373
  type: Injectable
4178
4374
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
4179
4375
 
4180
4376
  class CreateConnectionMarkersRequest {
4377
+ fConnection;
4181
4378
  constructor(fConnection) {
4182
4379
  this.fConnection = fConnection;
4183
4380
  }
@@ -4215,17 +4412,18 @@ let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
4215
4412
  markerElement.setAttribute('markerUnits', `${marker.markerUnits}`);
4216
4413
  return markerElement;
4217
4414
  }
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 }); }
4415
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4416
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution });
4220
4417
  };
4221
4418
  CreateConnectionMarkersExecution = __decorate([
4222
4419
  FExecutionRegister(CreateConnectionMarkersRequest)
4223
4420
  ], CreateConnectionMarkersExecution);
4224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
4421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
4225
4422
  type: Injectable
4226
4423
  }] });
4227
4424
 
4228
4425
  class GetElementRectInFlowRequest {
4426
+ element;
4229
4427
  constructor(element) {
4230
4428
  this.element = element;
4231
4429
  }
@@ -4237,6 +4435,16 @@ var EFConnectorShape;
4237
4435
  })(EFConnectorShape || (EFConnectorShape = {}));
4238
4436
 
4239
4437
  class RoundedRect {
4438
+ x;
4439
+ y;
4440
+ width;
4441
+ height;
4442
+ radius1;
4443
+ radius2;
4444
+ radius3;
4445
+ radius4;
4446
+ type = EFConnectorShape.ROUNDED_RECT;
4447
+ gravityCenter = { x: 0, y: 0 };
4240
4448
  constructor(x = 0, y = 0, width = 0, height = 0, radius1 = 0, radius2 = 0, radius3 = 0, radius4 = 0) {
4241
4449
  this.x = x;
4242
4450
  this.y = y;
@@ -4246,8 +4454,6 @@ class RoundedRect {
4246
4454
  this.radius2 = radius2;
4247
4455
  this.radius3 = radius3;
4248
4456
  this.radius4 = radius4;
4249
- this.type = EFConnectorShape.ROUNDED_RECT;
4250
- this.gravityCenter = { x: 0, y: 0 };
4251
4457
  this.gravityCenter = this.calculateGravityCenter(this);
4252
4458
  }
4253
4459
  calculateGravityCenter(rect) {
@@ -4478,6 +4684,7 @@ class IntersectionFinder {
4478
4684
  }
4479
4685
 
4480
4686
  let GetElementRectInFlowExecution = class GetElementRectInFlowExecution {
4687
+ fComponentsStore;
4481
4688
  get transform() {
4482
4689
  return this.fComponentsStore.transform;
4483
4690
  }
@@ -4499,17 +4706,20 @@ let GetElementRectInFlowExecution = class GetElementRectInFlowExecution {
4499
4706
  transformElementSizeInFlow(rect) {
4500
4707
  return SizeExtensions.initialize(rect.width / this.transform.scale, rect.height / this.transform.scale);
4501
4708
  }
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 }); }
4709
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4710
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution });
4504
4711
  };
4505
4712
  GetElementRectInFlowExecution = __decorate([
4506
4713
  FExecutionRegister(GetElementRectInFlowRequest)
4507
4714
  ], GetElementRectInFlowExecution);
4508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetElementRectInFlowExecution, decorators: [{
4715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetElementRectInFlowExecution, decorators: [{
4509
4716
  type: Injectable
4510
4717
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4511
4718
 
4512
4719
  let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
4720
+ fComponentsStore;
4721
+ fDraggableDataContext;
4722
+ fMediator;
4513
4723
  get fNodes() {
4514
4724
  return this.fComponentsStore.fNodes;
4515
4725
  }
@@ -4545,17 +4755,22 @@ let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
4545
4755
  };
4546
4756
  });
4547
4757
  }
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 }); }
4758
+ 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 });
4759
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeSelectedItemsExecution });
4550
4760
  };
4551
4761
  GetCanBeSelectedItemsExecution = __decorate([
4552
4762
  FExecutionRegister(GetCanBeSelectedItemsRequest)
4553
4763
  ], GetCanBeSelectedItemsExecution);
4554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
4764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
4555
4765
  type: Injectable
4556
4766
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }] });
4557
4767
 
4558
4768
  class GetConnectionLineRequest {
4769
+ outputRect;
4770
+ inputRect;
4771
+ behavior;
4772
+ outputSide;
4773
+ inputSide;
4559
4774
  constructor(outputRect, inputRect, behavior, outputSide, inputSide) {
4560
4775
  this.outputRect = outputRect;
4561
4776
  this.inputRect = inputRect;
@@ -4566,13 +4781,11 @@ class GetConnectionLineRequest {
4566
4781
  }
4567
4782
 
4568
4783
  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
- }
4784
+ behaviorHandlers = {
4785
+ [EFConnectionBehavior.FLOATING.toString()]: this.floatingBehavior,
4786
+ [EFConnectionBehavior.FIXED_CENTER.toString()]: this.fixedCenterBehavior,
4787
+ [EFConnectionBehavior.FIXED.toString()]: this.fixedOutboundBehaviour,
4788
+ };
4576
4789
  handle(payload) {
4577
4790
  return this.behaviorHandlers[payload.behavior](payload);
4578
4791
  }
@@ -4587,13 +4800,13 @@ let GetConnectionLineExecution = class GetConnectionLineExecution {
4587
4800
  fixedOutboundBehaviour(payload) {
4588
4801
  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
4802
  }
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 }); }
4803
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4804
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution });
4592
4805
  };
4593
4806
  GetConnectionLineExecution = __decorate([
4594
4807
  FExecutionRegister(GetConnectionLineRequest)
4595
4808
  ], GetConnectionLineExecution);
4596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionLineExecution, decorators: [{
4809
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionLineExecution, decorators: [{
4597
4810
  type: Injectable
4598
4811
  }] });
4599
4812
  const positionFixedOutbound = {
@@ -4624,12 +4837,15 @@ const positionFixedOutbound = {
4624
4837
  };
4625
4838
 
4626
4839
  class GetInputRectInFlowRequest {
4840
+ fInputId;
4627
4841
  constructor(fInputId) {
4628
4842
  this.fInputId = fInputId;
4629
4843
  }
4630
4844
  }
4631
4845
 
4632
4846
  class GetInputRectInFlowResponse {
4847
+ rect;
4848
+ fConnectableSide;
4633
4849
  constructor(rect, fConnectableSide) {
4634
4850
  this.rect = rect;
4635
4851
  this.fConnectableSide = fConnectableSide;
@@ -4637,6 +4853,8 @@ class GetInputRectInFlowResponse {
4637
4853
  }
4638
4854
 
4639
4855
  let GetInputRectInFlowExecution = class GetInputRectInFlowExecution {
4856
+ fComponentsStore;
4857
+ fMediator;
4640
4858
  constructor(fComponentsStore, fMediator) {
4641
4859
  this.fComponentsStore = fComponentsStore;
4642
4860
  this.fMediator = fMediator;
@@ -4648,13 +4866,13 @@ let GetInputRectInFlowExecution = class GetInputRectInFlowExecution {
4648
4866
  }
4649
4867
  return new GetInputRectInFlowResponse(this.fMediator.send(new GetElementRectInFlowRequest(input.hostElement)), input.fConnectableSide);
4650
4868
  }
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 }); }
4869
+ 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 });
4870
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputRectInFlowExecution });
4653
4871
  };
4654
4872
  GetInputRectInFlowExecution = __decorate([
4655
4873
  FExecutionRegister(GetInputRectInFlowRequest)
4656
4874
  ], GetInputRectInFlowExecution);
4657
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetInputRectInFlowExecution, decorators: [{
4875
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetInputRectInFlowExecution, decorators: [{
4658
4876
  type: Injectable
4659
4877
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4660
4878
 
@@ -4662,6 +4880,7 @@ class GetNodesRectRequest {
4662
4880
  }
4663
4881
 
4664
4882
  let GetNodesRectExecution = class GetNodesRectExecution {
4883
+ fComponentsStore;
4665
4884
  constructor(fComponentsStore) {
4666
4885
  this.fComponentsStore = fComponentsStore;
4667
4886
  }
@@ -4672,23 +4891,26 @@ let GetNodesRectExecution = class GetNodesRectExecution {
4672
4891
  });
4673
4892
  return RectExtensions.union(rects);
4674
4893
  }
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 }); }
4894
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4895
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution });
4677
4896
  };
4678
4897
  GetNodesRectExecution = __decorate([
4679
4898
  FExecutionRegister(GetNodesRectRequest)
4680
4899
  ], GetNodesRectExecution);
4681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetNodesRectExecution, decorators: [{
4900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetNodesRectExecution, decorators: [{
4682
4901
  type: Injectable
4683
4902
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4684
4903
 
4685
4904
  class GetOutputRectInFlowRequest {
4905
+ fOutputId;
4686
4906
  constructor(fOutputId) {
4687
4907
  this.fOutputId = fOutputId;
4688
4908
  }
4689
4909
  }
4690
4910
 
4691
4911
  class GetOutputRectInFlowResponse {
4912
+ rect;
4913
+ fConnectableSide;
4692
4914
  constructor(rect, fConnectableSide) {
4693
4915
  this.rect = rect;
4694
4916
  this.fConnectableSide = fConnectableSide;
@@ -4696,6 +4918,8 @@ class GetOutputRectInFlowResponse {
4696
4918
  }
4697
4919
 
4698
4920
  let GetOutputRectInFlowExecution = class GetOutputRectInFlowExecution {
4921
+ fComponentsStore;
4922
+ fMediator;
4699
4923
  constructor(fComponentsStore, fMediator) {
4700
4924
  this.fComponentsStore = fComponentsStore;
4701
4925
  this.fMediator = fMediator;
@@ -4711,23 +4935,25 @@ let GetOutputRectInFlowExecution = class GetOutputRectInFlowExecution {
4711
4935
  const result = this.fMediator.send(new GetElementRectInFlowRequest(output.hostElement));
4712
4936
  return new GetOutputRectInFlowResponse(result, output.fConnectableSide);
4713
4937
  }
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 }); }
4938
+ 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 });
4939
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutputRectInFlowExecution });
4716
4940
  };
4717
4941
  GetOutputRectInFlowExecution = __decorate([
4718
4942
  FExecutionRegister(GetOutputRectInFlowRequest)
4719
4943
  ], GetOutputRectInFlowExecution);
4720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutputRectInFlowExecution, decorators: [{
4944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutputRectInFlowExecution, decorators: [{
4721
4945
  type: Injectable
4722
4946
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4723
4947
 
4724
4948
  class GetPositionInFlowRequest {
4949
+ position;
4725
4950
  constructor(position) {
4726
4951
  this.position = position;
4727
4952
  }
4728
4953
  }
4729
4954
 
4730
4955
  let GetPositionInFlowExecution = class GetPositionInFlowExecution {
4956
+ fComponentsStore;
4731
4957
  get transform() {
4732
4958
  return this.fComponentsStore.transform;
4733
4959
  }
@@ -4741,13 +4967,13 @@ let GetPositionInFlowExecution = class GetPositionInFlowExecution {
4741
4967
  return Point.fromPoint(request.position).elementTransform(this.flowHost)
4742
4968
  .sub(this.transform.scaledPosition).sub(this.transform.position).div(this.transform.scale);
4743
4969
  }
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 }); }
4970
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4971
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution });
4746
4972
  };
4747
4973
  GetPositionInFlowExecution = __decorate([
4748
4974
  FExecutionRegister(GetPositionInFlowRequest)
4749
4975
  ], GetPositionInFlowExecution);
4750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetPositionInFlowExecution, decorators: [{
4976
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetPositionInFlowExecution, decorators: [{
4751
4977
  type: Injectable
4752
4978
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4753
4979
 
@@ -4755,6 +4981,7 @@ class GetSelectionRequest {
4755
4981
  }
4756
4982
 
4757
4983
  let GetSelectionExecution = class GetSelectionExecution {
4984
+ fDraggableDataContext;
4758
4985
  constructor(fDraggableDataContext) {
4759
4986
  this.fDraggableDataContext = fDraggableDataContext;
4760
4987
  }
@@ -4771,17 +4998,18 @@ let GetSelectionExecution = class GetSelectionExecution {
4771
4998
  });
4772
4999
  return new FSelectionChangeEvent(selectedNodes, selectedConnections);
4773
5000
  }
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 }); }
5001
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5002
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution });
4776
5003
  };
4777
5004
  GetSelectionExecution = __decorate([
4778
5005
  FExecutionRegister(GetSelectionRequest)
4779
5006
  ], GetSelectionExecution);
4780
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetSelectionExecution, decorators: [{
5007
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetSelectionExecution, decorators: [{
4781
5008
  type: Injectable
4782
5009
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
4783
5010
 
4784
5011
  class GetOutgoingConnectionsHandler {
5012
+ fComponentsStore;
4785
5013
  get fConnections() {
4786
5014
  return this.fComponentsStore.fConnections;
4787
5015
  }
@@ -4794,14 +5022,15 @@ class GetOutgoingConnectionsHandler {
4794
5022
  return outputsIds.includes(x.fOutputId);
4795
5023
  });
4796
5024
  }
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 }); }
5025
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5026
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler });
4799
5027
  }
4800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetOutgoingConnectionsHandler, decorators: [{
5028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetOutgoingConnectionsHandler, decorators: [{
4801
5029
  type: Injectable
4802
5030
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4803
5031
 
4804
5032
  class GetIncomingConnectionsHandler {
5033
+ fComponentsStore;
4805
5034
  get fConnections() {
4806
5035
  return this.fComponentsStore.fConnections;
4807
5036
  }
@@ -4814,14 +5043,19 @@ class GetIncomingConnectionsHandler {
4814
5043
  return inputsIds.includes(x.fInputId);
4815
5044
  });
4816
5045
  }
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 }); }
5046
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5047
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler });
4819
5048
  }
4820
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetIncomingConnectionsHandler, decorators: [{
5049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetIncomingConnectionsHandler, decorators: [{
4821
5050
  type: Injectable
4822
5051
  }], ctorParameters: () => [{ type: FComponentsStore }] });
4823
5052
 
4824
5053
  let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
5054
+ fComponentsStore;
5055
+ fDraggableDataContext;
5056
+ fMediator;
5057
+ getOutgoingConnectionsHandler;
5058
+ getIncomingConnectionsHandler;
4825
5059
  get transform() {
4826
5060
  return this.fComponentsStore.fCanvas.transform;
4827
5061
  }
@@ -4878,13 +5112,13 @@ let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
4878
5112
  return ([]).length > 0;
4879
5113
  });
4880
5114
  }
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 }); }
5115
+ 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 });
5116
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: IsConnectionUnderNodeExecution });
4883
5117
  };
4884
5118
  IsConnectionUnderNodeExecution = __decorate([
4885
5119
  FExecutionRegister(IsConnectionUnderNodeRequest)
4886
5120
  ], IsConnectionUnderNodeExecution);
4887
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IsConnectionUnderNodeExecution, decorators: [{
5121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: IsConnectionUnderNodeExecution, decorators: [{
4888
5122
  type: Injectable
4889
5123
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: FFlowMediator }, { type: GetOutgoingConnectionsHandler }, { type: GetIncomingConnectionsHandler }] });
4890
5124
 
@@ -4892,6 +5126,8 @@ class RedrawConnectionsRequest {
4892
5126
  }
4893
5127
 
4894
5128
  let RedrawConnectionsExecution = class RedrawConnectionsExecution {
5129
+ fComponentsStore;
5130
+ fMediator;
4895
5131
  constructor(fComponentsStore, fMediator) {
4896
5132
  this.fComponentsStore = fComponentsStore;
4897
5133
  this.fMediator = fMediator;
@@ -4930,17 +5166,19 @@ let RedrawConnectionsExecution = class RedrawConnectionsExecution {
4930
5166
  setMarkers(connection) {
4931
5167
  this.fMediator.send(new CreateConnectionMarkersRequest(connection));
4932
5168
  }
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 }); }
5169
+ 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 });
5170
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: RedrawConnectionsExecution });
4935
5171
  };
4936
5172
  RedrawConnectionsExecution = __decorate([
4937
5173
  FExecutionRegister(RedrawConnectionsRequest)
4938
5174
  ], RedrawConnectionsExecution);
4939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: RedrawConnectionsExecution, decorators: [{
5175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: RedrawConnectionsExecution, decorators: [{
4940
5176
  type: Injectable
4941
5177
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FFlowMediator }] });
4942
5178
 
4943
5179
  class SelectRequest {
5180
+ nodes;
5181
+ connections;
4944
5182
  constructor(nodes, connections) {
4945
5183
  this.nodes = nodes;
4946
5184
  this.connections = connections;
@@ -4948,6 +5186,8 @@ class SelectRequest {
4948
5186
  }
4949
5187
 
4950
5188
  let SelectExecution = class SelectExecution {
5189
+ fDataContext;
5190
+ fDraggableDataContext;
4951
5191
  constructor(fDataContext, fDraggableDataContext) {
4952
5192
  this.fDataContext = fDataContext;
4953
5193
  this.fDraggableDataContext = fDraggableDataContext;
@@ -4973,13 +5213,13 @@ let SelectExecution = class SelectExecution {
4973
5213
  });
4974
5214
  this.fDraggableDataContext.isSelectedChanged = true;
4975
5215
  }
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 }); }
5216
+ 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 });
5217
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectExecution });
4978
5218
  };
4979
5219
  SelectExecution = __decorate([
4980
5220
  FExecutionRegister(SelectRequest)
4981
5221
  ], SelectExecution);
4982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectExecution, decorators: [{
5222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectExecution, decorators: [{
4983
5223
  type: Injectable
4984
5224
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
4985
5225
 
@@ -4987,6 +5227,8 @@ class SelectAllRequest {
4987
5227
  }
4988
5228
 
4989
5229
  let SelectAllExecution = class SelectAllExecution {
5230
+ fDataContext;
5231
+ fDraggableDataContext;
4990
5232
  constructor(fDataContext, fDraggableDataContext) {
4991
5233
  this.fDataContext = fDataContext;
4992
5234
  this.fDraggableDataContext = fDraggableDataContext;
@@ -5006,23 +5248,26 @@ let SelectAllExecution = class SelectAllExecution {
5006
5248
  });
5007
5249
  this.fDraggableDataContext.isSelectedChanged = true;
5008
5250
  }
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 }); }
5251
+ 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 });
5252
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAllExecution });
5011
5253
  };
5012
5254
  SelectAllExecution = __decorate([
5013
5255
  FExecutionRegister(SelectAllRequest)
5014
5256
  ], SelectAllExecution);
5015
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAllExecution, decorators: [{
5257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAllExecution, decorators: [{
5016
5258
  type: Injectable
5017
5259
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
5018
5260
 
5019
5261
  class SelectAndUpdateNodeLayerRequest {
5262
+ node;
5020
5263
  constructor(node) {
5021
5264
  this.node = node;
5022
5265
  }
5023
5266
  }
5024
5267
 
5025
5268
  class UpdateItemLayerRequest {
5269
+ item;
5270
+ itemContainer;
5026
5271
  constructor(item, itemContainer) {
5027
5272
  this.item = item;
5028
5273
  this.itemContainer = itemContainer;
@@ -5032,9 +5277,8 @@ class UpdateItemLayerRequest {
5032
5277
  let UpdateItemLayerExecution = class UpdateItemLayerExecution {
5033
5278
  handle(request) {
5034
5279
  const elements = Array.from(request.itemContainer.children);
5035
- const elementsCount = elements.length;
5036
5280
  const targetIndex = elements.findIndex((x) => x === request.item.hostElement);
5037
- if (targetIndex !== elementsCount - 1) {
5281
+ if (targetIndex !== -1 && targetIndex !== elements.length - 1) {
5038
5282
  const afterElements = elements.splice(targetIndex + 1);
5039
5283
  afterElements.forEach((x) => {
5040
5284
  request.itemContainer.removeChild(x);
@@ -5042,17 +5286,20 @@ let UpdateItemLayerExecution = class UpdateItemLayerExecution {
5042
5286
  });
5043
5287
  }
5044
5288
  }
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 }); }
5289
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5290
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution });
5047
5291
  };
5048
5292
  UpdateItemLayerExecution = __decorate([
5049
5293
  FExecutionRegister(UpdateItemLayerRequest)
5050
5294
  ], UpdateItemLayerExecution);
5051
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UpdateItemLayerExecution, decorators: [{
5295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: UpdateItemLayerExecution, decorators: [{
5052
5296
  type: Injectable
5053
5297
  }] });
5054
5298
 
5055
5299
  let SelectAndUpdateNodeLayerExecution = class SelectAndUpdateNodeLayerExecution {
5300
+ fDraggableDataContext;
5301
+ fComponentsStore;
5302
+ fMediator;
5056
5303
  constructor(fDraggableDataContext, fComponentsStore, fMediator) {
5057
5304
  this.fDraggableDataContext = fDraggableDataContext;
5058
5305
  this.fComponentsStore = fComponentsStore;
@@ -5069,48 +5316,30 @@ let SelectAndUpdateNodeLayerExecution = class SelectAndUpdateNodeLayerExecution
5069
5316
  this.fDraggableDataContext.isSelectedChanged = true;
5070
5317
  }
5071
5318
  }
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 }); }
5319
+ 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 });
5320
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAndUpdateNodeLayerExecution });
5074
5321
  };
5075
5322
  SelectAndUpdateNodeLayerExecution = __decorate([
5076
5323
  FExecutionRegister(SelectAndUpdateNodeLayerRequest)
5077
5324
  ], SelectAndUpdateNodeLayerExecution);
5078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, decorators: [{
5325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SelectAndUpdateNodeLayerExecution, decorators: [{
5079
5326
  type: Injectable
5080
5327
  }], ctorParameters: () => [{ type: FDraggableDataContext }, { type: FComponentsStore }, { type: FFlowMediator }] });
5081
5328
 
5082
- // export function castToEnum<T>(value: any, varname: string, enm: any): T {
5083
- // const result = enm[ value.toUpperCase() as keyof typeof enm ]
5084
- // || getKeyByValue(enm, value.toLowerCase());
5085
- // if (result === undefined) {
5086
- // throw new Error(`Unknown ${ varname }: ${ value }. Accepted values: ${ Object.keys(enm).join(', ') }`);
5087
- // }
5088
- // return result;
5089
- // }
5090
- //
5091
- // function getKeyByValue(object: any, value: any) {
5092
- // return Object.keys(object).find(key => object[key] === value);
5093
- // }
5094
5329
  function castToEnum(value, varname, enm) {
5095
- if (typeof value !== 'string') {
5096
- throw new Error(`Value for ${varname} must be a string, but received: ${typeof value}`);
5097
- }
5098
- const normalizedValue = value.trim().toUpperCase();
5099
- const enumValue = enm[normalizedValue];
5100
- if (enumValue !== undefined) {
5101
- return enumValue;
5102
- }
5103
- const key = findKeyByValue(enm, value.toLowerCase());
5104
- if (key !== undefined) {
5105
- return enm[key];
5330
+ const result = enm[value.toUpperCase()]
5331
+ || getKeyByValue(enm, value.toLowerCase());
5332
+ if (result === undefined) {
5333
+ throw new Error(`Unknown ${varname}: ${value}. Accepted values: ${Object.keys(enm).join(', ')}`);
5106
5334
  }
5107
- throw new Error(`Unknown ${varname}: ${value}. Accepted values: ${Object.keys(enm).join(', ')}`);
5335
+ return result;
5108
5336
  }
5109
- function findKeyByValue(object, value) {
5337
+ function getKeyByValue(object, value) {
5110
5338
  return Object.keys(object).find(key => object[key] === value);
5111
5339
  }
5112
5340
 
5113
5341
  class GetConnectionHandler {
5342
+ fComponentsStore;
5114
5343
  get fConnections() {
5115
5344
  return this.fComponentsStore.fConnections;
5116
5345
  }
@@ -5120,10 +5349,10 @@ class GetConnectionHandler {
5120
5349
  handle(element) {
5121
5350
  return this.fConnections.find(c => c.isContains(element) || c.fConnectionCenter?.nativeElement?.contains(element));
5122
5351
  }
5123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable }); }
5124
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler }); }
5352
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
5353
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler });
5125
5354
  }
5126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GetConnectionHandler, decorators: [{
5355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: GetConnectionHandler, decorators: [{
5127
5356
  type: Injectable
5128
5357
  }], ctorParameters: () => [{ type: FComponentsStore }] });
5129
5358
 
@@ -5166,12 +5395,15 @@ const COMMON_PROVIDERS = [
5166
5395
 
5167
5396
  const F_RESIZE_HANDLE = new InjectionToken('F_RESIZE_HANDLE');
5168
5397
  class FResizeHandleDirective {
5398
+ elementReference;
5399
+ isDisabled = false;
5169
5400
  set disabled(isDisabled) {
5170
5401
  this.isDisabled = BooleanExtensions.castToBoolean(isDisabled);
5171
5402
  }
5172
5403
  get disabled() {
5173
5404
  return this.isDisabled;
5174
5405
  }
5406
+ _type = EFResizeHandleType.LEFT_TOP;
5175
5407
  set type(type) {
5176
5408
  this._type = castToEnum(type, 'fResizeHandleType', EFResizeHandleType);
5177
5409
  }
@@ -5186,13 +5418,11 @@ class FResizeHandleDirective {
5186
5418
  }
5187
5419
  constructor(elementReference) {
5188
5420
  this.elementReference = elementReference;
5189
- this.isDisabled = false;
5190
- this._type = EFResizeHandleType.LEFT_TOP;
5191
5421
  }
5192
- 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 }); }
5193
- 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 }); }
5422
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FResizeHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
5423
+ 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 });
5194
5424
  }
5195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FResizeHandleDirective, decorators: [{
5425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FResizeHandleDirective, decorators: [{
5196
5426
  type: Directive,
5197
5427
  args: [{
5198
5428
  selector: "[fResizeHandle]",
@@ -5225,6 +5455,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
5225
5455
  // providers: [ { provide: F_ROTATE_HANDLE, useExisting: FRotateHandleDirective } ],
5226
5456
  // })
5227
5457
  class FRotateHandleDirective {
5458
+ elementReference;
5459
+ isDisabled = false;
5228
5460
  // @Input('fRotateHandleDisabled')
5229
5461
  // public set disabled(isDisabled: boolean | undefined | string) {
5230
5462
  // this.isDisabled = BooleanExtensions.castToBoolean(isDisabled);
@@ -5237,16 +5469,14 @@ class FRotateHandleDirective {
5237
5469
  }
5238
5470
  constructor(elementReference) {
5239
5471
  this.elementReference = elementReference;
5240
- this.isDisabled = false;
5241
5472
  }
5242
5473
  }
5243
5474
 
5244
5475
  const F_NODE = new InjectionToken('F_NODE');
5245
5476
  class FNodeBase {
5246
- constructor() {
5247
- this.stateChanges = new Subject();
5248
- this._position = PointExtensions.initialize();
5249
- }
5477
+ stateChanges = new Subject();
5478
+ _position = PointExtensions.initialize();
5479
+ _size;
5250
5480
  isContains(element) {
5251
5481
  return this.hostElement.contains(element);
5252
5482
  }
@@ -5291,6 +5521,11 @@ class FResizeObserver extends Observable {
5291
5521
 
5292
5522
  let uniqueId$1 = 0;
5293
5523
  class FNodeDirective extends FNodeBase {
5524
+ elementReference;
5525
+ renderer;
5526
+ fComponentsStore;
5527
+ subscriptions$ = new Subscription();
5528
+ fId = `f-node-${uniqueId$1++}`;
5294
5529
  set position(value) {
5295
5530
  this._position = PointExtensions.castToPoint(value);
5296
5531
  this.refresh();
@@ -5298,6 +5533,7 @@ class FNodeDirective extends FNodeBase {
5298
5533
  get position() {
5299
5534
  return this._position;
5300
5535
  }
5536
+ positionChange = new EventEmitter();
5301
5537
  set size(value) {
5302
5538
  this._size = value;
5303
5539
  this.refresh();
@@ -5305,22 +5541,19 @@ class FNodeDirective extends FNodeBase {
5305
5541
  get size() {
5306
5542
  return this._size;
5307
5543
  }
5544
+ sizeChange = new EventEmitter();
5545
+ fDraggingDisabled = false;
5546
+ fSelectionDisabled = false;
5547
+ fConnectOnNode = true;
5308
5548
  get hostElement() {
5309
5549
  return this.elementReference.nativeElement;
5310
5550
  }
5551
+ connectors = [];
5311
5552
  constructor(elementReference, renderer, fComponentsStore) {
5312
5553
  super();
5313
5554
  this.elementReference = elementReference;
5314
5555
  this.renderer = renderer;
5315
5556
  this.fComponentsStore = fComponentsStore;
5316
- this.subscriptions$ = new Subscription();
5317
- this.fId = `f-node-${uniqueId$1++}`;
5318
- this.positionChange = new EventEmitter();
5319
- this.sizeChange = new EventEmitter();
5320
- this.fDraggingDisabled = false;
5321
- this.fSelectionDisabled = false;
5322
- this.fConnectOnNode = true;
5323
- this.connectors = [];
5324
5557
  }
5325
5558
  ngOnInit() {
5326
5559
  this.setStyle('position', 'absolute');
@@ -5365,12 +5598,12 @@ class FNodeDirective extends FNodeBase {
5365
5598
  this.stateChanges.complete();
5366
5599
  this.subscriptions$.unsubscribe();
5367
5600
  }
5368
- 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 }); }
5369
- 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: [
5601
+ 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 });
5602
+ 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: [
5370
5603
  { provide: F_NODE, useExisting: FNodeDirective }
5371
- ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 }); }
5604
+ ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 });
5372
5605
  }
5373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FNodeDirective, decorators: [{
5606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FNodeDirective, decorators: [{
5374
5607
  type: Directive,
5375
5608
  args: [{
5376
5609
  selector: "[fNode]",
@@ -5423,6 +5656,9 @@ const F_NODE_PROVIDERS = [
5423
5656
 
5424
5657
  const F_ZOOM = new InjectionToken('F_ZOOM');
5425
5658
  class FZoomBase {
5659
+ fComponentsStore;
5660
+ isEnabled = false;
5661
+ listeners = EventExtensions.emptyListener();
5426
5662
  get flowHost() {
5427
5663
  return this.fComponentsStore.flowHost;
5428
5664
  }
@@ -5431,8 +5667,6 @@ class FZoomBase {
5431
5667
  }
5432
5668
  constructor(fComponentsStore) {
5433
5669
  this.fComponentsStore = fComponentsStore;
5434
- this.isEnabled = false;
5435
- this.listeners = EventExtensions.emptyListener();
5436
5670
  }
5437
5671
  toggleZoom() {
5438
5672
  if (this.isEnabled) {
@@ -5523,12 +5757,12 @@ class FZoomDirective extends FZoomBase {
5523
5757
  this.toggleZoom();
5524
5758
  }
5525
5759
  }
5760
+ minimum = 0.1;
5761
+ maximum = 4;
5762
+ step = 0.1;
5763
+ dblClickStep = 0.5;
5526
5764
  constructor(fComponentsStore) {
5527
5765
  super(fComponentsStore);
5528
- this.minimum = 0.1;
5529
- this.maximum = 4;
5530
- this.step = 0.1;
5531
- this.dblClickStep = 0.5;
5532
5766
  }
5533
5767
  ngAfterViewInit() {
5534
5768
  super.toggleZoom();
@@ -5536,10 +5770,10 @@ class FZoomDirective extends FZoomBase {
5536
5770
  ngOnDestroy() {
5537
5771
  super.unsubscribe();
5538
5772
  }
5539
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FZoomDirective, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
5540
- 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 }); }
5773
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FZoomDirective, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive });
5774
+ 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 });
5541
5775
  }
5542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FZoomDirective, decorators: [{
5776
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FZoomDirective, decorators: [{
5543
5777
  type: Directive,
5544
5778
  args: [{
5545
5779
  selector: "f-canvas[fZoom]",
@@ -5568,6 +5802,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
5568
5802
 
5569
5803
  const F_CANVAS = new InjectionToken('F_CANVAS');
5570
5804
  const MIXIN_BASE = mixinChangePosition(mixinFitToParent(mixinOneToOneCentering(mixinChangeZoom(class {
5805
+ transform;
5571
5806
  constructor(transform) {
5572
5807
  this.transform = transform;
5573
5808
  }
@@ -5582,14 +5817,18 @@ class FCanvasBase extends MIXIN_BASE {
5582
5817
  getCanvasPosition() {
5583
5818
  return PointExtensions.sum(this.transform.position, this.transform.scaledPosition);
5584
5819
  }
5585
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5586
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FCanvasBase, usesInheritance: true, ngImport: i0 }); }
5820
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5821
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FCanvasBase, usesInheritance: true, ngImport: i0 });
5587
5822
  }
5588
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasBase, decorators: [{
5823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasBase, decorators: [{
5589
5824
  type: Directive
5590
5825
  }], ctorParameters: () => [] });
5591
5826
 
5592
5827
  class FCanvasComponent extends FCanvasBase {
5828
+ elementReference;
5829
+ fMediator;
5830
+ fComponentsStore;
5831
+ fCanvasChange = new EventEmitter();
5593
5832
  set position(value) {
5594
5833
  if (!value) {
5595
5834
  return;
@@ -5614,12 +5853,13 @@ class FCanvasComponent extends FCanvasBase {
5614
5853
  get hostElement() {
5615
5854
  return this.elementReference.nativeElement;
5616
5855
  }
5856
+ fNodesContainer;
5857
+ fConnectionsContainer;
5617
5858
  constructor(elementReference, fMediator, fComponentsStore) {
5618
5859
  super();
5619
5860
  this.elementReference = elementReference;
5620
5861
  this.fMediator = fMediator;
5621
5862
  this.fComponentsStore = fComponentsStore;
5622
- this.fCanvasChange = new EventEmitter();
5623
5863
  }
5624
5864
  ngOnInit() {
5625
5865
  this.fComponentsStore.fCanvas = this;
@@ -5657,10 +5897,10 @@ class FCanvasComponent extends FCanvasBase {
5657
5897
  this.redrawWithAnimation();
5658
5898
  this.completeDrag();
5659
5899
  }
5660
- 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 }); }
5661
- 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 }); }
5900
+ 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 });
5901
+ 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 });
5662
5902
  }
5663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FCanvasComponent, decorators: [{
5903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FCanvasComponent, decorators: [{
5664
5904
  type: Component,
5665
5905
  args: [{ selector: 'f-canvas', exportAs: 'fComponent', host: {
5666
5906
  'class': 'f-component f-canvas',
@@ -5685,9 +5925,10 @@ const F_CANVAS_PROVIDERS = [
5685
5925
  ];
5686
5926
 
5687
5927
  class LineElement {
5928
+ hostElement;
5929
+ element = DomElementExtensions.createHtmlElement('div');
5688
5930
  constructor(hostElement) {
5689
5931
  this.hostElement = hostElement;
5690
- this.element = DomElementExtensions.createHtmlElement('div');
5691
5932
  this.hostElement.appendChild(this.element);
5692
5933
  this.element.classList.add('f-line');
5693
5934
  }
@@ -5707,6 +5948,9 @@ class LineElement {
5707
5948
  }
5708
5949
 
5709
5950
  class LineService {
5951
+ hostElement;
5952
+ fHorizontalLine;
5953
+ fVerticalLine;
5710
5954
  constructor(hostElement) {
5711
5955
  this.hostElement = hostElement;
5712
5956
  this.fHorizontalLine = new LineElement(this.hostElement);
@@ -5742,6 +5986,9 @@ class LineService {
5742
5986
  * A class to find the nearest coordinate.
5743
5987
  */
5744
5988
  class NearestCoordinateFinder {
5989
+ alignThreshold;
5990
+ elements;
5991
+ target;
5745
5992
  /**
5746
5993
  * Constructor to initialize the NearestCoordinateFinder.
5747
5994
  * @param elements - The array of IRect elements.
@@ -5841,17 +6088,26 @@ class NearestCoordinateFinder {
5841
6088
 
5842
6089
  const F_LINE_ALIGNMENT = new InjectionToken('F_LINE_ALIGNMENT');
5843
6090
  class FLineAlignmentBase {
5844
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5845
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FLineAlignmentBase, ngImport: i0 }); }
6091
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6092
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FLineAlignmentBase, ngImport: i0 });
5846
6093
  }
5847
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentBase, decorators: [{
6094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentBase, decorators: [{
5848
6095
  type: Directive
5849
6096
  }] });
5850
6097
 
5851
6098
  class FLineAlignmentComponent extends FLineAlignmentBase {
6099
+ elementReference;
6100
+ fComponentsStore;
6101
+ fDraggableDataContext;
6102
+ fMediator;
6103
+ fAlignThreshold = 10;
5852
6104
  get hostElement() {
5853
6105
  return this.elementReference.nativeElement;
5854
6106
  }
6107
+ lineService;
6108
+ size = SizeExtensions.initialize();
6109
+ draggedNodeRect = RectExtensions.initialize();
6110
+ rects = [];
5855
6111
  get transform() {
5856
6112
  return this.fComponentsStore.fCanvas.transform;
5857
6113
  }
@@ -5864,10 +6120,6 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
5864
6120
  this.fComponentsStore = fComponentsStore;
5865
6121
  this.fDraggableDataContext = fDraggableDataContext;
5866
6122
  this.fMediator = fMediator;
5867
- this.fAlignThreshold = 10;
5868
- this.size = SizeExtensions.initialize();
5869
- this.draggedNodeRect = RectExtensions.initialize();
5870
- this.rects = [];
5871
6123
  this.lineService = new LineService(this.hostElement);
5872
6124
  }
5873
6125
  ngOnInit() {
@@ -5914,12 +6166,12 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
5914
6166
  this.lineService.hideVerticalLine();
5915
6167
  this.lineService.hideHorizontalLine();
5916
6168
  }
5917
- 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 }); }
5918
- 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: [
6169
+ 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 });
6170
+ 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: [
5919
6171
  { provide: F_LINE_ALIGNMENT, useExisting: FLineAlignmentComponent }
5920
- ], 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"] }); }
6172
+ ], 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"] });
5921
6173
  }
5922
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FLineAlignmentComponent, decorators: [{
6174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FLineAlignmentComponent, decorators: [{
5923
6175
  type: Component,
5924
6176
  args: [{ selector: "f-line-alignment", template: "", exportAs: "fComponent", host: {
5925
6177
  'class': 'f-line-alignment f-component'
@@ -5936,14 +6188,16 @@ const F_LINE_ALIGNMENT_PROVIDERS = [
5936
6188
 
5937
6189
  const F_SELECTION_AREA = new InjectionToken('F_SELECTION_AREA');
5938
6190
  class FSelectionAreaBase {
5939
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5940
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: FSelectionAreaBase, ngImport: i0 }); }
6191
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6192
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: FSelectionAreaBase, ngImport: i0 });
5941
6193
  }
5942
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaBase, decorators: [{
6194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaBase, decorators: [{
5943
6195
  type: Directive
5944
6196
  }] });
5945
6197
 
5946
6198
  class FSelectionAreaComponent extends FSelectionAreaBase {
6199
+ elementReference;
6200
+ fDraggableDataContext;
5947
6201
  get hostElement() {
5948
6202
  return this.elementReference.nativeElement;
5949
6203
  }
@@ -5969,12 +6223,12 @@ class FSelectionAreaComponent extends FSelectionAreaBase {
5969
6223
  style.width = object.width + 'px';
5970
6224
  style.height = object.height + 'px';
5971
6225
  }
5972
- 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 }); }
5973
- 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: [
6226
+ 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 });
6227
+ 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: [
5974
6228
  { provide: F_SELECTION_AREA, useExisting: FSelectionAreaComponent }
5975
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] }); }
6229
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] });
5976
6230
  }
5977
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FSelectionAreaComponent, decorators: [{
6231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FSelectionAreaComponent, decorators: [{
5978
6232
  type: Component,
5979
6233
  args: [{ selector: "f-selection-area", template: ``, host: {
5980
6234
  'class': 'f-selection-area f-component'
@@ -5993,18 +6247,21 @@ class FFlowBase {
5993
6247
 
5994
6248
  let uniqueId = 0;
5995
6249
  class FFlowComponent extends FFlowBase {
6250
+ elementReference;
6251
+ fComponentsStore;
6252
+ fMediator;
6253
+ subscription$ = new Subscription();
6254
+ fFlowId = `f-flow-${uniqueId++}`;
5996
6255
  get hostElement() {
5997
6256
  return this.elementReference.nativeElement;
5998
6257
  }
6258
+ fLoaded = new EventEmitter();
6259
+ isLoaded = false;
5999
6260
  constructor(elementReference, fComponentsStore, fMediator) {
6000
6261
  super();
6001
6262
  this.elementReference = elementReference;
6002
6263
  this.fComponentsStore = fComponentsStore;
6003
6264
  this.fMediator = fMediator;
6004
- this.subscription$ = new Subscription();
6005
- this.fFlowId = `f-flow-${uniqueId++}`;
6006
- this.fLoaded = new EventEmitter();
6007
- this.isLoaded = false;
6008
6265
  }
6009
6266
  ngOnInit() {
6010
6267
  this.fComponentsStore.fFlow = this;
@@ -6048,8 +6305,8 @@ class FFlowComponent extends FFlowBase {
6048
6305
  ngOnDestroy() {
6049
6306
  this.subscription$.unsubscribe();
6050
6307
  }
6051
- 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 }); }
6052
- 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: [
6308
+ 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 });
6309
+ 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: [
6053
6310
  FFlowMediator,
6054
6311
  FComponentsStore,
6055
6312
  FDraggableDataContext,
@@ -6057,9 +6314,9 @@ class FFlowComponent extends FFlowBase {
6057
6314
  ...F_DRAGGABLE_PROVIDERS,
6058
6315
  ...COMMON_PROVIDERS,
6059
6316
  { provide: F_FLOW, useExisting: FFlowComponent },
6060
- ], 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 }); }
6317
+ ], 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 });
6061
6318
  }
6062
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowComponent, decorators: [{
6319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowComponent, decorators: [{
6063
6320
  type: Component,
6064
6321
  args: [{ selector: 'f-flow', host: {
6065
6322
  '[attr.id]': 'fFlowId',
@@ -6084,11 +6341,11 @@ const F_FLOW_PROVIDERS = [
6084
6341
  ];
6085
6342
 
6086
6343
  class FFlowModule {
6087
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6088
- 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] }); }
6089
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, imports: [CommonModule] }); }
6344
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6345
+ 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] });
6346
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, imports: [CommonModule] });
6090
6347
  }
6091
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FFlowModule, decorators: [{
6348
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FFlowModule, decorators: [{
6092
6349
  type: NgModule,
6093
6350
  args: [{
6094
6351
  declarations: [
@@ -6125,5 +6382,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
6125
6382
  * Generated bundle index. Do not edit.
6126
6383
  */
6127
6384
 
6128
- 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 };
6385
+ 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, castToEnum, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, getValueFromDataAttr, isElementWithClass, isExternalItem, isNode, isNodeInput, isNodeOutlet, isNodeOutput, mixinChangeConnectionSelection, mixinChangeConnectionVisibility };
6129
6386
  //# sourceMappingURL=foblex-flow.mjs.map