@foblex/flow 12.2.2 → 12.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/domain/create-connection-markers/create-connection-markers-request.d.ts +5 -0
  2. package/domain/create-connection-markers/create-connection-markers.handler.d.ts +10 -0
  3. package/domain/create-connection-markers/index.d.ts +2 -0
  4. package/domain/get-connection.handler.d.ts +1 -1
  5. package/domain/get-element-rect-in-flow/get-element-rect-in-flow.handler.d.ts +1 -1
  6. package/domain/get-incoming-connections.handler.d.ts +1 -1
  7. package/domain/get-input-rect-in-flow/get-input-rect-in-flow.handler.d.ts +1 -1
  8. package/domain/get-nodes-rect/get-nodes-rect.handler.d.ts +1 -1
  9. package/domain/get-outgoing-connections.handler.d.ts +1 -1
  10. package/domain/get-output-rect-in-flow/get-output-rect-in-flow.handler.d.ts +1 -1
  11. package/domain/get-position-in-flow/get-position-in-flow-request.d.ts +5 -0
  12. package/domain/get-position-in-flow/get-position-in-flow.handler.d.ts +13 -0
  13. package/domain/get-position-in-flow/index.d.ts +2 -0
  14. package/domain/index.d.ts +2 -0
  15. package/domain/providers.d.ts +3 -1
  16. package/domain/redraw-connections/redraw-connections.handler.d.ts +2 -1
  17. package/domain/select/select.handler.d.ts +1 -1
  18. package/domain/select-all/select-all.handler.d.ts +1 -1
  19. package/esm2022/domain/create-connection-markers/create-connection-markers-request.mjs +6 -0
  20. package/esm2022/domain/create-connection-markers/create-connection-markers.handler.mjs +49 -0
  21. package/esm2022/domain/create-connection-markers/index.mjs +3 -0
  22. package/esm2022/domain/get-connection.handler.mjs +3 -4
  23. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.handler.mjs +3 -4
  24. package/esm2022/domain/get-incoming-connections.handler.mjs +2 -2
  25. package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.handler.mjs +2 -2
  26. package/esm2022/domain/get-nodes-rect/get-nodes-rect.handler.mjs +2 -2
  27. package/esm2022/domain/get-outgoing-connections.handler.mjs +2 -2
  28. package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.handler.mjs +2 -2
  29. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +6 -0
  30. package/esm2022/domain/get-position-in-flow/get-position-in-flow.handler.mjs +32 -0
  31. package/esm2022/domain/get-position-in-flow/index.mjs +3 -0
  32. package/esm2022/domain/index.mjs +3 -1
  33. package/esm2022/domain/providers.mjs +5 -4
  34. package/esm2022/domain/redraw-connections/redraw-connections.handler.mjs +11 -4
  35. package/esm2022/domain/select/select.handler.mjs +3 -3
  36. package/esm2022/domain/select-all/select-all.handler.mjs +2 -2
  37. package/esm2022/f-backgroud/f-background.component.mjs +4 -4
  38. package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +100 -0
  39. package/esm2022/f-backgroud/f-circle-pattern/index.mjs +2 -0
  40. package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +118 -0
  41. package/esm2022/f-backgroud/{f-cell-pattern → f-rect-pattern}/index.mjs +2 -2
  42. package/esm2022/f-backgroud/index.mjs +3 -2
  43. package/esm2022/f-canvas/f-canvas.component.mjs +4 -4
  44. package/esm2022/f-canvas/f-zoom/f-zoom-base.mjs +1 -1
  45. package/esm2022/f-canvas/f-zoom/f-zoom.directive.mjs +2 -2
  46. package/esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center.handler.mjs +2 -3
  47. package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +2 -2
  48. package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +2 -2
  49. package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +2 -2
  50. package/esm2022/f-connection/common/f-connection-base.mjs +4 -36
  51. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +11 -15
  52. package/esm2022/f-connection/common/f-path/get-path-marker-id.mjs +15 -0
  53. package/esm2022/f-connection/common/f-path/index.mjs +2 -1
  54. package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +4 -2
  55. package/esm2022/f-connection/f-connection/f-connection.component.mjs +71 -13
  56. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +46 -9
  57. package/esm2022/f-connection/f-marker/f-marker-base.mjs +1 -1
  58. package/esm2022/f-connection/f-marker/f-marker.directive.mjs +19 -5
  59. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +5 -7
  60. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +4 -4
  61. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +5 -4
  62. package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +1 -1
  63. package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +2 -2
  64. package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +2 -2
  65. package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +3 -3
  66. package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +2 -2
  67. package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +2 -2
  68. package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +2 -2
  69. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +2 -2
  70. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +2 -2
  71. package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +2 -1
  72. package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +3 -3
  73. package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +2 -2
  74. package/esm2022/f-draggable/f-draggable-base.mjs +8 -1
  75. package/esm2022/f-draggable/f-draggable-data-context.mjs +1 -2
  76. package/esm2022/f-draggable/f-draggable.directive.mjs +11 -2
  77. package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +2 -2
  78. package/esm2022/f-draggable/node/node.on-pointer-up.mjs +2 -2
  79. package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +2 -2
  80. package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +2 -2
  81. package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +1 -1
  82. package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +2 -2
  83. package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +2 -2
  84. package/esm2022/f-flow/f-flow.component.mjs +12 -10
  85. package/esm2022/f-flow.module.mjs +10 -6
  86. package/esm2022/f-group/f-group-base.mjs +3 -10
  87. package/esm2022/f-group/f-group.directive.mjs +64 -11
  88. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +2 -2
  89. package/esm2022/f-node/f-node-base.mjs +1 -1
  90. package/esm2022/f-node/f-node.directive.mjs +14 -11
  91. package/esm2022/f-storage/f-components-store.mjs +41 -0
  92. package/esm2022/f-storage/index.mjs +2 -0
  93. package/esm2022/public-api.mjs +2 -3
  94. package/f-backgroud/f-background.component.d.ts +1 -1
  95. package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +32 -0
  96. package/f-backgroud/f-circle-pattern/index.d.ts +1 -0
  97. package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +37 -0
  98. package/f-backgroud/f-rect-pattern/index.d.ts +1 -0
  99. package/f-backgroud/index.d.ts +2 -1
  100. package/f-canvas/f-canvas.component.d.ts +2 -2
  101. package/f-canvas/f-zoom/f-zoom-base.d.ts +1 -1
  102. package/f-canvas/f-zoom/f-zoom.directive.d.ts +1 -1
  103. package/f-connection/common/f-connection-base.d.ts +4 -5
  104. package/f-connection/common/f-path/f-connection-path.component.d.ts +1 -2
  105. package/f-connection/common/f-path/get-path-marker-id.d.ts +4 -0
  106. package/f-connection/common/f-path/index.d.ts +1 -0
  107. package/f-connection/f-connection/f-connection.component.d.ts +27 -11
  108. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +17 -7
  109. package/f-connection/f-marker/f-marker-base.d.ts +2 -0
  110. package/f-connection/f-marker/f-marker.directive.d.ts +10 -4
  111. package/f-connectors/f-node-input/f-node-input.directive.d.ts +1 -1
  112. package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +1 -1
  113. package/f-connectors/f-node-output/f-node-output.directive.d.ts +1 -1
  114. package/f-draggable/canvas/canvas.drag-handler.d.ts +1 -1
  115. package/f-draggable/canvas/canvas.prepare-drag-sequence.d.ts +1 -1
  116. package/f-draggable/canvas/providers.d.ts +1 -1
  117. package/f-draggable/connections/create-connection/create-connection.on-pointer-up.d.ts +1 -1
  118. package/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.d.ts +1 -1
  119. package/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +1 -1
  120. package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +1 -1
  121. package/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +1 -1
  122. package/f-draggable/connections/providers.d.ts +1 -1
  123. package/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.d.ts +1 -1
  124. package/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.d.ts +1 -1
  125. package/f-draggable/external-item/external-item.on-pointer-up.d.ts +1 -1
  126. package/f-draggable/external-item/external-item.prepare-drag-sequence.d.ts +1 -1
  127. package/f-draggable/f-draggable-base.d.ts +2 -0
  128. package/f-draggable/f-draggable.directive.d.ts +2 -1
  129. package/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.d.ts +1 -1
  130. package/f-draggable/node/node.on-pointer-up.d.ts +1 -1
  131. package/f-draggable/node/node.prepare-drag-sequence.d.ts +1 -1
  132. package/f-draggable/node/providers.d.ts +1 -1
  133. package/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.d.ts +1 -1
  134. package/f-draggable/selection-area/providers.d.ts +1 -1
  135. package/f-draggable/selection-area/selection-area.drag-handle.d.ts +1 -1
  136. package/f-draggable/selection-area/selection-area.prepare-drag-sequence.d.ts +1 -1
  137. package/f-draggable/single-select/single-select.on-pointer-down.d.ts +1 -1
  138. package/f-flow/f-flow.component.d.ts +4 -2
  139. package/f-flow.module.d.ts +18 -17
  140. package/f-group/f-group-base.d.ts +3 -9
  141. package/f-group/f-group.directive.d.ts +17 -7
  142. package/f-line-alignment/f-line-alignment.component.d.ts +1 -1
  143. package/f-node/f-node-base.d.ts +1 -1
  144. package/f-node/f-node.directive.d.ts +3 -3
  145. package/f-storage/f-components-store.d.ts +33 -0
  146. package/f-storage/index.d.ts +1 -0
  147. package/fesm2022/foblex-flow.mjs +599 -282
  148. package/fesm2022/foblex-flow.mjs.map +1 -1
  149. package/package.json +1 -1
  150. package/public-api.d.ts +1 -2
  151. package/esm2022/f-backgroud/f-cell-pattern/f-cell-pattern.component.mjs +0 -90
  152. package/esm2022/f-components-store.mjs +0 -77
  153. package/esm2022/get-flow-uid.mjs +0 -8
  154. package/f-backgroud/f-cell-pattern/f-cell-pattern.component.d.ts +0 -31
  155. package/f-backgroud/f-cell-pattern/index.d.ts +0 -1
  156. package/f-components-store.d.ts +0 -42
  157. package/get-flow-uid.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
