@angflow/angular 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +24 -35
  2. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -1
  3. package/dist/esm/lib/components/attribution/attribution.component.js +21 -17
  4. package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -1
  5. package/dist/esm/lib/components/background/background.component.js +85 -77
  6. package/dist/esm/lib/components/background/background.component.js.map +1 -1
  7. package/dist/esm/lib/components/connection-line/connection-line.component.js +34 -45
  8. package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -1
  9. package/dist/esm/lib/components/controls/controls.component.js +60 -81
  10. package/dist/esm/lib/components/controls/controls.component.js.map +1 -1
  11. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +14 -19
  12. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -1
  13. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +20 -27
  14. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -1
  15. package/dist/esm/lib/components/edges/base-edge.component.js +30 -27
  16. package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -1
  17. package/dist/esm/lib/components/edges/bezier-edge.component.js +20 -18
  18. package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -1
  19. package/dist/esm/lib/components/edges/edge-text.component.js +24 -23
  20. package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -1
  21. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +19 -17
  22. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -1
  23. package/dist/esm/lib/components/edges/smooth-step-edge.component.js +19 -17
  24. package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -1
  25. package/dist/esm/lib/components/edges/step-edge.component.js +19 -17
  26. package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -1
  27. package/dist/esm/lib/components/edges/straight-edge.component.js +19 -17
  28. package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -1
  29. package/dist/esm/lib/components/handle/handle.component.js +36 -46
  30. package/dist/esm/lib/components/handle/handle.component.js.map +1 -1
  31. package/dist/esm/lib/components/minimap/minimap.component.js +90 -73
  32. package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -1
  33. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +12 -17
  34. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -1
  35. package/dist/esm/lib/components/node-resizer/node-resizer.component.js +83 -50
  36. package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -1
  37. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +22 -29
  38. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -1
  39. package/dist/esm/lib/components/nodes/default-node.component.js +16 -26
  40. package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -1
  41. package/dist/esm/lib/components/nodes/group-node.component.js +14 -15
  42. package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -1
  43. package/dist/esm/lib/components/nodes/input-node.component.js +15 -24
  44. package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -1
  45. package/dist/esm/lib/components/nodes/output-node.component.js +15 -23
  46. package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -1
  47. package/dist/esm/lib/components/panel/panel.component.js +19 -26
  48. package/dist/esm/lib/components/panel/panel.component.js.map +1 -1
  49. package/dist/esm/lib/components/selection-box/selection-box.component.js +26 -28
  50. package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -1
  51. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +15 -22
  52. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -1
  53. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +125 -132
  54. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -1
  55. package/dist/esm/lib/container/ng-flow/ng-flow.component.js +98 -97
  56. package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -1
  57. package/dist/esm/lib/container/node-renderer/node-renderer.component.js +57 -60
  58. package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -1
  59. package/dist/esm/lib/container/pane/pane.component.js +19 -28
  60. package/dist/esm/lib/container/pane/pane.component.js.map +1 -1
  61. package/dist/esm/lib/container/viewport/viewport.component.js +16 -23
  62. package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -1
  63. package/dist/esm/lib/directives/drag.directive.js +9 -9
  64. package/dist/esm/lib/directives/drag.directive.js.map +1 -1
  65. package/dist/esm/lib/directives/drop-zone.directive.js +9 -9
  66. package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -1
  67. package/dist/esm/lib/directives/key-handler.directive.js +13 -15
  68. package/dist/esm/lib/directives/key-handler.directive.js.map +1 -1
  69. package/dist/esm/lib/directives/node-type.directive.js +12 -12
  70. package/dist/esm/lib/directives/node-type.directive.js.map +1 -1
  71. package/dist/esm/lib/services/flow-store.service.js +5 -5
  72. package/dist/esm/lib/services/flow-store.service.js.map +1 -1
  73. package/dist/esm/lib/services/ng-flow.service.js +5 -5
  74. package/dist/esm/lib/services/ng-flow.service.js.map +1 -1
  75. package/package.json +1 -1
