@foblex/flow 1.2.3 → 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.
- package/components/f-flow/f-canvas/f-canvas.component.d.ts +1 -2
- package/components/f-flow/f-flow.component.d.ts +80 -6
- package/components/f-flow/f-parent.injection-token.d.ts +0 -3
- package/components/f-flow/i-flow-base.d.ts +8 -0
- package/components/f-flow/index.d.ts +1 -2
- package/components/f-flow/public-api.d.ts +0 -1
- package/domain/providers.d.ts +1 -1
- package/esm2022/components/f-flow/f-backgroud/f-background-base.mjs +3 -3
- package/esm2022/components/f-flow/f-backgroud/f-background.component.mjs +5 -5
- package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.mjs +5 -5
- package/esm2022/components/f-flow/f-canvas/f-canvas-base.mjs +4 -4
- package/esm2022/components/f-flow/f-canvas/f-canvas.component.mjs +5 -8
- package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom.directive.mjs +5 -5
- package/esm2022/components/f-flow/f-flow.component.mjs +94 -26
- package/esm2022/components/f-flow/f-parent.injection-token.mjs +1 -1
- package/esm2022/components/f-flow/i-flow-base.mjs +3 -0
- package/esm2022/components/f-flow/index.mjs +2 -3
- package/esm2022/components/f-flow/public-api.mjs +1 -2
- package/esm2022/domain/get-all-nodes-rect.handler.mjs +4 -4
- package/esm2022/domain/get-connection-vector/get-connection-vector.handler.mjs +3 -3
- package/esm2022/domain/get-connection.handler.mjs +4 -4
- package/esm2022/domain/get-element-rect-in-flow.handler.mjs +4 -4
- package/esm2022/domain/get-incoming-connections.handler.mjs +4 -4
- package/esm2022/domain/get-input-rect-in-flow.handler.mjs +4 -4
- package/esm2022/domain/get-outgoing-connections.handler.mjs +4 -4
- package/esm2022/domain/get-output-rect-in-flow.handler.mjs +4 -4
- package/esm2022/domain/update-node-layer.handler.mjs +4 -4
- package/esm2022/f-components-store.mjs +4 -4
- package/esm2022/f-connection/common/f-connection-base.mjs +23 -8
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +5 -5
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +6 -6
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +4 -4
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +5 -5
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +9 -9
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +5 -5
- package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
- package/esm2022/f-connection/common/public-api.mjs +3 -0
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +14 -9
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +11 -7
- package/esm2022/f-connection/f-marker/e-f-marker-type.mjs +8 -0
- package/esm2022/f-connection/f-marker/f-marker-base.mjs +11 -0
- package/esm2022/f-connection/f-marker/f-marker.component.mjs +39 -0
- package/esm2022/f-connection/f-marker/index.mjs +4 -0
- package/esm2022/f-connection/index.mjs +2 -1
- package/esm2022/f-connection/public-api.mjs +3 -1
- package/esm2022/f-draggable/canvas/canvas.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +4 -4
- package/esm2022/f-draggable/components/f-external-item/f-external-item-base.mjs +3 -3
- package/esm2022/f-draggable/components/f-external-item/f-external-item.directive.mjs +5 -5
- package/esm2022/f-draggable/components/f-external-item/f-external-item.service.mjs +3 -3
- package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment-base.mjs +3 -3
- package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment.component.mjs +4 -4
- package/esm2022/f-draggable/components/f-selection-area/f-selection-area-base.mjs +3 -3
- package/esm2022/f-draggable/components/f-selection-area/f-selection-area.component.mjs +4 -4
- package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +4 -4
- 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
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +4 -4
- 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
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +4 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +4 -4
- package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +4 -4
- package/esm2022/f-draggable/f-draggable-base.mjs +5 -5
- package/esm2022/f-draggable/f-draggable-data-context.mjs +3 -3
- package/esm2022/f-draggable/f-draggable.directive.mjs +30 -9
- package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +4 -4
- package/esm2022/f-draggable/node/node.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +4 -4
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +4 -4
- package/esm2022/f-draggable/selection-area/selection-area.on-pointer-up.mjs +4 -4
- package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +5 -5
- package/esm2022/f-draggable/single-select/index.mjs +2 -1
- package/esm2022/f-draggable/single-select/selection-change-event.mjs +7 -0
- package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +4 -4
- package/esm2022/f-flow.module.mjs +8 -28
- package/esm2022/f-node/f-connectors/f-connector-base.mjs +1 -1
- package/esm2022/f-node/f-connectors/f-node-input/f-node-input-base.mjs +3 -3
- package/esm2022/f-node/f-connectors/f-node-input/f-node-input.directive.mjs +7 -12
- package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet-base.mjs +3 -3
- package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +9 -7
- package/esm2022/f-node/f-connectors/f-node-output/f-node-output-base.mjs +3 -3
- package/esm2022/f-node/f-connectors/f-node-output/f-node-output.directive.mjs +7 -6
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +6 -6
- package/esm2022/f-node/f-node.component.mjs +6 -6
- package/esm2022/get-flow-uid.mjs +3 -2
- package/f-components-store.d.ts +2 -3
- package/f-connection/common/f-connection-base.d.ts +4 -2
- package/f-connection/common/i-has-connection-from-to.d.ts +1 -0
- package/f-connection/common/public-api.d.ts +2 -0
- package/f-connection/f-connection/f-connection.component.d.ts +6 -4
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +4 -2
- package/f-connection/f-marker/e-f-marker-type.d.ts +6 -0
- package/f-connection/f-marker/f-marker-base.d.ts +15 -0
- package/f-connection/f-marker/f-marker.component.d.ts +15 -0
- package/f-connection/f-marker/index.d.ts +3 -0
- package/f-connection/index.d.ts +1 -0
- package/f-connection/public-api.d.ts +2 -0
- package/f-draggable/connections/providers.d.ts +1 -1
- package/f-draggable/external-item/providers.d.ts +1 -1
- package/f-draggable/f-draggable-base.d.ts +2 -0
- package/f-draggable/f-draggable.directive.d.ts +4 -1
- package/f-draggable/node/providers.d.ts +1 -1
- package/f-draggable/single-select/index.d.ts +1 -0
- package/f-draggable/single-select/selection-change-event.d.ts +5 -0
- package/f-flow.module.d.ts +13 -18
- package/f-node/f-connectors/f-connector-base.d.ts +1 -1
- package/f-node/f-connectors/f-node-input/f-node-input.directive.d.ts +1 -3
- package/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +1 -1
- package/f-node/f-connectors/f-node-output/f-node-output.directive.d.ts +2 -2
- package/f-node/f-node.component.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +467 -534
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +8 -5
- package/components/f-flow/f-definitions/domain/i-connection-marker.d.ts +0 -5
- package/components/f-flow/f-definitions/f-definitions-base.d.ts +0 -10
- package/components/f-flow/f-definitions/f-definitions.component.d.ts +0 -20
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.d.ts +0 -13
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.d.ts +0 -14
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.d.ts +0 -13
- package/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.d.ts +0 -14
- package/components/f-flow/f-definitions/f-markers/index.d.ts +0 -4
- package/components/f-flow/f-definitions/f-markers/public-api.d.ts +0 -4
- package/components/f-flow/f-definitions/index.d.ts +0 -3
- package/components/f-flow/f-definitions/public-api.d.ts +0 -2
- package/components/f-flow/f-flow-base.d.ts +0 -10
- package/esm2022/components/f-flow/f-definitions/domain/i-connection-marker.mjs +0 -3
- package/esm2022/components/f-flow/f-definitions/f-definitions-base.mjs +0 -11
- package/esm2022/components/f-flow/f-definitions/f-definitions.component.mjs +0 -73
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.mjs +0 -36
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.mjs +0 -39
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.mjs +0 -36
- package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.mjs +0 -39
- package/esm2022/components/f-flow/f-definitions/f-markers/index.mjs +0 -5
- package/esm2022/components/f-flow/f-definitions/f-markers/public-api.mjs +0 -5
- package/esm2022/components/f-flow/f-definitions/index.mjs +0 -4
- package/esm2022/components/f-flow/f-definitions/public-api.mjs +0 -3
- 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(
|
|
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,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:
|
|
16
|
+
set behavior(value: EConnectionBehavior | string);
|
|
16
17
|
get behavior(): EConnectionBehavior;
|
|
17
18
|
private _behavior;
|
|
18
|
-
set type(value:
|
|
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",
|
|
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; }; }, {},
|
|
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,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
|
+
}
|
package/f-connection/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CreateConnectionOnPointerUp, CreateConnectionPrepareDragSequence, FindFirstCanBeConnectedOutputByOutletHandler } from './create-connection';
|
|
2
2
|
import { FindInputsUnderPointerHandler, FirstNotConnectedInputOfNodeUnderPointerHandler, InputsUnderPointerHandler } from './find-inputs-under-pointer';
|
|
3
3
|
import { ReassignConnectionOnPointerUp, ReassignConnectionPrepareDragSequence } from './reassign-connection';
|
|
4
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof FindFirstCanBeConnectedOutputByOutletHandler | typeof
|
|
4
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof FindFirstCanBeConnectedOutputByOutletHandler | typeof FirstNotConnectedInputOfNodeUnderPointerHandler | typeof InputsUnderPointerHandler | typeof ReassignConnectionOnPointerUp | typeof ReassignConnectionPrepareDragSequence | typeof FindInputsUnderPointerHandler | typeof CreateConnectionOnPointerUp | typeof CreateConnectionPrepareDragSequence)[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ExternalItemOnPointerUp } from './external-item.on-pointer-up';
|
|
2
2
|
import { ExternalItemPrepareDragSequence } from './external-item.prepare-drag-sequence';
|
|
3
|
-
export declare const EXTERNAL_ITEM_PROVIDERS: (typeof
|
|
3
|
+
export declare const EXTERNAL_ITEM_PROVIDERS: (typeof ExternalItemPrepareDragSequence | typeof ExternalItemOnPointerUp)[];
|
|
@@ -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]",
|
|
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,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
|
|
4
|
+
export declare const NODE_PROVIDERS: (typeof IsConnectionUnderNodeHandler | typeof NodeOnPointerUp | typeof NodePrepareDragSequence)[];
|
package/f-flow.module.d.ts
CHANGED
|
@@ -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 "./
|
|
12
|
-
import * as i11 from "./f-
|
|
13
|
-
import * as i12 from "./f-connection/f-connection/f-connection.component";
|
|
14
|
-
import * as i13 from "./f-
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./f-node/f-connectors/f-node-
|
|
17
|
-
import * as i16 from "./f-node/f-connectors/f-node-
|
|
18
|
-
import * as i17 from "./f-
|
|
19
|
-
import * as i18 from "./f-draggable/f-
|
|
20
|
-
import * as i19 from "./f-draggable/components/f-
|
|
21
|
-
import * as i20 from "./f-draggable/components/f-
|
|
22
|
-
import * as i21 from "
|
|
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.
|
|
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:
|
|
6
|
+
abstract id: string;
|
|
7
7
|
abstract disabled: boolean;
|
|
8
8
|
abstract hostElement: HTMLElement | SVGElement;
|
|
9
9
|
readonly stateChanges: Subject<void>;
|
|
@@ -8,8 +8,6 @@ export declare class FNodeInputDirective extends FNodeInputBase implements OnIni
|
|
|
8
8
|
private fNode;
|
|
9
9
|
private fComponentsStore;
|
|
10
10
|
id: any;
|
|
11
|
-
fNodeInputColor: string | undefined;
|
|
12
|
-
get color(): string;
|
|
13
11
|
multiple: boolean;
|
|
14
12
|
get disabled(): boolean;
|
|
15
13
|
set disabled(isDisabled: boolean | undefined | string);
|
|
@@ -21,5 +19,5 @@ export declare class FNodeInputDirective extends FNodeInputBase implements OnIni
|
|
|
21
19
|
setConnected(isConnected: boolean): void;
|
|
22
20
|
ngOnDestroy(): void;
|
|
23
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FNodeInputDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeInputDirective, "[fNodeInput]",
|
|
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>;
|
|
25
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]",
|
|
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:
|
|
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]",
|
|
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:
|
|
11
|
+
id: string;
|
|
12
12
|
set position(value: PointInput);
|
|
13
13
|
get position(): IPoint;
|
|
14
14
|
positionChange: EventEmitter<IPoint>;
|