@foblex/flow 1.2.4 → 1.2.5

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 (135) hide show
  1. package/components/f-flow/f-canvas/f-canvas.component.d.ts +1 -2
  2. package/components/f-flow/f-flow.component.d.ts +80 -6
  3. package/components/f-flow/f-parent.injection-token.d.ts +0 -3
  4. package/components/f-flow/i-flow-base.d.ts +8 -0
  5. package/components/f-flow/index.d.ts +1 -2
  6. package/components/f-flow/public-api.d.ts +0 -1
  7. package/esm2022/components/f-flow/f-backgroud/f-background-base.mjs +3 -3
  8. package/esm2022/components/f-flow/f-backgroud/f-background.component.mjs +5 -5
  9. package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.mjs +5 -5
  10. package/esm2022/components/f-flow/f-canvas/f-canvas-base.mjs +4 -4
  11. package/esm2022/components/f-flow/f-canvas/f-canvas.component.mjs +5 -8
  12. package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom.directive.mjs +5 -5
  13. package/esm2022/components/f-flow/f-flow.component.mjs +94 -26
  14. package/esm2022/components/f-flow/f-parent.injection-token.mjs +1 -1
  15. package/esm2022/components/f-flow/i-flow-base.mjs +3 -0
  16. package/esm2022/components/f-flow/index.mjs +2 -3
  17. package/esm2022/components/f-flow/public-api.mjs +1 -2
  18. package/esm2022/domain/get-all-nodes-rect.handler.mjs +4 -4
  19. package/esm2022/domain/get-connection-vector/get-connection-vector.handler.mjs +3 -3
  20. package/esm2022/domain/get-connection.handler.mjs +4 -4
  21. package/esm2022/domain/get-element-rect-in-flow.handler.mjs +4 -4
  22. package/esm2022/domain/get-incoming-connections.handler.mjs +4 -4
  23. package/esm2022/domain/get-input-rect-in-flow.handler.mjs +4 -4
  24. package/esm2022/domain/get-outgoing-connections.handler.mjs +4 -4
  25. package/esm2022/domain/get-output-rect-in-flow.handler.mjs +4 -4
  26. package/esm2022/domain/update-node-layer.handler.mjs +4 -4
  27. package/esm2022/f-components-store.mjs +4 -4
  28. package/esm2022/f-connection/common/f-connection-base.mjs +23 -8
  29. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +5 -5
  30. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +6 -6
  31. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +4 -4
  32. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +5 -5
  33. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +9 -9
  34. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +5 -5
  35. package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
  36. package/esm2022/f-connection/common/public-api.mjs +3 -0
  37. package/esm2022/f-connection/f-connection/f-connection.component.mjs +14 -9
  38. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +11 -7
  39. package/esm2022/f-connection/f-marker/e-f-marker-type.mjs +8 -0
  40. package/esm2022/f-connection/f-marker/f-marker-base.mjs +11 -0
  41. package/esm2022/f-connection/f-marker/f-marker.component.mjs +39 -0
  42. package/esm2022/f-connection/f-marker/index.mjs +4 -0
  43. package/esm2022/f-connection/index.mjs +2 -1
  44. package/esm2022/f-connection/public-api.mjs +3 -1
  45. package/esm2022/f-draggable/canvas/canvas.on-pointer-up.mjs +4 -4
  46. package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +4 -4
  47. package/esm2022/f-draggable/components/f-external-item/f-external-item-base.mjs +3 -3
  48. package/esm2022/f-draggable/components/f-external-item/f-external-item.directive.mjs +5 -5
  49. package/esm2022/f-draggable/components/f-external-item/f-external-item.service.mjs +3 -3
  50. package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment-base.mjs +3 -3
  51. package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment.component.mjs +4 -4
  52. package/esm2022/f-draggable/components/f-selection-area/f-selection-area-base.mjs +3 -3
  53. package/esm2022/f-draggable/components/f-selection-area/f-selection-area.component.mjs +4 -4
  54. package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +4 -4
  55. package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +4 -4
  56. 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 +4 -4
  57. package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +4 -4
  58. 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 +4 -4
  59. package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +4 -4
  60. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +4 -4
  61. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +4 -4
  62. package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +4 -4
  63. package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +4 -4
  64. package/esm2022/f-draggable/f-draggable-base.mjs +5 -5
  65. package/esm2022/f-draggable/f-draggable-data-context.mjs +3 -3
  66. package/esm2022/f-draggable/f-draggable.directive.mjs +30 -9
  67. package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +4 -4
  68. package/esm2022/f-draggable/node/node.on-pointer-up.mjs +4 -4
  69. package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +4 -4
  70. package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +4 -4
  71. package/esm2022/f-draggable/selection-area/selection-area.on-pointer-up.mjs +4 -4
  72. package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +5 -5
  73. package/esm2022/f-draggable/single-select/index.mjs +2 -1
  74. package/esm2022/f-draggable/single-select/selection-change-event.mjs +7 -0
  75. package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +4 -4
  76. package/esm2022/f-flow.module.mjs +8 -28
  77. package/esm2022/f-node/f-connectors/f-connector-base.mjs +1 -1
  78. package/esm2022/f-node/f-connectors/f-node-input/f-node-input-base.mjs +3 -3
  79. package/esm2022/f-node/f-connectors/f-node-input/f-node-input.directive.mjs +7 -6
  80. package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet-base.mjs +3 -3
  81. package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +9 -7
  82. package/esm2022/f-node/f-connectors/f-node-output/f-node-output-base.mjs +3 -3
  83. package/esm2022/f-node/f-connectors/f-node-output/f-node-output.directive.mjs +7 -6
  84. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +6 -6
  85. package/esm2022/f-node/f-node.component.mjs +6 -6
  86. package/esm2022/get-flow-uid.mjs +3 -2
  87. package/f-components-store.d.ts +2 -3
  88. package/f-connection/common/f-connection-base.d.ts +4 -2
  89. package/f-connection/common/i-has-connection-from-to.d.ts +1 -0
  90. package/f-connection/common/public-api.d.ts +2 -0
  91. package/f-connection/f-connection/f-connection.component.d.ts +6 -4
  92. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +4 -2
  93. package/f-connection/f-marker/e-f-marker-type.d.ts +6 -0
  94. package/f-connection/f-marker/f-marker-base.d.ts +15 -0
  95. package/f-connection/f-marker/f-marker.component.d.ts +15 -0
  96. package/f-connection/f-marker/index.d.ts +3 -0
  97. package/f-connection/index.d.ts +1 -0
  98. package/f-connection/public-api.d.ts +2 -0
  99. package/f-draggable/f-draggable-base.d.ts +2 -0
  100. package/f-draggable/f-draggable.directive.d.ts +4 -1
  101. package/f-draggable/single-select/index.d.ts +1 -0
  102. package/f-draggable/single-select/selection-change-event.d.ts +5 -0
  103. package/f-flow.module.d.ts +13 -18
  104. package/f-node/f-connectors/f-connector-base.d.ts +1 -1
  105. package/f-node/f-connectors/f-node-input/f-node-input.directive.d.ts +1 -1
  106. package/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +1 -1
  107. package/f-node/f-connectors/f-node-output/f-node-output.directive.d.ts +2 -2
  108. package/f-node/f-node.component.d.ts +1 -1
  109. package/fesm2022/foblex-flow.mjs +467 -528
  110. package/fesm2022/foblex-flow.mjs.map +1 -1
  111. package/package.json +7 -4
  112. package/components/f-flow/f-definitions/domain/i-connection-marker.d.ts +0 -5
  113. package/components/f-flow/f-definitions/f-definitions-base.d.ts +0 -10
  114. package/components/f-flow/f-definitions/f-definitions.component.d.ts +0 -20
  115. package/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.d.ts +0 -13
  116. package/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.d.ts +0 -14
  117. package/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.d.ts +0 -13
  118. package/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.d.ts +0 -14
  119. package/components/f-flow/f-definitions/f-markers/index.d.ts +0 -4
  120. package/components/f-flow/f-definitions/f-markers/public-api.d.ts +0 -4
  121. package/components/f-flow/f-definitions/index.d.ts +0 -3
  122. package/components/f-flow/f-definitions/public-api.d.ts +0 -2
  123. package/components/f-flow/f-flow-base.d.ts +0 -10
  124. package/esm2022/components/f-flow/f-definitions/domain/i-connection-marker.mjs +0 -3
  125. package/esm2022/components/f-flow/f-definitions/f-definitions-base.mjs +0 -11
  126. package/esm2022/components/f-flow/f-definitions/f-definitions.component.mjs +0 -73
  127. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.mjs +0 -36
  128. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.mjs +0 -39
  129. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.mjs +0 -36
  130. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.mjs +0 -39
  131. package/esm2022/components/f-flow/f-definitions/f-markers/index.mjs +0 -5
  132. package/esm2022/components/f-flow/f-definitions/f-markers/public-api.mjs +0 -5
  133. package/esm2022/components/f-flow/f-definitions/index.mjs +0 -4
  134. package/esm2022/components/f-flow/f-definitions/public-api.mjs +0 -3
  135. package/esm2022/components/f-flow/f-flow-base.mjs +0 -11