@@ -18,35 +18,25 @@ export class DefaultNodeComponent {
18
18
  this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
19
19
  this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
20
20
  }
21
- static { this.ɵfac = function DefaultNodeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DefaultNodeComponent)(); }; }
22
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultNodeComponent, selectors: [["ng-flow-default-node"]], inputs: { id: [1, "id"], data: [1, "data"], type: [1, "type"], selected: [1, "selected"], dragging: [1, "dragging"], zIndex: [1, "zIndex"], isConnectable: [1, "isConnectable"], positionAbsoluteX: [1, "positionAbsoluteX"], positionAbsoluteY: [1, "positionAbsoluteY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], dragHandle: [1, "dragHandle"] }, decls: 4, vars: 3, consts: [["type", "target", 3, "position"], ["type", "source", 3, "position"]], template: function DefaultNodeComponent_Template(rf, ctx) { if (rf & 1) {
23
- i0.ɵɵelement(0, "ng-flow-handle", 0);
24
- i0.ɵɵelementStart(1, "div");
25
- i0.ɵɵtext(2);
26
- i0.ɵɵelementEnd();
27
- i0.ɵɵelement(3, "ng-flow-handle", 1);
28
- } if (rf & 2) {
29
- let tmp_1_0;
30
- i0.ɵɵproperty("position", ctx.Position.Top);
31
- i0.ɵɵadvance(2);
32
- i0.ɵɵtextInterpolate((tmp_1_0 = ctx.data()) == null ? null : tmp_1_0.label);
33
- i0.ɵɵadvance();
34
- i0.ɵɵproperty("position", ctx.Position.Bottom);
35
- } }, dependencies: [HandleComponent], encapsulation: 2, changeDetection: 0 }); }
21
+ 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"], outputs: ["onConnect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
27
  }
