@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
@@ -0,0 +1,41 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export class FComponentsStore {
5
+ constructor() {
6
+ this.changes = new Subject();
7
+ this.fNodes = [];
8
+ this.fGroups = [];
9
+ this.fConnections = [];
10
+ this.fMarkers = [];
11
+ this.fOutputs = [];
12
+ this.fInputs = [];
13
+ this.fOutlets = [];
14
+ }
15
+ get flowHost() {
16
+ return this.fFlow?.hostElement;
17
+ }
18
+ get transform() {
19
+ return this.fCanvas?.transform;
20
+ }
21
+ findNode(element) {
22
+ return this.fNodes.find(n => n.isContains(element));
23
+ }
24
+ addComponent(collection, component) {
25
+ collection.push(component);
26
+ this.changes.next();
27
+ }
28
+ removeComponent(collection, component) {
29
+ const index = collection.indexOf(component);
30
+ if (index > -1) {
31
+ collection.splice(index, 1);
32
+ this.changes.next();
33
+ }
34
+ }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: FComponentsStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
36
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: FComponentsStore }); }
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: FComponentsStore, decorators: [{
39
+ type: Injectable
40
+ }] });
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb21wb25lbnRzLXN0b3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLXN0b3JhZ2UvZi1jb21wb25lbnRzLXN0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFZL0IsTUFBTSxPQUFPLGdCQUFnQjtJQUQ3QjtRQUdrQixZQUFPLEdBQWtCLElBQUksT0FBTyxFQUFRLENBQUM7UUFnQnRELFdBQU0sR0FBZ0IsRUFBRSxDQUFDO1FBRXpCLFlBQU8sR0FBaUIsRUFBRSxDQUFDO1FBRTNCLGlCQUFZLEdBQXNCLEVBQUUsQ0FBQztRQUlyQyxhQUFRLEdBQWtCLE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TtcbiAgICB0aGlzLmNoYW5nZXMubmV4dCgpO1xuICB9XG5cbiAgcHVibGljIHJlbW92ZUNvbXBvbmVudDxUPihjb2xsZWN0aW9uOiBUW10sIGNvbXBvbmVudDogVCk6IHZvaWQge1xuICAgIGNvbnN0IGluZGV4ID0gY29sbGVjdGlvbi5pbmRleE9mKGNvbXBvbmVudCk7XG4gICAgaWYgKGluZGV4ID4gLTEpIHtcbiAgICAgIGNvbGxlY3Rpb24uc3BsaWNlKGluZGV4LCAxKTtcbiAgICAgIHRoaXMuY2hhbmdlcy5uZXh0KCk7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from './f-components-store';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytc3RvcmFnZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWNvbXBvbmVudHMtc3RvcmUnO1xuIl19
@@ -11,8 +11,7 @@ export * from './f-flow';
11
11
  export * from './f-group';
12
12
  export * from './f-node';
13
13
  export * from './f-mediator';
14
- export * from './f-components-store';
14
+ export * from './f-storage';
15
15
  export * from './f-flow.module';
16
- export * from './get-flow-uid';
17
16
  export * from './i-has-state-changes';
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGVBQWUsQ0FBQ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ZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3RvcnMnO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtZHJhZ2dhYmxlJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWV4dGVybmFsLWl0ZW0nO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtbGluZS1hbGlnbm1lbnQnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytc2VsZWN0aW9uLWFyZWEnO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtZmxvdyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ncm91cCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2RlJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLW1lZGlhdG9yJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLXN0b3JhZ2UnO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtZmxvdy5tb2R1bGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2ktaGFzLXN0YXRlLWNoYW5nZXMnO1xuIl19
@@ -1,7 +1,7 @@
1
1
  import { AfterContentInit, ElementRef, OnDestroy, OnInit } from "@angular/core";
2
2
  import { FBackgroundBase } from './f-background-base';
3
3
  import { ITransformModel } from '@foblex/core';
