@foblex/flow 17.4.3 → 17.4.4

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 (36) hide show
  1. package/domain/f-draggable/providers.d.ts +1 -1
  2. package/domain/f-selection/providers.d.ts +1 -1
  3. package/domain/providers.d.ts +1 -1
  4. package/esm2022/f-draggable/f-drop-to-group/drop-to-group-preparation/f-node-drop-to-group-preparation.execution.mjs +2 -2
  5. package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +7 -4
  6. package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.mjs +10 -1
  7. package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +1 -1
  8. package/esm2022/f-minimap/f-minimap-flow.directive.mjs +1 -1
  9. package/esm2022/f-minimap/f-minimap-view.directive.mjs +1 -1
  10. package/esm2022/f-node/f-group.directive.mjs +7 -4
  11. package/esm2022/f-node/f-node-base.mjs +1 -1
  12. package/esm2022/f-node/f-node.directive.mjs +7 -4
  13. package/f-backgroud/providers.d.ts +1 -1
  14. package/f-connection/providers.d.ts +1 -1
  15. package/f-draggable/f-canvas/providers.d.ts +1 -1
  16. package/f-draggable/f-connection/providers.d.ts +1 -1
  17. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  18. package/f-draggable/f-node-move/providers.d.ts +1 -1
  19. package/f-draggable/f-node-resize/providers.d.ts +1 -1
  20. package/f-draggable/f-node-rotate/providers.d.ts +1 -1
  21. package/f-draggable/providers.d.ts +1 -1
  22. package/f-external-item/domain/f-external-item.drag-handler.d.ts +1 -0
  23. package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.d.ts +3 -2
  24. package/f-minimap/domain/providers.d.ts +1 -1
  25. package/f-minimap/f-minimap-canvas.directive.d.ts +2 -2
  26. package/f-minimap/f-minimap-view.directive.d.ts +2 -2
  27. package/f-minimap/providers.d.ts +1 -1
  28. package/f-node/f-group.directive.d.ts +4 -3
  29. package/f-node/f-node-base.d.ts +1 -0
  30. package/f-node/f-node.directive.d.ts +4 -3
  31. package/f-node/providers.d.ts +2 -2
  32. package/f-selection-area/domain/providers.d.ts +1 -1
  33. package/f-storage/providers.d.ts +1 -1
  34. package/fesm2022/foblex-flow.mjs +29 -11
  35. package/fesm2022/foblex-flow.mjs.map +1 -1
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./f-canvas").FCanvasMovePreparationExecution | typeof import("./f-canvas").FCanvasMoveFinalizeExecution | typeof import("./f-connection").FCreateConnectionDragHandlerPreparationExecution | typeof import("./f-connection").FCreateConnectionFinalizeExecution | typeof import("./f-connection").FReassignConnectionPreparationExecution | typeof import("./f-connection").FReassignConnectionFinalizeExecution | typeof import("../f-external-item").FExternalItemPreparationExecution | typeof import("../f-external-item").FExternalItemFinalizeExecution | typeof import("./f-drop-to-group").FNodeDropToGroupPreparationExecution | typeof import("./f-drop-to-group").FNodeDropToGroupFinalizeExecution | typeof import("./f-node-move").PutOutputConnectionHandlersToArrayExecution | typeof import("./f-node-move").PutInputConnectionHandlersToArrayExecution | typeof import("./f-node-move").FNodeMoveFinalizeExecution | typeof import("./f-node-move").FNodeMovePreparationExecution | typeof import("./f-node-move").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./f-node-move").CalculateCommonNodeMoveLimitsExecution | typeof import("./f-node-move").CalculateNodeMoveLimitsExecution | typeof import("./f-node-move").LineAlignmentPreparationExecution | typeof import("./f-node-resize").FNodeResizePreparationExecution | typeof import("./f-node-resize").FNodeResizeFinalizeExecution | typeof import("./f-node-rotate").FNodeRotatePreparationExecution | typeof import("./f-node-rotate").FNodeRotateFinalizeExecution | typeof import("./f-connection").FCreateConnectionFromOutletPreparationExecution | typeof import("./f-connection").GetFirstConnectableOutputExecution | typeof import("./f-connection").FCreateConnectionFromOutputPreparationExecution | typeof import("./f-connection").FCreateConnectionPreparationExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./f-single-select").FSingleSelectExecution | typeof import("../f-external-item").FExternalItemCreatePlaceholderExecution | typeof import("../f-external-item").FExternalItemCreatePreviewExecution | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./f-node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./f-node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./f-node-resize").CalculateChangedPositionExecution | typeof import("./f-node-resize").CalculateChangedSizeExecution | typeof import("./f-node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./f-node-resize").GetNodeResizeRestrictionsExecution | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
1
+ export declare const F_DRAGGABLE_PROVIDERS: (typeof import("../f-external-item").FExternalItemPreparationExecution | typeof import("../f-external-item").FExternalItemFinalizeExecution | typeof import("./f-drop-to-group").FNodeDropToGroupPreparationExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./f-canvas").FCanvasMoveFinalizeExecution | typeof import("./f-canvas").FCanvasMovePreparationExecution | typeof import("./f-connection").GetFirstConnectableOutputExecution | typeof import("./f-connection").FCreateConnectionFinalizeExecution | typeof import("./f-connection").FCreateConnectionDragHandlerPreparationExecution | typeof import("./f-connection").FCreateConnectionFromOutletPreparationExecution | typeof import("./f-connection").FCreateConnectionFromOutputPreparationExecution | typeof import("../f-external-item").FExternalItemCreatePlaceholderExecution | typeof import("../f-external-item").FExternalItemCreatePreviewExecution | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./f-node-move").CalculateCommonNodeMoveLimitsExecution | typeof import("./f-node-move").PutInputConnectionHandlersToArrayExecution | typeof import("./f-node-move").PutOutputConnectionHandlersToArrayExecution | typeof import("./f-node-move").CalculateNodeMoveLimitsExecution | typeof import("./f-node-move").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./f-node-move").LineAlignmentPreparationExecution | typeof import("./f-node-move").FNodeMovePreparationExecution | typeof import("./f-node-move").FNodeMoveFinalizeExecution | typeof import("./f-drop-to-group").FNodeDropToGroupFinalizeExecution | typeof import("./f-connection").FReassignConnectionFinalizeExecution | typeof import("./f-connection").FReassignConnectionPreparationExecution | typeof import("./f-connection").FCreateConnectionPreparationExecution | typeof import("./f-node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./f-node-resize").GetNodeResizeRestrictionsExecution | typeof import("./f-node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./f-node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./f-node-resize").CalculateChangedPositionExecution | typeof import("./f-node-resize").CalculateChangedSizeExecution | typeof import("./f-node-resize").FNodeResizeFinalizeExecution | typeof import("./f-node-resize").FNodeResizePreparationExecution | typeof import("./f-node-rotate").FNodeRotateFinalizeExecution | typeof import("./f-node-rotate").FNodeRotatePreparationExecution | typeof import("./f-single-select").FSingleSelectExecution | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaPreparationExecution)[];
@@ -13,6 +13,7 @@ export declare class FExternalItemDragHandler implements IFDragHandler {
13
13
  private _placeholder;
14
14
  private _onPointerDownRect;
15
15
  private get _fItemHost();
16
+ private get _body();
16
17
  constructor(_injector: Injector, _fExternalItem: FExternalItemBase);
17
18
  prepareDragSequence(): void;
18
19
  private _createAndAppendPreview;
@@ -2,8 +2,8 @@ import { MinimapDrawNodesRequest } from './minimap-draw-nodes.request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MinimapDrawNodesExecution implements IExecution<MinimapDrawNodesRequest, SVGRectElement[]> {
5
- private _fBrowser;
6
- private _fComponentStore;
5
+ private readonly _fBrowser;
6
+ private readonly _fComponentStore;
7
7
  private get _fFlow();
8
8
  private get _fNodes();
9
9
  private get _fCanvas();
@@ -13,6 +13,7 @@ export declare class MinimapDrawNodesExecution implements IExecution<MinimapDraw
13
13
  private _getNodeRect;
14
14
  private _getNodeRectInFlow;
15
15
  private _applyClassList;
16
+ private _getClassList;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MinimapDrawNodesExecution, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<MinimapDrawNodesExecution>;
18
19
  }