- import { FComponentsStore } from '../../f-components-store';
2
+ import { FComponentsStore } from '../../f-storage';
3
3
  import { FDraggableDataContext } from '../f-draggable-data-context';
4
4
  import { IsConnectionUnderNodeHandler } from './domain/is-connection-under-node';
5
5
  import * as i0 from "@angular/core";
@@ -1,5 +1,5 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
- import { FComponentsStore } from '../../f-components-store';
2
+ import { FComponentsStore } from '../../f-storage';
3
3
  import { FDraggableDataContext } from '../f-draggable-data-context';
4
4
  import { GetIncomingConnectionsHandler, GetOutgoingConnectionsHandler } from '../../domain';
5
5
  import { FFlowMediator } from '../../f-mediator';
@@ -1,4 +1,4 @@
1
1
  import { NodeOnPointerUp } from './node.on-pointer-up';
2
2
  import { NodePrepareDragSequence } from './node.prepare-drag-sequence';
3
3
  import { IsConnectionUnderNodeHandler } from './domain/is-connection-under-node';
4
- export declare const NODE_PROVIDERS: (typeof NodePrepareDragSequence | typeof NodeOnPointerUp | typeof IsConnectionUnderNodeHandler)[];
4
+ export declare const NODE_PROVIDERS: (typeof IsConnectionUnderNodeHandler | typeof NodeOnPointerUp | typeof NodePrepareDragSequence)[];
@@ -1,6 +1,6 @@
1
1
  import { IHandler } from '@foblex/core';