37
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultNodeComponent, [{
38
- type: Component,
39
- args: [{
40
- selector: 'ng-flow-default-node',
41
- standalone: true,
42
- imports: [HandleComponent],
43
- changeDetection: ChangeDetectionStrategy.OnPush,
44
- template: `
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DefaultNodeComponent, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: 'ng-flow-default-node',
32
+ standalone: true,
33
+ imports: [HandleComponent],
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ template: `
45
36
  <ng-flow-handle type="target" [position]="Position.Top" />
46
37
  <div>{{ data()?.label }}</div>
47
38
  <ng-flow-handle type="source" [position]="Position.Bottom" />
48
39
  `,
49
- }]
50
- }], null, { 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 }] }] }); })();
51
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DefaultNodeComponent, { className: "DefaultNodeComponent", filePath: "lib/components/nodes/default-node.component.ts", lineNumber: 16 }); })();
40
+ }]
41
+ }], 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 }] }] } });
52
42
  //# sourceMappingURL=default-node.component.js.map
@@ -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;;AAa3C,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;qHAdY,oBAAoB;oEAApB,oBAAoB;YAL7B,oCAA0D;YAC1D,2BAAK;YAAA,YAAmB;YAAA,iBAAM;YAC9B,oCAA6D;;;YAF/B,2CAAyB;YAClD,eAAmB;YAAnB,2EAAmB;YACM,cAA4B;YAA5B,8CAA4B;4BALlD,eAAe;;iFAQd,oBAAoB;cAXhC,SAAS;eAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;GAIT;aACF;;kFACY,oBAAoB"}
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;;AAa3C,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"}
@@ -15,20 +15,19 @@ export class GroupNodeComponent {
15
15
  this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
16
16
  this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
17
17
  }
18
- static { this.ɵfac = function GroupNodeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GroupNodeComponent)(); }; }
19
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GroupNodeComponent, selectors: [["ng-flow-group-node"]], hostAttrs: [2, "width", "100%", "height", "100%"], inputs: { id: [1, "id"], data: [1, "data"], type: [1, "type"], selected: [1, "selected"], dragging: [1, "dragging"], zIndex: [1, "zIndex"], isConnectable: [1, "isConnectable"], positionAbsoluteX: [1, "positionAbsoluteX"], positionAbsoluteY: [1, "positionAbsoluteY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], dragHandle: [1, "dragHandle"] }, decls: 0, vars: 0, template: function GroupNodeComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", 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 }); }
20
20
  }
21
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupNodeComponent, [{
22
- type: Component,
23
- args: [{
24
- selector: 'ng-flow-group-node',
25
- standalone: true,
26
- changeDetection: ChangeDetectionStrategy.OnPush,
27
- host: {
28
- 'style': 'width: 100%; height: 100%;',
29
- },
30
- template: ``,
31
- }]
32
- }], null, { 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 }] }] }); })();
33
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupNodeComponent, { className: "GroupNodeComponent", filePath: "lib/components/nodes/group-node.component.ts", lineNumber: 13 }); })();
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupNodeComponent, decorators: [{
22
+ type: Component,
23
+ args: [{
24
+ selector: 'ng-flow-group-node',
25
+ standalone: true,
26
+ changeDetection: ChangeDetectionStrategy.OnPush,
27
+ host: {
28
+ 'style': 'width: 100%; height: 100%;',
29
+ },
30
+ template: ``,
31
+ }]
32
+ }], 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 }] }] } });
34
33
  //# sourceMappingURL=group-node.component.js.map
@@ -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;;AAY1E,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;mHAbY,kBAAkB;oEAAlB,kBAAkB;;iFAAlB,kBAAkB;cAT9B,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,4BAA4B;iBACtC;gBACD,QAAQ,EAAE,EAAE;aACb;;kFACY,kBAAkB"}
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;;AAY1E,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"}
@@ -18,32 +18,23 @@ export class InputNodeComponent {
18
18
  this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
19
19
  this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
20
20
  }
21
- static { this.ɵfac = function InputNodeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || InputNodeComponent)(); }; }
22
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputNodeComponent, selectors: [["ng-flow-input-node"]], inputs: { id: [1, "id"], data: [1, "data"], type: [1, "type"], selected: [1, "selected"], dragging: [1, "dragging"], zIndex: [1, "zIndex"], isConnectable: [1, "isConnectable"], positionAbsoluteX: [1, "positionAbsoluteX"], positionAbsoluteY: [1, "positionAbsoluteY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], dragHandle: [1, "dragHandle"] }, decls: 3, vars: 2, consts: [["type", "source", 3, "position"]], template: function InputNodeComponent_Template(rf, ctx) { if (rf & 1) {
23
- i0.ɵɵelementStart(0, "div");
24
- i0.ɵɵtext(1);
25
- i0.ɵɵelementEnd();
26
- i0.ɵɵelement(2, "ng-flow-handle", 0);
27
- } if (rf & 2) {
28
- let tmp_0_0;
29
- i0.ɵɵadvance();
30
- i0.ɵɵtextInterpolate((tmp_0_0 = ctx.data()) == null ? null : tmp_0_0.label);
31
- i0.ɵɵadvance();
32
- i0.ɵɵproperty("position", ctx.Position.Bottom);
33
- } }, dependencies: [HandleComponent], encapsulation: 2, changeDetection: 0 }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: InputNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", 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: `
23
+ <div>{{ data()?.label }}</div>
24
+ <ng-flow-handle type="source" [position]="Position.Bottom" />
25
+ `, isInline: true, dependencies: [{ kind: "component", type: HandleComponent, selector: "ng-flow-handle", inputs: ["type", "position", "id", "isConnectable", "isConnectableStart", "isConnectableEnd", "isValidConnection"], outputs: ["onConnect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
26
  }
35
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNodeComponent, [{
36
- type: Component,
37
- args: [{
38
- selector: 'ng-flow-input-node',
39
- standalone: true,
40
- imports: [HandleComponent],
41
- changeDetection: ChangeDetectionStrategy.OnPush,
42
- template: `
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: InputNodeComponent, decorators: [{
28
+ type: Component,
29
+ args: [{
30
+ selector: 'ng-flow-input-node',
31
+ standalone: true,
32
+ imports: [HandleComponent],
33
+ changeDetection: ChangeDetectionStrategy.OnPush,
34
+ template: `
43
35
  <div>{{ data()?.label }}</div>
44
36
  <ng-flow-handle type="source" [position]="Position.Bottom" />
45
37
  `,
46
- }]
47
- }], null, { 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 }] }] }); })();
48
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputNodeComponent, { className: "InputNodeComponent", filePath: "lib/components/nodes/input-node.component.ts", lineNumber: 15 }); })();
38
+ }]
39
+ }], 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 }] }] } });
49
40
  //# sourceMappingURL=input-node.component.js.map