@@ -1,4 +1,4 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, QueryList } from '@angular/core';
2
2
  import { IHasHostElement, IPoint, IVector } from '@foblex/core';
3
3
  import { Subject } from 'rxjs';
4
4
  import { EConnectionBehavior } from './e-connection-behavior';
@@ -14,6 +14,7 @@ import { FConnectionSelectionComponent } from './f-selection';
14
14
  import { IConnectionText } from './f-connection-text';
15
15
  import { IHasStateChanges } from '../../i-has-state-changes';
16
16
  import { EConnectorSide } from '../../domain';
17
+ import { FMarkerBase } from '../f-marker';
17
18
  import * as i0 from "@angular/core";
18
19
  declare const MIXIN_BASE: import("../../common-behaviours").Constructor<ISelectable> & import("../../common-behaviours").AbstractConstructor<ISelectable> & import("../../common-behaviours").Constructor<ICanChangeConnectionVisibility> & import("../../common-behaviours").AbstractConstructor<ICanChangeConnectionVisibility> & {
19
20
  new (hostElement: HTMLElement): {
@@ -35,6 +36,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
35
36
  abstract behavior: EConnectionBehavior;
36
37
  abstract type: EConnectionType;
37
38
  abstract fDefs: ElementRef<SVGDefsElement>;
39
+ abstract fMarkers: QueryList<FMarkerBase>;
38
40
  abstract fPath: IConnectionPath;
39
41
  abstract fGradient: IConnectionGradient;
40
42
  abstract fDragHandle: FConnectionDragHandleComponent;
@@ -46,7 +48,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
46
48
  private reset;
47
49
  isContains(element: HTMLElement | SVGElement): boolean;
48
50
  setVector(from: IPoint, fromSide: EConnectorSide, to: IPoint, toSide: EConnectorSide): void;
49
- setMarkers(markers: SVGMarkerElement[]): void;
51
+ setMarkers(): void;
50
52
  redraw(): void;
51
53
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionBase, never>;
52
54
  static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectionBase, never, never, {}, {}, never, never, false, never>;
@@ -1,4 +1,5 @@
1
1
  export interface IHasConnectionFromTo<T = any> {
2
+ id: any;
2
3
  outputId: T;
3
4
  inputId: T;
4
5
  }
@@ -0,0 +1,2 @@
1
+ export * from './e-connection-behavior';
2
+ export * from './e-connection-type';
@@ -1,8 +1,9 @@
1
- import { ElementRef, OnDestroy, OnInit } from "@angular/core";
1
+ import { ElementRef, OnDestroy, OnInit, QueryList } from "@angular/core";
2
2
  import { FConnectionBase, FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
3
3
  import { EConnectionBehavior } from '../common';
4
4
  import { EConnectionType } from '../common';
5
5
  import { FComponentsStore } from '../../f-components-store';
6
+ import { FMarkerBase } from '../f-marker';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class FConnectionComponent extends FConnectionBase implements OnInit, OnDestroy {
8
9
  private fComponentsStore;
@@ -12,14 +13,15 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
12
13
  endColor: string;
13
14
  outputId: any;
14
15
  inputId: any;
15
- set behavior(value: 'fixed' | 'floating');
16
+ set behavior(value: EConnectionBehavior | string);
16
17
  get behavior(): EConnectionBehavior;
17
18
  private _behavior;
18
- set type(value: 'segment' | 'straight' | 'bezier');
19
+ set type(value: EConnectionType | string);
19
20
  get type(): EConnectionType;
20
21
  private _type;
21
22
  disabled: boolean;
22
23
  fDefs: ElementRef<SVGDefsElement>;
24
+ fMarkers: QueryList<FMarkerBase>;
23
25
  fPath: IConnectionPath;
24
26
  fGradient: IConnectionGradient;
25
27
  fDragHandle: FConnectionDragHandleComponent;
@@ -31,5 +33,5 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
31
33
  ngOnInit(): void;
32
34
  ngOnDestroy(): void;
33
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", never, { "id": { "alias": "id"; "required": false; }; "text": { "alias": "text"; "required": false; }; "startColor": { "alias": "startColor"; "required": false; }; "endColor": { "alias": "endColor"; "required": false; }; "outputId": { "alias": "outputId"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "id": { "alias": "id"; "required": false; }; "text": { "alias": "text"; "required": false; }; "startColor": { "alias": "startColor"; "required": false; }; "endColor": { "alias": "endColor"; "required": false; }; "outputId": { "alias": "outputId"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["fMarkers"], ["*"], false, never>;
35
37
  }
@@ -1,8 +1,9 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from "@angular/core";
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from "@angular/core";
2
2
  import { FConnectionBase, FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
3
3
  import { EConnectionBehavior } from '../common';
4
4
  import { EConnectionType } from '../common';
5
5
  import { FComponentsStore } from '../../f-components-store';
6
+ import { FMarkerBase } from '../f-marker';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class FConnectionForCreateComponent extends FConnectionBase implements AfterViewInit, OnInit, OnDestroy {
8
9
  private fComponentsStore;
@@ -20,6 +21,7 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
20
21
  private _type;
21
22
  disabled: boolean;
22
23
  fDefs: ElementRef<SVGDefsElement>;
24
+ fMarkers: QueryList<FMarkerBase>;
23
25
  fPath: IConnectionPath;
24
26
  fGradient: IConnectionGradient;
25
27
  fDragHandle: FConnectionDragHandleComponent;
@@ -32,5 +34,5 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
32
34
  ngAfterViewInit(): void;
33
35
  ngOnDestroy(): void;
34
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionForCreateComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "startColor": { "alias": "startColor"; "required": false; }; "endColor": { "alias": "endColor"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "startColor": { "alias": "startColor"; "required": false; }; "endColor": { "alias": "endColor"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["fMarkers"], ["*"], false, never>;
36
38
  }
@@ -0,0 +1,6 @@
1
+ export declare enum EFMarkerType {
2
+ START = "f-connection-marker-start",
3
+ END = "f-connection-marker-end",
4
+ SELECTED_START = "selected_start",
5
+ SELECTED_END = "selected_end"
6
+ }
@@ -0,0 +1,15 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { IHasHostElement } from '@foblex/core';
3
+ import { EFMarkerType } from './e-f-marker-type';
4
+ import * as i0 from "@angular/core";
5
+ export declare const F_MARKER: InjectionToken<unknown>;
6
+ export declare abstract class FMarkerBase implements IHasHostElement {
7
+ abstract hostElement: HTMLElement;
8
+ abstract width: number;
9
+ abstract height: number;
10
+ abstract refX: number;
11
+ abstract refY: number;
12
+ abstract type: EFMarkerType;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FMarkerBase, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FMarkerBase, never, never, {}, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { ElementRef } from "@angular/core";
2
+ import { FMarkerBase } from './f-marker-base';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FMarkerComponent extends FMarkerBase {
5
+ private elementReference;
6
+ get hostElement(): HTMLElement;
7
+ width: number;
8
+ height: number;
9
+ refX: number;
10
+ refY: number;
11
+ type: string;
12
+ constructor(elementReference: ElementRef<HTMLElement>);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FMarkerComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FMarkerComponent, "f-marker", 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, ["*"], true, never>;
15
+ }
@@ -0,0 +1,3 @@
1
+ export * from './e-f-marker-type';
2
+ export * from './f-marker.component';
3
+ export * from './f-marker-base';
@@ -1,3 +1,4 @@
1
1
  export * from './common';
2
2
  export * from './f-connection-for-create';
3
3
  export * from './f-connection';
4
+ export * from './f-marker';
@@ -1,2 +1,4 @@
1
+ export * from './common/public-api';
1
2
  export * from './f-connection-for-create/f-connection-for-create.component';
2
3
  export * from './f-connection/f-connection.component';
4
+ export * from './f-marker';
@@ -3,10 +3,12 @@ import { EventEmitter, InjectionToken, NgZone } from '@angular/core';
3
3
  import { CreateNodeEvent } from './external-item';
4
4
  import { ReassignConnectionEvent } from './connections/reassign-connection/reassign-connection.event';
5
5
  import { CreateConnectionEvent } from './connections/create-connection/create-connection.event';
6
+ import { SelectionChangeEvent } from './single-select';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare const F_DRAGGABLE: InjectionToken<FDraggableBase>;
8
9
  export declare abstract class FDraggableBase extends IDragAndDropBase implements IHasHostElement {
9
10
  abstract hostElement: HTMLElement;
11
+ abstract fSelectionChange: EventEmitter<SelectionChangeEvent>;
10
12
  abstract fCreateNode: EventEmitter<CreateNodeEvent>;
11
13
  abstract fReassignConnection: EventEmitter<ReassignConnectionEvent>;
12
14
  abstract fCreateConnection: EventEmitter<CreateConnectionEvent>;
@@ -4,6 +4,7 @@ import { FComponentsStore } from '../f-components-store';
4
4
  import { FDraggableDataContext } from './f-draggable-data-context';
5
5
  import { CreateNodeEvent } from './external-item';
6
6
  import { IPointerEvent } from '@foblex/core';
7
+ import { SelectionChangeEvent } from './single-select';
7
8
  import { CreateConnectionEvent, ReassignConnectionEvent } from './connections';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class FDraggableDirective extends FDraggableBase implements OnInit, AfterViewInit, OnDestroy {
@@ -14,6 +15,7 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
14
15
  private subscriptions$;
15
16
  disabled: boolean;
16
17
  get hostElement(): HTMLElement;
18
+ fSelectionChange: EventEmitter<SelectionChangeEvent>;
17
19
  fCreateNode: EventEmitter<CreateNodeEvent>;
18
20
  fReassignConnection: EventEmitter<ReassignConnectionEvent>;
19
21
  fCreateConnection: EventEmitter<CreateConnectionEvent>;
@@ -25,7 +27,8 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
25
27
  protected prepareDragSequence(event: IPointerEvent): void;
26
28
  onPointerMove(event: IPointerEvent): void;
27
29
  onPointerUp(event: IPointerEvent): void;
30
+ private emitSelectionChangeEvent;
28
31
  ngOnDestroy(): void;
29
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; }, never, never, false, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", ["fDraggable"], { "disabled": { "alias": "fDraggableDisabled"; "required": false; }; }, { "fSelectionChange": "fSelectionChange"; "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; }, never, never, false, never>;
31
34
  }
@@ -1,2 +1,3 @@
1
1
  export * from './providers';
2
+ export * from './selection-change-event';
2
3
  export * from './single-select.on-pointer-down';
@@ -0,0 +1,5 @@
1
+ export declare class SelectionChangeEvent {
2
+ nodes: string[];
3
+ connections: string[];
4
+ constructor(nodes: string[], connections: string[]);
5
+ }
@@ -8,25 +8,20 @@ import * as i6 from "./f-connection/common/f-selection/f-connection-selection.co
8
8
  import * as i7 from "./components/f-flow/f-flow.component";
9
9
  import * as i8 from "./components/f-flow/f-backgroud/f-background.component";
10
10
  import * as i9 from "./components/f-flow/f-canvas/f-canvas.component";
11
- import * as i10 from "./components/f-flow/f-definitions/f-definitions.component";
12
- import * as i11 from "./f-node/f-node.component";
13
- import * as i12 from "./f-connection/f-connection/f-connection.component";
14
- import * as i13 from "./f-connection/f-connection-for-create/f-connection-for-create.component";
15
- import * as i14 from "./components/f-flow/f-canvas/f-zoom/f-zoom.directive";
16
- import * as i15 from "./f-node/f-connectors/f-node-input/f-node-input.directive";
17
- import * as i16 from "./f-node/f-connectors/f-node-outlet/f-node-outlet.directive";
18
- import * as i17 from "./f-node/f-connectors/f-node-output/f-node-output.directive";
19
- import * as i18 from "./f-draggable/f-draggable.directive";
20
- import * as i19 from "./f-draggable/components/f-external-item/f-external-item.directive";
21
- import * as i20 from "./f-draggable/components/f-selection-area/f-selection-area.component";
22
- import * as i21 from "./f-draggable/components/f-line-alignment/f-line-alignment.component";
23
- import * as i22 from "./components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive";
24
- import * as i23 from "./components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive";
25
- import * as i24 from "./components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive";
26
- import * as i25 from "./components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive";
27
- import * as i26 from "@angular/common";
11
+ import * as i10 from "./f-node/f-node.component";
12
+ import * as i11 from "./f-connection/f-connection/f-connection.component";
13
+ import * as i12 from "./f-connection/f-connection-for-create/f-connection-for-create.component";
14
+ import * as i13 from "./components/f-flow/f-canvas/f-zoom/f-zoom.directive";
15
+ import * as i14 from "./f-node/f-connectors/f-node-input/f-node-input.directive";
16
+ import * as i15 from "./f-node/f-connectors/f-node-outlet/f-node-outlet.directive";
17
+ import * as i16 from "./f-node/f-connectors/f-node-output/f-node-output.directive";
18
+ import * as i17 from "./f-draggable/f-draggable.directive";
19
+ import * as i18 from "./f-draggable/components/f-external-item/f-external-item.directive";
20
+ import * as i19 from "./f-draggable/components/f-selection-area/f-selection-area.component";
21
+ import * as i20 from "./f-draggable/components/f-line-alignment/f-line-alignment.component";
22
+ import * as i21 from "@angular/common";
28
23
  export declare class FFlowModule {
29
24
  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.FFlowComponent, typeof i8.FBackgroundComponent, typeof i9.FCanvasComponent, typeof i10.FDefinitionsComponent, typeof i11.FNodeComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionForCreateComponent, typeof i14.FZoomDirective, typeof i15.FNodeInputDirective, typeof i16.FNodeOutletDirective, typeof i17.FNodeOutputDirective, typeof i18.FDraggableDirective, typeof i19.FExternalItemDirective, typeof i20.FSelectionAreaComponent, typeof i21.FLineAlignmentComponent, typeof i22.FConnectionMarkerStartDirective, typeof i23.FConnectionMarkerStartSelectedDirective, typeof i24.FConnectionMarkerEndDirective, typeof i25.FConnectionMarkerEndSelectedDirective], [typeof i26.CommonModule], [typeof i7.FFlowComponent, typeof i8.FBackgroundComponent, typeof i9.FCanvasComponent, typeof i10.FDefinitionsComponent, typeof i11.FNodeComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionForCreateComponent, typeof i14.FZoomDirective, typeof i15.FNodeInputDirective, typeof i16.FNodeOutletDirective, typeof i17.FNodeOutputDirective, typeof i18.FDraggableDirective, typeof i19.FExternalItemDirective, typeof i20.FSelectionAreaComponent, typeof i21.FLineAlignmentComponent, typeof i22.FConnectionMarkerStartDirective, typeof i23.FConnectionMarkerStartSelectedDirective, typeof i24.FConnectionMarkerEndDirective, typeof i25.FConnectionMarkerEndSelectedDirective]>;
25
+ 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.FFlowComponent, typeof i8.FBackgroundComponent, typeof i9.FCanvasComponent, typeof i10.FNodeComponent, typeof i11.FConnectionComponent, typeof i12.FConnectionForCreateComponent, typeof i13.FZoomDirective, typeof i14.FNodeInputDirective, typeof i15.FNodeOutletDirective, typeof i16.FNodeOutputDirective, typeof i17.FDraggableDirective, typeof i18.FExternalItemDirective, typeof i19.FSelectionAreaComponent, typeof i20.FLineAlignmentComponent], [typeof i21.CommonModule], [typeof i7.FFlowComponent, typeof i8.FBackgroundComponent, typeof i9.FCanvasComponent, typeof i10.FNodeComponent, typeof i11.FConnectionComponent, typeof i12.FConnectionForCreateComponent, typeof i13.FZoomDirective, typeof i14.FNodeInputDirective, typeof i15.FNodeOutletDirective, typeof i16.FNodeOutputDirective, typeof i17.FDraggableDirective, typeof i18.FExternalItemDirective, typeof i19.FSelectionAreaComponent, typeof i20.FLineAlignmentComponent]>;
31
26
  static ɵinj: i0.ɵɵInjectorDeclaration<FFlowModule>;
32
27
  }
@@ -3,7 +3,7 @@ import { IHasHostElement } from '@foblex/core';
3
3
  import { IHasStateChanges } from '../../i-has-state-changes';
4
4
  import { EConnectorSide } from '../../domain';
5
5
  export declare abstract class FConnectorBase implements IHasStateChanges, IHasHostElement {
6
- abstract id: any;
6
+ abstract id: string;
7
7
  abstract disabled: boolean;
8
8
  abstract hostElement: HTMLElement | SVGElement;
9
9
  readonly stateChanges: Subject<void>;
@@ -19,5 +19,5 @@ export declare class FNodeInputDirective extends FNodeInputBase implements OnIni
19
19
  setConnected(isConnected: boolean): void;
20
20
  ngOnDestroy(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeInputDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeInputDirective, "[fNodeInput]", never, { "id": { "alias": "fNodeInputId"; "required": false; }; "multiple": { "alias": "fNodeInputMultiple"; "required": false; }; "disabled": { "alias": "fNodeInputDisabled"; "required": false; }; }, {}, never, never, false, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeInputDirective, "[fNodeInput]", ["fNodeInput"], { "id": { "alias": "fNodeInputId"; "required": false; }; "multiple": { "alias": "fNodeInputMultiple"; "required": false; }; "disabled": { "alias": "fNodeInputDisabled"; "required": false; }; }, {}, never, never, false, never>;
23
23
  }
@@ -17,5 +17,5 @@ export declare class FNodeOutletDirective extends FNodeOutletBase implements OnI
17
17
  ngOnInit(): void;
18
18
  ngOnDestroy(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeOutletDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutletDirective, "[fNodeOutlet]", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "fNodeOutletDisabled"; "required": false; }; "isConnectionFromOutlet": { "alias": "isConnectionFromOutlet"; "required": false; }; }, {}, never, never, false, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutletDirective, "[fNodeOutlet]", ["fNodeOutlet"], { "id": { "alias": "fNodeOutletId"; "required": false; }; "disabled": { "alias": "fNodeOutletDisabled"; "required": false; }; "isConnectionFromOutlet": { "alias": "isConnectionFromOutlet"; "required": false; }; }, {}, never, never, false, never>;
21
21
  }
@@ -7,7 +7,7 @@ export declare class FNodeOutputDirective extends FNodeOutputBase implements OnI
7
7
  private elementReference;
8
8
  private fNode;
9
9
  private fComponentsStore;
10
- id: any;
10
+ id: string;
11
11
  get disabled(): boolean;
12
12
  set disabled(isDisabled: boolean | undefined | string);
13
13
  private isDisabled;
@@ -18,5 +18,5 @@ export declare class FNodeOutputDirective extends FNodeOutputBase implements OnI
18
18
  setConnected(isConnected: boolean): void;
19
19
  ngOnDestroy(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeOutputDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutputDirective, "[fNodeOutput]", never, { "id": { "alias": "fNodeOutputId"; "required": false; }; "disabled": { "alias": "fNodeOutputDisabled"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutputDirective, "[fNodeOutput]", ["fNodeOutput"], { "id": { "alias": "fNodeOutputId"; "required": false; }; "disabled": { "alias": "fNodeOutputDisabled"; "required": false; }; }, {}, never, never, false, never>;
22
22
  }
@@ -8,7 +8,7 @@ export declare class FNodeComponent extends FNodeBase implements OnInit, AfterVi
8
8
  private elementReference;
9
9
  private fComponentsStore;
10
10
  private subscriptions$;
11
- id: any;
11
+ id: string;
12
12
  set position(value: PointInput);
13
13
  get position(): IPoint;
14
14
  positionChange: EventEmitter<IPoint>;