2
2
  import { ISelectableWithRect } from './i-selectable-with-rect';
3
- import { FComponentsStore } from '../../../f-components-store';
3
+ import { FComponentsStore } from '../../../f-storage';
4
4
  import { FDraggableDataContext } from '../../f-draggable-data-context';
5
5
  import { FFlowMediator } from '../../../f-mediator';
6
6
  import * as i0 from "@angular/core";
@@ -1,4 +1,4 @@
1
1
  import { SelectionAreaPrepareDragSequence } from './selection-area.prepare-drag-sequence';
2
2
  import { SelectionAreaOnPointerUp } from './selection-area.on-pointer-up';
3
3
  import { GetCanBeSelectedItemsHandler } from './get-can-be-selected-items';
4
- export declare const SELECTION_AREA_PROVIDERS: (typeof SelectionAreaPrepareDragSequence | typeof SelectionAreaOnPointerUp | typeof GetCanBeSelectedItemsHandler)[];
4
+ export declare const SELECTION_AREA_PROVIDERS: (typeof GetCanBeSelectedItemsHandler | typeof SelectionAreaPrepareDragSequence | typeof SelectionAreaOnPointerUp)[];
@@ -1,7 +1,7 @@
1
1
  import { IPoint } from '@foblex/core';
2
2
  import { IDraggableItem } from '../i-draggable-item';