@@ -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;;AAY3C,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;mHAdY,kBAAkB;oEAAlB,kBAAkB;YAJ3B,2BAAK;YAAA,YAAmB;YAAA,iBAAM;YAC9B,oCAA6D;;;YADxD,cAAmB;YAAnB,2EAAmB;YACM,cAA4B;YAA5B,8CAA4B;4BAJlD,eAAe;;iFAOd,kBAAkB;cAV9B,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;GAGT;aACF;;kFACY,kBAAkB"}
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;;AAY3C,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;8GAdY,kBAAkB;kGAAlB,kBAAkB,oqDALnB;;;GAGT,4DALS,eAAe;;2FAOd,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"}
@@ -18,31 +18,23 @@ export class OutputNodeComponent {
18
18
  this.targetPosition = input(...(ngDevMode ? [undefined, { debugName: "targetPosition" }] : /* istanbul ignore next */ []));
19
19
  this.dragHandle = input(...(ngDevMode ? [undefined, { debugName: "dragHandle" }] : /* istanbul ignore next */ []));
20
20
  }
21
- static { this.ɵfac = function OutputNodeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || OutputNodeComponent)(); }; }
22
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OutputNodeComponent, selectors: [["ng-flow-output-node"]], inputs: { id: [1, "id"], data: [1, "data"], type: [1, "type"], selected: [1, "selected"], dragging: [1, "dragging"], zIndex: [1, "zIndex"], isConnectable: [1, "isConnectable"], positionAbsoluteX: [1, "positionAbsoluteX"], positionAbsoluteY: [1, "positionAbsoluteY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], dragHandle: [1, "dragHandle"] }, decls: 3, vars: 2, consts: [["type", "target", 3, "position"]], template: function OutputNodeComponent_Template(rf, ctx) { if (rf & 1) {
23
- i0.ɵɵelement(0, "ng-flow-handle", 0);
24
- i0.ɵɵelementStart(1, "div");
25
- i0.ɵɵtext(2);
26
- i0.ɵɵelementEnd();
27
- } if (rf & 2) {
28
- let tmp_1_0;
29
- i0.ɵɵproperty("position", ctx.Position.Top);
30
- i0.ɵɵadvance(2);
31
- i0.ɵɵtextInterpolate((tmp_1_0 = ctx.data()) == null ? null : tmp_1_0.label);
32
- } }, dependencies: [HandleComponent], encapsulation: 2, changeDetection: 0 }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: OutputNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", 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: `
23
+ <ng-flow-handle type="target" [position]="Position.Top" />
24
+ <div>{{ data()?.label }}</div>
25
+ `, isInline: true, dependencies: [{ kind: "component", type: HandleComponent, selector: "ng-flow-handle", inputs: ["type", "position", "id", "isConnectable", "isConnectableStart", "isConnectableEnd", "isValidConnection"], outputs: ["onConnect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
26
  }
34
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OutputNodeComponent, [{
35
- type: Component,
36
- args: [{
37
- selector: 'ng-flow-output-node',
38
- standalone: true,
39
- imports: [HandleComponent],
40
- changeDetection: ChangeDetectionStrategy.OnPush,
41
- template: `
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: OutputNodeComponent, decorators: [{
28
+ type: Component,
29
+ args: [{
30
+ selector: 'ng-flow-output-node',
31
+ standalone: true,
32
+ imports: [HandleComponent],
33
+ changeDetection: ChangeDetectionStrategy.OnPush,
34
+ template: `
42
35
  <ng-flow-handle type="target" [position]="Position.Top" />
43
36
  <div>{{ data()?.label }}</div>
44
37
  `,
45
- }]
46
- }], null, { 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 }] }] }); })();
47
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OutputNodeComponent, { className: "OutputNodeComponent", filePath: "lib/components/nodes/output-node.component.ts", lineNumber: 15 }); })();
38
+ }]
39
+ }], 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 }] }] } });
48
40
  //# sourceMappingURL=output-node.component.js.map
