@angflow/angular 0.0.17 → 0.0.18
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 +53 -0
- package/dist/base.css +18 -0
- package/dist/esm/lib/agent/agent-bridge.service.d.ts +6 -2
- package/dist/esm/lib/agent/agent-bridge.service.d.ts.map +1 -1
- package/dist/esm/lib/agent/agent-bridge.service.js +228 -5
- package/dist/esm/lib/agent/agent-bridge.service.js.map +1 -1
- package/dist/esm/lib/agent/chat/agent-chat.component.d.ts +20 -0
- package/dist/esm/lib/agent/chat/agent-chat.component.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/agent-chat.component.js +174 -0
- package/dist/esm/lib/agent/chat/agent-chat.component.js.map +1 -0
- package/dist/esm/lib/agent/chat/agent-chat.service.d.ts +43 -0
- package/dist/esm/lib/agent/chat/agent-chat.service.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/agent-chat.service.js +226 -0
- package/dist/esm/lib/agent/chat/agent-chat.service.js.map +1 -0
- package/dist/esm/lib/agent/chat/default-system-prompt.d.ts +6 -0
- package/dist/esm/lib/agent/chat/default-system-prompt.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/default-system-prompt.js +14 -0
- package/dist/esm/lib/agent/chat/default-system-prompt.js.map +1 -0
- package/dist/esm/lib/agent/chat/index.d.ts +7 -0
- package/dist/esm/lib/agent/chat/index.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/index.js +5 -0
- package/dist/esm/lib/agent/chat/index.js.map +1 -0
- package/dist/esm/lib/agent/chat/provide-agent-chat.d.ts +29 -0
- package/dist/esm/lib/agent/chat/provide-agent-chat.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/provide-agent-chat.js +40 -0
- package/dist/esm/lib/agent/chat/provide-agent-chat.js.map +1 -0
- package/dist/esm/lib/agent/chat/types.d.ts +77 -0
- package/dist/esm/lib/agent/chat/types.d.ts.map +1 -0
- package/dist/esm/lib/agent/chat/types.js +9 -0
- package/dist/esm/lib/agent/chat/types.js.map +1 -0
- package/dist/esm/lib/agent/index.d.ts +1 -0
- package/dist/esm/lib/agent/index.d.ts.map +1 -1
- package/dist/esm/lib/agent/index.js +1 -0
- package/dist/esm/lib/agent/index.js.map +1 -1
- package/dist/esm/lib/agent/provide-agent-bridge.d.ts +8 -0
- package/dist/esm/lib/agent/provide-agent-bridge.d.ts.map +1 -1
- package/dist/esm/lib/agent/provide-agent-bridge.js +2 -1
- package/dist/esm/lib/agent/provide-agent-bridge.js.map +1 -1
- package/dist/esm/lib/agent/tool-schemas.d.ts.map +1 -1
- package/dist/esm/lib/agent/tool-schemas.js +138 -0
- package/dist/esm/lib/agent/tool-schemas.js.map +1 -1
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +3 -3
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -1
- package/dist/esm/lib/components/attribution/attribution.component.js +3 -3
- package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -1
- package/dist/esm/lib/components/background/background.component.js +3 -3
- package/dist/esm/lib/components/background/background.component.js.map +1 -1
- package/dist/esm/lib/components/connection-line/connection-line.component.js +3 -3
- package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -1
- package/dist/esm/lib/components/controls/controls.component.js +3 -3
- package/dist/esm/lib/components/controls/controls.component.js.map +1 -1
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +3 -3
- 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 +2 -2
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +3 -3
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/edges/base-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/bezier-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/edge-text.component.js +3 -3
- package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -1
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/step-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/straight-edge.component.js +3 -3
- package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -1
- package/dist/esm/lib/components/handle/handle.component.js +3 -3
- package/dist/esm/lib/components/handle/handle.component.js.map +1 -1
- package/dist/esm/lib/components/handle-group/handle-group.component.d.ts +1 -1
- package/dist/esm/lib/components/handle-group/handle-group.component.js +3 -3
- package/dist/esm/lib/components/handle-group/handle-group.component.js.map +1 -1
- package/dist/esm/lib/components/handle-group/handle-row.component.js +3 -3
- package/dist/esm/lib/components/handle-group/handle-row.component.js.map +1 -1
- package/dist/esm/lib/components/minimap/minimap.component.js +3 -3
- package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -1
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +3 -3
- 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.js +3 -3
- package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +3 -3
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/default-node.component.js +3 -3
- package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/group-node.component.js +3 -3
- package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/input-node.component.js +3 -3
- package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/output-node.component.js +3 -3
- package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/template-node.component.d.ts +48 -0
- package/dist/esm/lib/components/nodes/template-node.component.d.ts.map +1 -0
- package/dist/esm/lib/components/nodes/template-node.component.js +209 -0
- package/dist/esm/lib/components/nodes/template-node.component.js.map +1 -0
- package/dist/esm/lib/components/panel/panel.component.js +3 -3
- package/dist/esm/lib/components/panel/panel.component.js.map +1 -1
- package/dist/esm/lib/components/selection-box/selection-box.component.js +3 -3
- package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -1
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +3 -3
- 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 +9 -5
- 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 +19 -1
- 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 +28 -4
- 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 +5 -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 +71 -7
- package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -1
- package/dist/esm/lib/container/pane/pane.component.js +3 -3
- package/dist/esm/lib/container/pane/pane.component.js.map +1 -1
- package/dist/esm/lib/container/viewport/viewport.component.js +3 -3
- package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -1
- package/dist/esm/lib/directives/drag.directive.js +3 -3
- package/dist/esm/lib/directives/drag.directive.js.map +1 -1
- package/dist/esm/lib/directives/drop-zone.directive.js +3 -3
- package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -1
- package/dist/esm/lib/directives/key-handler.directive.js +3 -3
- package/dist/esm/lib/directives/key-handler.directive.js.map +1 -1
- package/dist/esm/lib/directives/node-type.directive.js +3 -3
- package/dist/esm/lib/directives/node-type.directive.js.map +1 -1
- package/dist/esm/lib/layout/dagre-layout.d.ts +12 -0
- package/dist/esm/lib/layout/dagre-layout.d.ts.map +1 -0
- package/dist/esm/lib/layout/dagre-layout.js +13 -0
- package/dist/esm/lib/layout/dagre-layout.js.map +1 -0
- package/dist/esm/lib/layout/index.d.ts +4 -0
- package/dist/esm/lib/layout/index.d.ts.map +1 -0
- package/dist/esm/lib/layout/index.js +3 -0
- package/dist/esm/lib/layout/index.js.map +1 -0
- package/dist/esm/lib/layout/layout-nodes.d.ts +47 -0
- package/dist/esm/lib/layout/layout-nodes.d.ts.map +1 -0
- package/dist/esm/lib/layout/layout-nodes.js +49 -0
- package/dist/esm/lib/layout/layout-nodes.js.map +1 -0
- package/dist/esm/lib/public-api.d.ts +2 -1
- package/dist/esm/lib/public-api.d.ts.map +1 -1
- package/dist/esm/lib/public-api.js +4 -1
- package/dist/esm/lib/public-api.js.map +1 -1
- package/dist/esm/lib/services/flow-store.service.d.ts +52 -2
- package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -1
- package/dist/esm/lib/services/flow-store.service.js +145 -3
- package/dist/esm/lib/services/flow-store.service.js.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.d.ts +81 -0
- package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.js +127 -3
- package/dist/esm/lib/services/ng-flow.service.js.map +1 -1
- package/dist/esm/lib/types/index.d.ts +1 -0
- package/dist/esm/lib/types/index.d.ts.map +1 -1
- package/dist/esm/lib/types/index.js +1 -0
- package/dist/esm/lib/types/index.js.map +1 -1
- package/dist/esm/lib/types/node-template.d.ts +77 -0
- package/dist/esm/lib/types/node-template.d.ts.map +1 -0
- package/dist/esm/lib/types/node-template.js +10 -0
- package/dist/esm/lib/types/node-template.js.map +1 -0
- package/dist/esm/lib/utils/position-tween.d.ts +19 -0
- package/dist/esm/lib/utils/position-tween.d.ts.map +1 -0
- package/dist/esm/lib/utils/position-tween.js +25 -0
- package/dist/esm/lib/utils/position-tween.js.map +1 -0
- package/dist/esm/lib/utils/template-interpolation.d.ts +16 -0
- package/dist/esm/lib/utils/template-interpolation.d.ts.map +1 -0
- package/dist/esm/lib/utils/template-interpolation.js +51 -0
- package/dist/esm/lib/utils/template-interpolation.js.map +1 -0
- package/dist/style.css +18 -0
- package/package.json +78 -66
|
@@ -22,14 +22,14 @@ export class DefaultNodeComponent {
|
|
|
22
22
|
this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
|
|
23
23
|
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: DefaultNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", 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
27
|
<ng-flow-handle type="target" [position]="Position.Top" [isConnectable]="isConnectable()" />
|
|
28
28
|
<div>{{ data()?.label }}</div>
|
|
29
29
|
<ng-flow-handle type="source" [position]="Position.Bottom" [isConnectable]="isConnectable()" />
|
|
30
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 }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: DefaultNodeComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
34
|
args: [{
|
|
35
35
|
selector: 'ng-flow-default-node',
|
|
@@ -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;;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
|
|
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;+GAdY,oBAAoB;mGAApB,oBAAoB,sqDANrB;;;;GAIT,4DANS,eAAe;;4FAQd,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"}
|
|
@@ -20,10 +20,10 @@ export class GroupNodeComponent {
|
|
|
20
20
|
this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
|
|
21
21
|
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
22
22
|
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: GroupNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: GroupNodeComponent, isStandalone: true, selector: "ng-flow-group-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 } }, host: { styleAttribute: "width: 100%; height: 100%;" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: GroupNodeComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: 'ng-flow-group-node',
|
|
@@ -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;;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
|
|
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;+GAbY,kBAAkB;mGAAlB,kBAAkB,4tDAFnB,EAAE;;4FAED,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"}
|
|
@@ -22,13 +22,13 @@ export class InputNodeComponent {
|
|
|
22
22
|
this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
|
|
23
23
|
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: InputNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: InputNodeComponent, isStandalone: true, selector: "ng-flow-input-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
27
|
<div>{{ data()?.label }}</div>
|
|
28
28
|
<ng-flow-handle type="source" [position]="Position.Bottom" [isConnectable]="isConnectable()" />
|
|
29
29
|
`, 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 }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: InputNodeComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'ng-flow-input-node',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/input-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;AAWH,MAAM,OAAO,kBAAkB;IAV/B;QAWW,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
|
|
1
|
+
{"version":3,"file":"input-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/input-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;AAWH,MAAM,OAAO,kBAAkB;IAV/B;QAWW,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;+GAdY,kBAAkB;mGAAlB,kBAAkB,oqDALnB;;;GAGT,4DALS,eAAe;;4FAOd,kBAAkB;kBAV9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;GAGT;iBACF"}
|
|
@@ -22,13 +22,13 @@ export class OutputNodeComponent {
|
|
|
22
22
|
this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
|
|
23
23
|
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: OutputNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: OutputNodeComponent, isStandalone: true, selector: "ng-flow-output-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
27
|
<ng-flow-handle type="target" [position]="Position.Top" [isConnectable]="isConnectable()" />
|
|
28
28
|
<div>{{ data()?.label }}</div>
|
|
29
29
|
`, 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 }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: OutputNodeComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'ng-flow-output-node',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/output-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;AAWH,MAAM,OAAO,mBAAmB;IAVhC;QAWW,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
|
|
1
|
+
{"version":3,"file":"output-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/output-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;AAWH,MAAM,OAAO,mBAAmB;IAVhC;QAWW,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;+GAdY,mBAAmB;mGAAnB,mBAAmB,qqDALpB;;;GAGT,4DALS,eAAe;;4FAOd,mBAAmB;kBAV/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;GAGT;iBACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Position } from '@angflow/system';
|
|
2
|
+
import type { NodeTemplateBadgeColor } from '../../types/node-template';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Generic renderer for data-driven node templates registered through the
|
|
6
|
+
* agent bridge (`register_node_template`). Looks up its spec in the per-flow
|
|
7
|
+
* registry (`FlowStore.nodeTemplates`) by its own `type`, so overwriting a
|
|
8
|
+
* template re-renders every node of that type live.
|
|
9
|
+
*
|
|
10
|
+
* Security: every interpolated value is rendered through Angular text
|
|
11
|
+
* bindings; badge colors are palette classes, never raw CSS; `accent` is the
|
|
12
|
+
* only raw color and is bound via a style binding (sanitized by Angular).
|
|
13
|
+
*/
|
|
14
|
+
export declare class TemplateNodeComponent {
|
|
15
|
+
private readonly store;
|
|
16
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
17
|
+
readonly data: import("@angular/core").InputSignal<any>;
|
|
18
|
+
readonly type: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
+
readonly selected: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
readonly dragging: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
readonly zIndex: import("@angular/core").InputSignal<number>;
|
|
22
|
+
readonly isConnectable: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
readonly positionAbsoluteX: import("@angular/core").InputSignal<number>;
|
|
24
|
+
readonly positionAbsoluteY: import("@angular/core").InputSignal<number>;
|
|
25
|
+
readonly sourcePosition: import("@angular/core").InputSignal<Position | undefined>;
|
|
26
|
+
readonly targetPosition: import("@angular/core").InputSignal<Position | undefined>;
|
|
27
|
+
readonly dragHandle: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
readonly spec: import("@angular/core").Signal<import("../../types").NodeTemplateSpec | undefined>;
|
|
29
|
+
readonly title: import("@angular/core").Signal<string>;
|
|
30
|
+
readonly iconPath: import("@angular/core").Signal<string | null>;
|
|
31
|
+
readonly badges: import("@angular/core").Signal<{
|
|
32
|
+
text: string;
|
|
33
|
+
color: NodeTemplateBadgeColor;
|
|
34
|
+
}[]>;
|
|
35
|
+
readonly fields: import("@angular/core").Signal<{
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
readonly bodyText: import("@angular/core").Signal<string>;
|
|
40
|
+
readonly handles: import("@angular/core").Signal<{
|
|
41
|
+
type: "source" | "target";
|
|
42
|
+
id: string | undefined;
|
|
43
|
+
position: Position;
|
|
44
|
+
}[]>;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateNodeComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateNodeComponent, "ng-flow-template-node", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "dragging": { "alias": "dragging"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "isConnectable": { "alias": "isConnectable"; "required": false; "isSignal": true; }; "positionAbsoluteX": { "alias": "positionAbsoluteX"; "required": false; "isSignal": true; }; "positionAbsoluteY": { "alias": "positionAbsoluteY"; "required": false; "isSignal": true; }; "sourcePosition": { "alias": "sourcePosition"; "required": false; "isSignal": true; }; "targetPosition": { "alias": "targetPosition"; "required": false; "isSignal": true; }; "dragHandle": { "alias": "dragHandle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=template-node.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-node.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/template-node.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;;AAgCxE;;;;;;;;;GASG;AACH,qBAyIa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAE3C,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;IAEtC,QAAQ,CAAC,IAAI,qFAAqE;IAElF,QAAQ,CAAC,KAAK,yCAEZ;IAEF,QAAQ,CAAC,QAAQ,gDAGd;IAEH,QAAQ,CAAC,MAAM;;;SAOb;IAEF,QAAQ,CAAC,MAAM;;;SAIb;IAEF,QAAQ,CAAC,QAAQ,yCAEf;IAEF,QAAQ,CAAC,OAAO;;;;SAUb;yCAxDQ,qBAAqB;2CAArB,qBAAqB;CAyDjC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { Position } from '@angflow/system';
|
|
3
|
+
import { HandleComponent } from '../handle/handle.component';
|
|
4
|
+
import { FlowStore } from '../../services/flow-store.service';
|
|
5
|
+
import { interpolateTemplateString, isTemplateConditionTrue, } from '../../utils/template-interpolation';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
const POSITION_MAP = {
|
|
8
|
+
top: Position.Top,
|
|
9
|
+
right: Position.Right,
|
|
10
|
+
bottom: Position.Bottom,
|
|
11
|
+
left: Position.Left,
|
|
12
|
+
};
|
|
13
|
+
const BADGE_COLORS = new Set(['slate', 'indigo', 'emerald', 'amber', 'rose']);
|
|
14
|
+
/**
|
|
15
|
+
* Built-in icon glyphs (24×24 stroke paths). Unknown names render nothing.
|
|
16
|
+
* Deliberately tiny — hosts wanting richer icons register their own
|
|
17
|
+
* component node types instead.
|
|
18
|
+
*/
|
|
19
|
+
const ICONS = {
|
|
20
|
+
database: 'M4 6c0-1.66 3.58-3 8-3s8 1.34 8 3-3.58 3-8 3-8-1.34-8-3Zm0 0v12c0 1.66 3.58 3 8 3s8-1.34 8-3V6M4 12c0 1.66 3.58 3 8 3s8-1.34 8-3',
|
|
21
|
+
server: 'M4 4h16v6H4zM4 14h16v6H4zM7 7h.01M7 17h.01',
|
|
22
|
+
queue: 'M4 6h16M4 12h16M4 18h10',
|
|
23
|
+
cloud: 'M7 18a4 4 0 0 1-.5-7.97A5.5 5.5 0 0 1 17.2 9.6 4.2 4.2 0 0 1 16.8 18H7Z',
|
|
24
|
+
user: 'M16 8a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM5 21a7 7 0 0 1 14 0',
|
|
25
|
+
document: 'M6 2h8l4 4v16H6V2Zm8 0v4h4',
|
|
26
|
+
bolt: 'M13 2 4 14h6l-1 8 9-12h-6l1-8Z',
|
|
27
|
+
settings: 'M4 7h9M17 7h3M13 4v6M4 17h3M11 17h9M7 14v6',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Generic renderer for data-driven node templates registered through the
|
|
31
|
+
* agent bridge (`register_node_template`). Looks up its spec in the per-flow
|
|
32
|
+
* registry (`FlowStore.nodeTemplates`) by its own `type`, so overwriting a
|
|
33
|
+
* template re-renders every node of that type live.
|
|
34
|
+
*
|
|
35
|
+
* Security: every interpolated value is rendered through Angular text
|
|
36
|
+
* bindings; badge colors are palette classes, never raw CSS; `accent` is the
|
|
37
|
+
* only raw color and is bound via a style binding (sanitized by Angular).
|
|
38
|
+
*/
|
|
39
|
+
export class TemplateNodeComponent {
|
|
40
|
+
constructor() {
|
|
41
|
+
this.store = inject(FlowStore);
|
|
42
|
+
this.id = input.required(...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
43
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
44
|
+
this.type = input(...(ngDevMode ? [undefined, { debugName: "type" }] : /* istanbul ignore next */ []));
|
|
45
|
+
this.selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
46
|
+
this.dragging = input(false, ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
47
|
+
this.zIndex = input(0, ...(ngDevMode ? [{ debugName: "zIndex" }] : /* istanbul ignore next */ []));
|
|
48
|
+
this.isConnectable = input(true, ...(ngDevMode ? [{ debugName: "isConnectable" }] : /* istanbul ignore next */ []));
|
|
49
|
+
this.positionAbsoluteX = input(0, ...(ngDevMode ? [{ debugName: "positionAbsoluteX" }] : /* istanbul ignore next */ []));
|
|
50
|
+
this.positionAbsoluteY = input(0, ...(ngDevMode ? [{ debugName: "positionAbsoluteY" }] : /* istanbul ignore next */ []));
|
|
51
|
+
this.sourcePosition = input(...(ngDevMode ? [undefined, { debugName: "sourcePosition" }] : /* istanbul ignore next */ []));
|
|
52
|
+
this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
|
|
54
|
+
this.spec = computed(() => this.store.nodeTemplates().get(this.type() ?? ''), ...(ngDevMode ? [{ debugName: "spec" }] : /* istanbul ignore next */ []));
|
|
55
|
+
this.title = computed(() => interpolateTemplateString(this.spec()?.title ?? '', this.data()), ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
56
|
+
this.iconPath = computed(() => {
|
|
57
|
+
const icon = this.spec()?.icon;
|
|
58
|
+
return icon ? ICONS[icon] ?? null : null;
|
|
59
|
+
}, ...(ngDevMode ? [{ debugName: "iconPath" }] : /* istanbul ignore next */ []));
|
|
60
|
+
this.badges = computed(() => (this.spec()?.badges ?? [])
|
|
61
|
+
.filter((b) => isTemplateConditionTrue(b.showIf, this.data()))
|
|
62
|
+
.map((b) => ({
|
|
63
|
+
text: interpolateTemplateString(b.text, this.data()),
|
|
64
|
+
color: BADGE_COLORS.has(b.color) ? b.color : 'slate',
|
|
65
|
+
})), ...(ngDevMode ? [{ debugName: "badges" }] : /* istanbul ignore next */ []));
|
|
66
|
+
this.fields = computed(() => (this.spec()?.fields ?? [])
|
|
67
|
+
.filter((f) => isTemplateConditionTrue(f.showIf, this.data()))
|
|
68
|
+
.map((f) => ({ label: f.label, value: interpolateTemplateString(f.value, this.data()) })), ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
|
|
69
|
+
this.bodyText = computed(() => interpolateTemplateString(this.spec()?.body ?? '', this.data()), ...(ngDevMode ? [{ debugName: "bodyText" }] : /* istanbul ignore next */ []));
|
|
70
|
+
this.handles = computed(() => {
|
|
71
|
+
const declared = this.spec()?.handles ?? [
|
|
72
|
+
{ type: 'target', position: 'left' },
|
|
73
|
+
{ type: 'source', position: 'right' },
|
|
74
|
+
];
|
|
75
|
+
return declared.map((h) => ({
|
|
76
|
+
type: h.type,
|
|
77
|
+
id: h.id,
|
|
78
|
+
position: POSITION_MAP[h.position ?? (h.type === 'target' ? 'left' : 'right')],
|
|
79
|
+
}));
|
|
80
|
+
}, ...(ngDevMode ? [{ debugName: "handles" }] : /* istanbul ignore next */ []));
|
|
81
|
+
}
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: TemplateNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: TemplateNodeComponent, isStandalone: true, selector: "ng-flow-template-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: `
|
|
84
|
+
@if (spec(); as s) {
|
|
85
|
+
<div
|
|
86
|
+
class="ng-flow__template-node"
|
|
87
|
+
[class.ng-flow__template-node--compact]="(s.variant ?? 'detailed') === 'compact'"
|
|
88
|
+
[class.ng-flow__template-node--selected]="selected()"
|
|
89
|
+
[style.borderLeftColor]="s.accent ?? null"
|
|
90
|
+
>
|
|
91
|
+
<div class="ng-flow__template-node__header" [style.color]="s.accent ?? null">
|
|
92
|
+
@if (iconPath(); as path) {
|
|
93
|
+
<svg
|
|
94
|
+
class="ng-flow__template-node__icon"
|
|
95
|
+
viewBox="0 0 24 24"
|
|
96
|
+
fill="none"
|
|
97
|
+
stroke="currentColor"
|
|
98
|
+
stroke-width="1.5"
|
|
99
|
+
stroke-linecap="round"
|
|
100
|
+
stroke-linejoin="round"
|
|
101
|
+
aria-hidden="true"
|
|
102
|
+
>
|
|
103
|
+
<path [attr.d]="path" />
|
|
104
|
+
</svg>
|
|
105
|
+
}
|
|
106
|
+
@if (title()) {
|
|
107
|
+
<span class="ng-flow__template-node__title">{{ title() }}</span>
|
|
108
|
+
}
|
|
109
|
+
</div>
|
|
110
|
+
@if (badges().length > 0) {
|
|
111
|
+
<div class="ng-flow__template-node__badges">
|
|
112
|
+
@for (b of badges(); track $index) {
|
|
113
|
+
<span
|
|
114
|
+
class="ng-flow__template-node__badge ng-flow__template-node__badge--{{ b.color }}"
|
|
115
|
+
>{{ b.text }}</span
|
|
116
|
+
>
|
|
117
|
+
}
|
|
118
|
+
</div>
|
|
119
|
+
}
|
|
120
|
+
@if (fields().length > 0) {
|
|
121
|
+
<dl class="ng-flow__template-node__fields">
|
|
122
|
+
@for (f of fields(); track $index) {
|
|
123
|
+
<div class="ng-flow__template-node__field">
|
|
124
|
+
<dt>{{ f.label }}</dt>
|
|
125
|
+
<dd>{{ f.value }}</dd>
|
|
126
|
+
</div>
|
|
127
|
+
}
|
|
128
|
+
</dl>
|
|
129
|
+
}
|
|
130
|
+
@if (bodyText()) {
|
|
131
|
+
<p class="ng-flow__template-node__body">{{ bodyText() }}</p>
|
|
132
|
+
}
|
|
133
|
+
@for (h of handles(); track $index) {
|
|
134
|
+
<ng-flow-handle
|
|
135
|
+
[type]="h.type"
|
|
136
|
+
[id]="h.id ?? null"
|
|
137
|
+
[position]="h.position"
|
|
138
|
+
[isConnectable]="isConnectable()"
|
|
139
|
+
/>
|
|
140
|
+
}
|
|
141
|
+
</div>
|
|
142
|
+
}
|
|
143
|
+
`, isInline: true, styles: ["\n .ng-flow__template-node {\n min-width: 140px;\n max-width: 280px;\n padding: 8px 10px;\n border: 1px solid #d4d4d8;\n border-left: 3px solid #94a3b8;\n border-radius: 6px;\n background: #ffffff;\n font-size: 12px;\n color: #1e293b;\n }\n .ng-flow__template-node--selected {\n box-shadow: 0 0 0 1px #6366f1;\n }\n .ng-flow__template-node--compact {\n padding: 4px 8px;\n min-width: 100px;\n }\n .ng-flow__template-node__header {\n display: flex;\n align-items: center;\n gap: 6px;\n font-weight: 600;\n }\n .ng-flow__template-node__icon {\n width: 16px;\n height: 16px;\n flex: none;\n }\n .ng-flow__template-node__badges {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n margin-top: 4px;\n }\n .ng-flow__template-node__badge {\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n line-height: 16px;\n }\n .ng-flow__template-node__badge--slate { background: #f1f5f9; color: #475569; }\n .ng-flow__template-node__badge--indigo { background: #e0e7ff; color: #4338ca; }\n .ng-flow__template-node__badge--emerald { background: #d1fae5; color: #047857; }\n .ng-flow__template-node__badge--amber { background: #fef3c7; color: #b45309; }\n .ng-flow__template-node__badge--rose { background: #ffe4e6; color: #be123c; }\n .ng-flow__template-node__fields {\n margin: 6px 0 0;\n }\n .ng-flow__template-node__field {\n display: flex;\n justify-content: space-between;\n gap: 8px;\n }\n .ng-flow__template-node__field dt {\n color: #64748b;\n font-weight: 400;\n }\n .ng-flow__template-node__field dd {\n margin: 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n }\n .ng-flow__template-node__body {\n margin: 6px 0 0;\n color: #475569;\n }\n "], 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 }); }
|
|
144
|
+
}
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: TemplateNodeComponent, decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'ng-flow-template-node', standalone: true, imports: [HandleComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
148
|
+
@if (spec(); as s) {
|
|
149
|
+
<div
|
|
150
|
+
class="ng-flow__template-node"
|
|
151
|
+
[class.ng-flow__template-node--compact]="(s.variant ?? 'detailed') === 'compact'"
|
|
152
|
+
[class.ng-flow__template-node--selected]="selected()"
|
|
153
|
+
[style.borderLeftColor]="s.accent ?? null"
|
|
154
|
+
>
|
|
155
|
+
<div class="ng-flow__template-node__header" [style.color]="s.accent ?? null">
|
|
156
|
+
@if (iconPath(); as path) {
|
|
157
|
+
<svg
|
|
158
|
+
class="ng-flow__template-node__icon"
|
|
159
|
+
viewBox="0 0 24 24"
|
|
160
|
+
fill="none"
|
|
161
|
+
stroke="currentColor"
|
|
162
|
+
stroke-width="1.5"
|
|
163
|
+
stroke-linecap="round"
|
|
164
|
+
stroke-linejoin="round"
|
|
165
|
+
aria-hidden="true"
|
|
166
|
+
>
|
|
167
|
+
<path [attr.d]="path" />
|
|
168
|
+
</svg>
|
|
169
|
+
}
|
|
170
|
+
@if (title()) {
|
|
171
|
+
<span class="ng-flow__template-node__title">{{ title() }}</span>
|
|
172
|
+
}
|
|
173
|
+
</div>
|
|
174
|
+
@if (badges().length > 0) {
|
|
175
|
+
<div class="ng-flow__template-node__badges">
|
|
176
|
+
@for (b of badges(); track $index) {
|
|
177
|
+
<span
|
|
178
|
+
class="ng-flow__template-node__badge ng-flow__template-node__badge--{{ b.color }}"
|
|
179
|
+
>{{ b.text }}</span
|
|
180
|
+
>
|
|
181
|
+
}
|
|
182
|
+
</div>
|
|
183
|
+
}
|
|
184
|
+
@if (fields().length > 0) {
|
|
185
|
+
<dl class="ng-flow__template-node__fields">
|
|
186
|
+
@for (f of fields(); track $index) {
|
|
187
|
+
<div class="ng-flow__template-node__field">
|
|
188
|
+
<dt>{{ f.label }}</dt>
|
|
189
|
+
<dd>{{ f.value }}</dd>
|
|
190
|
+
</div>
|
|
191
|
+
}
|
|
192
|
+
</dl>
|
|
193
|
+
}
|
|
194
|
+
@if (bodyText()) {
|
|
195
|
+
<p class="ng-flow__template-node__body">{{ bodyText() }}</p>
|
|
196
|
+
}
|
|
197
|
+
@for (h of handles(); track $index) {
|
|
198
|
+
<ng-flow-handle
|
|
199
|
+
[type]="h.type"
|
|
200
|
+
[id]="h.id ?? null"
|
|
201
|
+
[position]="h.position"
|
|
202
|
+
[isConnectable]="isConnectable()"
|
|
203
|
+
/>
|
|
204
|
+
}
|
|
205
|
+
</div>
|
|
206
|
+
}
|
|
207
|
+
`, styles: ["\n .ng-flow__template-node {\n min-width: 140px;\n max-width: 280px;\n padding: 8px 10px;\n border: 1px solid #d4d4d8;\n border-left: 3px solid #94a3b8;\n border-radius: 6px;\n background: #ffffff;\n font-size: 12px;\n color: #1e293b;\n }\n .ng-flow__template-node--selected {\n box-shadow: 0 0 0 1px #6366f1;\n }\n .ng-flow__template-node--compact {\n padding: 4px 8px;\n min-width: 100px;\n }\n .ng-flow__template-node__header {\n display: flex;\n align-items: center;\n gap: 6px;\n font-weight: 600;\n }\n .ng-flow__template-node__icon {\n width: 16px;\n height: 16px;\n flex: none;\n }\n .ng-flow__template-node__badges {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n margin-top: 4px;\n }\n .ng-flow__template-node__badge {\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n line-height: 16px;\n }\n .ng-flow__template-node__badge--slate { background: #f1f5f9; color: #475569; }\n .ng-flow__template-node__badge--indigo { background: #e0e7ff; color: #4338ca; }\n .ng-flow__template-node__badge--emerald { background: #d1fae5; color: #047857; }\n .ng-flow__template-node__badge--amber { background: #fef3c7; color: #b45309; }\n .ng-flow__template-node__badge--rose { background: #ffe4e6; color: #be123c; }\n .ng-flow__template-node__fields {\n margin: 6px 0 0;\n }\n .ng-flow__template-node__field {\n display: flex;\n justify-content: space-between;\n gap: 8px;\n }\n .ng-flow__template-node__field dt {\n color: #64748b;\n font-weight: 400;\n }\n .ng-flow__template-node__field dd {\n margin: 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n }\n .ng-flow__template-node__body {\n margin: 6px 0 0;\n color: #475569;\n }\n "] }]
|
|
208
|
+
}], 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 }] }] } });
|
|
209
|
+
//# sourceMappingURL=template-node.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-node.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/nodes/template-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,m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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT,8lEA9DS,eAAe;;4FAsId,qBAAqB;kBAzIjC,SAAS;+BACE,uBAAuB,cACrB,IAAI,WACP,CAAC,eAAe,CAAC,mBACT,uBAAuB,CAAC,MAAM,YACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT"}
|
|
@@ -21,10 +21,10 @@ export class PanelComponent {
|
|
|
21
21
|
this.isRight = computed(() => this.position().includes('right'), ...(ngDevMode ? [{ debugName: "isRight" }] : /* istanbul ignore next */ []));
|
|
22
22
|
this.isCenter = computed(() => this.position().includes('center'), ...(ngDevMode ? [{ debugName: "isCenter" }] : /* istanbul ignore next */ []));
|
|
23
23
|
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: PanelComponent, isStandalone: true, selector: "ng-flow-panel", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.top": "isTop()", "class.bottom": "isBottom()", "class.left": "isLeft()", "class.right": "isRight()", "class.center": "isCenter()" }, classAttribute: "ng-flow__panel xy-flow__panel" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: PanelComponent, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: 'ng-flow-panel',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/panel/panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;;AAGpF;;;;;;;;;;GAUG;AAeH,MAAM,OAAO,cAAc;IAd3B;QAeE,4DAA4D;QACnD,aAAQ,GAAG,KAAK,CAAgB,UAAU,+EAAC,CAAC;QAE5C,UAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,4EAAC,CAAC;QACxD,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,+EAAC,CAAC;QAC9D,WAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,6EAAC,CAAC;QAC1D,YAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,8EAAC,CAAC;QAC5D,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,+EAAC,CAAC;KACxE
|
|
1
|
+
{"version":3,"file":"panel.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/panel/panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;;AAGpF;;;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|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: SelectionBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: SelectionBoxComponent, isStandalone: true, selector: "ng-flow-selection-box", outputs: { contextMenu: "contextMenu" }, host: { styleAttribute: "display: contents;" }, ngImport: i0, template: `
|
|
40
40
|
@if (isVisible()) {
|
|
41
41
|
<div
|
|
42
42
|
class="ng-flow__selection xy-flow__selection"
|
|
@@ -60,7 +60,7 @@ export class SelectionBoxComponent {
|
|
|
60
60
|
}
|
|
61
61
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: SelectionBoxComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
65
|
args: [{
|
|
66
66
|
selector: 'ng-flow-selection-box',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-box.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/selection-box/selection-box.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAiC9D,MAAM,OAAO,qBAAqB;IA/BlC;QAgCW,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC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GAAG,CAAC;gBACzD,MAAM,CAAC,GAAG,QAAQ,EAAE,QAAQ,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;gBAC1D,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBACzB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBACzB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC7B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/B,CAAC;YACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;QACvE,CAAC,2FAAC,CAAC;QAEM,4BAAuB,GAAG,QAAQ,CAAC,GAAG,EAAE;YAC/C,MAAM,CAAC,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;YACtC,OAAO,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;QACzC,CAAC,8FAAC,CAAC;KAMJ;IAJC,aAAa,CAAC,KAAiB;QAC7B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC
|
|
1
|
+
{"version":3,"file":"selection-box.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/selection-box/selection-box.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAiC9D,MAAM,OAAO,qBA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I,EAAE;wBACJ,OAAO,EAAE,oBAAoB;qBAC9B;oBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;GAsBT;iBACF"}
|
|
@@ -14,10 +14,10 @@ export class ViewportPortalComponent {
|
|
|
14
14
|
return `translate(${t[0]}px, ${t[1]}px) scale(${t[2]})`;
|
|
15
15
|
}, ...(ngDevMode ? [{ debugName: "cssTransform" }] : /* istanbul ignore next */ []));
|
|
16
16
|
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ViewportPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.15", type: ViewportPortalComponent, isStandalone: true, selector: "ng-flow-viewport-portal", host: { properties: { "style.transform": "cssTransform()" }, classAttribute: "ng-flow__viewport-portal xy-flow__viewport-portal" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ViewportPortalComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
22
|
args: [{
|
|
23
23
|
selector: 'ng-flow-viewport-portal',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-portal.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/viewport-portal/viewport-portal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAE9D;;;;GAIG;AAWH,MAAM,OAAO,uBAAuB;IAVpC;QAWU,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAEzB,iBAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;YACpC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACjC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAC1D,CAAC,mFAAC,CAAC;KACJ
|
|
1
|
+
{"version":3,"file":"viewport-portal.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/viewport-portal/viewport-portal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAE9D;;;;GAIG;AAWH,MAAM,OAAO,uBAAuB;IAVpC;QAWU,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAEzB,iBAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;YACpC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACjC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAC1D,CAAC,mFAAC,CAAC;KACJ;+GAPY,uBAAuB;mGAAvB,uBAAuB,uNAFxB,gBAAgB;;4FAEf,uBAAuB;kBAVnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,mDAAmD;wBAC5D,mBAAmB,EAAE,gBAAgB;qBACtC;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-renderer.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/container/edge-renderer/edge-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,IAAI,EAEL,MAAM,eAAe,CAAC;AAEvB,OAAO,EAWL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAM9D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;
|
|
1
|
+
{"version":3,"file":"edge-renderer.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/container/edge-renderer/edge-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,IAAI,EAEL,MAAM,eAAe,CAAC;AAEvB,OAAO,EAWL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAM9D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;AAcnD,qBAiLa,qBAAqB;IAChC,QAAQ,CAAC,KAAK,8CAAqB;IAEnC,QAAQ,CAAC,eAAe,8CAAa;IAErC,wFAAwF;IACxF,QAAQ,CAAC,mBAAmB,wDAA+B;IAC3D,mIAAmI;IACnI,QAAQ,CAAC,kBAAkB,wDAA+B;IAE1D,QAAQ,CAAC,SAAS;eAAmB,UAAU;cAAQ,IAAI;OAAM;IACjE,QAAQ,CAAC,eAAe;eAAmB,UAAU;cAAQ,IAAI;OAAM;IACvE,QAAQ,CAAC,eAAe;eAAmB,UAAU;cA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,CAAC;IA4G9C,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IA0BnE,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAUrD,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAM7B,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;IAInD,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;IAInD,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAKpC,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAKxC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAM1D,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAM1D,0BAA0B,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAS/D,0BAA0B,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAS/D,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI5C,OAAO,CAAC,mBAAmB;IAiD3B,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,YAAY;yCAlYT,qBAAqB;2CAArB,qBAAqB;CAuYjC"}
|
|
@@ -9,6 +9,7 @@ import { SmoothStepEdgeComponent } from '../../components/edges/smooth-step-edge
|
|
|
9
9
|
import { SimpleBezierEdgeComponent } from '../../components/edges/simple-bezier-edge.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "@angular/common";
|
|
12
|
+
// Keep the key set in sync with BUILT_IN_EDGE_TYPE_NAMES in services/ng-flow.service.ts.
|
|
12
13
|
const builtInEdgeTypeNames = new Set(['default', 'bezier', 'straight', 'step', 'smoothstep', 'simplebezier']);
|
|
13
14
|
const builtInEdgeTypes = {
|
|
14
15
|
default: BezierEdgeComponent,
|
|
@@ -155,8 +156,11 @@ export class EdgeRendererComponent {
|
|
|
155
156
|
let tgtPos = targetHandle?.position ?? edge.targetPosition ?? Position.Top;
|
|
156
157
|
// Self-loops ignore floating and fall back to fixed-handle positions (geometric degeneracy).
|
|
157
158
|
const isSelfLoop = edge.source === edge.target;
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
// Global floating mode (edgeMode="floating" on <ng-flow>) floats every
|
|
160
|
+
// endpoint regardless of handles; otherwise the per-handle flag decides.
|
|
161
|
+
const floatingMode = this.store.edgeMode() === 'floating';
|
|
162
|
+
const sourceFloating = !isSelfLoop && (floatingMode || sourceHandle?.floating === true);
|
|
163
|
+
const targetFloating = !isSelfLoop && (floatingMode || targetHandle?.floating === true);
|
|
160
164
|
const sourceRect = { x: sourcePos.x, y: sourcePos.y, width: sourceW, height: sourceH };
|
|
161
165
|
const targetRect = { x: targetPos.x, y: targetPos.y, width: targetW, height: targetH };
|
|
162
166
|
// Reference points: see spec section "Reference-point resolution".
|
|
@@ -374,8 +378,8 @@ export class EdgeRendererComponent {
|
|
|
374
378
|
return marker;
|
|
375
379
|
return `url('#${getMarkerId(marker, this.store.rfId())}')`;
|
|
376
380
|
}
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
378
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
381
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EdgeRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
382
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: EdgeRendererComponent, isStandalone: true, selector: "ng-flow-edge-renderer", inputs: { reconnectRadius: { classPropertyName: "reconnectRadius", publicName: "reconnectRadius", isSignal: true, isRequired: false, transformFunction: null }, customEdgeTypes: { classPropertyName: "customEdgeTypes", publicName: "customEdgeTypes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { edgeClick: "edgeClick", edgeDoubleClick: "edgeDoubleClick", edgeContextMenu: "edgeContextMenu", edgeMouseEnter: "edgeMouseEnter", edgeMouseMove: "edgeMouseMove", edgeMouseLeave: "edgeMouseLeave", reconnect: "reconnect", reconnectStart: "reconnectStart", reconnectEnd: "reconnectEnd" }, host: { styleAttribute: "position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none;", classAttribute: "ng-flow__edges xy-flow__edges" }, ngImport: i0, template: `
|
|
379
383
|
<svg style="position: absolute; width: 100%; height: 100%; overflow: visible; pointer-events: none;">
|
|
380
384
|
<defs>
|
|
381
385
|
@for (marker of markers(); track marker.id) {
|
|
@@ -542,7 +546,7 @@ export class EdgeRendererComponent {
|
|
|
542
546
|
</div>
|
|
543
547
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
544
548
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EdgeRendererComponent, decorators: [{
|
|
546
550
|
type: Component,
|
|
547
551
|
args: [{
|
|
548
552
|
selector: 'ng-flow-edge-renderer',
|