3
3
  import { EFDraggableType } from '../e-f-draggable-type';
4
- import { FComponentsStore } from '../../f-components-store';
4
+ import { FComponentsStore } from '../../f-storage';
5
5
  import { FDraggableDataContext } from '../f-draggable-data-context';
6
6
  import { Injector } from '@angular/core';
7
7
  export declare class SelectionAreaDragHandle implements IDraggableItem {
@@ -1,6 +1,6 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
2
  import { Injector } from '@angular/core';
3
- import { FComponentsStore } from '../../f-components-store';
3
+ import { FComponentsStore } from '../../f-storage';
4
4
  import { FDraggableDataContext } from '../f-draggable-data-context';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SelectionAreaPrepareDragSequence implements IHandler<IPointerEvent, void> {
@@ -1,5 +1,5 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
- import { FComponentsStore } from '../../f-components-store';
2
+ import { FComponentsStore } from '../../f-storage';
3
3
  import { FDraggableDataContext } from '../f-draggable-data-context';
4
4
  import { GetConnectionHandler } from '../../domain';
5
5
  import { FFlowMediator } from '../../f-mediator';
@@ -1,9 +1,9 @@
1
1
  import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FFlowBase } from './f-flow-base';
3
- import { FComponentsStore } from '../f-components-store';
4
- import { IRect } from '@foblex/core';
3
+ import { IPoint, IRect } from '@foblex/core';
5
4
  import { FFlowMediator } from '../f-mediator';
6
5
  import { FSelectionChangeEvent } from '../f-draggable';
6
+ import { FComponentsStore } from '../f-storage';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class FFlowComponent extends FFlowBase implements OnInit, AfterContentInit, OnDestroy {
9
9
  private elementReference;
@@ -18,9 +18,11 @@ export declare class FFlowComponent extends FFlowBase implements OnInit, AfterCo
18
18
  ngOnInit(): void;
19
19
  ngAfterContentInit(): void;
20
20
  private subscribeOnElementsChanges;
21
+ redraw(): void;
21
22
  reset(): void;
22
23
  getNodesRect(): IRect;
23
24
  getSelection(): FSelectionChangeEvent;
25
+ getPositionInFlow(position: IPoint): IRect;
24
26
  selectAll(): void;
25
27
  select(nodes: string[], connections: string[]): void;
26
28
  clearSelection(): void;
@@ -9,24 +9,25 @@ import * as i7 from "./f-connection/f-connection-center/f-connection-center.dire
9
9
  import * as i8 from "./f-connection/f-marker/f-marker.directive";
10
10
  import * as i9 from "./f-flow/f-flow.component";
11
11
  import * as i10 from "./f-backgroud/f-background.component";
12
- import * as i11 from "./f-backgroud/f-cell-pattern/f-cell-pattern.component";
13
- import * as i12 from "./f-canvas/f-canvas.component";
14
- import * as i13 from "./f-node/f-node.directive";
15
- import * as i14 from "./f-group/f-group.directive";
16
- import * as i15 from "./f-node/f-drag-handle/f-drag-handle.directive";
17
- import * as i16 from "./f-connection/f-connection/f-connection.component";
18
- import * as i17 from "./f-connection/f-connection-for-create/f-connection-for-create.component";
19
- import * as i18 from "./f-canvas/f-zoom/f-zoom.directive";
20
- import * as i19 from "./f-connectors/f-node-input/f-node-input.directive";
21
- import * as i20 from "./f-connectors/f-node-outlet/f-node-outlet.directive";
22
- import * as i21 from "./f-connectors/f-node-output/f-node-output.directive";
23
- import * as i22 from "./f-draggable/f-draggable.directive";
24
- import * as i23 from "./f-external-item/f-external-item.directive";
25
- import * as i24 from "./f-selection-area/f-selection-area.component";
26
- import * as i25 from "./f-line-alignment/f-line-alignment.component";
27
- import * as i26 from "@angular/common";
12
+ import * as i11 from "./f-backgroud/f-rect-pattern/f-rect-pattern.component";
13
+ import * as i12 from "./f-backgroud/f-circle-pattern/f-circle-pattern.component";
14
+ import * as i13 from "./f-canvas/f-canvas.component";
15
+ import * as i14 from "./f-node/f-node.directive";
16
+ import * as i15 from "./f-group/f-group.directive";
17
+ import * as i16 from "./f-node/f-drag-handle/f-drag-handle.directive";
18
+ import * as i17 from "./f-connection/f-connection/f-connection.component";
19
+ import * as i18 from "./f-connection/f-connection-for-create/f-connection-for-create.component";
20
+ import * as i19 from "./f-canvas/f-zoom/f-zoom.directive";
21
+ import * as i20 from "./f-connectors/f-node-input/f-node-input.directive";
22
+ import * as i21 from "./f-connectors/f-node-outlet/f-node-outlet.directive";
23
+ import * as i22 from "./f-connectors/f-node-output/f-node-output.directive";
24
+ import * as i23 from "./f-draggable/f-draggable.directive";
25
+ import * as i24 from "./f-external-item/f-external-item.directive";
26
+ import * as i25 from "./f-selection-area/f-selection-area.component";
27
+ import * as i26 from "./f-line-alignment/f-line-alignment.component";
28
+ import * as i27 from "@angular/common";
28
29
  export declare class FFlowModule {
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FFlowModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FConnectionDragHandleComponent, typeof i2.FConnectionGradientComponent, typeof i3.FConnectionPathComponent, typeof i4.FConnectionTextComponent, typeof i5.FConnectionTextPathDirective, typeof i6.FConnectionSelectionComponent, typeof i7.FConnectionCenterDirective, typeof i8.FMarkerDirective, typeof i9.FFlowComponent, typeof i10.FBackgroundComponent, typeof i11.FCellPatternComponent, typeof i12.FCanvasComponent, typeof i13.FNodeDirective, typeof i14.FGroupDirective, typeof i15.FDragHandleDirective, typeof i16.FConnectionComponent, typeof i17.FConnectionForCreateComponent, typeof i18.FZoomDirective, typeof i19.FNodeInputDirective, typeof i20.FNodeOutletDirective, typeof i21.FNodeOutputDirective, typeof i22.FDraggableDirective, typeof i23.FExternalItemDirective, typeof i24.FSelectionAreaComponent, typeof i25.FLineAlignmentComponent], [typeof i26.CommonModule], [typeof i9.FFlowComponent, typeof i10.FBackgroundComponent, typeof i11.FCellPatternComponent, typeof i12.FCanvasComponent, typeof i13.FNodeDirective, typeof i15.FDragHandleDirective, typeof i16.FConnectionComponent, typeof i17.FConnectionForCreateComponent, typeof i7.FConnectionCenterDirective, typeof i8.FMarkerDirective, typeof i18.FZoomDirective, typeof i19.FNodeInputDirective, typeof i20.FNodeOutletDirective, typeof i21.FNodeOutputDirective, typeof i22.FDraggableDirective, typeof i23.FExternalItemDirective, typeof i24.FSelectionAreaComponent, typeof i25.FLineAlignmentComponent]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FConnectionDragHandleComponent, typeof i2.FConnectionGradientComponent, typeof i3.FConnectionPathComponent, typeof i4.FConnectionTextComponent, typeof i5.FConnectionTextPathDirective, typeof i6.FConnectionSelectionComponent, typeof i7.FConnectionCenterDirective, typeof i8.FMarkerDirective, typeof i9.FFlowComponent, typeof i10.FBackgroundComponent, typeof i11.FRectPatternComponent, typeof i12.FCirclePatternComponent, typeof i13.FCanvasComponent, typeof i14.FNodeDirective, typeof i15.FGroupDirective, typeof i16.FDragHandleDirective, typeof i17.FConnectionComponent, typeof i18.FConnectionForCreateComponent, typeof i19.FZoomDirective, typeof i20.FNodeInputDirective, typeof i21.FNodeOutletDirective, typeof i22.FNodeOutputDirective, typeof i23.FDraggableDirective, typeof i24.FExternalItemDirective, typeof i25.FSelectionAreaComponent, typeof i26.FLineAlignmentComponent], [typeof i27.CommonModule], [typeof i9.FFlowComponent, typeof i10.FBackgroundComponent, typeof i11.FRectPatternComponent, typeof i12.FCirclePatternComponent, typeof i13.FCanvasComponent, typeof i14.FNodeDirective, typeof i16.FDragHandleDirective, typeof i17.FConnectionComponent, typeof i18.FConnectionForCreateComponent, typeof i7.FConnectionCenterDirective, typeof i8.FMarkerDirective, typeof i19.FZoomDirective, typeof i20.FNodeInputDirective, typeof i21.FNodeOutletDirective, typeof i22.FNodeOutputDirective, typeof i23.FDraggableDirective, typeof i24.FExternalItemDirective, typeof i25.FSelectionAreaComponent, typeof i26.FLineAlignmentComponent]>;
31
32
  static ɵinj: i0.ɵɵInjectorDeclaration<FFlowModule>;
32
33
  }