@@ -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;;AAY3C,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;oHAdY,mBAAmB;oEAAnB,mBAAmB;YAJ5B,oCAA0D;YAC1D,2BAAK;YAAA,YAAmB;YAAA,iBAAM;;;YADA,2CAAyB;YAClD,eAAmB;YAAnB,2EAAmB;4BAJhB,eAAe;;iFAOd,mBAAmB;cAV/B,SAAS;eAAC;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,eAAe,CAAC;gBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;GAGT;aACF;;kFACY,mBAAmB"}
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;;AAY3C,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;8GAdY,mBAAmB;kGAAnB,mBAAmB,qqDALpB;;;GAGT,4DALS,eAAe;;2FAOd,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"}
@@ -1,6 +1,5 @@
1
1
  import { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- const _c0 = ["*"];
4
3
  export class PanelComponent {
5
4
  constructor() {
6
5
  this.position = input('top-left', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
@@ -10,30 +9,24 @@ export class PanelComponent {
10
9
  this.isRight = computed(() => this.position().includes('right'), ...(ngDevMode ? [{ debugName: "isRight" }] : /* istanbul ignore next */ []));
11
10
  this.isCenter = computed(() => this.position().includes('center'), ...(ngDevMode ? [{ debugName: "isCenter" }] : /* istanbul ignore next */ []));
12
11
  }
13
- static { this.ɵfac = function PanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PanelComponent)(); }; }
14
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PanelComponent, selectors: [["ng-flow-panel"]], hostAttrs: [1, "ng-flow__panel", "xy-flow__panel"], hostVars: 10, hostBindings: function PanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
15
- i0.ɵɵclassProp("top", ctx.isTop())("bottom", ctx.isBottom())("left", ctx.isLeft())("right", ctx.isRight())("center", ctx.isCenter());
16
- } }, inputs: { position: [1, "position"] }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function PanelComponent_Template(rf, ctx) { if (rf & 1) {
17
- i0.ɵɵprojectionDef();
18
- i0.ɵɵprojection(0);
19
- } }, encapsulation: 2, changeDetection: 0 }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", 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 }); }
20
14
  }