@@ -2,4 +2,4 @@ import { CalculateFlowPointFromMinimapPointExecution } from './calculate-flow-po
2
2
  import { MinimapDrawNodesExecution } from './minimap-draw-nodes';
3
3
  import { MinimapCalculateViewBoxExecution } from './minimap-calculate-view-box';
4
4
  import { MinimapCalculateSvgScaleAndViewBoxExecution } from './minimap-calculate-svg-scale-and-view-box';
5
- export declare const F_MINIMAP_DRAG_AND_DROP_PROVIDERS: (typeof CalculateFlowPointFromMinimapPointExecution | typeof import("./minimap-drag-finalize").MinimapDragFinalizeExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationExecution | typeof MinimapDrawNodesExecution | typeof MinimapCalculateSvgScaleAndViewBoxExecution | typeof MinimapCalculateViewBoxExecution)[];
5
+ export declare const F_MINIMAP_DRAG_AND_DROP_PROVIDERS: (typeof CalculateFlowPointFromMinimapPointExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationExecution | typeof import("./minimap-drag-finalize").MinimapDragFinalizeExecution | typeof MinimapDrawNodesExecution | typeof MinimapCalculateViewBoxExecution | typeof MinimapCalculateSvgScaleAndViewBoxExecution)[];
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class FMinimapCanvasDirective {
3
- private _fMediator;
4
- private _elementReference;
3
+ private readonly _fMediator;
4
+ private readonly _elementReference;
5
5
  get hostElement(): SVGGElement;
6
6
  redraw(): void;
7
7
  private _clearCanvas;
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class FMinimapViewDirective {
3
- private _fMediator;
4
- private _elementReference;
3
+ private readonly _fMediator;
4
+ private readonly _elementReference;
5
5
  get hostElement(): SVGGElement;
6
6
  redraw(): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapViewDirective, never>;
@@ -2,4 +2,4 @@ import { FMinimapComponent } from './f-minimap.component';
2
2
  import { FMinimapViewDirective } from './f-minimap-view.directive';
3
3
  import { FMinimapFlowDirective } from './f-minimap-flow.directive';
4
4
  import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
5
- export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapComponent | typeof FMinimapCanvasDirective | typeof FMinimapViewDirective | typeof FMinimapFlowDirective)[];
5
+ export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapFlowDirective | typeof FMinimapCanvasDirective | typeof FMinimapViewDirective | typeof FMinimapComponent)[];
@@ -7,6 +7,8 @@ import * as i0 from "@angular/core";
7
7
  export declare class FGroupDirective extends FNodeBase implements OnInit, AfterViewInit, IHasHostElement, OnDestroy {
8
8
  private renderer;
9
9
  private fBrowser;
10
+ private readonly _destroyRef;
11
+ private readonly _fMediator;
10
12
  fId: string;
11
13
  fParentId: string | null | undefined;
12
14
  set position(value: IPoint);
@@ -22,8 +24,7 @@ export declare class FGroupDirective extends FNodeBase implements OnInit, AfterV
22
24
  fSelectionDisabled: boolean;
23
25
  fIncludePadding: boolean;
24
26
  fConnectOnNode: boolean;
25
- private readonly _destroyRef;
26
- private readonly _fMediator;
27
+ fMinimapClass: string[] | string;
27
28
  constructor(elementReference: ElementRef<HTMLElement>, renderer: Renderer2, fBrowser: BrowserService);
28
29
  ngOnInit(): void;
29
30
  protected setStyle(styleName: string, value: string): void;
@@ -33,7 +34,7 @@ export declare class FGroupDirective extends FNodeBase implements OnInit, AfterV
33
34
  refresh(): void;
34
35
  ngOnDestroy(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FGroupDirective, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; }; "fParentId": { "alias": "fGroupParentId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "rotate": { "alias": "fGroupRotate"; "required": false; }; "size": { "alias": "fGroupSize"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; "rotateChange": "fGroupRotateChange"; "sizeChange": "fGroupSizeChange"; }, never, never, false, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; }; "fParentId": { "alias": "fGroupParentId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "rotate": { "alias": "fGroupRotate"; "required": false; }; "size": { "alias": "fGroupSize"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; "fMinimapClass": { "alias": "fMinimapClass"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; "rotateChange": "fGroupRotateChange"; "sizeChange": "fGroupSizeChange"; }, never, never, false, never>;
37
38
  static ngAcceptInputType_fDraggingDisabled: unknown;
38
39
  static ngAcceptInputType_fSelectionDisabled: unknown;
39
40
  static ngAcceptInputType_fIncludePadding: unknown;
@@ -23,6 +23,7 @@ export declare abstract class FNodeBase extends MIXIN_BASE implements ISelectabl
23
23
  abstract sizeChange: EventEmitter<IRect>;
24
24
  abstract size: ISize;
25
25
  protected _size: ISize | undefined;
26
+ abstract fMinimapClass: string[] | string;
26
27
  abstract fDraggingDisabled: boolean;
27
28
  abstract fSelectionDisabled: boolean;
28
29
  abstract fConnectOnNode: boolean;
@@ -7,6 +7,8 @@ import * as i0 from "@angular/core";
7
7
  export declare class FNodeDirective extends FNodeBase implements OnInit, AfterViewInit, IHasHostElement, OnDestroy {
8
8
  private renderer;
9
9
  private fBrowser;
10
+ private readonly _destroyRef;
11
+ private readonly _fMediator;
10
12
  fId: string;
11
13
  fParentId: string | null | undefined;
12
14
  set position(value: IPoint);
@@ -22,8 +24,7 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
22
24
  fSelectionDisabled: boolean;
23
25
  fIncludePadding: boolean;
24
26
  fConnectOnNode: boolean;
25
- private readonly _destroyRef;
26
- private readonly _fMediator;
27
+ fMinimapClass: string[] | string;
27
28
  constructor(elementReference: ElementRef<HTMLElement>, renderer: Renderer2, fBrowser: BrowserService);
28
29
  ngOnInit(): void;
29
30
  protected setStyle(styleName: string, value: string): void;
@@ -33,7 +34,7 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
33
34
  refresh(): void;
34
35
  ngOnDestroy(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeDirective, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeDirective, "[fNode]", ["fComponent"], { "fId": { "alias": "fNodeId"; "required": false; }; "fParentId": { "alias": "fNodeParentId"; "required": false; }; "position": { "alias": "fNodePosition"; "required": false; }; "size": { "alias": "fNodeSize"; "required": false; }; "rotate": { "alias": "fNodeRotate"; "required": false; }; "fDraggingDisabled": { "alias": "fNodeDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fNodeSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; }, { "positionChange": "fNodePositionChange"; "rotateChange": "fNodeRotateChange"; "sizeChange": "fNodeSizeChange"; }, never, never, false, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeDirective, "[fNode]", ["fComponent"], { "fId": { "alias": "fNodeId"; "required": false; }; "fParentId": { "alias": "fNodeParentId"; "required": false; }; "position": { "alias": "fNodePosition"; "required": false; }; "size": { "alias": "fNodeSize"; "required": false; }; "rotate": { "alias": "fNodeRotate"; "required": false; }; "fDraggingDisabled": { "alias": "fNodeDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fNodeSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; "fMinimapClass": { "alias": "fMinimapClass"; "required": false; }; }, { "positionChange": "fNodePositionChange"; "rotateChange": "fNodeRotateChange"; "sizeChange": "fNodeSizeChange"; }, never, never, false, never>;
37
38
  static ngAcceptInputType_fDraggingDisabled: unknown;
38
39
  static ngAcceptInputType_fSelectionDisabled: unknown;
39
40
  static ngAcceptInputType_fIncludePadding: unknown;
@@ -1,4 +1,4 @@
1
1
  import { FNodeDirective } from './f-node.directive';
2
2
  import { FGroupDirective } from './f-group.directive';
3
- import { FDragHandleDirective } from './f-drag-handle.directive';
4
- export declare const F_NODE_PROVIDERS: (typeof FGroupDirective | typeof FNodeDirective | typeof FDragHandleDirective)[];
3
+ import { FRotateHandleDirective } from './f-rotate-handle';
4
+ export declare const F_NODE_PROVIDERS: (typeof FRotateHandleDirective | typeof FGroupDirective | typeof FNodeDirective)[];
@@ -1,3 +1,3 @@
1
1
  import { SelectionAreaPreparationExecution } from './selection-area-preparation';
2
2
  import { SelectionAreaFinalizeExecution } from './selection-area-finalize';
3
- export declare const F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS: (typeof SelectionAreaPreparationExecution | typeof SelectionAreaFinalizeExecution)[];
3
+ export declare const F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS: (typeof SelectionAreaFinalizeExecution | typeof SelectionAreaPreparationExecution)[];
@@ -4,4 +4,4 @@ import { FComponentsStore } from './f-components-store';
4
4
  import { ListenCountChangesExecution } from './features/listen-count-changes';
5
5
  import { ListenTransformChangesExecution } from './features/listen-transform-changes';
6
6
  import { NotifyTransformChangedExecution } from './features/notify-transform-changed';
7
- export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenCountChangesExecution | typeof ListenDataChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];
7
+ export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenDataChangesExecution | typeof ListenCountChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, Injectable, effect, Directive, input, computed, EventEmitter, DestroyRef, booleanAttribute, Input, Output, ElementRef, Inject, Component, ChangeDetectionStrategy, ViewChild, Optional, numberAttribute, ContentChildren, Injector, ViewContainerRef, TemplateRef, NgZone, contentChild, output, viewChild, Renderer2, NgModule } from '@angular/core';
2
+ import { InjectionToken, inject, Injectable, effect, Directive, input, computed, DestroyRef, EventEmitter, booleanAttribute, Input, Output, ElementRef, Inject, Component, ChangeDetectionStrategy, ViewChild, Optional, numberAttribute, ContentChildren, Injector, ViewContainerRef, TemplateRef, NgZone, contentChild, output, viewChild, Renderer2, NgModule } from '@angular/core';
3
3
  import { RectExtensions, RoundedRect, TransformModelExtensions, PointExtensions, SizeExtensions, Point, LineExtensions, GetIntersections, findClosestAlignment, setRectToElement, adjustRectToMinSize, setRectToViewBox } from '@foblex/2d';
4
4
  import { __decorate } from 'tslib';
5
5
  import * as i2$1 from '@foblex/mediator';
@@ -1214,6 +1214,8 @@ let uniqueId$b = 0;
1214
1214
  class FGroupDirective extends FNodeBase {
1215
1215
  renderer;
1216
1216
  fBrowser;
1217
+ _destroyRef = inject(DestroyRef);
1218
+ _fMediator = inject(FMediator);
1217
1219
  fId = `f-group-${uniqueId$b++}`;
1218
1220
  fParentId = null;
1219
1221
  set position(value) {
@@ -1253,8 +1255,7 @@ class FGroupDirective extends FNodeBase {
1253
1255
  fSelectionDisabled = false;
1254
1256
  fIncludePadding = true;
1255
1257
  fConnectOnNode = true;
1256
- _destroyRef = inject(DestroyRef);
1257
- _fMediator = inject(FMediator);
1258
+ fMinimapClass = [];
1258
1259
  constructor(elementReference, renderer, fBrowser) {
1259
1260
  super(elementReference.nativeElement);
1260
1261
  this.renderer = renderer;
@@ -1293,7 +1294,7 @@ class FGroupDirective extends FNodeBase {
1293
1294
  this._fMediator.execute(new RemoveNodeFromStoreRequest(this));
1294
1295
  }
1295
1296
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FGroupDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Directive });
1296
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.4", type: FGroupDirective, selector: "[fGroup]", inputs: { fId: ["fGroupId", "fId"], fParentId: ["fGroupParentId", "fParentId"], position: ["fGroupPosition", "position"], rotate: ["fGroupRotate", "rotate"], size: ["fGroupSize", "size"], fDraggingDisabled: ["fGroupDraggingDisabled", "fDraggingDisabled", booleanAttribute], fSelectionDisabled: ["fGroupSelectionDisabled", "fSelectionDisabled", booleanAttribute], fIncludePadding: ["fIncludePadding", "fIncludePadding", booleanAttribute], fConnectOnNode: ["fConnectOnNode", "fConnectOnNode", booleanAttribute] }, outputs: { positionChange: "fGroupPositionChange", rotateChange: "fGroupRotateChange", sizeChange: "fGroupSizeChange" }, host: { properties: { "attr.data-f-group-id": "fId", "class.f-group-dragging-disabled": "fDraggingDisabled", "class.f-group-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-group f-component" }, providers: [
1297
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.4", type: FGroupDirective, selector: "[fGroup]", inputs: { fId: ["fGroupId", "fId"], fParentId: ["fGroupParentId", "fParentId"], position: ["fGroupPosition", "position"], rotate: ["fGroupRotate", "rotate"], size: ["fGroupSize", "size"], fDraggingDisabled: ["fGroupDraggingDisabled", "fDraggingDisabled", booleanAttribute], fSelectionDisabled: ["fGroupSelectionDisabled", "fSelectionDisabled", booleanAttribute], fIncludePadding: ["fIncludePadding", "fIncludePadding", booleanAttribute], fConnectOnNode: ["fConnectOnNode", "fConnectOnNode", booleanAttribute], fMinimapClass: "fMinimapClass" }, outputs: { positionChange: "fGroupPositionChange", rotateChange: "fGroupRotateChange", sizeChange: "fGroupSizeChange" }, host: { properties: { "attr.data-f-group-id": "fId", "class.f-group-dragging-disabled": "fDraggingDisabled", "class.f-group-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-group f-component" }, providers: [
1297
1298
  { provide: F_NODE, useExisting: FGroupDirective }
1298
1299
  ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 });
1299
1300
  }
@@ -1348,12 +1349,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
1348
1349
  }], fConnectOnNode: [{
1349
1350
  type: Input,
1350
1351
  args: [{ transform: booleanAttribute }]
1352
+ }], fMinimapClass: [{
1353
+ type: Input
1351
1354
  }] } });