@@ -1,12 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { IHasHostElement, IPoint, ISize } from '@foblex/core';
2
+ import { IHasHostElement } from '@foblex/core';
3
+ import { FNodeBase } from '../f-node';
3
4
  export declare const F_GROUP: InjectionToken<FGroupBase>;
4
- export declare abstract class FGroupBase implements IHasHostElement {
5
- abstract fGroupId: string;
6
- abstract hostElement: HTMLElement;
7
- abstract position: IPoint;
8
- abstract size: ISize;
9
- protected abstract setStyle(name: string, value: string): void;
10
- isContains(element: HTMLElement | SVGElement): boolean;
11
- redraw(): void;
5
+ export declare abstract class FGroupBase extends FNodeBase implements IHasHostElement {
12
6
  }
@@ -1,21 +1,31 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2 } from "@angular/core";
2
- import { IHasHostElement, IPoint, ISize } from '@foblex/core';
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from "@angular/core";
2
+ import { IHasHostElement, IPoint, PointInput } from '@foblex/core';
3
3
  import { FGroupBase } from './f-group-base';
4
- import { FComponentsStore } from '../f-components-store';
4
+ import { FConnectorBase } from '../f-connectors';
5
+ import { FComponentsStore } from '../f-storage';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FGroupDirective extends FGroupBase implements OnInit, IHasHostElement, OnDestroy {
7
8
  private elementReference;
8
9
  private renderer;
9
10
  private fComponentsStore;
10
11
  private subscriptions$;
11
- fGroupId: string;
12
- position: IPoint;
13
- size: ISize;
12
+ fId: string;
13
+ set position(value: PointInput);
14
+ get position(): IPoint;
15
+ positionChange: EventEmitter<IPoint>;
16
+ fDraggingDisabled: boolean;
17
+ fSelectionDisabled: boolean;
14
18
  get hostElement(): HTMLElement;
19
+ connectors: FConnectorBase[];
15
20
  constructor(elementReference: ElementRef<HTMLElement>, renderer: Renderer2, fComponentsStore: FComponentsStore);
16
21
  ngOnInit(): void;
17
22
  protected setStyle(styleName: string, value: string): void;
23
+ ngAfterViewInit(): void;
24
+ private subscribeOnResizeChanges;
25
+ addConnector(connector: FConnectorBase): void;
26
+ removeConnector(connector: FConnectorBase): void;
27
+ refresh(): void;
18
28
  ngOnDestroy(): void;
19
29
  static ɵfac: i0.ɵɵFactoryDeclaration<FGroupDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fGroupId": { "alias": "fGroupId"; "required": false; }; }, {}, never, never, false, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; }, never, never, false, never>;
21
31
  }