21
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PanelComponent, [{
22
- type: Component,
23
- args: [{
24
- selector: 'ng-flow-panel',
25
- standalone: true,
26
- changeDetection: ChangeDetectionStrategy.OnPush,
27
- host: {
28
- 'class': 'ng-flow__panel xy-flow__panel',
29
- '[class.top]': 'isTop()',
30
- '[class.bottom]': 'isBottom()',
31
- '[class.left]': 'isLeft()',
32
- '[class.right]': 'isRight()',
33
- '[class.center]': 'isCenter()',
34
- },
35
- template: `<ng-content />`,
36
- }]
37
- }], null, { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] }); })();
38
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PanelComponent, { className: "PanelComponent", filePath: "lib/components/panel/panel.component.ts", lineNumber: 18 }); })();
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PanelComponent, decorators: [{
16
+ type: Component,
17
+ args: [{
18
+ selector: 'ng-flow-panel',
19
+ standalone: true,
20
+ changeDetection: ChangeDetectionStrategy.OnPush,
21
+ host: {
22
+ 'class': 'ng-flow__panel xy-flow__panel',
23
+ '[class.top]': 'isTop()',
24
+ '[class.bottom]': 'isBottom()',
25
+ '[class.left]': 'isLeft()',
26
+ '[class.right]': 'isRight()',
27
+ '[class.center]': 'isCenter()',
28
+ },
29
+ template: `<ng-content />`,
30
+ }]
31
+ }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
39
32
  //# sourceMappingURL=panel.component.js.map
@@ -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;;;AAiBpF,MAAM,OAAO,cAAc;IAd3B;QAeW,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;+GARY,cAAc;oEAAd,cAAc;YAAd,sBAAA,WAAO,CAAO,WAAd,cAAU,CAAI,SAAd,YAAQ,CAAM,UAAd,aAAS,CAAK,WAAd,cAAU,CAAI;;;YAFd,kBAAc;;;iFAEd,cAAc;cAd1B,SAAS;eAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,+BAA+B;oBACxC,aAAa,EAAE,SAAS;oBACxB,gBAAgB,EAAE,YAAY;oBAC9B,cAAc,EAAE,UAAU;oBAC1B,eAAe,EAAE,WAAW;oBAC5B,gBAAgB,EAAE,YAAY;iBAC/B;gBACD,QAAQ,EAAE,gBAAgB;aAC3B;;kFACY,cAAc"}
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;;AAiBpF,MAAM,OAAO,cAAc;IAd3B;QAeW,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;8GARY,cAAc;kGAAd,cAAc,2aAFf,gBAAgB;;2FAEf,cAAc;kBAd1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,eAAe;oBACzB,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,+BAA+B;wBACxC,aAAa,EAAE,SAAS;wBACxB,gBAAgB,EAAE,YAAY;wBAC9B,cAAc,EAAE,UAAU;wBAC1B,eAAe,EAAE,WAAW;wBAC5B,gBAAgB,EAAE,YAAY;qBAC/B;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
@@ -1,15 +1,6 @@
1
1
  import { Component, ChangeDetectionStrategy, inject, computed, output } from '@angular/core';
2
2
  import { FlowStore } from '../../services/flow-store.service';
3
3
  import * as i0 from "@angular/core";
4
- function SelectionBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
5
- const _r1 = i0.ɵɵgetCurrentView();
6
- i0.ɵɵdomElementStart(0, "div", 1);
7
- i0.ɵɵdomListener("contextmenu", function SelectionBoxComponent_Conditional_0_Template_div_contextmenu_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onContextMenu($event)); });
8
- i0.ɵɵdomElementEnd();
9
- } if (rf & 2) {
10
- const ctx_r1 = i0.ɵɵnextContext();
11
- i0.ɵɵstyleProp("left", ctx_r1.rect().x, "px")("top", ctx_r1.rect().y, "px")("width", ctx_r1.rect().width, "px")("height", ctx_r1.rect().height, "px");
12
- } }
13
4
  export class SelectionBoxComponent {
14
5
  constructor() {
15
6
  this.store = inject(FlowStore);
@@ -21,23 +12,31 @@ export class SelectionBoxComponent {
21
12
  event.preventDefault();
22
13
  this.contextMenu.emit(event);
23
14
  }
24
- static { this.ɵfac = function SelectionBoxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectionBoxComponent)(); }; }
25
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectionBoxComponent, selectors: [["ng-flow-selection-box"]], hostAttrs: [2, "display", "contents"], outputs: { contextMenu: "contextMenu" }, decls: 1, vars: 1, consts: [[1, "ng-flow__selection", "xy-flow__selection", 2, "position", "absolute", "pointer-events", "all", "z-index", "10", 3, "left", "top", "width", "height"], [1, "ng-flow__selection", "xy-flow__selection", 2, "position", "absolute", "pointer-events", "all", "z-index", "10", 3, "contextmenu"]], template: function SelectionBoxComponent_Template(rf, ctx) { if (rf & 1) {
26
- i0.ɵɵconditionalCreate(0, SelectionBoxComponent_Conditional_0_Template, 1, 8, "div", 0);
27
- } if (rf & 2) {
28
- i0.ɵɵconditional(ctx.isVisible() ? 0 : -1);
29
- } }, encapsulation: 2, changeDetection: 0 }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SelectionBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: SelectionBoxComponent, isStandalone: true, selector: "ng-flow-selection-box", outputs: { contextMenu: "contextMenu" }, host: { styleAttribute: "display: contents;" }, ngImport: i0, template: `
17
+ @if (isVisible()) {
18
+ <div
19
+ class="ng-flow__selection xy-flow__selection"
20
+ style="position: absolute; pointer-events: all; z-index: 10;"
21
+ [style.left.px]="rect()!.x"
22
+ [style.top.px]="rect()!.y"
23
+ [style.width.px]="rect()!.width"
24
+ [style.height.px]="rect()!.height"
25
+ (contextmenu)="onContextMenu($event)"
26
+ ></div>
27
+ }
28
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
30
29
  }
31
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectionBoxComponent, [{
32
- type: Component,
33
- args: [{
34
- selector: 'ng-flow-selection-box',
35
- standalone: true,
36
- changeDetection: ChangeDetectionStrategy.OnPush,
37
- host: {
38
- 'style': 'display: contents;',
39
- },
40
- template: `
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SelectionBoxComponent, decorators: [{
31
+ type: Component,
32
+ args: [{
33
+ selector: 'ng-flow-selection-box',
34
+ standalone: true,
35
+ changeDetection: ChangeDetectionStrategy.OnPush,
36
+ host: {
37
+ 'style': 'display: contents;',
38
+ },
39
+ template: `
41
40
  @if (isVisible()) {
42
41
  <div
43
42
  class="ng-flow__selection xy-flow__selection"
@@ -50,7 +49,6 @@ export class SelectionBoxComponent {
50
49
  ></div>
51
50
  }
52
51
  `,
53
- }]
54
- }], null, { contextMenu: [{ type: i0.Output, args: ["contextMenu"] }] }); })();
55
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectionBoxComponent, { className: "SelectionBoxComponent", filePath: "lib/components/selection-box/selection-box.component.ts", lineNumber: 25 }); })();
52
+ }]
53
+ }], propDecorators: { contextMenu: [{ type: i0.Output, args: ["contextMenu"] }] } });
56
54
  //# sourceMappingURL=selection-box.component.js.map