1352
1355
 
1353
1356
  let uniqueId$a = 0;
1354
1357
  class FNodeDirective extends FNodeBase {
1355
1358
  renderer;
1356
1359
  fBrowser;
1360
+ _destroyRef = inject(DestroyRef);
1361
+ _fMediator = inject(FMediator);
1357
1362
  fId = `f-node-${uniqueId$a++}`;
1358
1363
  fParentId = null;
1359
1364
  set position(value) {
@@ -1394,8 +1399,7 @@ class FNodeDirective extends FNodeBase {
1394
1399
  fIncludePadding = true;
1395
1400
  //Add ability to connect to first connectable input if node is at pointer position
1396
1401
  fConnectOnNode = true;
1397
- _destroyRef = inject(DestroyRef);
1398
- _fMediator = inject(FMediator);
1402
+ fMinimapClass = [];
1399
1403
  constructor(elementReference, renderer, fBrowser) {
1400
1404
  super(elementReference.nativeElement);
1401
1405
  this.renderer = renderer;
@@ -1434,7 +1438,7 @@ class FNodeDirective extends FNodeBase {
1434
1438
  this._fMediator.execute(new RemoveNodeFromStoreRequest(this));
1435
1439
  }
1436
1440
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FNodeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Directive });
1437
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.4", type: FNodeDirective, selector: "[fNode]", inputs: { fId: ["fNodeId", "fId"], fParentId: ["fNodeParentId", "fParentId"], position: ["fNodePosition", "position"], size: ["fNodeSize", "size"], rotate: ["fNodeRotate", "rotate"], fDraggingDisabled: ["fNodeDraggingDisabled", "fDraggingDisabled", booleanAttribute], fSelectionDisabled: ["fNodeSelectionDisabled", "fSelectionDisabled", booleanAttribute], fIncludePadding: ["fIncludePadding", "fIncludePadding", booleanAttribute], fConnectOnNode: ["fConnectOnNode", "fConnectOnNode", booleanAttribute] }, outputs: { positionChange: "fNodePositionChange", rotateChange: "fNodeRotateChange", sizeChange: "fNodeSizeChange" }, host: { properties: { "attr.data-f-node-id": "fId", "class.f-node-dragging-disabled": "fDraggingDisabled", "class.f-node-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-node f-component" }, providers: [
1441
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.4", type: FNodeDirective, selector: "[fNode]", inputs: { fId: ["fNodeId", "fId"], fParentId: ["fNodeParentId", "fParentId"], position: ["fNodePosition", "position"], size: ["fNodeSize", "size"], rotate: ["fNodeRotate", "rotate"], fDraggingDisabled: ["fNodeDraggingDisabled", "fDraggingDisabled", booleanAttribute], fSelectionDisabled: ["fNodeSelectionDisabled", "fSelectionDisabled", booleanAttribute], fIncludePadding: ["fIncludePadding", "fIncludePadding", booleanAttribute], fConnectOnNode: ["fConnectOnNode", "fConnectOnNode", booleanAttribute], fMinimapClass: "fMinimapClass" }, outputs: { positionChange: "fNodePositionChange", rotateChange: "fNodeRotateChange", sizeChange: "fNodeSizeChange" }, host: { properties: { "attr.data-f-node-id": "fId", "class.f-node-dragging-disabled": "fDraggingDisabled", "class.f-node-selection-disabled": "fSelectionDisabled" }, classAttribute: "f-node f-component" }, providers: [
1438
1442
  { provide: F_NODE, useExisting: FNodeDirective }
1439
1443
  ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 });
