@angflow/angular 0.0.13 → 0.0.15
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/README.md +14 -4
- package/dist/base.css +416 -411
- package/dist/esm/lib/agent/agent-bridge.service.d.ts +70 -0
- package/dist/esm/lib/agent/agent-bridge.service.d.ts.map +1 -0
- package/dist/esm/lib/agent/agent-bridge.service.js +331 -0
- package/dist/esm/lib/agent/agent-bridge.service.js.map +1 -0
- package/dist/esm/lib/agent/index.d.ts +7 -0
- package/dist/esm/lib/agent/index.d.ts.map +1 -0
- package/dist/esm/lib/agent/index.js +6 -0
- package/dist/esm/lib/agent/index.js.map +1 -0
- package/dist/esm/lib/agent/provide-agent-bridge.d.ts +27 -0
- package/dist/esm/lib/agent/provide-agent-bridge.d.ts.map +1 -0
- package/dist/esm/lib/agent/provide-agent-bridge.js +27 -0
- package/dist/esm/lib/agent/provide-agent-bridge.js.map +1 -0
- package/dist/esm/lib/agent/tool-schemas.d.ts +10 -0
- package/dist/esm/lib/agent/tool-schemas.d.ts.map +1 -0
- package/dist/esm/lib/agent/tool-schemas.js +234 -0
- package/dist/esm/lib/agent/tool-schemas.js.map +1 -0
- package/dist/esm/lib/agent/transports/websocket.d.ts +39 -0
- package/dist/esm/lib/agent/transports/websocket.d.ts.map +1 -0
- package/dist/esm/lib/agent/transports/websocket.js +95 -0
- package/dist/esm/lib/agent/transports/websocket.js.map +1 -0
- package/dist/esm/lib/agent/transports/window.d.ts +29 -0
- package/dist/esm/lib/agent/transports/window.d.ts.map +1 -0
- package/dist/esm/lib/agent/transports/window.js +65 -0
- package/dist/esm/lib/agent/transports/window.js.map +1 -0
- package/dist/esm/lib/agent/types.d.ts +66 -0
- package/dist/esm/lib/agent/types.d.ts.map +1 -0
- package/dist/esm/lib/agent/types.js +9 -0
- package/dist/esm/lib/agent/types.js.map +1 -0
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts +4 -0
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts.map +1 -1
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +24 -20
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -1
- package/dist/esm/lib/components/attribution/attribution.component.d.ts +4 -0
- package/dist/esm/lib/components/attribution/attribution.component.d.ts.map +1 -1
- package/dist/esm/lib/components/attribution/attribution.component.js +22 -18
- package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -1
- package/dist/esm/lib/components/background/background.component.d.ts +20 -0
- package/dist/esm/lib/components/background/background.component.d.ts.map +1 -1
- package/dist/esm/lib/components/background/background.component.js +159 -140
- package/dist/esm/lib/components/background/background.component.js.map +1 -1
- package/dist/esm/lib/components/connection-line/connection-line.component.d.ts +7 -0
- package/dist/esm/lib/components/connection-line/connection-line.component.d.ts.map +1 -1
- package/dist/esm/lib/components/connection-line/connection-line.component.js +7 -0
- package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -1
- package/dist/esm/lib/components/controls/controls.component.d.ts +21 -0
- package/dist/esm/lib/components/controls/controls.component.d.ts.map +1 -1
- package/dist/esm/lib/components/controls/controls.component.js +21 -1
- package/dist/esm/lib/components/controls/controls.component.js.map +1 -1
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts +4 -0
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +4 -0
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -1
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts +14 -2
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +12 -0
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/edges/base-edge.component.d.ts +23 -0
- package/dist/esm/lib/components/edges/base-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/base-edge.component.js +63 -40
- package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/bezier-edge.component.d.ts +4 -0
- package/dist/esm/lib/components/edges/bezier-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/bezier-edge.component.js +4 -0
- package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/edge-text.component.d.ts +4 -0
- package/dist/esm/lib/components/edges/edge-text.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/edge-text.component.js +30 -26
- package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -1
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts +4 -0
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +4 -0
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts +1 -0
- package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js +1 -0
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/step-edge.component.d.ts +1 -0
- package/dist/esm/lib/components/edges/step-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/step-edge.component.js +1 -0
- package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/straight-edge.component.d.ts +1 -0
- package/dist/esm/lib/components/edges/straight-edge.component.d.ts.map +1 -1
- package/dist/esm/lib/components/edges/straight-edge.component.js +1 -0
- package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -1
- package/dist/esm/lib/components/handle/handle.component.d.ts +20 -1
- package/dist/esm/lib/components/handle/handle.component.d.ts.map +1 -1
- package/dist/esm/lib/components/handle/handle.component.js +25 -2
- package/dist/esm/lib/components/handle/handle.component.js.map +1 -1
- package/dist/esm/lib/components/minimap/minimap.component.d.ts +34 -0
- package/dist/esm/lib/components/minimap/minimap.component.d.ts.map +1 -1
- package/dist/esm/lib/components/minimap/minimap.component.js +30 -4
- package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -1
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts +14 -0
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts.map +1 -1
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +14 -0
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -1
- package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts +29 -0
- package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts.map +1 -1
- package/dist/esm/lib/components/node-resizer/node-resizer.component.js +153 -124
- package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts +21 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts.map +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +21 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/default-node.component.d.ts +4 -0
- package/dist/esm/lib/components/nodes/default-node.component.d.ts.map +1 -1
- package/dist/esm/lib/components/nodes/default-node.component.js +13 -9
- package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/group-node.component.d.ts +5 -0
- package/dist/esm/lib/components/nodes/group-node.component.d.ts.map +1 -1
- package/dist/esm/lib/components/nodes/group-node.component.js +5 -0
- package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/input-node.component.d.ts +4 -0
- package/dist/esm/lib/components/nodes/input-node.component.d.ts.map +1 -1
- package/dist/esm/lib/components/nodes/input-node.component.js +11 -7
- package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/output-node.component.d.ts +4 -0
- package/dist/esm/lib/components/nodes/output-node.component.d.ts.map +1 -1
- package/dist/esm/lib/components/nodes/output-node.component.js +11 -7
- package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -1
- package/dist/esm/lib/components/panel/panel.component.d.ts +12 -0
- package/dist/esm/lib/components/panel/panel.component.d.ts.map +1 -1
- package/dist/esm/lib/components/panel/panel.component.js +12 -0
- package/dist/esm/lib/components/panel/panel.component.js.map +1 -1
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts +5 -0
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts.map +1 -1
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +5 -0
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -1
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts.map +1 -1
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +35 -3
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -1
- package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts +158 -5
- package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts.map +1 -1
- package/dist/esm/lib/container/ng-flow/ng-flow.component.js +167 -28
- package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -1
- package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts +2 -0
- package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts.map +1 -1
- package/dist/esm/lib/container/node-renderer/node-renderer.component.js +40 -2
- package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -1
- package/dist/esm/lib/container/pane/pane.component.d.ts +0 -1
- package/dist/esm/lib/container/pane/pane.component.d.ts.map +1 -1
- package/dist/esm/lib/container/pane/pane.component.js +18 -25
- package/dist/esm/lib/container/pane/pane.component.js.map +1 -1
- package/dist/esm/lib/container/viewport/viewport.component.d.ts +4 -0
- package/dist/esm/lib/container/viewport/viewport.component.d.ts.map +1 -1
- package/dist/esm/lib/container/viewport/viewport.component.js +4 -0
- package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -1
- package/dist/esm/lib/directives/drag.directive.d.ts +17 -0
- package/dist/esm/lib/directives/drag.directive.d.ts.map +1 -1
- package/dist/esm/lib/directives/drag.directive.js +17 -0
- package/dist/esm/lib/directives/drag.directive.js.map +1 -1
- package/dist/esm/lib/directives/key-handler.directive.d.ts +13 -0
- package/dist/esm/lib/directives/key-handler.directive.d.ts.map +1 -1
- package/dist/esm/lib/directives/key-handler.directive.js +13 -0
- package/dist/esm/lib/directives/key-handler.directive.js.map +1 -1
- package/dist/esm/lib/public-api.d.ts +2 -0
- package/dist/esm/lib/public-api.d.ts.map +1 -1
- package/dist/esm/lib/public-api.js +4 -0
- package/dist/esm/lib/public-api.js.map +1 -1
- package/dist/esm/lib/services/flow-store.service.d.ts +3 -0
- package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -1
- package/dist/esm/lib/services/flow-store.service.js +3 -0
- package/dist/esm/lib/services/flow-store.service.js.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.d.ts +82 -0
- package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.js +114 -30
- package/dist/esm/lib/services/ng-flow.service.js.map +1 -1
- package/dist/esm/lib/services/tokens.d.ts +23 -0
- package/dist/esm/lib/services/tokens.d.ts.map +1 -1
- package/dist/esm/lib/services/tokens.js +22 -0
- package/dist/esm/lib/services/tokens.js.map +1 -1
- package/dist/esm/lib/types/edges.d.ts +6 -5
- package/dist/esm/lib/types/edges.d.ts.map +1 -1
- package/dist/esm/lib/types/nodes.d.ts +46 -3
- package/dist/esm/lib/types/nodes.d.ts.map +1 -1
- package/dist/esm/lib/utils/changes.d.ts +20 -0
- package/dist/esm/lib/utils/changes.d.ts.map +1 -1
- package/dist/esm/lib/utils/changes.js +20 -0
- package/dist/esm/lib/utils/changes.js.map +1 -1
- package/dist/esm/lib/utils/index.d.ts +1 -0
- package/dist/esm/lib/utils/index.d.ts.map +1 -1
- package/dist/esm/lib/utils/index.js +1 -0
- package/dist/esm/lib/utils/index.js.map +1 -1
- package/dist/esm/lib/utils/inject-ng-flow-node.d.ts +20 -0
- package/dist/esm/lib/utils/inject-ng-flow-node.d.ts.map +1 -0
- package/dist/esm/lib/utils/inject-ng-flow-node.js +28 -0
- package/dist/esm/lib/utils/inject-ng-flow-node.js.map +1 -0
- package/dist/style.css +416 -411
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-resizer.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/node-resizer/node-resizer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,aAAa,EACb,SAAS,EAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EAKlB,MAAM,iBAAiB,CAAC;;AAIzB,qBAyEa,oBAAqB,YAAW,aAAa,EAAE,SAAS;IACnE,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,EAAE,CAAmC;IAE7C,QAAQ,CAAC,WAAW,0DAA6D;IACjF,QAAQ,CAAC,QAAQ,8CAAa;IAC9B,QAAQ,CAAC,SAAS,8CAAa;IAC/B,QAAQ,CAAC,QAAQ,8CAAmB;IACpC,QAAQ,CAAC,SAAS,8CAAmB;IACrC,QAAQ,CAAC,eAAe,+CAAgB;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,2DAAyC;IAC3D,QAAQ,CAAC,KAAK,0DAAmB;IACjC,QAAQ,CAAC,eAAe,8CAAqB;IAC7C,QAAQ,CAAC,WAAW,gFAAyC;IAC7D,QAAQ,CAAC,aAAa,8CAAqB;IAC3C,QAAQ,CAAC,SAAS,gFAAyC;IAC3D,QAAQ,CAAC,SAAS,+CAAe;IACjC,QAAQ,CAAC,YAAY,gEAAyB;IAC9C,QAAQ,CAAC,eAAe,iEAA2E;IACnG,QAAQ,CAAC,UAAU,4DAAiE;IACpF,QAAQ,CAAC,aAAa,+DAAuE;IAE7F,QAAQ,CAAC,WAAW;eAAmB,eAAe;sBAAqB;IAC3E,QAAQ,CAAC,MAAM;gBAAoB,eAAe;kBAAY,eAAe;uBAAiB,oBAAoB,EAAE;+BAA8B;IAClJ,QAAQ,CAAC,SAAS;gBAAoB,eAAe;kBAAY,QAAQ,CAAC,eAAe,CAAC;+BAA8B;IAExH,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,gBAAgB,CAAsC;IAE9D;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,0CASxB;gBAEsC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI9D,eAAe,IAAI,IAAI;IAiGvB,WAAW,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"node-resizer.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/node-resizer/node-resizer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,aAAa,EACb,SAAS,EAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EAKlB,MAAM,iBAAiB,CAAC;;AAIzB;;;;;;;;;GASG;AACH,qBAyEa,oBAAqB,YAAW,aAAa,EAAE,SAAS;IACnE,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,EAAE,CAAmC;IAE7C,yGAAyG;IACzG,QAAQ,CAAC,WAAW,0DAA6D;IACjF,uCAAuC;IACvC,QAAQ,CAAC,QAAQ,8CAAa;IAC9B,wCAAwC;IACxC,QAA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 +3,31 @@ import { XYResizer, } from '@angflow/system';
|
|
|
3
3
|
import { FlowStore } from '../../services/flow-store.service';
|
|
4
4
|
import { NODE_ID } from '../../services/tokens';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Adds draggable resize handles and edges to a node. Place inside a node
|
|
8
|
+
* template — the resizer auto-discovers the host node id — or pass `[nodeId]`
|
|
9
|
+
* explicitly to target a different node.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <ng-flow-node-resizer [minWidth]="80" [minHeight]="40" [keepAspectRatio]="true" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
6
16
|
export class NodeResizerComponent {
|
|
7
17
|
constructor(nodeId) {
|
|
8
18
|
this.store = inject(FlowStore);
|
|
9
19
|
this.el = inject((ElementRef));
|
|
20
|
+
/** Node to resize. Defaults to the host node when placed inside a node template. Aliased as `nodeId`. */
|
|
10
21
|
this.nodeIdInput = input(undefined, { ...(ngDevMode ? { debugName: "nodeIdInput" } : /* istanbul ignore next */ {}), alias: 'nodeId' });
|
|
22
|
+
/** Minimum allowed width in pixels. */
|
|
11
23
|
this.minWidth = input(10, ...(ngDevMode ? [{ debugName: "minWidth" }] : /* istanbul ignore next */ []));
|
|
24
|
+
/** Minimum allowed height in pixels. */
|
|
12
25
|
this.minHeight = input(10, ...(ngDevMode ? [{ debugName: "minHeight" }] : /* istanbul ignore next */ []));
|
|
26
|
+
/** Maximum allowed width in pixels. */
|
|
13
27
|
this.maxWidth = input(Infinity, ...(ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []));
|
|
28
|
+
/** Maximum allowed height in pixels. */
|
|
14
29
|
this.maxHeight = input(Infinity, ...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
|
|
30
|
+
/** Constrain resize so width/height stay proportional. */
|
|
15
31
|
this.keepAspectRatio = input(false, ...(ngDevMode ? [{ debugName: "keepAspectRatio" }] : /* istanbul ignore next */ []));
|
|
16
32
|
/**
|
|
17
33
|
* Controls handle visibility.
|
|
@@ -20,18 +36,31 @@ export class NodeResizerComponent {
|
|
|
20
36
|
* - `false`: always hidden.
|
|
21
37
|
*/
|
|
22
38
|
this.isVisible = input(undefined, ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
|
|
39
|
+
/** Fill color for corner handles and edge border color for lines. */
|
|
23
40
|
this.color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
|
|
41
|
+
/** Extra CSS class applied to each corner handle. */
|
|
24
42
|
this.handleClassName = input('', ...(ngDevMode ? [{ debugName: "handleClassName" }] : /* istanbul ignore next */ []));
|
|
43
|
+
/** Inline styles applied to each corner handle. */
|
|
25
44
|
this.handleStyle = input(...(ngDevMode ? [undefined, { debugName: "handleStyle" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** Extra CSS class applied to each edge line. */
|
|
26
46
|
this.lineClassName = input('', ...(ngDevMode ? [{ debugName: "lineClassName" }] : /* istanbul ignore next */ []));
|
|
47
|
+
/** Inline styles applied to each edge line. */
|
|
27
48
|
this.lineStyle = input(...(ngDevMode ? [undefined, { debugName: "lineStyle" }] : /* istanbul ignore next */ []));
|
|
49
|
+
/** Scale handle size inversely with zoom so they stay visually constant. */
|
|
28
50
|
this.autoScale = input(true, ...(ngDevMode ? [{ debugName: "autoScale" }] : /* istanbul ignore next */ []));
|
|
51
|
+
/** Callback that returns `false` to veto a proposed resize step. */
|
|
29
52
|
this.shouldResize = input(...(ngDevMode ? [undefined, { debugName: "shouldResize" }] : /* istanbul ignore next */ []));
|
|
53
|
+
/** Alternative to `(resizeStart)` — function form. Aliased as `onResizeStart`. */
|
|
30
54
|
this.onResizeStartCb = input(undefined, { ...(ngDevMode ? { debugName: "onResizeStartCb" } : /* istanbul ignore next */ {}), alias: 'onResizeStart' });
|
|
55
|
+
/** Alternative to `(resize)` — function form. Aliased as `onResize`. */
|
|
31
56
|
this.onResizeCb = input(undefined, { ...(ngDevMode ? { debugName: "onResizeCb" } : /* istanbul ignore next */ {}), alias: 'onResize' });
|
|
57
|
+
/** Alternative to `(resizeEnd)` — function form. Aliased as `onResizeEnd`. */
|
|
32
58
|
this.onResizeEndCb = input(undefined, { ...(ngDevMode ? { debugName: "onResizeEndCb" } : /* istanbul ignore next */ {}), alias: 'onResizeEnd' });
|
|
59
|
+
/** Fires when a resize gesture starts. */
|
|
33
60
|
this.resizeStart = output();
|
|
61
|
+
/** Fires per frame while resizing, with the current dimension/position change. */
|
|
34
62
|
this.resize = output();
|
|
63
|
+
/** Fires when the resize gesture ends, with the final dimensions. */
|
|
35
64
|
this.resizeEnd = output();
|
|
36
65
|
this.nodeId = '';
|
|
37
66
|
this.resizerInstances = [];
|
|
@@ -143,68 +172,68 @@ export class NodeResizerComponent {
|
|
|
143
172
|
this.resizerInstances.forEach((r) => r.destroy());
|
|
144
173
|
}
|
|
145
174
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NodeResizerComponent, deps: [{ token: NODE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
146
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: NodeResizerComponent, isStandalone: true, selector: "ng-flow-node-resizer", inputs: { nodeIdInput: { classPropertyName: "nodeIdInput", publicName: "nodeId", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, keepAspectRatio: { classPropertyName: "keepAspectRatio", publicName: "keepAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, handleClassName: { classPropertyName: "handleClassName", publicName: "handleClassName", isSignal: true, isRequired: false, transformFunction: null }, handleStyle: { classPropertyName: "handleStyle", publicName: "handleStyle", isSignal: true, isRequired: false, transformFunction: null }, lineClassName: { classPropertyName: "lineClassName", publicName: "lineClassName", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, autoScale: { classPropertyName: "autoScale", publicName: "autoScale", isSignal: true, isRequired: false, transformFunction: null }, shouldResize: { classPropertyName: "shouldResize", publicName: "shouldResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeStartCb: { classPropertyName: "onResizeStartCb", publicName: "onResizeStart", isSignal: true, isRequired: false, transformFunction: null }, onResizeCb: { classPropertyName: "onResizeCb", publicName: "onResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeEndCb: { classPropertyName: "onResizeEndCb", publicName: "onResizeEnd", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resize: "resize", resizeEnd: "resizeEnd" }, host: { properties: { "style.display": "effectivelyVisible() ? null : \"none\"" }, styleAttribute: "position: absolute; inset: 0; pointer-events: none;", classAttribute: "ng-flow__node-resizer xy-flow__resize-control" }, ngImport: i0, template: `
|
|
147
|
-
<div
|
|
148
|
-
class="xy-flow__resize-control nodrag handle handle-top-left top left"
|
|
149
|
-
[class]="handleClassName()"
|
|
150
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'"
|
|
151
|
-
[style.cursor]="'nw-resize'" [style.pointer-events]="'all'"
|
|
152
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
153
|
-
[style.background-color]="color() ?? null"
|
|
154
|
-
></div>
|
|
155
|
-
<div
|
|
156
|
-
class="xy-flow__resize-control nodrag handle handle-top-right top right"
|
|
157
|
-
[class]="handleClassName()"
|
|
158
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'"
|
|
159
|
-
[style.cursor]="'ne-resize'" [style.pointer-events]="'all'"
|
|
160
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
161
|
-
[style.background-color]="color() ?? null"
|
|
162
|
-
></div>
|
|
163
|
-
<div
|
|
164
|
-
class="xy-flow__resize-control nodrag handle handle-bottom-left bottom left"
|
|
165
|
-
[class]="handleClassName()"
|
|
166
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'"
|
|
167
|
-
[style.cursor]="'sw-resize'" [style.pointer-events]="'all'"
|
|
168
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
169
|
-
[style.background-color]="color() ?? null"
|
|
170
|
-
></div>
|
|
171
|
-
<div
|
|
172
|
-
class="xy-flow__resize-control nodrag handle handle-bottom-right bottom right"
|
|
173
|
-
[class]="handleClassName()"
|
|
174
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.right]="'0'"
|
|
175
|
-
[style.cursor]="'se-resize'" [style.pointer-events]="'all'"
|
|
176
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
177
|
-
[style.background-color]="color() ?? null"
|
|
178
|
-
></div>
|
|
179
|
-
<!-- Resize lines -->
|
|
180
|
-
<div
|
|
181
|
-
class="xy-flow__resize-control nodrag line line-top top"
|
|
182
|
-
[class]="lineClassName()"
|
|
183
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
184
|
-
[style.height.px]="2" [style.cursor]="'n-resize'" [style.pointer-events]="'all'"
|
|
185
|
-
[style.border-color]="color() ?? null"
|
|
186
|
-
></div>
|
|
187
|
-
<div
|
|
188
|
-
class="xy-flow__resize-control nodrag line line-right right"
|
|
189
|
-
[class]="lineClassName()"
|
|
190
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'" [style.bottom]="'0'"
|
|
191
|
-
[style.width.px]="2" [style.cursor]="'e-resize'" [style.pointer-events]="'all'"
|
|
192
|
-
[style.border-color]="color() ?? null"
|
|
193
|
-
></div>
|
|
194
|
-
<div
|
|
195
|
-
class="xy-flow__resize-control nodrag line line-bottom bottom"
|
|
196
|
-
[class]="lineClassName()"
|
|
197
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
198
|
-
[style.height.px]="2" [style.cursor]="'s-resize'" [style.pointer-events]="'all'"
|
|
199
|
-
[style.border-color]="color() ?? null"
|
|
200
|
-
></div>
|
|
201
|
-
<div
|
|
202
|
-
class="xy-flow__resize-control nodrag line line-left left"
|
|
203
|
-
[class]="lineClassName()"
|
|
204
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.bottom]="'0'"
|
|
205
|
-
[style.width.px]="2" [style.cursor]="'w-resize'" [style.pointer-events]="'all'"
|
|
206
|
-
[style.border-color]="color() ?? null"
|
|
207
|
-
></div>
|
|
175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: NodeResizerComponent, isStandalone: true, selector: "ng-flow-node-resizer", inputs: { nodeIdInput: { classPropertyName: "nodeIdInput", publicName: "nodeId", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, keepAspectRatio: { classPropertyName: "keepAspectRatio", publicName: "keepAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, handleClassName: { classPropertyName: "handleClassName", publicName: "handleClassName", isSignal: true, isRequired: false, transformFunction: null }, handleStyle: { classPropertyName: "handleStyle", publicName: "handleStyle", isSignal: true, isRequired: false, transformFunction: null }, lineClassName: { classPropertyName: "lineClassName", publicName: "lineClassName", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, autoScale: { classPropertyName: "autoScale", publicName: "autoScale", isSignal: true, isRequired: false, transformFunction: null }, shouldResize: { classPropertyName: "shouldResize", publicName: "shouldResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeStartCb: { classPropertyName: "onResizeStartCb", publicName: "onResizeStart", isSignal: true, isRequired: false, transformFunction: null }, onResizeCb: { classPropertyName: "onResizeCb", publicName: "onResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeEndCb: { classPropertyName: "onResizeEndCb", publicName: "onResizeEnd", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resize: "resize", resizeEnd: "resizeEnd" }, host: { properties: { "style.display": "effectivelyVisible() ? null : \"none\"" }, styleAttribute: "position: absolute; inset: 0; pointer-events: none;", classAttribute: "ng-flow__node-resizer xy-flow__resize-control" }, ngImport: i0, template: `
|
|
176
|
+
<div
|
|
177
|
+
class="xy-flow__resize-control nodrag handle handle-top-left top left"
|
|
178
|
+
[class]="handleClassName()"
|
|
179
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'"
|
|
180
|
+
[style.cursor]="'nw-resize'" [style.pointer-events]="'all'"
|
|
181
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
182
|
+
[style.background-color]="color() ?? null"
|
|
183
|
+
></div>
|
|
184
|
+
<div
|
|
185
|
+
class="xy-flow__resize-control nodrag handle handle-top-right top right"
|
|
186
|
+
[class]="handleClassName()"
|
|
187
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'"
|
|
188
|
+
[style.cursor]="'ne-resize'" [style.pointer-events]="'all'"
|
|
189
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
190
|
+
[style.background-color]="color() ?? null"
|
|
191
|
+
></div>
|
|
192
|
+
<div
|
|
193
|
+
class="xy-flow__resize-control nodrag handle handle-bottom-left bottom left"
|
|
194
|
+
[class]="handleClassName()"
|
|
195
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'"
|
|
196
|
+
[style.cursor]="'sw-resize'" [style.pointer-events]="'all'"
|
|
197
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
198
|
+
[style.background-color]="color() ?? null"
|
|
199
|
+
></div>
|
|
200
|
+
<div
|
|
201
|
+
class="xy-flow__resize-control nodrag handle handle-bottom-right bottom right"
|
|
202
|
+
[class]="handleClassName()"
|
|
203
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.right]="'0'"
|
|
204
|
+
[style.cursor]="'se-resize'" [style.pointer-events]="'all'"
|
|
205
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
206
|
+
[style.background-color]="color() ?? null"
|
|
207
|
+
></div>
|
|
208
|
+
<!-- Resize lines -->
|
|
209
|
+
<div
|
|
210
|
+
class="xy-flow__resize-control nodrag line line-top top"
|
|
211
|
+
[class]="lineClassName()"
|
|
212
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
213
|
+
[style.height.px]="2" [style.cursor]="'n-resize'" [style.pointer-events]="'all'"
|
|
214
|
+
[style.border-color]="color() ?? null"
|
|
215
|
+
></div>
|
|
216
|
+
<div
|
|
217
|
+
class="xy-flow__resize-control nodrag line line-right right"
|
|
218
|
+
[class]="lineClassName()"
|
|
219
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'" [style.bottom]="'0'"
|
|
220
|
+
[style.width.px]="2" [style.cursor]="'e-resize'" [style.pointer-events]="'all'"
|
|
221
|
+
[style.border-color]="color() ?? null"
|
|
222
|
+
></div>
|
|
223
|
+
<div
|
|
224
|
+
class="xy-flow__resize-control nodrag line line-bottom bottom"
|
|
225
|
+
[class]="lineClassName()"
|
|
226
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
227
|
+
[style.height.px]="2" [style.cursor]="'s-resize'" [style.pointer-events]="'all'"
|
|
228
|
+
[style.border-color]="color() ?? null"
|
|
229
|
+
></div>
|
|
230
|
+
<div
|
|
231
|
+
class="xy-flow__resize-control nodrag line line-left left"
|
|
232
|
+
[class]="lineClassName()"
|
|
233
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.bottom]="'0'"
|
|
234
|
+
[style.width.px]="2" [style.cursor]="'w-resize'" [style.pointer-events]="'all'"
|
|
235
|
+
[style.border-color]="color() ?? null"
|
|
236
|
+
></div>
|
|
208
237
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
209
238
|
}
|
|
210
239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NodeResizerComponent, decorators: [{
|
|
@@ -218,68 +247,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
|
|
|
218
247
|
'style': 'position: absolute; inset: 0; pointer-events: none;',
|
|
219
248
|
'[style.display]': 'effectivelyVisible() ? null : "none"',
|
|
220
249
|
},
|
|
221
|
-
template: `
|
|
222
|
-
<div
|
|
223
|
-
class="xy-flow__resize-control nodrag handle handle-top-left top left"
|
|
224
|
-
[class]="handleClassName()"
|
|
225
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'"
|
|
226
|
-
[style.cursor]="'nw-resize'" [style.pointer-events]="'all'"
|
|
227
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
228
|
-
[style.background-color]="color() ?? null"
|
|
229
|
-
></div>
|
|
230
|
-
<div
|
|
231
|
-
class="xy-flow__resize-control nodrag handle handle-top-right top right"
|
|
232
|
-
[class]="handleClassName()"
|
|
233
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'"
|
|
234
|
-
[style.cursor]="'ne-resize'" [style.pointer-events]="'all'"
|
|
235
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
236
|
-
[style.background-color]="color() ?? null"
|
|
237
|
-
></div>
|
|
238
|
-
<div
|
|
239
|
-
class="xy-flow__resize-control nodrag handle handle-bottom-left bottom left"
|
|
240
|
-
[class]="handleClassName()"
|
|
241
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'"
|
|
242
|
-
[style.cursor]="'sw-resize'" [style.pointer-events]="'all'"
|
|
243
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
244
|
-
[style.background-color]="color() ?? null"
|
|
245
|
-
></div>
|
|
246
|
-
<div
|
|
247
|
-
class="xy-flow__resize-control nodrag handle handle-bottom-right bottom right"
|
|
248
|
-
[class]="handleClassName()"
|
|
249
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.right]="'0'"
|
|
250
|
-
[style.cursor]="'se-resize'" [style.pointer-events]="'all'"
|
|
251
|
-
[style.width.px]="10" [style.height.px]="10"
|
|
252
|
-
[style.background-color]="color() ?? null"
|
|
253
|
-
></div>
|
|
254
|
-
<!-- Resize lines -->
|
|
255
|
-
<div
|
|
256
|
-
class="xy-flow__resize-control nodrag line line-top top"
|
|
257
|
-
[class]="lineClassName()"
|
|
258
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
259
|
-
[style.height.px]="2" [style.cursor]="'n-resize'" [style.pointer-events]="'all'"
|
|
260
|
-
[style.border-color]="color() ?? null"
|
|
261
|
-
></div>
|
|
262
|
-
<div
|
|
263
|
-
class="xy-flow__resize-control nodrag line line-right right"
|
|
264
|
-
[class]="lineClassName()"
|
|
265
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'" [style.bottom]="'0'"
|
|
266
|
-
[style.width.px]="2" [style.cursor]="'e-resize'" [style.pointer-events]="'all'"
|
|
267
|
-
[style.border-color]="color() ?? null"
|
|
268
|
-
></div>
|
|
269
|
-
<div
|
|
270
|
-
class="xy-flow__resize-control nodrag line line-bottom bottom"
|
|
271
|
-
[class]="lineClassName()"
|
|
272
|
-
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
273
|
-
[style.height.px]="2" [style.cursor]="'s-resize'" [style.pointer-events]="'all'"
|
|
274
|
-
[style.border-color]="color() ?? null"
|
|
275
|
-
></div>
|
|
276
|
-
<div
|
|
277
|
-
class="xy-flow__resize-control nodrag line line-left left"
|
|
278
|
-
[class]="lineClassName()"
|
|
279
|
-
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.bottom]="'0'"
|
|
280
|
-
[style.width.px]="2" [style.cursor]="'w-resize'" [style.pointer-events]="'all'"
|
|
281
|
-
[style.border-color]="color() ?? null"
|
|
282
|
-
></div>
|
|
250
|
+
template: `
|
|
251
|
+
<div
|
|
252
|
+
class="xy-flow__resize-control nodrag handle handle-top-left top left"
|
|
253
|
+
[class]="handleClassName()"
|
|
254
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'"
|
|
255
|
+
[style.cursor]="'nw-resize'" [style.pointer-events]="'all'"
|
|
256
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
257
|
+
[style.background-color]="color() ?? null"
|
|
258
|
+
></div>
|
|
259
|
+
<div
|
|
260
|
+
class="xy-flow__resize-control nodrag handle handle-top-right top right"
|
|
261
|
+
[class]="handleClassName()"
|
|
262
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'"
|
|
263
|
+
[style.cursor]="'ne-resize'" [style.pointer-events]="'all'"
|
|
264
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
265
|
+
[style.background-color]="color() ?? null"
|
|
266
|
+
></div>
|
|
267
|
+
<div
|
|
268
|
+
class="xy-flow__resize-control nodrag handle handle-bottom-left bottom left"
|
|
269
|
+
[class]="handleClassName()"
|
|
270
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'"
|
|
271
|
+
[style.cursor]="'sw-resize'" [style.pointer-events]="'all'"
|
|
272
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
273
|
+
[style.background-color]="color() ?? null"
|
|
274
|
+
></div>
|
|
275
|
+
<div
|
|
276
|
+
class="xy-flow__resize-control nodrag handle handle-bottom-right bottom right"
|
|
277
|
+
[class]="handleClassName()"
|
|
278
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.right]="'0'"
|
|
279
|
+
[style.cursor]="'se-resize'" [style.pointer-events]="'all'"
|
|
280
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
281
|
+
[style.background-color]="color() ?? null"
|
|
282
|
+
></div>
|
|
283
|
+
<!-- Resize lines -->
|
|
284
|
+
<div
|
|
285
|
+
class="xy-flow__resize-control nodrag line line-top top"
|
|
286
|
+
[class]="lineClassName()"
|
|
287
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
288
|
+
[style.height.px]="2" [style.cursor]="'n-resize'" [style.pointer-events]="'all'"
|
|
289
|
+
[style.border-color]="color() ?? null"
|
|
290
|
+
></div>
|
|
291
|
+
<div
|
|
292
|
+
class="xy-flow__resize-control nodrag line line-right right"
|
|
293
|
+
[class]="lineClassName()"
|
|
294
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'" [style.bottom]="'0'"
|
|
295
|
+
[style.width.px]="2" [style.cursor]="'e-resize'" [style.pointer-events]="'all'"
|
|
296
|
+
[style.border-color]="color() ?? null"
|
|
297
|
+
></div>
|
|
298
|
+
<div
|
|
299
|
+
class="xy-flow__resize-control nodrag line line-bottom bottom"
|
|
300
|
+
[class]="lineClassName()"
|
|
301
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
302
|
+
[style.height.px]="2" [style.cursor]="'s-resize'" [style.pointer-events]="'all'"
|
|
303
|
+
[style.border-color]="color() ?? null"
|
|
304
|
+
></div>
|
|
305
|
+
<div
|
|
306
|
+
class="xy-flow__resize-control nodrag line line-left left"
|
|
307
|
+
[class]="lineClassName()"
|
|
308
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.bottom]="'0'"
|
|
309
|
+
[style.width.px]="2" [style.cursor]="'w-resize'" [style.pointer-events]="'all'"
|
|
310
|
+
[style.border-color]="color() ?? null"
|
|
311
|
+
></div>
|
|
283
312
|
`,
|
|
284
313
|
}]
|
|
285
314
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-resizer.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/node-resizer/node-resizer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EAGV,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,GAcV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;;
|
|
1
|
+
{"version":3,"file":"node-resizer.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/node-resizer/node-resizer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EAGV,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,GAcV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;;AAEhD;;;;;;;;;GASG;AA0E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GA5KU,oBAAoB,kBAqEC,OAAO;kGArE5B,oBAAoB,ypFAhErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DT;;2FAEU,oBAAoB;kBAzEhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,+CAA+C;wBACxD,OAAO,EAAE,qDAAqD;wBAC9D,iBAAiB,EAAE,sCAAsC;qBAC1D;oBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DT;iBACF;;0BAsEc,QAAQ;;0BAAI,MAAM;2BAAC,OAAO"}
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
import { Position } from '@angflow/system';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Floating toolbar anchored to a node. By default it appears only while the
|
|
5
|
+
* owning node is selected. Use inside a node template, or pass `[nodeId]` to
|
|
6
|
+
* render it anywhere in the flow.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <ng-flow-node-toolbar [position]="Position.Top">
|
|
11
|
+
* <button (click)="delete()">Delete</button>
|
|
12
|
+
* </ng-flow-node-toolbar>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
3
15
|
export declare class NodeToolbarComponent {
|
|
4
16
|
private store;
|
|
5
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Node id(s) this toolbar is anchored to. If omitted and the toolbar is
|
|
19
|
+
* rendered inside a node template, the host node is used automatically.
|
|
20
|
+
* Aliased as `nodeId`.
|
|
21
|
+
*/
|
|
6
22
|
readonly nodeIdInput: import("@angular/core").InputSignal<string | string[] | undefined>;
|
|
23
|
+
/** Which side of the node the toolbar appears on. */
|
|
7
24
|
readonly position: import("@angular/core").InputSignal<Position>;
|
|
25
|
+
/** Override visibility. When unset, the toolbar shows only while the node is selected. */
|
|
8
26
|
readonly isVisible: import("@angular/core").InputSignal<boolean | undefined>;
|
|
27
|
+
/** Gap in pixels between the toolbar and the node edge. */
|
|
9
28
|
readonly offset: import("@angular/core").InputSignal<number>;
|
|
29
|
+
/** Alignment of the toolbar along the node edge. */
|
|
10
30
|
readonly align: import("@angular/core").InputSignal<"center" | "start" | "end">;
|
|
11
31
|
private contextNodeId;
|
|
12
32
|
constructor(nodeId: string | null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-toolbar.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/node-toolbar/node-toolbar.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAI3C,qBAiBa,oBAAoB;IAC/B,OAAO,CAAC,KAAK,CAAqB;IAElC
|
|
1
|
+
{"version":3,"file":"node-toolbar.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/node-toolbar/node-toolbar.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAI3C;;;;;;;;;;;GAWG;AACH,qBAiBa,oBAAoB;IAC/B,OAAO,CAAC,KAAK,CAAqB;IAElC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,qEAAwE;IAC5F,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,gDAAiC;IAClD,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,2DAAoB;IACtC,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,8CAAa;IAC5B,oDAAoD;IACpD,QAAQ,CAAC,KAAK,kEAA+C;IAE7D,OAAO,CAAC,aAAa,CAAc;gBAEM,MAAM,EAAE,MAAM,GAAG,IAAI;IAI9D,QAAQ,CAAC,eAAe,2CAMrB;IAEH,QAAQ,CAAC,UAAU,0CAQhB;IAEH,QAAQ,CAAC,gBAAgB,yCAqCtB;yCA/EQ,oBAAoB;2CAApB,oBAAoB;CAgFhC"}
|
|
@@ -3,14 +3,34 @@ import { Position } from '@angflow/system';
|
|
|
3
3
|
import { FlowStore } from '../../services/flow-store.service';
|
|
4
4
|
import { NODE_ID } from '../../services/tokens';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Floating toolbar anchored to a node. By default it appears only while the
|
|
8
|
+
* owning node is selected. Use inside a node template, or pass `[nodeId]` to
|
|
9
|
+
* render it anywhere in the flow.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <ng-flow-node-toolbar [position]="Position.Top">
|
|
14
|
+
* <button (click)="delete()">Delete</button>
|
|
15
|
+
* </ng-flow-node-toolbar>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
6
18
|
export class NodeToolbarComponent {
|
|
7
19
|
constructor(nodeId) {
|
|
8
20
|
this.store = inject(FlowStore);
|
|
9
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Node id(s) this toolbar is anchored to. If omitted and the toolbar is
|
|
23
|
+
* rendered inside a node template, the host node is used automatically.
|
|
24
|
+
* Aliased as `nodeId`.
|
|
25
|
+
*/
|
|
10
26
|
this.nodeIdInput = input(undefined, { ...(ngDevMode ? { debugName: "nodeIdInput" } : /* istanbul ignore next */ {}), alias: 'nodeId' });
|
|
27
|
+
/** Which side of the node the toolbar appears on. */
|
|
11
28
|
this.position = input(Position.Top, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
29
|
+
/** Override visibility. When unset, the toolbar shows only while the node is selected. */
|
|
12
30
|
this.isVisible = input(...(ngDevMode ? [undefined, { debugName: "isVisible" }] : /* istanbul ignore next */ []));
|
|
31
|
+
/** Gap in pixels between the toolbar and the node edge. */
|
|
13
32
|
this.offset = input(10, ...(ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []));
|
|
33
|
+
/** Alignment of the toolbar along the node edge. */
|
|
14
34
|
this.align = input('center', ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
15
35
|
this.contextNodeId = '';
|
|
16
36
|
this.resolvedNodeIds = computed(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/node-toolbar/node-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;;
|
|
1
|
+
{"version":3,"file":"node-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/node-toolbar/node-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;;AAEhD;;;;;;;;;;;GAWG;AAkBH,MAAM,OAAO,oBAAoB;IAoB/B,YAAyC,MAAqB;QAnBtD,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAElC;;;;WAIG;QACM,gBAAW,GAAG,KAAK,CAAgC,SAAS,mFAAI,KAAK,EAAE,QAAQ,GAAG,CAAC;QAC5F,qDAAqD;QAC5C,aAAQ,GAAG,KAAK,CAA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gB,EAAE,GAAG;wBACrB,wBAAwB,EAAE,+BAA+B;wBACzD,iBAAiB,EAAE,MAAM;wBACzB,iBAAiB,EAAE,iCAAiC;wBACpD,mBAAmB,EAAE,oBAAoB;qBAC1C;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B;;0BAqBc,QAAQ;;0BAAI,MAAM;2BAAC,OAAO"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Position } from '@angflow/system';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Built-in node renderer with a target handle on top and a source handle on
|
|
5
|
+
* bottom. Used when a node has no `type` or `type: 'default'`.
|
|
6
|
+
*/
|
|
3
7
|
export declare class DefaultNodeComponent {
|
|
4
8
|
readonly Position: typeof Position;
|
|
5
9
|
readonly id: import("@angular/core").InputSignal<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-node.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/default-node.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C,qBAWa,oBAAoB;IAC/B,QAAQ,CAAC,QAAQ,kBAAY;IAC7B,QAAQ,CAAC,EAAE,8CAA4B;IACvC,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,IAAI,0DAAmB;IAChC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,MAAM,8CAAY;IAC3B,QAAQ,CAAC,aAAa,+CAAe;IACrC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,UAAU,0DAAmB;yCAb3B,oBAAoB;2CAApB,oBAAoB;CAchC"}
|
|
1
|
+
{"version":3,"file":"default-node.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/default-node.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C;;;GAGG;AACH,qBAWa,oBAAoB;IAC/B,QAAQ,CAAC,QAAQ,kBAAY;IAC7B,QAAQ,CAAC,EAAE,8CAA4B;IACvC,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,IAAI,0DAAmB;IAChC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,MAAM,8CAAY;IAC3B,QAAQ,CAAC,aAAa,+CAAe;IACrC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,UAAU,0DAAmB;yCAb3B,oBAAoB;2CAApB,oBAAoB;CAchC"}
|
|
@@ -2,6 +2,10 @@ import { Component, ChangeDetectionStrategy, input } from '@angular/core';
|
|
|
2
2
|
import { HandleComponent } from '../handle/handle.component';
|
|
3
3
|
import { Position } from '@angflow/system';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Built-in node renderer with a target handle on top and a source handle on
|
|
7
|
+
* bottom. Used when a node has no `type` or `type: 'default'`.
|
|
8
|
+
*/
|
|
5
9
|
export class DefaultNodeComponent {
|
|
6
10
|
constructor() {
|
|
7
11
|
this.Position = Position;
|
|
@@ -19,11 +23,11 @@ export class DefaultNodeComponent {
|
|
|
19
23
|
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
20
24
|
}
|
|
21
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DefaultNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: DefaultNodeComponent, isStandalone: true, selector: "ng-flow-default-node", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, dragging: { classPropertyName: "dragging", publicName: "dragging", isSignal: true, isRequired: false, transformFunction: null }, zIndex: { classPropertyName: "zIndex", publicName: "zIndex", isSignal: true, isRequired: false, transformFunction: null }, isConnectable: { classPropertyName: "isConnectable", publicName: "isConnectable", isSignal: true, isRequired: false, transformFunction: null }, positionAbsoluteX: { classPropertyName: "positionAbsoluteX", publicName: "positionAbsoluteX", isSignal: true, isRequired: false, transformFunction: null }, positionAbsoluteY: { classPropertyName: "positionAbsoluteY", publicName: "positionAbsoluteY", isSignal: true, isRequired: false, transformFunction: null }, sourcePosition: { classPropertyName: "sourcePosition", publicName: "sourcePosition", isSignal: true, isRequired: false, transformFunction: null }, targetPosition: { classPropertyName: "targetPosition", publicName: "targetPosition", isSignal: true, isRequired: false, transformFunction: null }, dragHandle: { classPropertyName: "dragHandle", publicName: "dragHandle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
23
|
-
<ng-flow-handle type="target" [position]="Position.Top" />
|
|
24
|
-
<div>{{ data()?.label }}</div>
|
|
25
|
-
<ng-flow-handle type="source" [position]="Position.Bottom" />
|
|
26
|
-
`, isInline: true, dependencies: [{ kind: "component", type: HandleComponent, selector: "ng-flow-handle", inputs: ["type", "position", "id", "isConnectable", "isConnectableStart", "isConnectableEnd", "isValidConnection", "data"], outputs: ["onConnect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: DefaultNodeComponent, isStandalone: true, selector: "ng-flow-default-node", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, dragging: { classPropertyName: "dragging", publicName: "dragging", isSignal: true, isRequired: false, transformFunction: null }, zIndex: { classPropertyName: "zIndex", publicName: "zIndex", isSignal: true, isRequired: false, transformFunction: null }, isConnectable: { classPropertyName: "isConnectable", publicName: "isConnectable", isSignal: true, isRequired: false, transformFunction: null }, positionAbsoluteX: { classPropertyName: "positionAbsoluteX", publicName: "positionAbsoluteX", isSignal: true, isRequired: false, transformFunction: null }, positionAbsoluteY: { classPropertyName: "positionAbsoluteY", publicName: "positionAbsoluteY", isSignal: true, isRequired: false, transformFunction: null }, sourcePosition: { classPropertyName: "sourcePosition", publicName: "sourcePosition", isSignal: true, isRequired: false, transformFunction: null }, targetPosition: { classPropertyName: "targetPosition", publicName: "targetPosition", isSignal: true, isRequired: false, transformFunction: null }, dragHandle: { classPropertyName: "dragHandle", publicName: "dragHandle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
27
|
+
<ng-flow-handle type="target" [position]="Position.Top" />
|
|
28
|
+
<div>{{ data()?.label }}</div>
|
|
29
|
+
<ng-flow-handle type="source" [position]="Position.Bottom" />
|
|
30
|
+
`, isInline: true, dependencies: [{ kind: "component", type: HandleComponent, selector: "ng-flow-handle", inputs: ["type", "position", "id", "isConnectable", "isConnectableStart", "isConnectableEnd", "isValidConnection", "data", "floating"], outputs: ["onConnect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
31
|
}
|
|
28
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DefaultNodeComponent, decorators: [{
|
|
29
33
|
type: Component,
|
|
@@ -32,10 +36,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
|
|
|
32
36
|
standalone: true,
|
|
33
37
|
imports: [HandleComponent],
|
|
34
38
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
|
-
template: `
|
|
36
|
-
<ng-flow-handle type="target" [position]="Position.Top" />
|
|
37
|
-
<div>{{ data()?.label }}</div>
|
|
38
|
-
<ng-flow-handle type="source" [position]="Position.Bottom" />
|
|
39
|
+
template: `
|
|
40
|
+
<ng-flow-handle type="target" [position]="Position.Top" />
|
|
41
|
+
<div>{{ data()?.label }}</div>
|
|
42
|
+
<ng-flow-handle type="source" [position]="Position.Bottom" />
|
|
39
43
|
`,
|
|
40
44
|
}]
|
|
41
45
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], dragging: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragging", required: false }] }], zIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "zIndex", required: false }] }], isConnectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isConnectable", required: false }] }], positionAbsoluteX: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionAbsoluteX", required: false }] }], positionAbsoluteY: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionAbsoluteY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], dragHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragHandle", required: false }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/default-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;
|
|
1
|
+
{"version":3,"file":"default-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/default-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C;;;GAGG;AAYH,MAAM,OAAO,oBAAoB;IAXjC;QAYW,aAAQ,GAAG,QAAQ,CAAC;QACpB,OAAE,GAAG,KAAK,CAAC,QAAQ,wEAAU,CAAC;QAC9B,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,SAAI,GAAG,KAAK,qFAAU,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,WAAM,GAAG,KAAK,CAAC,CAAC,6EAAC,CAAC;QAClB,kBAAa,GAAG,KAAK,CAAC,IAAI,oFAAC,CAAC;QAC5B,sBAAiB,GAAG,KAAK,CAAC,CAAC,wFAAC,CAAC;QAC7B,sBAAiB,GAAG,KAAK,CAAC,CAAC,wFAAC,CAAC;QAC7B,mBAAc,GAAG,KAAK,+FAAY,CAAC;QACnC,mBAAc,GAAG,KAAK,+FAAY,CAAC;QACnC,eAAU,GAAG,KAAK,2FAAU,CAAC;KACvC;8GAdY,oBAAoB;kGAApB,oBAAoB,sqDANrB;;;;GAIT,4DANS,eAAe;;2FAQd,oBAAoB;kBAXhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;GAIT;iBACF"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Position } from '@angflow/system';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Built-in container node used for sub-flows. No handles and no label —
|
|
5
|
+
* other nodes parent to it via `parentId` and optionally constrain movement
|
|
6
|
+
* with `extent: 'parent'`.
|
|
7
|
+
*/
|
|
3
8
|
export declare class GroupNodeComponent {
|
|
4
9
|
readonly id: import("@angular/core").InputSignal<string>;
|
|
5
10
|
readonly data: import("@angular/core").InputSignal<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-node.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/group-node.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C,qBASa,kBAAkB;IAC7B,QAAQ,CAAC,EAAE,8CAA4B;IACvC,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,IAAI,0DAAmB;IAChC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,MAAM,8CAAY;IAC3B,QAAQ,CAAC,aAAa,+CAAe;IACrC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,UAAU,0DAAmB;yCAZ3B,kBAAkB;2CAAlB,kBAAkB;CAa9B"}
|
|
1
|
+
{"version":3,"file":"group-node.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/group-node.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAE3C;;;;GAIG;AACH,qBASa,kBAAkB;IAC7B,QAAQ,CAAC,EAAE,8CAA4B;IACvC,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,IAAI,0DAAmB;IAChC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,MAAM,8CAAY;IAC3B,QAAQ,CAAC,aAAa,+CAAe;IACrC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,iBAAiB,8CAAY;IACtC,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,cAAc,4DAAqB;IAC5C,QAAQ,CAAC,UAAU,0DAAmB;yCAZ3B,kBAAkB;2CAAlB,kBAAkB;CAa9B"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy, input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Built-in container node used for sub-flows. No handles and no label —
|
|
5
|
+
* other nodes parent to it via `parentId` and optionally constrain movement
|
|
6
|
+
* with `extent: 'parent'`.
|
|
7
|
+
*/
|
|
3
8
|
export class GroupNodeComponent {
|
|
4
9
|
constructor() {
|
|
5
10
|
this.id = input.required(...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/group-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"group-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/group-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAG1E;;;;GAIG;AAUH,MAAM,OAAO,kBAAkB;IAT/B;QAUW,OAAE,GAAG,KAAK,CAAC,QAAQ,wEAAU,CAAC;QAC9B,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,SAAI,GAAG,KAAK,qFAAU,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,WAAM,GAAG,KAAK,CAAC,CAAC,6EAAC,CAAC;QAClB,kBAAa,GAAG,KAAK,CAAC,IAAI,oFAAC,CAAC;QAC5B,sBAAiB,GAAG,KAAK,CAAC,CAAC,wFAAC,CAAC;QAC7B,sBAAiB,GAAG,KAAK,CAAC,CAAC,wFAAC,CAAC;QAC7B,mBAAc,GAAG,KAAK,+FAAY,CAAC;QACnC,mBAAc,GAAG,KAAK,+FAAY,CAAC;QACnC,eAAU,GAAG,KAAK,2FAAU,CAAC;KACvC;8GAbY,kBAAkB;kGAAlB,kBAAkB,4tDAFnB,EAAE;;2FAED,kBAAkB;kBAT9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,4BAA4B;qBACtC;oBACD,QAAQ,EAAE,EAAE;iBACb"}
|