@foblex/flow 1.0.9 → 1.1.1
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-connection/{f-connection-base.d.ts → common/f-connection-base.d.ts} +4 -6
- package/components/f-connection/common/f-connection-common.module.d.ts +13 -0
- package/components/f-connection/{f-connection-text → common/f-connection-text}/f-connection-text-path.directive.d.ts +1 -1
- package/components/f-connection/{f-connection-text → common/f-connection-text}/f-connection-text.component.d.ts +1 -1
- package/components/f-connection/{f-gradient → common/f-gradient}/f-connection-gradient.component.d.ts +1 -1
- package/components/f-connection/{f-path → common/f-path}/f-connection-path.component.d.ts +2 -2
- package/components/f-connection/{f-selection → common/f-selection}/f-connection-selection.component.d.ts +1 -1
- package/components/f-connection/{i-input-output-model.d.ts → common/i-input-output-model.d.ts} +1 -1
- package/components/f-connection/common/index.d.ts +10 -0
- package/components/f-connection/common/public-api.d.ts +6 -0
- package/components/f-connection/{f-connection.component.d.ts → f-connection/f-connection.component.d.ts} +2 -7
- package/components/f-connection/f-connection/f-connection.module.d.ts +9 -0
- package/components/f-connection/f-connection/index.d.ts +2 -0
- package/components/f-connection/f-temp-connection/f-temp-connection.component.d.ts +4 -4
- package/components/f-connection/f-temp-connection/f-temp-connection.module.d.ts +9 -0
- package/components/f-connection/f-temp-connection/index.d.ts +1 -0
- package/components/f-connection/f-temp-connection/temp-connection-input-output-model.d.ts +1 -1
- package/components/f-connection/index.d.ts +2 -11
- package/components/f-connection/public-api.d.ts +3 -3
- package/components/index.d.ts +0 -1
- package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.d.ts +1 -1
- package/directives/f-connect-if-intersect/f-connect-if-intersect-base.d.ts +11 -0
- package/directives/f-connect-if-intersect/f-connect-if-intersect.directive.d.ts +7 -7
- package/directives/f-connect-if-intersect/index.d.ts +1 -0
- package/directives/f-connect-if-intersect/public-api.d.ts +1 -0
- package/directives/f-containers/f-connections-container/f-connections-container-base.d.ts +1 -1
- package/directives/f-containers/f-connections-container/f-connections-container.component.d.ts +1 -1
- package/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.d.ts +1 -1
- package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.d.ts +1 -1
- package/directives/f-draggable/f-draggable-base.d.ts +4 -3
- package/directives/f-draggable/f-draggable.directive.d.ts +5 -4
- package/directives/f-draggable/f-draggable.module.d.ts +2 -4
- package/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.d.ts +1 -1
- package/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.d.ts +1 -1
- package/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.d.ts +1 -1
- package/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.d.ts +2 -2
- package/directives/f-draggable/public-api.d.ts +1 -0
- package/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.d.ts +2 -1
- package/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.d.ts +2 -1
- package/directives/f-line-alignment/f-line-alignment.directive.d.ts +1 -1
- package/directives/f-selection/f-selection.directive.d.ts +1 -1
- package/esm2022/components/f-connection/common/f-connection-base.mjs +32 -0
- package/esm2022/components/f-connection/common/f-connection-common.module.mjs +44 -0
- package/esm2022/components/f-connection/common/f-connection-identifiers.mjs +21 -0
- package/esm2022/components/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +38 -0
- package/esm2022/components/f-connection/common/f-connection-text/f-connection-text.component.mjs +55 -0
- package/esm2022/components/f-connection/common/f-connection-text/index.mjs +3 -0
- package/esm2022/components/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +30 -0
- package/esm2022/components/f-connection/common/f-drag-handle/index.mjs +2 -0
- package/esm2022/components/f-connection/common/f-gradient/f-connection-gradient.component.mjs +59 -0
- package/esm2022/components/f-connection/common/f-gradient/index.mjs +2 -0
- package/esm2022/components/f-connection/common/f-path/f-connection-path.component.mjs +58 -0
- package/esm2022/components/f-connection/common/f-path/index.mjs +2 -0
- package/esm2022/components/f-connection/common/f-selection/f-connection-selection.component.mjs +34 -0
- package/esm2022/components/f-connection/common/f-selection/index.mjs +2 -0
- package/esm2022/components/f-connection/common/get-connection-intersect.mjs +10 -0
- package/esm2022/components/f-connection/common/i-input-output-model.mjs +2 -0
- package/esm2022/components/f-connection/common/index.mjs +11 -0
- package/esm2022/components/f-connection/common/public-api.mjs +7 -0
- package/esm2022/components/f-connection/f-connection/f-connection.component.mjs +86 -0
- package/esm2022/components/f-connection/f-connection/f-connection.module.mjs +28 -0
- package/esm2022/components/f-connection/f-connection/index.mjs +3 -0
- package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +8 -8
- package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.module.mjs +28 -0
- package/esm2022/components/f-connection/f-temp-connection/index.mjs +2 -1
- package/esm2022/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +1 -1
- package/esm2022/components/f-connection/index.mjs +3 -12
- package/esm2022/components/f-connection/public-api.mjs +4 -4
- package/esm2022/components/index.mjs +1 -2
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +1 -1
- package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect-base.mjs +10 -0
- package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +19 -9
- package/esm2022/directives/f-connect-if-intersect/index.mjs +2 -1
- package/esm2022/directives/f-connect-if-intersect/public-api.mjs +2 -1
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs +1 -1
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container.component.mjs +2 -2
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +2 -2
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +2 -2
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +2 -2
- package/esm2022/directives/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/directives/f-draggable/f-draggable.directive.mjs +8 -7
- package/esm2022/directives/f-draggable/f-draggable.module.mjs +8 -20
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +2 -2
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +2 -2
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +2 -2
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +1 -1
- package/esm2022/directives/f-draggable/public-api.mjs +2 -1
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +1 -1
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +5 -2
- package/esm2022/directives/f-line-alignment/f-line-alignment.directive.mjs +3 -2
- package/esm2022/directives/f-selection/f-selection.directive.mjs +3 -2
- package/esm2022/f-flow.module.mjs +8 -8
- package/esm2022/tokens.mjs +4 -0
- package/f-flow.module.d.ts +3 -2
- package/fesm2022/foblex-flow.mjs +201 -137
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +5 -6
- package/tokens.d.ts +3 -0
- package/components/f-connection/f-connection.module.d.ts +0 -15
- package/esm2022/components/f-connection/f-connection-base.mjs +0 -33
- package/esm2022/components/f-connection/f-connection-identifiers.mjs +0 -21
- package/esm2022/components/f-connection/f-connection-text/f-connection-text-path.directive.mjs +0 -38
- package/esm2022/components/f-connection/f-connection-text/f-connection-text.component.mjs +0 -55
- package/esm2022/components/f-connection/f-connection-text/index.mjs +0 -3
- package/esm2022/components/f-connection/f-connection.component.mjs +0 -91
- package/esm2022/components/f-connection/f-connection.module.mjs +0 -47
- package/esm2022/components/f-connection/f-drag-handle/f-connection-drag-handle.component.mjs +0 -30
- package/esm2022/components/f-connection/f-drag-handle/index.mjs +0 -2
- package/esm2022/components/f-connection/f-gradient/f-connection-gradient.component.mjs +0 -59
- package/esm2022/components/f-connection/f-gradient/index.mjs +0 -2
- package/esm2022/components/f-connection/f-path/f-connection-path.component.mjs +0 -58
- package/esm2022/components/f-connection/f-path/index.mjs +0 -2
- package/esm2022/components/f-connection/f-selection/f-connection-selection.component.mjs +0 -34
- package/esm2022/components/f-connection/f-selection/index.mjs +0 -2
- package/esm2022/components/f-connection/get-connection-intersect.mjs +0 -10
- package/esm2022/components/f-connection/i-input-output-model.mjs +0 -2
- /package/components/f-connection/{f-connection-identifiers.d.ts → common/f-connection-identifiers.d.ts} +0 -0
- /package/components/f-connection/{f-connection-text → common/f-connection-text}/index.d.ts +0 -0
- /package/components/f-connection/{f-drag-handle → common/f-drag-handle}/f-connection-drag-handle.component.d.ts +0 -0
- /package/components/f-connection/{f-drag-handle → common/f-drag-handle}/index.d.ts +0 -0
- /package/components/f-connection/{f-gradient → common/f-gradient}/index.d.ts +0 -0
- /package/components/f-connection/{f-path → common/f-path}/index.d.ts +0 -0
- /package/components/f-connection/{f-selection → common/f-selection}/index.d.ts +0 -0
- /package/components/f-connection/{get-connection-intersect.d.ts → common/get-connection-intersect.d.ts} +0 -0
package/fesm2022/foblex-flow.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { VectorExtensions, Point, PointExtensions,
|
|
2
|
+
import { Directive, Component, ChangeDetectionStrategy, Input, ViewChild, InjectionToken, NgModule, Inject, Optional, SkipSelf, EventEmitter, ContentChildren, ContentChild, Output, Injectable } from '@angular/core';
|
|
3
|
+
import { VectorExtensions, Point, PointExtensions, RectExtensions, TransformModelExtensions, SizeExtensions, BooleanExtensions, FResizeObserver, DomElementExtensions, MouseEventExtensions, IDragAndDropBase, LineFElement, RectFElement, EventExtensions } from '@foblex/core';
|
|
4
4
|
import { Subject, Subscription, startWith, debounceTime, defer, switchMap, merge, take, takeUntil } from 'rxjs';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
|
|
8
8
|
const F_SELECTED_CLASS = 'f-selected';
|
|
9
9
|
|
|
10
|
-
const F_CONNECTION_COMPONENT = new InjectionToken('F_CONNECTION_COMPONENT');
|
|
11
10
|
class FConnectionBase {
|
|
12
11
|
constructor() {
|
|
13
12
|
this.path = '';
|
|
@@ -251,7 +250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
251
250
|
}] } });
|
|
252
251
|
|
|
253
252
|
const F_TEMP_CONNECTION_COMPONENT = new InjectionToken('F_TEMP_CONNECTION_COMPONENT');
|
|
254
|
-
let uniqueId$
|
|
253
|
+
let uniqueId$8 = 0;
|
|
255
254
|
class FTempConnectionComponent extends FConnectionBase {
|
|
256
255
|
get hostElement() {
|
|
257
256
|
return this.elementReference.nativeElement;
|
|
@@ -259,7 +258,7 @@ class FTempConnectionComponent extends FConnectionBase {
|
|
|
259
258
|
constructor(elementReference) {
|
|
260
259
|
super();
|
|
261
260
|
this.elementReference = elementReference;
|
|
262
|
-
this.id = `f-temp-connection-${uniqueId$
|
|
261
|
+
this.id = `f-temp-connection-${uniqueId$8++}`;
|
|
263
262
|
}
|
|
264
263
|
ngAfterViewInit() {
|
|
265
264
|
this.hostElement.style.display = "none";
|
|
@@ -302,6 +301,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
302
301
|
args: [FConnectionTextComponent, { static: true }]
|
|
303
302
|
}] } });
|
|
304
303
|
|
|
304
|
+
class TempConnectionInputOutputModel {
|
|
305
|
+
constructor(output) {
|
|
306
|
+
this.output = output;
|
|
307
|
+
this.input = null;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
305
311
|
const F_CONNECTION_DRAG_HANDLE_CLASS = 'f-connection-drag-handle';
|
|
306
312
|
class FConnectionDragHandleComponent {
|
|
307
313
|
get hostElement() {
|
|
@@ -361,6 +367,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
361
367
|
type: Input
|
|
362
368
|
}] } });
|
|
363
369
|
|
|
370
|
+
class FConnectionCommonModule {
|
|
371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
372
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, declarations: [FConnectionDragHandleComponent,
|
|
373
|
+
FConnectionGradientComponent,
|
|
374
|
+
FConnectionPathComponent,
|
|
375
|
+
FConnectionTextComponent,
|
|
376
|
+
FConnectionTextPathDirective,
|
|
377
|
+
FConnectionSelectionComponent], imports: [CommonModule], exports: [FConnectionDragHandleComponent,
|
|
378
|
+
FConnectionGradientComponent,
|
|
379
|
+
FConnectionPathComponent,
|
|
380
|
+
FConnectionTextComponent,
|
|
381
|
+
FConnectionTextPathDirective,
|
|
382
|
+
FConnectionSelectionComponent] }); }
|
|
383
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, imports: [CommonModule] }); }
|
|
384
|
+
}
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, decorators: [{
|
|
386
|
+
type: NgModule,
|
|
387
|
+
args: [{
|
|
388
|
+
declarations: [
|
|
389
|
+
FConnectionDragHandleComponent,
|
|
390
|
+
FConnectionGradientComponent,
|
|
391
|
+
FConnectionPathComponent,
|
|
392
|
+
FConnectionTextComponent,
|
|
393
|
+
FConnectionTextPathDirective,
|
|
394
|
+
FConnectionSelectionComponent,
|
|
395
|
+
],
|
|
396
|
+
imports: [
|
|
397
|
+
CommonModule
|
|
398
|
+
],
|
|
399
|
+
exports: [
|
|
400
|
+
FConnectionDragHandleComponent,
|
|
401
|
+
FConnectionGradientComponent,
|
|
402
|
+
FConnectionPathComponent,
|
|
403
|
+
FConnectionTextComponent,
|
|
404
|
+
FConnectionTextPathDirective,
|
|
405
|
+
FConnectionSelectionComponent,
|
|
406
|
+
]
|
|
407
|
+
}]
|
|
408
|
+
}] });
|
|
409
|
+
|
|
410
|
+
function getConnectionIntersect(fromRect, toRect) {
|
|
411
|
+
const fromResult = RectExtensions.intersectionWithVector(fromRect, fromRect.gravityCenter, toRect.gravityCenter);
|
|
412
|
+
const toResult = RectExtensions.intersectionWithVector(toRect, fromRect.gravityCenter, toRect.gravityCenter);
|
|
413
|
+
return {
|
|
414
|
+
point1: fromResult ? fromResult[1] : fromRect.gravityCenter,
|
|
415
|
+
point2: toResult ? toResult[0] : toRect.gravityCenter,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
class FTempConnectionModule {
|
|
420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FTempConnectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
421
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FTempConnectionModule, declarations: [FTempConnectionComponent], imports: [CommonModule,
|
|
422
|
+
FConnectionCommonModule], exports: [FTempConnectionComponent] }); }
|
|
423
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FTempConnectionModule, imports: [CommonModule,
|
|
424
|
+
FConnectionCommonModule] }); }
|
|
425
|
+
}
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FTempConnectionModule, decorators: [{
|
|
427
|
+
type: NgModule,
|
|
428
|
+
args: [{
|
|
429
|
+
declarations: [
|
|
430
|
+
FTempConnectionComponent,
|
|
431
|
+
],
|
|
432
|
+
imports: [
|
|
433
|
+
CommonModule,
|
|
434
|
+
FConnectionCommonModule
|
|
435
|
+
],
|
|
436
|
+
exports: [
|
|
437
|
+
FTempConnectionComponent,
|
|
438
|
+
]
|
|
439
|
+
}]
|
|
440
|
+
}] });
|
|
441
|
+
|
|
442
|
+
const F_CONNECT_IF_INTERSECT = new InjectionToken('F_CONNECT_IF_INTERSECT');
|
|
443
|
+
const F_CONNECTION_COMPONENT = new InjectionToken('F_CONNECTION_COMPONENT');
|
|
444
|
+
|
|
364
445
|
const F_CANVAS = new InjectionToken('F_CANVAS');
|
|
365
446
|
class FCanvasBase {
|
|
366
447
|
get hostElement() {
|
|
@@ -440,58 +521,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
440
521
|
args: [F_CANVAS]
|
|
441
522
|
}] }]; } });
|
|
442
523
|
|
|
443
|
-
class TempConnectionInputOutputModel {
|
|
444
|
-
constructor(output) {
|
|
445
|
-
this.output = output;
|
|
446
|
-
this.input = null;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
class FConnectionModule {
|
|
451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
452
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, declarations: [FTempConnectionComponent,
|
|
453
|
-
FConnectionComponent,
|
|
454
|
-
FConnectionDragHandleComponent,
|
|
455
|
-
FConnectionGradientComponent,
|
|
456
|
-
FConnectionPathComponent,
|
|
457
|
-
FConnectionTextComponent,
|
|
458
|
-
FConnectionTextPathDirective,
|
|
459
|
-
FConnectionSelectionComponent], imports: [CommonModule], exports: [FTempConnectionComponent,
|
|
460
|
-
FConnectionComponent] }); }
|
|
461
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, imports: [CommonModule] }); }
|
|
462
|
-
}
|
|
463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, decorators: [{
|
|
464
|
-
type: NgModule,
|
|
465
|
-
args: [{
|
|
466
|
-
declarations: [
|
|
467
|
-
FTempConnectionComponent,
|
|
468
|
-
FConnectionComponent,
|
|
469
|
-
FConnectionDragHandleComponent,
|
|
470
|
-
FConnectionGradientComponent,
|
|
471
|
-
FConnectionPathComponent,
|
|
472
|
-
FConnectionTextComponent,
|
|
473
|
-
FConnectionTextPathDirective,
|
|
474
|
-
FConnectionSelectionComponent
|
|
475
|
-
],
|
|
476
|
-
imports: [
|
|
477
|
-
CommonModule
|
|
478
|
-
],
|
|
479
|
-
exports: [
|
|
480
|
-
FTempConnectionComponent,
|
|
481
|
-
FConnectionComponent
|
|
482
|
-
]
|
|
483
|
-
}]
|
|
484
|
-
}] });
|
|
485
|
-
|
|
486
|
-
function getConnectionIntersect(fromRect, toRect) {
|
|
487
|
-
const fromResult = RectExtensions.intersectionWithVector(fromRect, fromRect.gravityCenter, toRect.gravityCenter);
|
|
488
|
-
const toResult = RectExtensions.intersectionWithVector(toRect, fromRect.gravityCenter, toRect.gravityCenter);
|
|
489
|
-
return {
|
|
490
|
-
point1: fromResult ? fromResult[1] : fromRect.gravityCenter,
|
|
491
|
-
point2: toResult ? toResult[0] : toRect.gravityCenter,
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
|
|
495
524
|
function getElementRectInCanvas(element, transform, svgHost) {
|
|
496
525
|
const rect = RectExtensions.fromElement(element);
|
|
497
526
|
const position = Point.fromPoint(rect).matrixTransform(svgHost).sub(transform.scaledPosition).sub(transform.position).div(transform.scale);
|
|
@@ -531,7 +560,7 @@ function isNodeInput(element) {
|
|
|
531
560
|
return !!element.closest('[fNodeInput]');
|
|
532
561
|
}
|
|
533
562
|
|
|
534
|
-
let uniqueId$
|
|
563
|
+
let uniqueId$7 = 0;
|
|
535
564
|
class FNodeInputDirective extends FNodeInputBase {
|
|
536
565
|
get color() {
|
|
537
566
|
return this.fNodeInputColor || 'black';
|
|
@@ -552,7 +581,7 @@ class FNodeInputDirective extends FNodeInputBase {
|
|
|
552
581
|
constructor(elementReference) {
|
|
553
582
|
super();
|
|
554
583
|
this.elementReference = elementReference;
|
|
555
|
-
this.id = `f-node-input-${uniqueId$
|
|
584
|
+
this.id = `f-node-input-${uniqueId$7++}`;
|
|
556
585
|
this.multiple = true;
|
|
557
586
|
this.isDisabled = false;
|
|
558
587
|
}
|
|
@@ -611,7 +640,7 @@ function isNodeOutlet(element) {
|
|
|
611
640
|
return !!element.closest('[fNodeOutlet]');
|
|
612
641
|
}
|
|
613
642
|
|
|
614
|
-
let uniqueId$
|
|
643
|
+
let uniqueId$6 = 0;
|
|
615
644
|
class FNodeOutletDirective extends FNodeOutletBase {
|
|
616
645
|
get disabled() {
|
|
617
646
|
return this.isDisabled;
|
|
@@ -629,7 +658,7 @@ class FNodeOutletDirective extends FNodeOutletBase {
|
|
|
629
658
|
constructor(elementReference) {
|
|
630
659
|
super();
|
|
631
660
|
this.elementReference = elementReference;
|
|
632
|
-
this.id = `f-node-outlet-${uniqueId$
|
|
661
|
+
this.id = `f-node-outlet-${uniqueId$6++}`;
|
|
633
662
|
this.color = 'black';
|
|
634
663
|
this.name = '';
|
|
635
664
|
this.isDisabled = false;
|
|
@@ -683,7 +712,7 @@ function isNodeOutput(element) {
|
|
|
683
712
|
return !!element.closest('[fNodeOutput]');
|
|
684
713
|
}
|
|
685
714
|
|
|
686
|
-
let uniqueId$
|
|
715
|
+
let uniqueId$5 = 0;
|
|
687
716
|
class FNodeOutputDirective extends FNodeOutputBase {
|
|
688
717
|
get disabled() {
|
|
689
718
|
return this.isDisabled;
|
|
@@ -701,7 +730,7 @@ class FNodeOutputDirective extends FNodeOutputBase {
|
|
|
701
730
|
constructor(elementReference) {
|
|
702
731
|
super();
|
|
703
732
|
this.elementReference = elementReference;
|
|
704
|
-
this.id = `f-node-output-${uniqueId$
|
|
733
|
+
this.id = `f-node-output-${uniqueId$5++}`;
|
|
705
734
|
this.color = 'black';
|
|
706
735
|
this.name = '';
|
|
707
736
|
this.isDisabled = false;
|
|
@@ -911,7 +940,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
911
940
|
args: ['fDefaultHeight']
|
|
912
941
|
}] } });
|
|
913
942
|
|
|
914
|
-
let uniqueId$
|
|
943
|
+
let uniqueId$4 = 0;
|
|
915
944
|
class FNodeComponent extends FNodeBase {
|
|
916
945
|
set position(value) {
|
|
917
946
|
this._position = PointExtensions.castToPoint(value);
|
|
@@ -926,7 +955,7 @@ class FNodeComponent extends FNodeBase {
|
|
|
926
955
|
constructor(elementReference) {
|
|
927
956
|
super();
|
|
928
957
|
this.elementReference = elementReference;
|
|
929
|
-
this.id = `f-node-${uniqueId$
|
|
958
|
+
this.id = `f-node-${uniqueId$4++}`;
|
|
930
959
|
this.positionChange = new EventEmitter();
|
|
931
960
|
}
|
|
932
961
|
ngOnInit() {
|
|
@@ -971,43 +1000,6 @@ function isNode(element) {
|
|
|
971
1000
|
return !!element.closest('[fNode]');
|
|
972
1001
|
}
|
|
973
1002
|
|
|
974
|
-
const F_SELECTION = new InjectionToken('F_SELECTION');
|
|
975
|
-
class FSelectionDirective {
|
|
976
|
-
get hostElement() {
|
|
977
|
-
return this.elementReference.nativeElement;
|
|
978
|
-
}
|
|
979
|
-
constructor(elementReference) {
|
|
980
|
-
this.elementReference = elementReference;
|
|
981
|
-
this.fElement = new RectFElement();
|
|
982
|
-
this.hostElement.appendChild(this.fElement.hostElement);
|
|
983
|
-
}
|
|
984
|
-
hide() {
|
|
985
|
-
this.fElement.hide();
|
|
986
|
-
}
|
|
987
|
-
show() {
|
|
988
|
-
this.fElement.show();
|
|
989
|
-
}
|
|
990
|
-
draw(object) {
|
|
991
|
-
this.fElement.draw(object);
|
|
992
|
-
}
|
|
993
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FSelectionDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
994
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FSelectionDirective, selector: "g[fSelection]", host: { classAttribute: "f-selection f-component" }, providers: [
|
|
995
|
-
{ provide: F_SELECTION, useExisting: FSelectionDirective }
|
|
996
|
-
], ngImport: i0 }); }
|
|
997
|
-
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FSelectionDirective, decorators: [{
|
|
999
|
-
type: Directive,
|
|
1000
|
-
args: [{
|
|
1001
|
-
selector: "g[fSelection]",
|
|
1002
|
-
host: {
|
|
1003
|
-
'class': 'f-selection f-component'
|
|
1004
|
-
},
|
|
1005
|
-
providers: [
|
|
1006
|
-
{ provide: F_SELECTION, useExisting: FSelectionDirective }
|
|
1007
|
-
],
|
|
1008
|
-
}]
|
|
1009
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1010
|
-
|
|
1011
1003
|
const F_CONNECTIONS_CONTAINER = new InjectionToken('F_CONNECTIONS_CONTAINER');
|
|
1012
1004
|
class FConnectionsContainerBase {
|
|
1013
1005
|
findConnectionWithElement(element) {
|
|
@@ -1764,7 +1756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
1764
1756
|
type: Injectable
|
|
1765
1757
|
}] });
|
|
1766
1758
|
|
|
1767
|
-
let uniqueId$
|
|
1759
|
+
let uniqueId$3 = 0;
|
|
1768
1760
|
class FExternalItemDirective extends FExternalItemBase {
|
|
1769
1761
|
get hostElement() {
|
|
1770
1762
|
return this.elementReference.nativeElement;
|
|
@@ -1773,7 +1765,7 @@ class FExternalItemDirective extends FExternalItemBase {
|
|
|
1773
1765
|
super();
|
|
1774
1766
|
this.elementReference = elementReference;
|
|
1775
1767
|
this.fExternalItemService = fExternalItemService;
|
|
1776
|
-
this.id = `f-external-item-${uniqueId$
|
|
1768
|
+
this.id = `f-external-item-${uniqueId$3++}`;
|
|
1777
1769
|
}
|
|
1778
1770
|
ngOnInit() {
|
|
1779
1771
|
this.fExternalItemService.registerItem(this);
|
|
@@ -2110,6 +2102,7 @@ class SelectionOnPointerMove {
|
|
|
2110
2102
|
this.type = EDraggableType.SELECTION;
|
|
2111
2103
|
this.selectedItems = [];
|
|
2112
2104
|
this.items = [];
|
|
2105
|
+
this.canvasPosition = PointExtensions.initialize();
|
|
2113
2106
|
const nodeRects = fFlow.fNodesContainer.fNodes.map((x) => {
|
|
2114
2107
|
return {
|
|
2115
2108
|
element: x,
|
|
@@ -2125,6 +2118,7 @@ class SelectionOnPointerMove {
|
|
|
2125
2118
|
this.items = [...nodeRects, ...lineRects].filter((x) => {
|
|
2126
2119
|
return !selectedOnStart.includes(x.element);
|
|
2127
2120
|
});
|
|
2121
|
+
this.canvasPosition = Point.fromPoint(fFlow.transform.position).add(fFlow.transform.scaledPosition);
|
|
2128
2122
|
}
|
|
2129
2123
|
initialize() {
|
|
2130
2124
|
this.fSelection?.show();
|
|
@@ -2140,7 +2134,8 @@ class SelectionOnPointerMove {
|
|
|
2140
2134
|
this.selectedItems = [];
|
|
2141
2135
|
this.items.forEach((item) => {
|
|
2142
2136
|
item.element.deselect();
|
|
2143
|
-
|
|
2137
|
+
const itemRect = RectExtensions.addPoint(item.rect, this.canvasPosition);
|
|
2138
|
+
if (RectExtensions.intersectionWithRect(itemRect, RectExtensions.initialize(x, y, width, height))) {
|
|
2144
2139
|
item.element.select();
|
|
2145
2140
|
this.selectedItems.push(item.element);
|
|
2146
2141
|
}
|
|
@@ -2514,7 +2509,7 @@ class FLineAlignmentDirective {
|
|
|
2514
2509
|
this.fHorizontalLine.hide();
|
|
2515
2510
|
}
|
|
2516
2511
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FLineAlignmentDirective, deps: [{ token: F_FLOW_COMPONENT }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2517
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FLineAlignmentDirective, selector: "g[fLineAlignment]", host: { classAttribute: "f-line-alignment f-component" }, providers: [
|
|
2512
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FLineAlignmentDirective, isStandalone: true, selector: "g[fLineAlignment]", host: { classAttribute: "f-line-alignment f-component" }, providers: [
|
|
2518
2513
|
{ provide: F_LINE_ALIGNMENT, useExisting: FLineAlignmentDirective }
|
|
2519
2514
|
], ngImport: i0 }); }
|
|
2520
2515
|
}
|
|
@@ -2522,6 +2517,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2522
2517
|
type: Directive,
|
|
2523
2518
|
args: [{
|
|
2524
2519
|
selector: "g[fLineAlignment]",
|
|
2520
|
+
standalone: true,
|
|
2525
2521
|
host: {
|
|
2526
2522
|
'class': 'f-line-alignment f-component'
|
|
2527
2523
|
},
|
|
@@ -2534,6 +2530,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2534
2530
|
args: [F_FLOW_COMPONENT]
|
|
2535
2531
|
}] }, { type: i0.ElementRef }]; } });
|
|
2536
2532
|
|
|
2533
|
+
const F_SELECTION = new InjectionToken('F_SELECTION');
|
|
2534
|
+
class FSelectionDirective {
|
|
2535
|
+
get hostElement() {
|
|
2536
|
+
return this.elementReference.nativeElement;
|
|
2537
|
+
}
|
|
2538
|
+
constructor(elementReference) {
|
|
2539
|
+
this.elementReference = elementReference;
|
|
2540
|
+
this.fElement = new RectFElement();
|
|
2541
|
+
this.hostElement.appendChild(this.fElement.hostElement);
|
|
2542
|
+
}
|
|
2543
|
+
hide() {
|
|
2544
|
+
this.fElement.hide();
|
|
2545
|
+
}
|
|
2546
|
+
show() {
|
|
2547
|
+
this.fElement.show();
|
|
2548
|
+
}
|
|
2549
|
+
draw(object) {
|
|
2550
|
+
this.fElement.draw(object);
|
|
2551
|
+
}
|
|
2552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FSelectionDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2553
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FSelectionDirective, isStandalone: true, selector: "g[fSelection]", host: { classAttribute: "f-selection f-component" }, providers: [
|
|
2554
|
+
{ provide: F_SELECTION, useExisting: FSelectionDirective }
|
|
2555
|
+
], ngImport: i0 }); }
|
|
2556
|
+
}
|
|
2557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FSelectionDirective, decorators: [{
|
|
2558
|
+
type: Directive,
|
|
2559
|
+
args: [{
|
|
2560
|
+
selector: "g[fSelection]",
|
|
2561
|
+
standalone: true,
|
|
2562
|
+
host: {
|
|
2563
|
+
'class': 'f-selection f-component'
|
|
2564
|
+
},
|
|
2565
|
+
providers: [
|
|
2566
|
+
{ provide: F_SELECTION, useExisting: FSelectionDirective }
|
|
2567
|
+
],
|
|
2568
|
+
}]
|
|
2569
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
2570
|
+
|
|
2537
2571
|
class FDraggableDirective extends FDraggableBase {
|
|
2538
2572
|
constructor(fFlow, fDNDService, fExternalItemService, elementReference, ngZone) {
|
|
2539
2573
|
super(fFlow, fDNDService, fExternalItemService, elementReference, ngZone);
|
|
@@ -2545,7 +2579,7 @@ class FDraggableDirective extends FDraggableBase {
|
|
|
2545
2579
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDraggableDirective, deps: [{ token: F_FLOW_COMPONENT }, { token: FDraggableService }, { token: FExternalItemService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2546
2580
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FDraggableDirective, selector: "svg[fDraggable]", inputs: { disabled: "disabled" }, outputs: { onCreateConnection: "onCreateConnection", onReassignConnection: "onReassignConnection", onCreateNode: "onCreateNode" }, providers: [
|
|
2547
2581
|
{ provide: F_DND_DIRECTIVE, useExisting: FDraggableDirective }
|
|
2548
|
-
], queries: [{ propertyName: "fLineAlignment", first: true, predicate: F_LINE_ALIGNMENT, descendants: true, static: true }, { propertyName: "
|
|
2582
|
+
], queries: [{ propertyName: "fLineAlignment", first: true, predicate: F_LINE_ALIGNMENT, descendants: true, static: true }, { propertyName: "fSelection", first: true, predicate: F_SELECTION, descendants: true, static: true }, { propertyName: "fConnectIfIntersect", first: true, predicate: F_CONNECT_IF_INTERSECT, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2549
2583
|
}
|
|
2550
2584
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDraggableDirective, decorators: [{
|
|
2551
2585
|
type: Directive,
|
|
@@ -2563,12 +2597,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2563
2597
|
}], fLineAlignment: [{
|
|
2564
2598
|
type: ContentChild,
|
|
2565
2599
|
args: [F_LINE_ALIGNMENT, { static: true }]
|
|
2566
|
-
}], fConnectIfIntersect: [{
|
|
2567
|
-
type: ContentChild,
|
|
2568
|
-
args: [F_CONNECT_IF_INTERSECT, { static: true }]
|
|
2569
2600
|
}], fSelection: [{
|
|
2570
2601
|
type: ContentChild,
|
|
2571
2602
|
args: [F_SELECTION, { static: true }]
|
|
2603
|
+
}], fConnectIfIntersect: [{
|
|
2604
|
+
type: ContentChild,
|
|
2605
|
+
args: [F_CONNECT_IF_INTERSECT]
|
|
2572
2606
|
}], onCreateConnection: [{
|
|
2573
2607
|
type: Output
|
|
2574
2608
|
}], onReassignConnection: [{
|
|
@@ -2580,18 +2614,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2580
2614
|
class FDraggableModule {
|
|
2581
2615
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2582
2616
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FDraggableModule, declarations: [FDraggableDirective,
|
|
2583
|
-
FExternalItemDirective,
|
|
2584
|
-
|
|
2585
|
-
FSelectionDirective,
|
|
2586
|
-
FConnectIfIntersectDirective], exports: [FDraggableDirective,
|
|
2587
|
-
FExternalItemDirective,
|
|
2588
|
-
FLineAlignmentDirective,
|
|
2589
|
-
FSelectionDirective,
|
|
2590
|
-
FConnectIfIntersectDirective] }); }
|
|
2617
|
+
FExternalItemDirective], imports: [CommonModule], exports: [FDraggableDirective,
|
|
2618
|
+
FExternalItemDirective] }); }
|
|
2591
2619
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDraggableModule, providers: [
|
|
2592
2620
|
FExternalItemService,
|
|
2593
2621
|
FDraggableService
|
|
2594
|
-
] }); }
|
|
2622
|
+
], imports: [CommonModule] }); }
|
|
2595
2623
|
}
|
|
2596
2624
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDraggableModule, decorators: [{
|
|
2597
2625
|
type: NgModule,
|
|
@@ -2599,11 +2627,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2599
2627
|
declarations: [
|
|
2600
2628
|
FDraggableDirective,
|
|
2601
2629
|
FExternalItemDirective,
|
|
2602
|
-
FLineAlignmentDirective,
|
|
2603
|
-
FSelectionDirective,
|
|
2604
|
-
FConnectIfIntersectDirective
|
|
2605
2630
|
],
|
|
2606
|
-
imports: [
|
|
2631
|
+
imports: [
|
|
2632
|
+
CommonModule
|
|
2633
|
+
],
|
|
2607
2634
|
providers: [
|
|
2608
2635
|
FExternalItemService,
|
|
2609
2636
|
FDraggableService
|
|
@@ -2611,9 +2638,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2611
2638
|
exports: [
|
|
2612
2639
|
FDraggableDirective,
|
|
2613
2640
|
FExternalItemDirective,
|
|
2614
|
-
FLineAlignmentDirective,
|
|
2615
|
-
FSelectionDirective,
|
|
2616
|
-
FConnectIfIntersectDirective
|
|
2617
2641
|
]
|
|
2618
2642
|
}]
|
|
2619
2643
|
}] });
|
|
@@ -2678,24 +2702,39 @@ class ConnectIfIntersectRequest {
|
|
|
2678
2702
|
}
|
|
2679
2703
|
}
|
|
2680
2704
|
|
|
2681
|
-
|
|
2682
|
-
|
|
2705
|
+
class FConnectIfIntersectBase {
|
|
2706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2707
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectIfIntersectBase, ngImport: i0 }); }
|
|
2708
|
+
}
|
|
2709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectBase, decorators: [{
|
|
2710
|
+
type: Directive
|
|
2711
|
+
}] });
|
|
2712
|
+
|
|
2713
|
+
let uniqueId$2 = 0;
|
|
2714
|
+
class FConnectIfIntersectDirective extends FConnectIfIntersectBase {
|
|
2683
2715
|
constructor(fFlow, fItemsContainer) {
|
|
2716
|
+
super();
|
|
2684
2717
|
this.fFlow = fFlow;
|
|
2685
2718
|
this.fItemsContainer = fItemsContainer;
|
|
2719
|
+
this.id = `f-connect-if-intersect-${uniqueId$2++}`;
|
|
2686
2720
|
}
|
|
2687
2721
|
handle(draggableItems) {
|
|
2688
2722
|
new ConnectIfIntersectHandler(this.fConnections.toArray(), this.fFlow, this.fItemsContainer).handle(new ConnectIfIntersectRequest(draggableItems));
|
|
2689
2723
|
}
|
|
2690
2724
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectDirective, deps: [{ token: F_FLOW_COMPONENT }, { token: F_ITEMS_CONTAINER }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2691
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectIfIntersectDirective, selector: "g[fConnectIfIntersect]", providers: [
|
|
2725
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectIfIntersectDirective, isStandalone: true, selector: "g[fConnectIfIntersect]", inputs: { id: "id" }, host: { properties: { "attr.id": "id" }, classAttribute: "f-component f-connect-if-intersect" }, providers: [
|
|
2692
2726
|
{ provide: F_CONNECT_IF_INTERSECT, useExisting: FConnectIfIntersectDirective }
|
|
2693
|
-
], queries: [{ propertyName: "fConnections", predicate: F_CONNECTION_COMPONENT, descendants: true }], ngImport: i0 }); }
|
|
2727
|
+
], queries: [{ propertyName: "fConnections", predicate: F_CONNECTION_COMPONENT, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2694
2728
|
}
|
|
2695
2729
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectDirective, decorators: [{
|
|
2696
2730
|
type: Directive,
|
|
2697
2731
|
args: [{
|
|
2698
2732
|
selector: "g[fConnectIfIntersect]",
|
|
2733
|
+
standalone: true,
|
|
2734
|
+
host: {
|
|
2735
|
+
'[attr.id]': 'id',
|
|
2736
|
+
class: "f-component f-connect-if-intersect"
|
|
2737
|
+
},
|
|
2699
2738
|
providers: [
|
|
2700
2739
|
{ provide: F_CONNECT_IF_INTERSECT, useExisting: FConnectIfIntersectDirective }
|
|
2701
2740
|
]
|
|
@@ -2706,7 +2745,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
2706
2745
|
}] }, { type: FItemsContainerBase, decorators: [{
|
|
2707
2746
|
type: Inject,
|
|
2708
2747
|
args: [F_ITEMS_CONTAINER]
|
|
2709
|
-
}] }]; }, propDecorators: {
|
|
2748
|
+
}] }]; }, propDecorators: { id: [{
|
|
2749
|
+
type: Input
|
|
2750
|
+
}], fConnections: [{
|
|
2710
2751
|
type: ContentChildren,
|
|
2711
2752
|
args: [F_CONNECTION_COMPONENT, { descendants: true }]
|
|
2712
2753
|
}] } });
|
|
@@ -3020,6 +3061,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
3020
3061
|
args: [FConnectionTextComponent, { static: true }]
|
|
3021
3062
|
}] } });
|
|
3022
3063
|
|
|
3064
|
+
class FConnectionModule {
|
|
3065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3066
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, declarations: [FConnectionComponent], imports: [CommonModule,
|
|
3067
|
+
FConnectionCommonModule], exports: [FConnectionComponent] }); }
|
|
3068
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, imports: [CommonModule,
|
|
3069
|
+
FConnectionCommonModule] }); }
|
|
3070
|
+
}
|
|
3071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionModule, decorators: [{
|
|
3072
|
+
type: NgModule,
|
|
3073
|
+
args: [{
|
|
3074
|
+
declarations: [
|
|
3075
|
+
FConnectionComponent
|
|
3076
|
+
],
|
|
3077
|
+
imports: [
|
|
3078
|
+
CommonModule,
|
|
3079
|
+
FConnectionCommonModule
|
|
3080
|
+
],
|
|
3081
|
+
exports: [
|
|
3082
|
+
FConnectionComponent
|
|
3083
|
+
]
|
|
3084
|
+
}]
|
|
3085
|
+
}] });
|
|
3086
|
+
|
|
3023
3087
|
class FFlowModule {
|
|
3024
3088
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3025
3089
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, declarations: [FFlowComponent,
|
|
@@ -3033,7 +3097,7 @@ class FFlowModule {
|
|
|
3033
3097
|
FNodeInputDirective,
|
|
3034
3098
|
FNodeOutletDirective,
|
|
3035
3099
|
FNodeOutputDirective], imports: [CommonModule,
|
|
3036
|
-
|
|
3100
|
+
FTempConnectionModule,
|
|
3037
3101
|
FCanvasDirective,
|
|
3038
3102
|
FBackgroundDirective], exports: [FFlowComponent,
|
|
3039
3103
|
FNodeComponent,
|
|
@@ -3043,12 +3107,12 @@ class FFlowModule {
|
|
|
3043
3107
|
FItemsContainerDirective,
|
|
3044
3108
|
FNodesContainerComponent,
|
|
3045
3109
|
FConnectionsContainerComponent,
|
|
3046
|
-
|
|
3110
|
+
FConnectionCommonModule,
|
|
3047
3111
|
FNodeInputDirective,
|
|
3048
3112
|
FNodeOutletDirective,
|
|
3049
3113
|
FNodeOutputDirective] }); }
|
|
3050
3114
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, imports: [CommonModule,
|
|
3051
|
-
|
|
3115
|
+
FTempConnectionModule, FConnectionCommonModule] }); }
|
|
3052
3116
|
}
|
|
3053
3117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FFlowModule, decorators: [{
|
|
3054
3118
|
type: NgModule,
|
|
@@ -3068,7 +3132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
3068
3132
|
],
|
|
3069
3133
|
imports: [
|
|
3070
3134
|
CommonModule,
|
|
3071
|
-
|
|
3135
|
+
FTempConnectionModule,
|
|
3072
3136
|
FCanvasDirective,
|
|
3073
3137
|
FBackgroundDirective,
|
|
3074
3138
|
],
|
|
@@ -3082,7 +3146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
3082
3146
|
FItemsContainerDirective,
|
|
3083
3147
|
FNodesContainerComponent,
|
|
3084
3148
|
FConnectionsContainerComponent,
|
|
3085
|
-
|
|
3149
|
+
FConnectionCommonModule,
|
|
3086
3150
|
FNodeInputDirective,
|
|
3087
3151
|
FNodeOutletDirective,
|
|
3088
3152
|
FNodeOutputDirective,
|
|
@@ -3094,5 +3158,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImpor
|
|
|
3094
3158
|
* Generated bundle index. Do not edit.
|
|
3095
3159
|
*/
|
|
3096
3160
|
|
|
3097
|
-
export { CONNECTION_MARKER_END, CONNECTION_MARKER_END_SELECTED, CONNECTION_MARKER_START, CONNECTION_MARKER_START_SELECTED, CanvasChangeEvent, FCanvasDirective, FConnectIfIntersectDirective, FConnectionComponent, FConnectionModule, FConnectionsContainerComponent, FDragHandleDirective, FDraggableDirective, FExternalItemDirective, FFlowComponent, FFlowModule, FForeignObjectComponent, FItemsContainerDirective, FLineAlignmentDirective, FNodeComponent, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FNodesContainerComponent, FSelectionDirective, FTempConnectionComponent, FZoomDirective,
|
|
3161
|
+
export { CONNECTION_MARKER_END, CONNECTION_MARKER_END_SELECTED, CONNECTION_MARKER_START, CONNECTION_MARKER_START_SELECTED, CanvasChangeEvent, FCanvasDirective, FConnectIfIntersectBase, FConnectIfIntersectDirective, FConnectionCommonModule, FConnectionComponent, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionModule, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectionsContainerComponent, FDragHandleDirective, FDraggableDirective, FDraggableModule, FExternalItemDirective, FFlowComponent, FFlowModule, FForeignObjectComponent, FItemsContainerDirective, FLineAlignmentDirective, FNodeComponent, FNodeInputDirective, FNodeOutletDirective, FNodeOutputDirective, FNodesContainerComponent, FSelectionDirective, FTempConnectionComponent, FTempConnectionModule, FZoomDirective, F_CONNECTION_DRAG_HANDLE_CLASS, F_DRAG_HANDLE, F_LINE_ALIGNMENT, F_SELECTION, F_TEMP_CONNECTION_COMPONENT, TempConnectionInputOutputModel };
|
|
3098
3162
|
//# sourceMappingURL=foblex-flow.mjs.map
|