1440
1444
  }
@@ -1489,6 +1493,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
1489
1493
  }], fConnectOnNode: [{
1490
1494
  type: Input,
1491
1495
  args: [{ transform: booleanAttribute }]
1496
+ }], fMinimapClass: [{
1497
+ type: Input
1492
1498
  }] } });
1493
1499
 
1494
1500
  function isNode(element) {
@@ -5599,7 +5605,7 @@ let FNodeDropToGroupPreparationExecution = class FNodeDropToGroupPreparationExec
5599
5605
  const rect = this._fMediator.execute(new GetNormalizedElementRectRequest(x.hostElement, false));
5600
5606
  return {
5601
5607
  node: x,
5602
- rect: RectExtensions.initialize(rect.x + this._fCanvasPosition.x, rect.y + this._fCanvasPosition.y, rect.width * this._transform.scale, rect.height * this._transform.scale)
5608
+ rect: RectExtensions.initialize(rect.x * this._transform.scale + this._fCanvasPosition.x, rect.y * this._transform.scale + this._fCanvasPosition.y, rect.width * this._transform.scale, rect.height * this._transform.scale)
5603
5609
  };
5604
5610
  });
5605
5611
  }
@@ -6534,6 +6540,9 @@ class FExternalItemDragHandler {
6534
6540
  get _fItemHost() {
6535
6541
  return this._fExternalItem.hostElement;
6536
6542
  }
6543
+ get _body() {
6544
+ return this._fBrowser.document.fullscreenElement ?? this._fBrowser.document.body;
6545
+ }
6537
6546
  constructor(_injector, _fExternalItem) {
6538
6547
  this._fExternalItem = _fExternalItem;
6539
6548
  this.fData = { fData: _fExternalItem.fData };
@@ -6553,11 +6562,11 @@ class FExternalItemDragHandler {
6553
6562
  this._matchElementSize(this._preview, this._onPointerDownRect);
6554
6563
  }
6555
6564
  this._preview.style.transform = setTransform(this._onPointerDownRect);
6556
- this._fBrowser.document.body.appendChild(this._preview);
6565
+ this._body.appendChild(this._preview);
6557
6566
  }
6558
6567
  _createAndAppendPlaceholder() {
6559
6568
  this._placeholder = this._fMediator.execute(new FExternalItemCreatePlaceholderRequest(this._fExternalItem));
6560
- this._fBrowser.document.body.appendChild(this._fItemHost.parentElement.replaceChild(this._placeholder, this._fItemHost));
6569
+ this._body.appendChild(this._fItemHost.parentElement.replaceChild(this._placeholder, this._fItemHost));
6561
6570
  }
6562
6571
  _matchElementSize(target, sourceRect) {
6563
6572
  target.style.width = `${sourceRect.width}px`;
@@ -6582,7 +6591,7 @@ class FExternalItemDragHandler {
6582
6591
  this._preview.style.transform = setTransform(position);
6583
6592
  }
6584
6593
  onPointerUp() {
6585
- this._fBrowser.document.body.removeChild(this._preview);
6594
+ this._body.removeChild(this._preview);
6586
6595
  this._placeholder.parentElement.replaceChild(this._fItemHost, this._placeholder);
6587
6596
  }
6588
6597
  }
@@ -7298,10 +7307,19 @@ let MinimapDrawNodesExecution = class MinimapDrawNodesExecution {
7298
7307
  }
7299
7308
  _applyClassList(element, node, isNode) {
7300
7309
  element.classList.add('f-component', isNode ? 'f-minimap-node' : 'f-minimap-group');
7310
+ element.classList.add(...this._getClassList(node));
7301
7311
  if (node.isSelected()) {
7302
7312
  element.classList.add('f-selected');
7303
7313
  }
7304
7314
  }
7315
+ _getClassList(node) {
7316
+ if (Array.isArray(node.fMinimapClass)) {
7317
+ return node.fMinimapClass;
7318
+ }
7319
+ else {
7320
+ return [node.fMinimapClass];
7321
+ }
7322
+ }
7305
7323
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: MinimapDrawNodesExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7306
7324
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: MinimapDrawNodesExecution });
7307
7325
  };