@@ -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;;;;IAWxD,iCAQC;IADC,2MAAe,4BAAqB,KAAC;IACtC,oBAAM;;;IAFL,AADA,AADA,AADA,6CAA2B,8BACD,oCACM,sCACE;;AAM1C,MAAM,OAAO,qBAAqB;IArBlC;QAsBW,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAE1B,gBAAW,GAAG,MAAM,EAAc,CAAC;QAEnC,cAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,IAAI,gFAAC,CAAC;QACxG,SAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,2EAAC,CAAC;KAMhE;IAJC,aAAa,CAAC,KAAiB;QAC7B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;sHAXU,qBAAqB;oEAArB,qBAAqB;YAb9B,uFAAmB;;YAAnB,0CAUC;;;iFAGQ,qBAAqB;cArBjC,SAAS;eAAC;gBACT,QAAQ,EAAE,uBAAuB;gBACjC,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,oBAAoB;iBAC9B;gBACD,QAAQ,EAAE;;;;;;;;;;;;GAYT;aACF;;kFACY,qBAAqB"}
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;;AAuB9D,MAAM,OAAO,qBAAqB;IArBlC;QAsBW,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAE1B,gBAAW,GAAG,MAAM,EAAc,CAAC;QAEnC,cAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,IAAI,gFAAC,CAAC;QACxG,SAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,2EAAC,CAAC;KAMhE;IAJC,aAAa,CAAC,KAAiB;QAC7B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;8GAXU,qBAAqB;kGAArB,qBAAqB,0KAdtB;;;;;;;;;;;;GAYT;;2FAEU,qBAAqB;kBArBjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,oBAAoB;qBAC9B;oBACD,QAAQ,EAAE;;;;;;;;;;;;GAYT;iBACF"}
@@ -1,7 +1,6 @@
1
1
  import { Component, ChangeDetectionStrategy, inject, computed } from '@angular/core';
