@angflow/angular 0.0.1 → 0.0.3

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 (97) 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.d.ts.map +1 -1
  10. package/dist/esm/lib/components/controls/controls.component.js +83 -86
  11. package/dist/esm/lib/components/controls/controls.component.js.map +1 -1
  12. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +14 -19
  13. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -1
  14. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +20 -27
  15. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -1
  16. package/dist/esm/lib/components/edges/base-edge.component.js +30 -27
  17. package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -1
  18. package/dist/esm/lib/components/edges/bezier-edge.component.js +20 -18
  19. package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -1
  20. package/dist/esm/lib/components/edges/edge-text.component.js +24 -23
  21. package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -1
  22. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +19 -17
  23. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -1
  24. package/dist/esm/lib/components/edges/smooth-step-edge.component.js +19 -17
  25. package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -1
  26. package/dist/esm/lib/components/edges/step-edge.component.js +19 -17
  27. package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -1
  28. package/dist/esm/lib/components/edges/straight-edge.component.js +19 -17
  29. package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -1
  30. package/dist/esm/lib/components/handle/handle.component.js +36 -46
  31. package/dist/esm/lib/components/handle/handle.component.js.map +1 -1
  32. package/dist/esm/lib/components/minimap/minimap.component.d.ts +8 -0
  33. package/dist/esm/lib/components/minimap/minimap.component.d.ts.map +1 -1
  34. package/dist/esm/lib/components/minimap/minimap.component.js +174 -75
  35. package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -1
  36. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +12 -17
  37. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -1
  38. package/dist/esm/lib/components/node-resizer/node-resizer.component.js +83 -50
  39. package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -1
  40. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts +1 -1
  41. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts.map +1 -1
  42. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +28 -29
  43. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -1
  44. package/dist/esm/lib/components/nodes/default-node.component.js +16 -26
  45. package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -1
  46. package/dist/esm/lib/components/nodes/group-node.component.js +14 -15
  47. package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -1
  48. package/dist/esm/lib/components/nodes/input-node.component.js +15 -24
  49. package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -1
  50. package/dist/esm/lib/components/nodes/output-node.component.js +15 -23
  51. package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -1
  52. package/dist/esm/lib/components/panel/panel.component.js +19 -26
  53. package/dist/esm/lib/components/panel/panel.component.js.map +1 -1
  54. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts +7 -0
  55. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts.map +1 -1
  56. package/dist/esm/lib/components/selection-box/selection-box.component.js +69 -28
  57. package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -1
  58. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +15 -22
  59. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -1
  60. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts +6 -0
  61. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts.map +1 -1
  62. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +192 -139
  63. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -1
  64. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts +2 -0
  65. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts.map +1 -1
  66. package/dist/esm/lib/container/ng-flow/ng-flow.component.js +135 -101
  67. package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -1
  68. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts +4 -0
  69. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts.map +1 -1
  70. package/dist/esm/lib/container/node-renderer/node-renderer.component.js +164 -109
  71. package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -1
  72. package/dist/esm/lib/container/pane/pane.component.d.ts.map +1 -1
  73. package/dist/esm/lib/container/pane/pane.component.js +23 -28
  74. package/dist/esm/lib/container/pane/pane.component.js.map +1 -1
  75. package/dist/esm/lib/container/viewport/viewport.component.js +16 -23
  76. package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -1
  77. package/dist/esm/lib/directives/drag.directive.js +10 -10
  78. package/dist/esm/lib/directives/drag.directive.js.map +1 -1
  79. package/dist/esm/lib/directives/drop-zone.directive.js +9 -9
  80. package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -1
  81. package/dist/esm/lib/directives/key-handler.directive.js +13 -15
  82. package/dist/esm/lib/directives/key-handler.directive.js.map +1 -1
  83. package/dist/esm/lib/directives/node-type.directive.js +12 -12
  84. package/dist/esm/lib/directives/node-type.directive.js.map +1 -1
  85. package/dist/esm/lib/services/flow-store.service.d.ts +7 -0
  86. package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -1
  87. package/dist/esm/lib/services/flow-store.service.js +28 -5
  88. package/dist/esm/lib/services/flow-store.service.js.map +1 -1
  89. package/dist/esm/lib/services/ng-flow.service.d.ts +9 -9
  90. package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -1
  91. package/dist/esm/lib/services/ng-flow.service.js +18 -19
  92. package/dist/esm/lib/services/ng-flow.service.js.map +1 -1
  93. package/dist/esm/test-setup.d.ts +2 -0
  94. package/dist/esm/test-setup.d.ts.map +1 -0
  95. package/dist/esm/test-setup.js +6 -0
  96. package/dist/esm/test-setup.js.map +1 -0
  97. package/package.json +9 -3
@@ -3,55 +3,6 @@ import { FlowStore } from '../../services/flow-store.service';
3
3
  import { NgFlowService } from '../../services/ng-flow.service';
4
4
  import { PanelComponent } from '../panel/panel.component';
5
5
  import * as i0 from "@angular/core";