4
- import { FComponentsStore } from '../f-components-store';
4
+ import { FComponentsStore } from '../f-storage';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FBackgroundComponent extends FBackgroundBase implements OnInit, AfterContentInit, OnDestroy {
7
7
  private elementReference;
@@ -0,0 +1,32 @@
1
+ import { ElementRef, OnDestroy, OnInit } from "@angular/core";
2
+ import { ITransformModel } from '@foblex/core';
3
+ import { IFBackgroundPattern } from '../domain';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FCirclePatternComponent implements OnInit, OnDestroy, IFBackgroundPattern {
6
+ private elementReference;
7
+ private _subscription$;
8
+ private _stateChanges;
9
+ get hostElement(): HTMLElement;
10
+ id: string;
11
+ private _color;
12
+ set color(value: string);
13
+ private _radius;
14
+ private _scaledRadius;
15
+ set radius(value: number);
16
+ private _transform;
17
+ private _position;
18
+ private _pattern;
19
+ private _circle;
20
+ constructor(elementReference: ElementRef<HTMLElement>);
21
+ private createPattern;
22
+ ngOnInit(): void;
23
+ private subscribeToStateChanges;
24
+ private calculatePattern;
25
+ private redraw;
26
+ private redrawPattern;
27
+ private redrawElement;
28
+ setTransform(transform: ITransformModel): void;
29
+ ngOnDestroy(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FCirclePatternComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<FCirclePatternComponent, "f-circle-pattern", never, { "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; }, {}, never, never, false, never>;
32
+ }
@@ -0,0 +1 @@
1
+ export * from './f-circle-pattern.component';
@@ -0,0 +1,37 @@
1
+ import { ElementRef, OnDestroy, OnInit } from "@angular/core";
2
+ import { ITransformModel } from '@foblex/core';
3
+ import { IFBackgroundPattern } from '../domain';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FRectPatternComponent implements OnInit, OnDestroy, IFBackgroundPattern {
6
+ private elementReference;
7
+ private _subscription$;
8
+ private _stateChanges;
9
+ get hostElement(): HTMLElement;
10
+ id: string;
11
+ private _vColor;
12
+ set vColor(value: string);
13
+ private _hColor;
14
+ set hColor(value: string);
15
+ private _vSize;
16
+ set vSize(value: number);
17
+ private _hSize;
18
+ set hSize(value: number);
19
+ private _transform;
20
+ private _position;
21
+ private _size;
22
+ private _pattern;
23
+ private _vLine;
24
+ private _hLine;
25
+ constructor(elementReference: ElementRef<HTMLElement>);
26
+ private createPattern;
27
+ ngOnInit(): void;
28
+ private subscribeToStateChanges;
29
+ private calculatePattern;
30
+ private redraw;
31
+ private redrawPattern;
32
+ private redrawLine;
33
+ setTransform(transform: ITransformModel): void;
34
+ ngOnDestroy(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<FRectPatternComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<FRectPatternComponent, "f-rect-pattern", never, { "id": { "alias": "id"; "required": false; }; "vColor": { "alias": "vColor"; "required": false; }; "hColor": { "alias": "hColor"; "required": false; }; "vSize": { "alias": "vSize"; "required": false; }; "hSize": { "alias": "hSize"; "required": false; }; }, {}, never, never, false, never>;
37
+ }
@@ -0,0 +1 @@
1
+ export * from './f-rect-pattern.component';
@@ -1,4 +1,5 @@
1
1
  export * from './domain';
2
- export * from './f-cell-pattern';
2
+ export * from './f-rect-pattern';
3
+ export * from './f-circle-pattern';
3
4
  export * from './f-background.component';
4
5
  export * from './f-background-base';
@@ -2,7 +2,7 @@ import { ElementRef, EventEmitter, OnInit } from "@angular/core";
2
2
  import { FCanvasBase } from './f-canvas-base';
3
3
  import { IPoint } from '@foblex/core';
4
4
  import { FCanvasChangeEvent } from './domain';
5
- import { FComponentsStore } from '../f-components-store';
5
+ import { FComponentsStore } from '../f-storage';
6
6
  import { FNodeBase } from '../f-node';
7
7
  import { FFlowMediator } from '../f-mediator';
8
8
  import * as i0 from "@angular/core";
@@ -24,5 +24,5 @@ export declare class FCanvasComponent extends FCanvasBase implements OnInit {
24
24
  fitToScreen(toCenter?: IPoint, animated?: boolean): void;
25
25
  oneToOne(): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<FCanvasComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", ["fComponent"], { "position": { "alias": "position"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, { "fCanvasChange": "fCanvasChange"; }, never, ["f-connection", "f-connection-for-create", "[fNode]"], false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", ["fComponent"], { "position": { "alias": "position"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, { "fCanvasChange": "fCanvasChange"; }, never, ["f-connection", "f-connection-for-create", "[fGroup]", "[fNode]"], false, never>;
28
28
  }
@@ -1,6 +1,6 @@
1
1
  import { IPoint } from '@foblex/core';
2
2
  import { InjectionToken } from '@angular/core';
3
- import { FComponentsStore } from '../../f-components-store';
3
+ import { FComponentsStore } from '../../f-storage';
4
4
  export declare const F_ZOOM: InjectionToken<FZoomBase>;
5
5
  export declare abstract class FZoomBase {
6
6
  protected fComponentsStore: FComponentsStore;
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, OnDestroy } from "@angular/core";
2
2
  import { FZoomBase } from './f-zoom-base';
3
- import { FComponentsStore } from '../../f-components-store';
3
+ import { FComponentsStore } from '../../f-storage';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FZoomDirective extends FZoomBase implements AfterViewInit, OnDestroy {
6
6
  get fFlowZoom(): boolean;
@@ -1,4 +1,4 @@
1
- import { ElementRef, QueryList } from '@angular/core';
1
+ import { ElementRef } from '@angular/core';
2
2
  import { IHasHostElement, IPoint, IVector } from '@foblex/core';
3
3
  import { Subject } from 'rxjs';
4
4
  import { EFConnectionBehavior } from './e-f-connection-behavior';
@@ -29,6 +29,8 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
29
29
  abstract fEndColor: string;
30
30
  abstract fOutputId: string;
31
31
  abstract fInputId: string;
32
+ abstract fRadius: number;
33
+ abstract fOffset: number;
32
34
  path: string;
33
35
  vector: IVector;
34
36
  readonly stateChanges: Subject<void>;
@@ -38,7 +40,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
38
40
  abstract fBehavior: EFConnectionBehavior;
39
41
  abstract fType: EFConnectionType;
40
42
  abstract fDefs: ElementRef<SVGDefsElement>;
41
- abstract fMarkers: QueryList<FMarkerBase>;
43
+ abstract fMarkers: FMarkerBase[];
42
44
  abstract fPath: IConnectionPath;
43
45
  abstract fGradient: IConnectionGradient;
44
46
  abstract fDragHandle: FConnectionDragHandleComponent;
@@ -48,11 +50,8 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
48
50
  abstract fConnectionCenter: ElementRef<HTMLDivElement>;
49
51
  protected constructor(elementReference: ElementRef<HTMLElement>, connectionFactory: FConnectionFactory);
50
52
  initialize(): void;
51
- private reset;
52
53
  isContains(element: HTMLElement | SVGElement): boolean;
53
54
  setVector(from: IPoint, fromSide: EFConnectableSide, to: IPoint, toSide: EFConnectableSide): void;
54
- setMarkers(): void;
55
- private getMarkerId;
56
55
  redraw(): void;
57
56
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionBase, never>;
58
57
  static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectionBase, never, never, {}, {}, never, never, false, never>;
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export declare class FConnectionPathComponent implements IConnectionPath {
7
7
  private elementReference;
8
8
  private base;
9
+ get fPathId(): string;
9
10
  get linkToGradient(): string;
10
11
  get attrConnectionId(): string;
11
12
  get hostElement(): SVGPathElement;
@@ -14,8 +15,6 @@ export declare class FConnectionPathComponent implements IConnectionPath {
14
15
  setPath(path: string): void;
15
16
  select(): void;
16
17
  deselect(): void;
17
- private getMarkerId;
18
- isSelected(): boolean;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionPathComponent, never>;
20
19
  static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionPathComponent, "path[f-connection-path]", never, {}, {}, never, never, false, never>;
21
20
  }
@@ -0,0 +1,4 @@
1
+ export declare function getMarkerStartId(fConnectionId: string): string;
2
+ export declare function getMarkerEndId(fConnectionId: string): string;
3
+ export declare function getMarkerSelectedStartId(fConnectionId: string): string;
4
+ export declare function getMarkerSelectedEndId(fConnectionId: string): string;
@@ -1,2 +1,3 @@
1
1
  export * from './f-connection-path.component';
2
+ export * from './get-path-marker-id';
2
3
  export * from './i-connection-path';
@@ -2,7 +2,7 @@ import { ElementRef, OnDestroy, OnInit, QueryList } from "@angular/core";
2
2
  import { FConnectionBase, FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
3
3
  import { EFConnectionBehavior } from '../common';
4
4
  import { EFConnectionType } from '../common';
5
- import { FComponentsStore } from '../../f-components-store';
5
+ import { FComponentsStore } from '../../f-storage';
6
6
  import { FMarkerBase } from '../f-marker';
7
7
  import { FConnectionCenterDirective } from '../f-connection-center';
8
8
  import { FConnectionFactory } from '../f-connection-builder';
@@ -10,21 +10,37 @@ import * as i0 from "@angular/core";
10
10
  export declare class FConnectionComponent extends FConnectionBase implements OnInit, OnDestroy {
11
11
  private fComponentsStore;
12
12
  fConnectionId: string;
13
- fText: string;
14
- fStartColor: string;
15
- fEndColor: string;
16
- fOutputId: string;
17
- fInputId: string;
18
- set fBehavior(value: EFConnectionBehavior | string);
19
- get fBehavior(): EFConnectionBehavior;
13
+ private _fText;
14
+ set fText(value: string);
15
+ get fText(): string;
16
+ private _fStartColor;
17
+ set fStartColor(value: string);
18
+ get fStartColor(): string;
19
+ private _fEndColor;
20
+ set fEndColor(value: string);
21
+ get fEndColor(): string;
22
+ private _fOutputId;
23
+ set fOutputId(value: string);
24
+ get fOutputId(): string;
25
+ private _fInputId;
26
+ set fInputId(value: string);
27
+ get fInputId(): string;
28
+ private _fRadius;
29
+ set fRadius(value: number);
30
+ get fRadius(): number;
31
+ private _fOffset;
32
+ set fOffset(value: number);
33
+ get fOffset(): number;
20
34
  private _behavior;
35
+ set fBehavior(value: EFConnectionBehavior);
36
+ get fBehavior(): EFConnectionBehavior;
37
+ private _type;
21
38
  set fType(value: EFConnectionType | string);
22
39
  get fType(): EFConnectionType;
23
- private _type;
24
40
  fDraggingDisabled: boolean;
25
41
  fSelectionDisabled: boolean;
26
42
  fDefs: ElementRef<SVGDefsElement>;
27
- fMarkers: QueryList<FMarkerBase>;
43
+ get fMarkers(): FMarkerBase[];
28
44
  fPath: IConnectionPath;
29
45
  fGradient: IConnectionGradient;
30
46
  fDragHandle: FConnectionDragHandleComponent;
@@ -37,5 +53,5 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
37
53
  ngOnInit(): void;
38
54
  ngOnDestroy(): void;
39
55
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "fConnectionId": { "alias": "fConnectionId"; "required": false; }; "fText": { "alias": "fText"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fOutputId": { "alias": "fOutputId"; "required": false; }; "fInputId": { "alias": "fInputId"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; "fDraggingDisabled": { "alias": "fReassignDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fSelectionDisabled"; "required": false; }; }, {}, ["fMarkers", "fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "fConnectionId": { "alias": "fConnectionId"; "required": false; }; "fText": { "alias": "fText"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fOutputId": { "alias": "fOutputId"; "required": false; }; "fInputId": { "alias": "fInputId"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; "fDraggingDisabled": { "alias": "fReassignDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fSelectionDisabled"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
41
57
  }
@@ -2,29 +2,39 @@ import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from "@angula
2
2
  import { FConnectionBase, FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
3
3
  import { EFConnectionBehavior } from '../common';
4
4
  import { EFConnectionType } from '../common';
5
- import { FComponentsStore } from '../../f-components-store';
6
5
  import { FMarkerBase } from '../f-marker';
7
6
  import { FConnectionCenterDirective } from '../f-connection-center';
8
7
  import { FConnectionFactory } from '../f-connection-builder';
8
+ import { FComponentsStore } from '../../f-storage';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class FConnectionForCreateComponent extends FConnectionBase implements AfterViewInit, OnInit, OnDestroy {
11
11
  private fComponentsStore;
12
12
  fConnectionId: string;
13
13
  fText: string;
14
- fStartColor: string;
15
- fEndColor: string;
14
+ private _fStartColor;
15
+ set fStartColor(value: string);
16
+ get fStartColor(): string;
17
+ private _fEndColor;
18
+ set fEndColor(value: string);
19
+ get fEndColor(): string;
16
20
  fOutputId: string;
17
21
  fInputId: string;
22
+ private _fRadius;
23
+ set fRadius(value: number);
24
+ get fRadius(): number;
25
+ private _fOffset;
26
+ set fOffset(value: number);
27
+ get fOffset(): number;
28
+ private _behavior;
18
29
  set fBehavior(value: EFConnectionBehavior);
19
30
  get fBehavior(): EFConnectionBehavior;
20
- private _behavior;
31
+ private _type;
21
32
  set fType(value: EFConnectionType | string);
22
33
  get fType(): EFConnectionType;
23
- private _type;
24
34
  fDraggingDisabled: boolean;
25
35
  fSelectionDisabled: boolean;
26
36
  fDefs: ElementRef<SVGDefsElement>;
27
- fMarkers: QueryList<FMarkerBase>;
37
+ get fMarkers(): FMarkerBase[];
28
38
  fPath: IConnectionPath;
29
39
  fGradient: IConnectionGradient;
30
40
  fDragHandle: FConnectionDragHandleComponent;
@@ -38,5 +48,5 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
38
48
  ngAfterViewInit(): void;
39
49
  ngOnDestroy(): void;
40
50
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionForCreateComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fMarkers", "fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
42
52
  }
@@ -9,6 +9,8 @@ export declare abstract class FMarkerBase implements IHasHostElement {
9
9
  abstract refX: number;
10
10
  abstract refY: number;
11
11
  abstract type: string;
12
+ abstract orient: 'auto' | 'auto-start-reverse' | string;
13
+ abstract markerUnits: 'strokeWidth' | 'userSpaceOnUse';
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FMarkerBase, never>;
13
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<FMarkerBase, never, never, {}, {}, never, never, false, never>;
14
16
  }
@@ -1,7 +1,9 @@
1
- import { ElementRef } from "@angular/core";
1
+ import { ElementRef, OnDestroy, OnInit } from "@angular/core";
2
2
  import { FMarkerBase } from './f-marker-base';
3
+ import { FComponentsStore } from '../../f-storage';
3
4
  import * as i0 from "@angular/core";
4
- export declare class FMarkerDirective extends FMarkerBase {
5
+ export declare class FMarkerDirective extends FMarkerBase implements OnInit, OnDestroy {
6
+ private fComponentsStore;
5
7
  private elementReference;
6
8
  get hostElement(): HTMLElement;
7
9
  width: number;
@@ -9,7 +11,11 @@ export declare class FMarkerDirective extends FMarkerBase {
9
11
  refX: number;
10
12
  refY: number;
11
13
  type: string;
12
- constructor(elementReference: ElementRef<HTMLElement>);
14
+ orient: 'auto' | 'auto-start-reverse' | 'calculated' | string;
15
+ markerUnits: 'strokeWidth' | 'userSpaceOnUse';
16
+ constructor(fComponentsStore: FComponentsStore, elementReference: ElementRef<HTMLElement>);
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
13
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FMarkerDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<FMarkerDirective, "svg[fMarker]", never, { "hostElement": { "alias": "hostElement"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "refX": { "alias": "refX"; "required": false; }; "refY": { "alias": "refY"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FMarkerDirective, "svg[fMarker]", never, { "hostElement": { "alias": "hostElement"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "refX": { "alias": "refX"; "required": false; }; "refY": { "alias": "refY"; "required": false; }; "type": { "alias": "type"; "required": false; }; "orient": { "alias": "orient"; "required": false; }; "markerUnits": { "alias": "markerUnits"; "required": false; }; }, {}, never, never, false, never>;
15
21
  }
@@ -2,7 +2,7 @@ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FNodeInputBase } from './f-node-input-base';
3
3
  import { EFConnectableSide } from '../e-f-connectable-side';
4
4
  import { FNodeBase } from '../../f-node';
5
- import { FComponentsStore } from '../../f-components-store';
5
+ import { FComponentsStore } from '../../f-storage';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FNodeInputDirective extends FNodeInputBase implements OnInit, OnDestroy {
8
8
  private elementReference;
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FNodeOutletBase } from './f-node-outlet-base';
3
3
  import { FNodeBase } from '../../f-node';
4
- import { FComponentsStore } from '../../f-components-store';
4
+ import { FComponentsStore } from '../../f-storage';
5
5
  import { EFConnectableSide } from '../e-f-connectable-side';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FNodeOutletDirective extends FNodeOutletBase implements OnInit, OnDestroy {
@@ -2,7 +2,7 @@ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FNodeOutputBase } from './f-node-output-base';
3
3
  import { EFConnectableSide } from '../e-f-connectable-side';
4
4
  import { FNodeBase } from '../../f-node';
5
- import { FComponentsStore } from '../../f-components-store';
5
+ import { FComponentsStore } from '../../f-storage';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FNodeOutputDirective extends FNodeOutputBase implements OnInit, OnDestroy {
8
8
  private elementReference;
@@ -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
  export declare class CanvasDragHandler implements IDraggableItem {
6
6
  private fComponentsStore;
7
7
  readonly type: EFDraggableType;
@@ -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 * as i0 from "@angular/core";
5
5
  export declare class CanvasPrepareDragSequence implements IHandler<IPointerEvent, void> {
@@ -1,3 +1,3 @@
1
1
  import { CanvasOnPointerUp } from './canvas.on-pointer-up';
2
2
  import { CanvasPrepareDragSequence } from './canvas.prepare-drag-sequence';
3
- export declare const CANVAS_PROVIDERS: (typeof CanvasPrepareDragSequence | typeof CanvasOnPointerUp)[];
3
+ export declare const CANVAS_PROVIDERS: (typeof CanvasOnPointerUp | typeof CanvasPrepareDragSequence)[];
@@ -1,6 +1,6 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
2
  import { FindInputsUnderPointerHandler } from '../find-inputs-under-pointer';
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 { FindFirstCanBeConnectedOutputByOutletHandler } from './find-first-can-be-connected-output-by-outlet';
6
6
  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 { FindFirstCanBeConnectedOutputByOutletHandler } from './find-first-can-be-connected-output-by-outlet';
5
5
  import { FFlowMediator } from '../../../f-mediator';
@@ -1,5 +1,5 @@
1
1
  import { IHandler } from '@foblex/core';
2
- import { FComponentsStore } from '../../../../f-components-store';
2
+ import { FComponentsStore } from '../../../../f-storage';
3
3
  import { FConnectorBase, FNodeOutletBase } from '../../../../f-connectors';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FindFirstCanBeConnectedOutputByOutletHandler implements IHandler<FNodeOutletBase, FConnectorBase | undefined> {
@@ -1,6 +1,6 @@
1
1
  import { IHandler } from '@foblex/core';
2
2
  import { FindInputsUnderPointerRequest } from './find-inputs-under-pointer.request';
3
- import { FComponentsStore } from '../../../f-components-store';
3
+ import { FComponentsStore } from '../../../f-storage';
4
4
  import { FirstNotConnectedInputOfNodeUnderPointerHandler } from './first-not-connected-input-of-node-under-pointer';
5
5
  import { FConnectorBase } from '../../../f-connectors';
6
6
  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 { FConnectorBase } from '../../../../f-connectors';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FirstNotConnectedInputOfNodeUnderPointerHandler implements IHandler<IPointerEvent, FConnectorBase | undefined> {
@@ -1,4 +1,4 @@
1
1
  import { CreateConnectionOnPointerUp, CreateConnectionPrepareDragSequence, FindFirstCanBeConnectedOutputByOutletHandler } from './create-connection';
2
2
  import { FindInputsUnderPointerHandler, FirstNotConnectedInputOfNodeUnderPointerHandler } from './find-inputs-under-pointer';
3
3
  import { ReassignConnectionOnPointerUp, ReassignConnectionPrepareDragSequence } from './reassign-connection';
4
- export declare const CONNECTIONS_PROVIDERS: (typeof CreateConnectionOnPointerUp | typeof ReassignConnectionPrepareDragSequence | typeof CreateConnectionPrepareDragSequence | typeof ReassignConnectionOnPointerUp | typeof FindFirstCanBeConnectedOutputByOutletHandler | typeof FirstNotConnectedInputOfNodeUnderPointerHandler | typeof FindInputsUnderPointerHandler)[];
4
+ export declare const CONNECTIONS_PROVIDERS: (typeof FindFirstCanBeConnectedOutputByOutletHandler | typeof FirstNotConnectedInputOfNodeUnderPointerHandler | typeof ReassignConnectionOnPointerUp | typeof ReassignConnectionPrepareDragSequence | typeof FindInputsUnderPointerHandler | typeof CreateConnectionOnPointerUp | typeof CreateConnectionPrepareDragSequence)[];
@@ -1,6 +1,6 @@
1
1
  import { IHandler, IPointerEvent } from '@foblex/core';
2
2
  import { FindInputsUnderPointerHandler } from '../index';
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 ReassignConnectionOnPointerUp 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,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 { FFlowMediator } from '../../f-mediator';
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 { FExternalItemService } from '../../f-external-item';
5
5
  import * as i0 from "@angular/core";
@@ -31,6 +31,7 @@ export declare abstract class FDraggableBase implements IHasHostElement {
31
31
  protected constructor(ngZone: ICanRunOutsideAngular);
32
32
  private onMouseDown;
33
33
  private onTouchDown;
34
+ private onSelectStart;
34
35
  private onMouseMove;
35
36
  private onTouchMove;
36
37
  private checkDragSequenceToStart;
@@ -39,6 +40,7 @@ export declare abstract class FDraggableBase implements IHasHostElement {
39
40
  private onTouchUp;
40
41
  private endDragSequence;
41
42
  protected abstract finalizeDragSequence(): void;
43
+ protected abstract onSelect(event: Event): void;
42
44
  abstract onPointerDown(event: IPointerEvent): boolean;
43
45
  abstract onPointerMove(event: IPointerEvent): void;
44
46
  abstract onPointerUp(event: IPointerEvent): void;
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter, Injector, NgZone, OnDestroy, OnInit } from "@angular/core";
2
2
  import { FDraggableBase } from './f-draggable-base';
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 { FCreateNodeEvent } from './external-item';
6
6
  import { IPointerEvent } from '@foblex/core';
@@ -27,6 +27,7 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
27
27
  ngAfterViewInit(): void;
28
28
  onPointerDown(event: IPointerEvent): boolean;
29
29
  protected prepareDragSequence(event: IPointerEvent): void;
30
+ protected onSelect(event: Event): void;
30
31
  onPointerMove(event: IPointerEvent): void;
31
32
  onPointerUp(event: IPointerEvent): void;
32
33
  protected finalizeDragSequence(): void;
@@ -1,5 +1,5 @@
1
1
  import { IHandler } 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';