2
2
  import { FlowStore } from '../../services/flow-store.service';
3
3
  import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
4
  export class ViewportPortalComponent {
6
5
  constructor() {
7
6
  this.store = inject(FlowStore);
@@ -10,26 +9,20 @@ export class ViewportPortalComponent {
10
9
  return `translate(${t[0]}px, ${t[1]}px) scale(${t[2]})`;
11
10
  }, ...(ngDevMode ? [{ debugName: "cssTransform" }] : /* istanbul ignore next */ []));
12
11
  }
13
- static { this.ɵfac = function ViewportPortalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ViewportPortalComponent)(); }; }
14
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewportPortalComponent, selectors: [["ng-flow-viewport-portal"]], hostAttrs: [1, "ng-flow__viewport-portal", "xy-flow__viewport-portal"], hostVars: 2, hostBindings: function ViewportPortalComponent_HostBindings(rf, ctx) { if (rf & 2) {
15
- i0.ɵɵstyleProp("transform", ctx.cssTransform());
16
- } }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function ViewportPortalComponent_Template(rf, ctx) { if (rf & 1) {
17
- i0.ɵɵprojectionDef();
18
- i0.ɵɵprojection(0);
19
- } }, encapsulation: 2, changeDetection: 0 }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ViewportPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", 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 }); }
20
14
  }
21
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewportPortalComponent, [{
22
- type: Component,
23
- args: [{
24
- selector: 'ng-flow-viewport-portal',
25
- standalone: true,
26
- changeDetection: ChangeDetectionStrategy.OnPush,
27
- host: {
28
- 'class': 'ng-flow__viewport-portal xy-flow__viewport-portal',
29
- '[style.transform]': 'cssTransform()',
30
- },
31
- template: `<ng-content />`,
32
- }]
33
- }], null, null); })();
34
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ViewportPortalComponent, { className: "ViewportPortalComponent", filePath: "lib/components/viewport-portal/viewport-portal.component.ts", lineNumber: 14 }); })();
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ViewportPortalComponent, decorators: [{
16
+ type: Component,
17
+ args: [{
18
+ selector: 'ng-flow-viewport-portal',
19
+ standalone: true,
20
+ changeDetection: ChangeDetectionStrategy.OnPush,
21
+ host: {
22
+ 'class': 'ng-flow__viewport-portal xy-flow__viewport-portal',
23
+ '[style.transform]': 'cssTransform()',
24
+ },
25
+ template: `<ng-content />`,
26
+ }]
27
+ }] });
35
28
  //# sourceMappingURL=viewport-portal.component.js.map
@@ -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;;;AAY9D,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;wHAPY,uBAAuB;oEAAvB,uBAAuB;YAAvB,4BAAA,kBAAc,CAAS;;;YAFvB,kBAAc;;;iFAEd,uBAAuB;cAVnC,SAAS;eAAC;gBACT,QAAQ,EAAE,yBAAyB;gBACnC,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,mDAAmD;oBAC5D,mBAAmB,EAAE,gBAAgB;iBACtC;gBACD,QAAQ,EAAE,gBAAgB;aAC3B;;kFACY,uBAAuB"}
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;;AAY9D,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;8GAPY,uBAAuB;kGAAvB,uBAAuB,uNAFxB,gBAAgB;;2FAEf,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"}