6
- const _c0 = ["*"];
7
- function ControlsComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
8
- const _r1 = i0.ɵɵgetCurrentView();
9
- i0.ɵɵelementStart(0, "button", 4);
10
- i0.ɵɵlistener("click", function ControlsComponent_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onZoomIn()); });
11
- i0.ɵɵnamespaceSVG();
12
- i0.ɵɵelementStart(1, "svg", 5);
13
- i0.ɵɵelement(2, "path", 6);
14
- i0.ɵɵelementEnd()();
15
- i0.ɵɵnamespaceHTML();
16
- i0.ɵɵelementStart(3, "button", 7);
17
- i0.ɵɵlistener("click", function ControlsComponent_Conditional_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onZoomOut()); });
18
- i0.ɵɵnamespaceSVG();
19
- i0.ɵɵelementStart(4, "svg", 5);
20
- i0.ɵɵelement(5, "path", 8);
21
- i0.ɵɵelementEnd()();
22
- } }
23
- function ControlsComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
24
- const _r3 = i0.ɵɵgetCurrentView();
25
- i0.ɵɵelementStart(0, "button", 9);
26
- i0.ɵɵlistener("click", function ControlsComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFitView()); });
27
- i0.ɵɵnamespaceSVG();
28
- i0.ɵɵelementStart(1, "svg", 5);
29
- i0.ɵɵelement(2, "path", 10);
30
- i0.ɵɵelementEnd()();
31
- } }
32
- function ControlsComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
33
- i0.ɵɵnamespaceSVG();
34
- i0.ɵɵelementStart(0, "svg", 12);
35
- i0.ɵɵelement(1, "path", 13);
36
- i0.ɵɵelementEnd();
37
- } }
38
- function ControlsComponent_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵnamespaceSVG();
40
- i0.ɵɵelementStart(0, "svg", 12);
41
- i0.ɵɵelement(1, "path", 14);
42
- i0.ɵɵelementEnd();
43
- } }
44
- function ControlsComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
45
- const _r4 = i0.ɵɵgetCurrentView();
46
- i0.ɵɵelementStart(0, "button", 11);
47
- i0.ɵɵlistener("click", function ControlsComponent_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onToggleLock()); });
48
- i0.ɵɵconditionalCreate(1, ControlsComponent_Conditional_4_Conditional_1_Template, 2, 0, ":svg:svg", 12)(2, ControlsComponent_Conditional_4_Conditional_2_Template, 2, 0, ":svg:svg", 12);
49
- i0.ɵɵelementEnd();
50
- } if (rf & 2) {
51
- const ctx_r1 = i0.ɵɵnextContext();
52
- i0.ɵɵadvance();
53
- i0.ɵɵconditional(ctx_r1.isLocked() ? 1 : 2);
54
- } }
55
6
  export class ControlsComponent {
56
7
  constructor() {
57
8
  this.store = inject(FlowStore);
@@ -90,36 +41,74 @@ export class ControlsComponent {
90
41
  this.store.elementsSelectable.set(!locked);
91
42
  this.interactiveChange.emit(!locked);
92
43
  }
93
- static { this.ɵfac = function ControlsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ControlsComponent)(); }; }
94
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ControlsComponent, selectors: [["ng-flow-controls"]], inputs: { position: [1, "position"], showZoom: [1, "showZoom"], showFitView: [1, "showFitView"], showInteractive: [1, "showInteractive"], fitViewOptions: [1, "fitViewOptions"], orientation: [1, "orientation"], ariaLabel: [1, "ariaLabel"] }, outputs: { zoomInClick: "zoomInClick", zoomOutClick: "zoomOutClick", fitViewClick: "fitViewClick", interactiveChange: "interactiveChange" }, ngContentSelectors: _c0, decls: 6, vars: 7, consts: [[3, "position"], [1, "ng-flow__controls", "xy-flow__controls"], ["title", "fit view", 1, "ng-flow__controls-button", "xy-flow__controls-button"], ["title", "toggle interactivity", 1, "ng-flow__controls-button", "xy-flow__controls-button"], ["title", "zoom in", 1, "ng-flow__controls-button", "xy-flow__controls-button", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 32 32"], ["d", "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"], ["title", "zoom out", 1, "ng-flow__controls-button", "xy-flow__controls-button", 3, "click"], ["d", "M0 13.867h32v4.266H0z"], ["title", "fit view", 1, "ng-flow__controls-button", "xy-flow__controls-button", 3, "click"], ["d", "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 01-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"], ["title", "toggle interactivity", 1, "ng-flow__controls-button", "xy-flow__controls-button", 3, "click"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 32"], ["d", "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"], ["d", "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"]], template: function ControlsComponent_Template(rf, ctx) { if (rf & 1) {
95
- i0.ɵɵprojectionDef();
96
- i0.ɵɵelementStart(0, "ng-flow-panel", 0)(1, "div", 1);
97
- i0.ɵɵconditionalCreate(2, ControlsComponent_Conditional_2_Template, 6, 0);
98
- i0.ɵɵconditionalCreate(3, ControlsComponent_Conditional_3_Template, 3, 0, "button", 2);
99
- i0.ɵɵconditionalCreate(4, ControlsComponent_Conditional_4_Template, 3, 1, "button", 3);
100
- i0.ɵɵprojection(5);
101
- i0.ɵɵelementEnd()();
102
- } if (rf & 2) {
103
- i0.ɵɵproperty("position", ctx.position());
104
- i0.ɵɵadvance();
105
- i0.ɵɵclassProp("horizontal", ctx.orientation() === "horizontal");
106
- i0.ɵɵattribute("aria-label", ctx.ariaLabel());
107
- i0.ɵɵadvance();
108
- i0.ɵɵconditional(ctx.showZoom() ? 2 : -1);
109
- i0.ɵɵadvance();
110
- i0.ɵɵconditional(ctx.showFitView() ? 3 : -1);
111
- i0.ɵɵadvance();
112
- i0.ɵɵconditional(ctx.showInteractive() ? 4 : -1);
113
- } }, dependencies: [PanelComponent], encapsulation: 2, changeDetection: 0 }); }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ControlsComponent, isStandalone: true, selector: "ng-flow-controls", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showZoom: { classPropertyName: "showZoom", publicName: "showZoom", isSignal: true, isRequired: false, transformFunction: null }, showFitView: { classPropertyName: "showFitView", publicName: "showFitView", isSignal: true, isRequired: false, transformFunction: null }, showInteractive: { classPropertyName: "showInteractive", publicName: "showInteractive", isSignal: true, isRequired: false, transformFunction: null }, fitViewOptions: { classPropertyName: "fitViewOptions", publicName: "fitViewOptions", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zoomInClick: "zoomInClick", zoomOutClick: "zoomOutClick", fitViewClick: "fitViewClick", interactiveChange: "interactiveChange" }, ngImport: i0, template: `
46
+ <ng-flow-panel [position]="position()">
47
+ <div
48
+ class="ng-flow__controls xy-flow__controls"
49
+ [class.horizontal]="orientation() === 'horizontal'"
50
+ [attr.aria-label]="ariaLabel()"
51
+ >
52
+ @if (showZoom()) {
53
+ <button
54
+ type="button"
55
+ class="ng-flow__controls-button xy-flow__controls-button"
56
+ title="zoom in"
57
+ aria-label="zoom in"
58
+ (click)="onZoomIn()"
59
+ >
60
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"/></svg>
61
+ </button>
62
+ <button
63
+ type="button"
64
+ class="ng-flow__controls-button xy-flow__controls-button"
65
+ title="zoom out"
66
+ aria-label="zoom out"
67
+ (click)="onZoomOut()"
68
+ >
69
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M0 13.867h32v4.266H0z"/></svg>
70
+ </button>
71
+ }
72
+ @if (showFitView()) {
73
+ <button
74
+ type="button"
75
+ class="ng-flow__controls-button xy-flow__controls-button"
76
+ title="fit view"
77
+ aria-label="fit view"
78
+ (click)="onFitView()"
79
+ >
80
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 01-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"/></svg>
81
+ </button>
82
+ }
83
+ @if (showInteractive()) {
84
+ <button
85
+ type="button"
86
+ class="ng-flow__controls-button xy-flow__controls-button"
87
+ title="toggle interactivity"
88
+ aria-label="toggle interactivity"
89
+ [attr.aria-pressed]="isLocked()"
90
+ (click)="onToggleLock()"
91
+ >
92
+ @if (isLocked()) {
93
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32" aria-hidden="true"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"/></svg>
94
+ } @else {
95
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32" aria-hidden="true"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"/></svg>
96
+ }
97
+ </button>
98
+ }
99
+ <ng-content />
100
+ </div>
101
+ </ng-flow-panel>
102
+ `, isInline: true, dependencies: [{ kind: "component", type: PanelComponent, selector: "ng-flow-panel", inputs: ["position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
114
103
  }
115
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ControlsComponent, [{
116
- type: Component,
117
- args: [{
118
- selector: 'ng-flow-controls',
119
- standalone: true,
120
- imports: [PanelComponent],
121
- changeDetection: ChangeDetectionStrategy.OnPush,
122
- template: `
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ControlsComponent, decorators: [{
105
+ type: Component,
106
+ args: [{
107
+ selector: 'ng-flow-controls',
108
+ standalone: true,
109
+ imports: [PanelComponent],
110
+ changeDetection: ChangeDetectionStrategy.OnPush,
111
+ template: `
123
112
  <ng-flow-panel [position]="position()">
124
113
  <div
125
114
  class="ng-flow__controls xy-flow__controls"
@@ -128,39 +117,48 @@ export class ControlsComponent {
128
117
  >
129
118
  @if (showZoom()) {
130
119
  <button
120
+ type="button"
131
121
  class="ng-flow__controls-button xy-flow__controls-button"
132
122
  title="zoom in"
123
+ aria-label="zoom in"
133
124
  (click)="onZoomIn()"
134
125
  >
135
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"/></svg>
126
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"/></svg>
136
127
  </button>
137
128
  <button
129
+ type="button"
138
130
  class="ng-flow__controls-button xy-flow__controls-button"
139
131
  title="zoom out"
132
+ aria-label="zoom out"
140
133
  (click)="onZoomOut()"
141
134
  >
142
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M0 13.867h32v4.266H0z"/></svg>
135
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M0 13.867h32v4.266H0z"/></svg>
143
136
  </button>
144
137
  }
145
138
  @if (showFitView()) {
146
139
  <button
140
+ type="button"
147
141
  class="ng-flow__controls-button xy-flow__controls-button"
148
142
  title="fit view"
143
+ aria-label="fit view"
149
144
  (click)="onFitView()"
150
145
  >
151
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 01-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"/></svg>
146
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true"><path d="M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 01-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"/></svg>
152
147
  </button>
153
148
  }
154
149
  @if (showInteractive()) {
155
150
  <button
151
+ type="button"
156
152
  class="ng-flow__controls-button xy-flow__controls-button"
157
153
  title="toggle interactivity"
154
+ aria-label="toggle interactivity"
155
+ [attr.aria-pressed]="isLocked()"
158
156
  (click)="onToggleLock()"
159
157
  >
160
158
  @if (isLocked()) {
161
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"/></svg>
159
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32" aria-hidden="true"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"/></svg>
162
160
  } @else {
163
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"/></svg>
161
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 32" aria-hidden="true"><path d="M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"/></svg>
164
162
  }
165
163
  </button>
166
164
  }
@@ -168,7 +166,6 @@ export class ControlsComponent {
168
166
  </div>
169
167
  </ng-flow-panel>
170
168
  `,
171
- }]
172
- }], null, { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZoom", required: false }] }], showFitView: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFitView", required: false }] }], showInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInteractive", required: false }] }], fitViewOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitViewOptions", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], zoomInClick: [{ type: i0.Output, args: ["zoomInClick"] }], zoomOutClick: [{ type: i0.Output, args: ["zoomOutClick"] }], fitViewClick: [{ type: i0.Output, args: ["fitViewClick"] }], interactiveChange: [{ type: i0.Output, args: ["interactiveChange"] }] }); })();
173
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ControlsComponent, { className: "ControlsComponent", filePath: "lib/components/controls/controls.component.ts", lineNumber: 62 }); })();
169
+ }]
170
+ }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZoom", required: false }] }], showFitView: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFitView", required: false }] }], showInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInteractive", required: false }] }], fitViewOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitViewOptions", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], zoomInClick: [{ type: i0.Output, args: ["zoomInClick"] }], zoomOutClick: [{ type: i0.Output, args: ["zoomOutClick"] }], fitViewClick: [{ type: i0.Output, args: ["fitViewClick"] }], interactiveChange: [{ type: i0.Output, args: ["interactiveChange"] }] } });
174
171
  //# sourceMappingURL=controls.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controls.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/controls/controls.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;;;;IAehD,iCAIC;IADC,qLAAS,iBAAU,KAAC;;IAEpB,8BAA4D;IAAA,0BAAiF;IAC/I,AAD+I,iBAAM,EAC5I;;IACT,iCAIC;IADC,qLAAS,kBAAW,KAAC;;IAErB,8BAA4D;IAAA,0BAAiC;IAC/F,AAD+F,iBAAM,EAC5F;;;;IAGT,iCAIC;IADC,qLAAS,kBAAW,KAAC;;IAErB,8BAA4D;IAAA,2BAAqY;IACnc,AADmc,iBAAM,EAChc;;;;IASL,+BAA4D;IAAA,2BAA0c;IAAA,iBAAM;;;;IAE5gB,+BAA4D;IAAA,2BAAgZ;IAAA,iBAAM;;;;IARtd,kCAIC;IADC,qLAAS,qBAAc,KAAC;IAItB,AAFF,uGAAkB,iFAET;IAGX,iBAAS;;;IALP,cAIC;IAJD,2CAIC;;AAQb,MAAM,OAAO,iBAAiB;IAvD9B;QAwDU,UAAK,GAAG,MAAM,CAAC,SAA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AC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;kHA1CU,iBAAiB;oEAAjB,iBAAiB;;YAhDxB,AADF,wCAAuC,aAKpC;YACC,yEAAkB;YAgBlB,sFAAqB;YASrB,sFAAyB;YAazB,kBAAc;YAElB,AADE,iBAAM,EACQ;;YA9CD,yCAAuB;YAGlC,cAAmD;YAAnD,gEAAmD;;YAGnD,cAeC;YAfD,yCAeC;YACD,cAQC;YARD,4CAQC;YACD,cAYC;YAZD,gDAYC;4BA9CG,cAAc;;iFAoDb,iBAAiB;cAvD7B,SAAS;eAAC;gBACT,QAAQ,EAAE,kBAAkB;gBAC5B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDT;aACF;;kFACY,iBAAiB"}
1
+ {"version":3,"file":"controls.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/controls/controls.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;AAkE1D,MAAM,OAAO,iBAAiB;IAhE9B;QAiEU,UAAK,GAAG,MA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AAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;8GA1CU,iBAAiB;kGAAjB,iBAAiB,wqCA3DlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDT,4DA3DS,cAAc;;2FA6Db,iBAAiB;kBAhE7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDT;iBACF"}
@@ -1,24 +1,19 @@
1
1
  import { Component, ChangeDetectionStrategy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- const _c0 = ["*"];
4
3
  export class EdgeLabelRendererComponent {
5
- static { this.ɵfac = function EdgeLabelRendererComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EdgeLabelRendererComponent)(); }; }
6
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EdgeLabelRendererComponent, selectors: [["ng-flow-edge-label-renderer"]], hostAttrs: [1, "ng-flow__edgelabel-renderer", "xy-flow__edgelabel-renderer"], ngContentSelectors: _c0, decls: 1, vars: 0, template: function EdgeLabelRendererComponent_Template(rf, ctx) { if (rf & 1) {
7
- i0.ɵɵprojectionDef();
8
- i0.ɵɵprojection(0);
9
- } }, encapsulation: 2, changeDetection: 0 }); }
4
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EdgeLabelRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", type: EdgeLabelRendererComponent, isStandalone: true, selector: "ng-flow-edge-label-renderer", host: { classAttribute: "ng-flow__edgelabel-renderer xy-flow__edgelabel-renderer" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10
6
  }
11
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EdgeLabelRendererComponent, [{
12
- type: Component,
13
- args: [{
14
- selector: 'ng-flow-edge-label-renderer',
15
- standalone: true,
16
- changeDetection: ChangeDetectionStrategy.OnPush,
17
- host: {
18
- 'class': 'ng-flow__edgelabel-renderer xy-flow__edgelabel-renderer',
19
- },
20
- template: `<ng-content />`,
21
- }]
22
- }], null, null); })();
23
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EdgeLabelRendererComponent, { className: "EdgeLabelRendererComponent", filePath: "lib/components/edge-label-renderer/edge-label-renderer.component.ts", lineNumber: 12 }); })();
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EdgeLabelRendererComponent, decorators: [{
8
+ type: Component,
9
+ args: [{
10
+ selector: 'ng-flow-edge-label-renderer',
11
+ standalone: true,
12
+ changeDetection: ChangeDetectionStrategy.OnPush,
13
+ host: {
14
+ 'class': 'ng-flow__edgelabel-renderer xy-flow__edgelabel-renderer',
15
+ },
16
+ template: `<ng-content />`,
17
+ }]
18
+ }] });
24
19
  //# sourceMappingURL=edge-label-renderer.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-label-renderer.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge-label-renderer/edge-label-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;;AAWnE,MAAM,OAAO,0BAA0B;2HAA1B,0BAA0B;oEAA1B,0BAA0B;;YAF1B,kBAAc;;;iFAEd,0BAA0B;cATtC,SAAS;eAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,yDAAyD;iBACnE;gBACD,QAAQ,EAAE,gBAAgB;aAC3B;;kFACY,0BAA0B"}
1
+ {"version":3,"file":"edge-label-renderer.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge-label-renderer/edge-label-renderer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;AAWnE,MAAM,OAAO,0BAA0B;8GAA1B,0BAA0B;kGAA1B,0BAA0B,4KAF3B,gBAAgB;;2FAEf,0BAA0B;kBATtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,6BAA6B;oBACvC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,yDAAyD;qBACnE;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
@@ -2,7 +2,6 @@ import { Component, ChangeDetectionStrategy, input, inject, computed } from '@an
2
2
  import { getEdgeToolbarTransform } from '@angflow/system';
3
3
  import { FlowStore } from '../../services/flow-store.service';
4
4
  import * as i0 from "@angular/core";
5
- const _c0 = ["*"];
6
5
  export class EdgeToolbarComponent {
7
6
  constructor() {
8
7
  this.store = inject(FlowStore);
@@ -34,31 +33,25 @@ export class EdgeToolbarComponent {
34
33
  return getEdgeToolbarTransform(this.x(), this.y(), zoom, this.alignX(), this.alignY());
35
34
  }, ...(ngDevMode ? [{ debugName: "toolbarTransform" }] : /* istanbul ignore next */ []));
36
35
  }
37
- static { this.ɵfac = function EdgeToolbarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EdgeToolbarComponent)(); }; }
38
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EdgeToolbarComponent, selectors: [["ng-flow-edge-toolbar"]], hostAttrs: [1, "ng-flow__edge-toolbar", "xy-flow__edge-toolbar"], hostVars: 12, hostBindings: function EdgeToolbarComponent_HostBindings(rf, ctx) { if (rf & 2) {
39
- i0.ɵɵstyleProp("display", ctx.shouldShow() ? "block" : "none")("position", "absolute")("transform", ctx.toolbarTransform())("transform-origin", "0 0")("z-index", ctx.zIndex())("pointer-events", "all");
40
- } }, inputs: { edgeId: [1, "edgeId"], x: [1, "x"], y: [1, "y"], alignX: [1, "alignX"], alignY: [1, "alignY"], isVisible: [1, "isVisible"] }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function EdgeToolbarComponent_Template(rf, ctx) { if (rf & 1) {
41
- i0.ɵɵprojectionDef();
42
- i0.ɵɵprojection(0);
43
- } }, encapsulation: 2, changeDetection: 0 }); }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EdgeToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: EdgeToolbarComponent, isStandalone: true, selector: "ng-flow-edge-toolbar", inputs: { edgeId: { classPropertyName: "edgeId", publicName: "edgeId", isSignal: true, isRequired: true, transformFunction: null }, x: { classPropertyName: "x", publicName: "x", isSignal: true, isRequired: true, transformFunction: null }, y: { classPropertyName: "y", publicName: "y", isSignal: true, isRequired: true, transformFunction: null }, alignX: { classPropertyName: "alignX", publicName: "alignX", isSignal: true, isRequired: false, transformFunction: null }, alignY: { classPropertyName: "alignY", publicName: "alignY", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "shouldShow() ? \"block\" : \"none\"", "style.position": "\"absolute\"", "style.transform": "toolbarTransform()", "style.transform-origin": "\"0 0\"", "style.z-index": "zIndex()", "style.pointer-events": "\"all\"" }, classAttribute: "ng-flow__edge-toolbar xy-flow__edge-toolbar" }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
38
  }
45
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EdgeToolbarComponent, [{
46
- type: Component,
47
- args: [{
48
- selector: 'ng-flow-edge-toolbar',
49
- standalone: true,
50
- changeDetection: ChangeDetectionStrategy.OnPush,
51
- host: {
52
- 'class': 'ng-flow__edge-toolbar xy-flow__edge-toolbar',
53
- '[style.display]': 'shouldShow() ? "block" : "none"',
54
- '[style.position]': '"absolute"',
55
- '[style.transform]': 'toolbarTransform()',
56
- '[style.transform-origin]': '"0 0"',
57
- '[style.z-index]': 'zIndex()',
58
- '[style.pointer-events]': '"all"',
59
- },
60
- template: `<ng-content />`,
61
- }]
62
- }], null, { edgeId: [{ type: i0.Input, args: [{ isSignal: true, alias: "edgeId", required: true }] }], x: [{ type: i0.Input, args: [{ isSignal: true, alias: "x", required: true }] }], y: [{ type: i0.Input, args: [{ isSignal: true, alias: "y", required: true }] }], alignX: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignX", required: false }] }], alignY: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignY", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }] }); })();
63
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EdgeToolbarComponent, { className: "EdgeToolbarComponent", filePath: "lib/components/edge-toolbar/edge-toolbar.component.ts", lineNumber: 20 }); })();
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EdgeToolbarComponent, decorators: [{
40
+ type: Component,
41
+ args: [{
42
+ selector: 'ng-flow-edge-toolbar',
43
+ standalone: true,
44
+ changeDetection: ChangeDetectionStrategy.OnPush,
45
+ host: {
46
+ 'class': 'ng-flow__edge-toolbar xy-flow__edge-toolbar',
47
+ '[style.display]': 'shouldShow() ? "block" : "none"',
48
+ '[style.position]': '"absolute"',
49
+ '[style.transform]': 'toolbarTransform()',
50
+ '[style.transform-origin]': '"0 0"',
51
+ '[style.z-index]': 'zIndex()',
52
+ '[style.pointer-events]': '"all"',
53
+ },
54
+ template: `<ng-content />`,
55
+ }]
56
+ }], propDecorators: { edgeId: [{ type: i0.Input, args: [{ isSignal: true, alias: "edgeId", required: true }] }], x: [{ type: i0.Input, args: [{ isSignal: true, alias: "x", required: true }] }], y: [{ type: i0.Input, args: [{ isSignal: true, alias: "y", required: true }] }], alignX: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignX", required: false }] }], alignY: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignY", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }] } });
64
57
  //# sourceMappingURL=edge-toolbar.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edge-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge-toolbar/edge-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;;AAiB9D,MAAM,OAAO,oBAAoB;IAfjC;QAgBmB,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAE3C,kDAAkD;QACzC,WAAM,GAAG,KAAK,CAAC,QAAQ,4EAAU,CAAC;QAE3C,+CAA+C;QACtC,M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AE,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACzF,CAAC,uFAAC,CAAC;KACJ;qHArCY,oBAAoB;oEAApB,oBAAoB;YAApB,0BAAA,gBAAY,GAAG,OAAO,GACjC,MAAM,CADyB,aAApB,UAAU,CAAU,cAApB,sBAAkB,CAAE,qBAApB,KAAK,CAAe,YAApB,YAAQ,CAAY,mBAApB,KAAK,CAAe;;;YAFpB,kBAAc;;;iFAEd,oBAAoB;cAfhC,SAAS;eAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,6CAA6C;oBACtD,iBAAiB,EAAE,iCAAiC;oBACpD,kBAAkB,EAAE,YAAY;oBAChC,mBAAmB,EAAE,oBAAoB;oBACzC,0BAA0B,EAAE,OAAO;oBACnC,iBAAiB,EAAE,UAAU;oBAC7B,wBAAwB,EAAE,OAAO;iBAClC;gBACD,QAAQ,EAAE,gBAAgB;aAC3B;;kFACY,oBAAoB"}
1
+ {"version":3,"file":"edge-toolbar.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edge-toolbar/edge-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAiB9D,MAAM,OAAO,oBAAoB;IAfjC;QAgBmB,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAE3C,kDAAkD;QACzC,WAAM,GAAG,KAAK,CAAC,QAAQ,4EAAU,CAAC;QAE3C,+CAA+C;QACtC,MAAC,GAAG,KAAK,CAAC,QAAQ,uEAAU,CAAC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AC,MAAM,EAAE,CAAC,CAAC;QACzF,CAAC,uFAAC,CAAC;KACJ;8GArCY,oBAAoB;kGAApB,oBAAoB,umCAFrB,gBAAgB;;2FAEf,oBAAoB;kBAfhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE;wBACJ,OAAO,EAAE,6CAA6C;wBACtD,iBAAiB,EAAE,iCAAiC;wBACpD,kBAAkB,EAAE,YAAY;wBAChC,mBAAmB,EAAE,oBAAoB;wBACzC,0BAA0B,EAAE,OAAO;wBACnC,iBAAiB,EAAE,UAAU;wBAC7B,wBAAwB,EAAE,OAAO;qBAClC;oBACD,QAAQ,EAAE,gBAAgB;iBAC3B"}
@@ -1,11 +1,5 @@
1
1
  import { Component, ChangeDetectionStrategy, input, NO_ERRORS_SCHEMA } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- function BaseEdgeComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
4
- i0.ɵɵdomElement(0, "path", 0);
5
- } if (rf & 2) {
6
- const ctx_r0 = i0.ɵɵnextContext();
7
- i0.ɵɵattribute("d", ctx_r0.path())("stroke-width", ctx_r0.interactionWidth());
8
- } }
9
3
  export class BaseEdgeComponent {
10
4
  constructor() {
11
5
  this.path = input.required(...(ngDevMode ? [{ debugName: "path" }] : /* istanbul ignore next */ []));
@@ -14,25 +8,35 @@ export class BaseEdgeComponent {
14
8
  this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
15
9
  this.interactionWidth = input(20, ...(ngDevMode ? [{ debugName: "interactionWidth" }] : /* istanbul ignore next */ []));
16
10
  }
17
- static { this.ɵfac = function BaseEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseEdgeComponent)(); }; }
18
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BaseEdgeComponent, selectors: [["ng-flow-base-edge"]], hostAttrs: [2, "display", "contents"], inputs: { path: [1, "path"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], style: [1, "style"], interactionWidth: [1, "interactionWidth"] }, decls: 2, vars: 5, consts: [["fill", "none", "stroke", "transparent", 1, "xy-flow__edge-interaction"], [1, "xy-flow__edge-path"]], template: function BaseEdgeComponent_Template(rf, ctx) { if (rf & 1) {
19
- i0.ɵɵconditionalCreate(0, BaseEdgeComponent_Conditional_0_Template, 1, 2, "path", 0);
20
- i0.ɵɵdomElement(1, "path", 1);
21
- } if (rf & 2) {
22
- i0.ɵɵconditional(ctx.interactionWidth() ? 0 : -1);
23
- i0.ɵɵadvance();
24
- i0.ɵɵattribute("d", ctx.path())("marker-start", ctx.markerStart())("marker-end", ctx.markerEnd())("style", ctx.style(), i0.ɵɵsanitizeStyle);
25
- } }, encapsulation: 2, changeDetection: 0 }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseEdgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: BaseEdgeComponent, isStandalone: true, selector: "ng-flow-base-edge", inputs: { path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: true, transformFunction: null }, markerStart: { classPropertyName: "markerStart", publicName: "markerStart", isSignal: true, isRequired: false, transformFunction: null }, markerEnd: { classPropertyName: "markerEnd", publicName: "markerEnd", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, interactionWidth: { classPropertyName: "interactionWidth", publicName: "interactionWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents;" }, ngImport: i0, template: `
13
+ @if (interactionWidth()) {
14
+ <path
15
+ class="xy-flow__edge-interaction"
16
+ [attr.d]="path()"
17
+ fill="none"
18
+ stroke="transparent"
19
+ [attr.stroke-width]="interactionWidth()"
20
+ />
21
+ }
22
+ <path
23
+ class="xy-flow__edge-path"
24
+ [attr.d]="path()"
25
+ [attr.marker-start]="markerStart()"
26
+ [attr.marker-end]="markerEnd()"
27
+ [attr.style]="style()"
28
+ />
29
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
30
  }
27
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseEdgeComponent, [{
28
- type: Component,
29
- args: [{
30
- selector: 'ng-flow-base-edge',
31
- standalone: true,
32
- schemas: [NO_ERRORS_SCHEMA],
33
- changeDetection: ChangeDetectionStrategy.OnPush,
34
- host: { 'style': 'display: contents;' },
35
- template: `
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseEdgeComponent, decorators: [{
32
+ type: Component,
33
+ args: [{
34
+ selector: 'ng-flow-base-edge',
35
+ standalone: true,
36
+ schemas: [NO_ERRORS_SCHEMA],
37
+ changeDetection: ChangeDetectionStrategy.OnPush,
38
+ host: { 'style': 'display: contents;' },
39
+ template: `
36
40
  @if (interactionWidth()) {
37
41
  <path
38
42
  class="xy-flow__edge-interaction"
@@ -50,7 +54,6 @@ export class BaseEdgeComponent {
50
54
  [attr.style]="style()"
51
55
  />
52
56
  `,
53
- }]
54
- }], null, { path: [{ type: i0.Input, args: [{ isSignal: true, alias: "path", required: true }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }] }); })();
55
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseEdgeComponent, { className: "BaseEdgeComponent", filePath: "lib/components/edges/base-edge.component.ts", lineNumber: 28 }); })();
57
+ }]
58
+ }], propDecorators: { path: [{ type: i0.Input, args: [{ isSignal: true, alias: "path", required: true }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }] } });
56
59
  //# sourceMappingURL=base-edge.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/base-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;;;IAUtF,6BAME;;;;;AAWR,MAAM,OAAO,iBAAiB;IAzB9B;QA0BW,SAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU,CAAC;QAChC,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,UAAK,GAAG,KAAK,sFAAU,CAAC;QACxB,qBAAgB,GAAG,KAAK,CAAS,EAAE,uFAAC,CAAC;KAC/C;kHANY,iBAAiB;oEAAjB,iBAAiB;YAlB1B,oFAA0B;YAS1B,6BAME;;YAfF,iDAQC;YAGC,cAAiB;;;;iFAOV,iBAAiB;cAzB7B,SAAS;eAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;aACF;;kFACY,iBAAiB"}
1
+ {"version":3,"file":"base-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/base-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;;AA2B5F,MAAM,OAAO,iBAAiB;IAzB9B;QA0BW,SAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU,CAAC;QAChC,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,UAAK,GAAG,KAAK,sFAAU,CAAC;QACxB,qBAAgB,GAAG,KAAK,CAAS,EAAE,uFAAC,CAAC;KAC/C;8GANY,iBAAiB;kGAAjB,iBAAiB,4xBAnBlB;;;;;;;;;;;;;;;;;GAiBT;;2FAEU,iBAAiB;kBAzB7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;oBACvC,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;iBACF"}
@@ -39,22 +39,25 @@ export class BezierEdgeComponent {
39
39
  return path;
40
40
  }, ...(ngDevMode ? [{ debugName: "edgePath" }] : /* istanbul ignore next */ []));
41
41
  }
42
- static { this.ɵfac = function BezierEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BezierEdgeComponent)(); }; }
43
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BezierEdgeComponent, selectors: [["ng-flow-bezier-edge"]], hostAttrs: [2, "display", "contents"], inputs: { id: [1, "id"], source: [1, "source"], target: [1, "target"], type: [1, "type"], animated: [1, "animated"], selected: [1, "selected"], data: [1, "data"], label: [1, "label"], sourceX: [1, "sourceX"], sourceY: [1, "sourceY"], targetX: [1, "targetX"], targetY: [1, "targetY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], interactionWidth: [1, "interactionWidth"], pathOptions: [1, "pathOptions"], sourceHandleId: [1, "sourceHandleId"], targetHandleId: [1, "targetHandleId"], selectable: [1, "selectable"], deletable: [1, "deletable"] }, decls: 1, vars: 4, consts: [[3, "path", "markerStart", "markerEnd", "interactionWidth"]], template: function BezierEdgeComponent_Template(rf, ctx) { if (rf & 1) {
44
- i0.ɵɵelement(0, "ng-flow-base-edge", 0);
45
- } if (rf & 2) {
46
- i0.ɵɵproperty("path", ctx.edgePath())("markerStart", ctx.markerStart())("markerEnd", ctx.markerEnd())("interactionWidth", ctx.interactionWidth() ?? 20);
47
- } }, dependencies: [BaseEdgeComponent], encapsulation: 2, changeDetection: 0 }); }
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BezierEdgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
43
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: BezierEdgeComponent, isStandalone: true, selector: "ng-flow-bezier-edge", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, sourceX: { classPropertyName: "sourceX", publicName: "sourceX", isSignal: true, isRequired: false, transformFunction: null }, sourceY: { classPropertyName: "sourceY", publicName: "sourceY", isSignal: true, isRequired: false, transformFunction: null }, targetX: { classPropertyName: "targetX", publicName: "targetX", isSignal: true, isRequired: false, transformFunction: null }, targetY: { classPropertyName: "targetY", publicName: "targetY", 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 }, markerStart: { classPropertyName: "markerStart", publicName: "markerStart", isSignal: true, isRequired: false, transformFunction: null }, markerEnd: { classPropertyName: "markerEnd", publicName: "markerEnd", isSignal: true, isRequired: false, transformFunction: null }, interactionWidth: { classPropertyName: "interactionWidth", publicName: "interactionWidth", isSignal: true, isRequired: false, transformFunction: null }, pathOptions: { classPropertyName: "pathOptions", publicName: "pathOptions", isSignal: true, isRequired: false, transformFunction: null }, sourceHandleId: { classPropertyName: "sourceHandleId", publicName: "sourceHandleId", isSignal: true, isRequired: false, transformFunction: null }, targetHandleId: { classPropertyName: "targetHandleId", publicName: "targetHandleId", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, deletable: { classPropertyName: "deletable", publicName: "deletable", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: contents;" }, ngImport: i0, template: `
44
+ <ng-flow-base-edge
45
+ [path]="edgePath()"
46
+ [markerStart]="markerStart()"
47
+ [markerEnd]="markerEnd()"
48
+ [interactionWidth]="interactionWidth() ?? 20"
49
+ />
50
+ `, isInline: true, dependencies: [{ kind: "component", type: BaseEdgeComponent, selector: "ng-flow-base-edge", inputs: ["path", "markerStart", "markerEnd", "style", "interactionWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
51
  }
49
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BezierEdgeComponent, [{
50
- type: Component,
51
- args: [{
52
- selector: 'ng-flow-bezier-edge',
53
- standalone: true,
54
- imports: [BaseEdgeComponent],
55
- changeDetection: ChangeDetectionStrategy.OnPush,
56
- host: { 'style': 'display: contents;' },
57
- template: `
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BezierEdgeComponent, decorators: [{
53
+ type: Component,
54
+ args: [{
55
+ selector: 'ng-flow-bezier-edge',
56
+ standalone: true,
57
+ imports: [BaseEdgeComponent],
58
+ changeDetection: ChangeDetectionStrategy.OnPush,
59
+ host: { 'style': 'display: contents;' },
60
+ template: `
58
61
  <ng-flow-base-edge
59
62
  [path]="edgePath()"
60
63
  [markerStart]="markerStart()"
@@ -62,7 +65,6 @@ export class BezierEdgeComponent {
62
65
  [interactionWidth]="interactionWidth() ?? 20"
63
66
  />
64
67
  `,
65
- }]
66
- }], null, { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], pathOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathOptions", required: false }] }], sourceHandleId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceHandleId", required: false }] }], targetHandleId: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetHandleId", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], deletable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deletable", required: false }] }] }); })();
67
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BezierEdgeComponent, { className: "BezierEdgeComponent", filePath: "lib/components/edges/bezier-edge.component.ts", lineNumber: 20 }); })();
68
+ }]
69
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], pathOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathOptions", required: false }] }], sourceHandleId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceHandleId", required: false }] }], targetHandleId: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetHandleId", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], deletable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deletable", required: false }] }] } });
68
70
  //# sourceMappingURL=bezier-edge.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bezier-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/bezier-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAA0B,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAiB1D,MAAM,OAAO,mBAAmB;IAfhC;QAgBW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,WAAM,GAAG,KAAK,uFAAU,CAAC;QACzB,WAAM,GAAG,KAAK,uFAAU,CAAC;QACzB,SAAI,GAAG,KAAK,qFAAU,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,UAAK,GA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AiB;;iFAYhB,mBAAmB;cAf/B,SAAS;eAAC;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,QAAQ,EAAE;;;;;;;GAOT;aACF;;kFACY,mBAAmB"}
1
+ {"version":3,"file":"bezier-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/bezier-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAA0B,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAiB1D,MAAM,OAAO,mBAAmB;IAfhC;QAgBW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,WAAM,GAAG,KAAK,uFAAU,CAAC;QACzB,WAAM,GAAG,KAAK,uFAAU,CAAC;QACzB,SAAI,GAAG,KAAK,qFAAU,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,UAAK,GAAG,KAAK,sFAAU,CAAC;QACxB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,MAAM,qFAAC,CAAC;QAClD,mBAAc,GAAG,KAA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