@@ -2,7 +2,7 @@ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { IPoint } from '@foblex/core';
3
3
  import { ILineAlignmentResult } from './domain';
4
4
  import { FLineAlignmentBase } from './f-line-alignment-base';
5
- import { FComponentsStore } from '../f-components-store';
5
+ import { FComponentsStore } from '../f-storage';
6
6
  import { FDraggableDataContext } from '../f-draggable';
7
7
  import { FNodeBase } from '../f-node';
8
8
  import { FFlowMediator } from '../f-mediator';
@@ -6,7 +6,7 @@ import { IHasStateChanges } from '../i-has-state-changes';
6
6
  import { FConnectorBase } from '../f-connectors';
7
7
  export declare const F_NODE: InjectionToken<FNodeBase>;
8
8
  export declare abstract class FNodeBase implements IHasStateChanges, ISelectable, IHasHostElement {
9
- abstract fNodeId: string;
9
+ abstract fId: string;
10
10
  abstract hostElement: HTMLElement;
11
11
  readonly stateChanges: Subject<void>;
12
12
  abstract positionChange: EventEmitter<IPoint>;
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from "@angular/core";
2
2
  import { IHasHostElement, IPoint, PointInput } from '@foblex/core';
3
3
  import { FNodeBase } from './f-node-base';
4
- import { FComponentsStore } from '../f-components-store';
4
+ import { FComponentsStore } from '../f-storage';
5
5
  import { FConnectorBase } from '../f-connectors';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FNodeDirective extends FNodeBase implements OnInit, AfterViewInit, IHasHostElement, OnDestroy {
@@ -9,7 +9,7 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
9
9
  private renderer;
10
10
  private fComponentsStore;
11
11
  private subscriptions$;
12
- fNodeId: string;
12
+ fId: string;
13
13
  set position(value: PointInput);
14
14
  get position(): IPoint;
15
15
  positionChange: EventEmitter<IPoint>;
@@ -27,5 +27,5 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
27
27
  refresh(): void;
28
28
  ngOnDestroy(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeDirective, "[fNode]", ["fComponent"], { "fNodeId": { "alias": "fNodeId"; "required": false; }; "position": { "alias": "fNodePosition"; "required": false; }; "fDraggingDisabled": { "alias": "fNodeDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fNodeSelectionDisabled"; "required": false; }; }, { "positionChange": "fNodePositionChange"; }, never, never, false, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeDirective, "[fNode]", ["fComponent"], { "fId": { "alias": "fNodeId"; "required": false; }; "position": { "alias": "fNodePosition"; "required": false; }; "fDraggingDisabled": { "alias": "fNodeDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fNodeSelectionDisabled"; "required": false; }; }, { "positionChange": "fNodePositionChange"; }, never, never, false, never>;
31
31
  }
@@ -0,0 +1,33 @@
1
+ import { Subject } from 'rxjs';
2
+ import { ITransformModel } from '@foblex/core';
3
+ import { FConnectionBase, FMarkerBase } from '../f-connection';
4
+ import { FFlowBase } from '../f-flow';
5
+ import { FCanvasBase } from '../f-canvas';
6
+ import { FBackgroundBase } from '../f-backgroud';
7
+ import { FNodeBase } from '../f-node';
8
+ import { FConnectorBase } from '../f-connectors';
9
+ import { FDraggableBase } from '../f-draggable';
10
+ import { FGroupBase } from '../f-group';
11
+ import * as i0 from "@angular/core";
12
+ export declare class FComponentsStore {
13
+ readonly changes: Subject<void>;
14
+ get flowHost(): HTMLElement;
15
+ get transform(): ITransformModel;
16
+ fFlow: FFlowBase | undefined;
17
+ fCanvas: FCanvasBase | undefined;
18
+ fBackground: FBackgroundBase | undefined;
19
+ fNodes: FNodeBase[];
20
+ fGroups: FGroupBase[];
21
+ fConnections: FConnectionBase[];
22
+ fTempConnection: FConnectionBase | undefined;
23
+ fMarkers: FMarkerBase[];
24
+ fOutputs: FConnectorBase[];
25
+ fInputs: FConnectorBase[];
26
+ fOutlets: FConnectorBase[];
27
+ fDraggable: FDraggableBase | undefined;
28
+ findNode(element: HTMLElement | SVGElement): FNodeBase | undefined;
29
+ addComponent<T>(collection: T[], component: T): void;
30
+ removeComponent<T>(collection: T[], component: T): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<FComponentsStore, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<FComponentsStore>;
33
+ }
@@ -0,0 +1 @@
1
+ export * from './f-components-store';