@angflow/angular 0.0.1

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 (196) hide show
  1. package/README.md +187 -0
  2. package/dist/base.css +1204 -0
  3. package/dist/esm/index.d.ts +2 -0
  4. package/dist/esm/index.d.ts.map +1 -0
  5. package/dist/esm/index.js +2 -0
  6. package/dist/esm/index.js.map +1 -0
  7. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts +25 -0
  8. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts.map +1 -0
  9. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +58 -0
  10. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -0
  11. package/dist/esm/lib/components/attribution/attribution.component.d.ts +6 -0
  12. package/dist/esm/lib/components/attribution/attribution.component.d.ts.map +1 -0
  13. package/dist/esm/lib/components/attribution/attribution.component.js +32 -0
  14. package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -0
  15. package/dist/esm/lib/components/background/background.component.d.ts +31 -0
  16. package/dist/esm/lib/components/background/background.component.d.ts.map +1 -0
  17. package/dist/esm/lib/components/background/background.component.js +209 -0
  18. package/dist/esm/lib/components/background/background.component.js.map +1 -0
  19. package/dist/esm/lib/components/connection-line/connection-line.component.d.ts +36 -0
  20. package/dist/esm/lib/components/connection-line/connection-line.component.d.ts.map +1 -0
  21. package/dist/esm/lib/components/connection-line/connection-line.component.js +146 -0
  22. package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -0
  23. package/dist/esm/lib/components/controls/controls.component.d.ts +25 -0
  24. package/dist/esm/lib/components/controls/controls.component.d.ts.map +1 -0
  25. package/dist/esm/lib/components/controls/controls.component.js +174 -0
  26. package/dist/esm/lib/components/controls/controls.component.js.map +1 -0
  27. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts +6 -0
  28. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts.map +1 -0
  29. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +24 -0
  30. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -0
  31. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts +22 -0
  32. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts.map +1 -0
  33. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +64 -0
  34. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -0
  35. package/dist/esm/lib/components/edges/base-edge.component.d.ts +11 -0
  36. package/dist/esm/lib/components/edges/base-edge.component.d.ts.map +1 -0
  37. package/dist/esm/lib/components/edges/base-edge.component.js +56 -0
  38. package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -0
  39. package/dist/esm/lib/components/edges/bezier-edge.component.d.ts +30 -0
  40. package/dist/esm/lib/components/edges/bezier-edge.component.d.ts.map +1 -0
  41. package/dist/esm/lib/components/edges/bezier-edge.component.js +68 -0
  42. package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -0
  43. package/dist/esm/lib/components/edges/edge-text.component.d.ts +11 -0
  44. package/dist/esm/lib/components/edges/edge-text.component.d.ts.map +1 -0
  45. package/dist/esm/lib/components/edges/edge-text.component.js +48 -0
  46. package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -0
  47. package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts +21 -0
  48. package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts.map +1 -0
  49. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +57 -0
  50. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -0
  51. package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts +22 -0
  52. package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts.map +1 -0
  53. package/dist/esm/lib/components/edges/smooth-step-edge.component.js +59 -0
  54. package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -0
  55. package/dist/esm/lib/components/edges/step-edge.component.d.ts +22 -0
  56. package/dist/esm/lib/components/edges/step-edge.component.d.ts.map +1 -0
  57. package/dist/esm/lib/components/edges/step-edge.component.js +60 -0
  58. package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -0
  59. package/dist/esm/lib/components/edges/straight-edge.component.d.ts +18 -0
  60. package/dist/esm/lib/components/edges/straight-edge.component.d.ts.map +1 -0
  61. package/dist/esm/lib/components/edges/straight-edge.component.js +53 -0
  62. package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -0
  63. package/dist/esm/lib/components/handle/handle.component.d.ts +28 -0
  64. package/dist/esm/lib/components/handle/handle.component.d.ts.map +1 -0
  65. package/dist/esm/lib/components/handle/handle.component.js +162 -0
  66. package/dist/esm/lib/components/handle/handle.component.js.map +1 -0
  67. package/dist/esm/lib/components/minimap/minimap.component.d.ts +75 -0
  68. package/dist/esm/lib/components/minimap/minimap.component.d.ts.map +1 -0
  69. package/dist/esm/lib/components/minimap/minimap.component.js +319 -0
  70. package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -0
  71. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts +6 -0
  72. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts.map +1 -0
  73. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +24 -0
  74. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -0
  75. package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts +44 -0
  76. package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts.map +1 -0
  77. package/dist/esm/lib/components/node-resizer/node-resizer.component.js +198 -0
  78. package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -0
  79. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts +19 -0
  80. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts.map +1 -0
  81. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +101 -0
  82. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -0
  83. package/dist/esm/lib/components/nodes/default-node.component.d.ts +20 -0
  84. package/dist/esm/lib/components/nodes/default-node.component.d.ts.map +1 -0
  85. package/dist/esm/lib/components/nodes/default-node.component.js +52 -0
  86. package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -0
  87. package/dist/esm/lib/components/nodes/group-node.component.d.ts +19 -0
  88. package/dist/esm/lib/components/nodes/group-node.component.d.ts.map +1 -0
  89. package/dist/esm/lib/components/nodes/group-node.component.js +34 -0
  90. package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -0
  91. package/dist/esm/lib/components/nodes/input-node.component.d.ts +20 -0
  92. package/dist/esm/lib/components/nodes/input-node.component.d.ts.map +1 -0
  93. package/dist/esm/lib/components/nodes/input-node.component.js +49 -0
  94. package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -0
  95. package/dist/esm/lib/components/nodes/output-node.component.d.ts +20 -0
  96. package/dist/esm/lib/components/nodes/output-node.component.d.ts.map +1 -0
  97. package/dist/esm/lib/components/nodes/output-node.component.js +48 -0
  98. package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -0
  99. package/dist/esm/lib/components/panel/panel.component.d.ts +13 -0
  100. package/dist/esm/lib/components/panel/panel.component.d.ts.map +1 -0
  101. package/dist/esm/lib/components/panel/panel.component.js +39 -0
  102. package/dist/esm/lib/components/panel/panel.component.js.map +1 -0
  103. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts +12 -0
  104. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts.map +1 -0
  105. package/dist/esm/lib/components/selection-box/selection-box.component.js +56 -0
  106. package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -0
  107. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts +8 -0
  108. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts.map +1 -0
  109. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +35 -0
  110. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -0
  111. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts +70 -0
  112. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts.map +1 -0
  113. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +503 -0
  114. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -0
  115. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts +281 -0
  116. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts.map +1 -0
  117. package/dist/esm/lib/container/ng-flow/ng-flow.component.js +644 -0
  118. package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -0
  119. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts +56 -0
  120. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts.map +1 -0
  121. package/dist/esm/lib/container/node-renderer/node-renderer.component.js +312 -0
  122. package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -0
  123. package/dist/esm/lib/container/pane/pane.component.d.ts +35 -0
  124. package/dist/esm/lib/container/pane/pane.component.d.ts.map +1 -0
  125. package/dist/esm/lib/container/pane/pane.component.js +161 -0
  126. package/dist/esm/lib/container/pane/pane.component.js.map +1 -0
  127. package/dist/esm/lib/container/viewport/viewport.component.d.ts +9 -0
  128. package/dist/esm/lib/container/viewport/viewport.component.d.ts.map +1 -0
  129. package/dist/esm/lib/container/viewport/viewport.component.js +35 -0
  130. package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -0
  131. package/dist/esm/lib/directives/drag.directive.d.ts +21 -0
  132. package/dist/esm/lib/directives/drag.directive.d.ts.map +1 -0
  133. package/dist/esm/lib/directives/drag.directive.js +69 -0
  134. package/dist/esm/lib/directives/drag.directive.js.map +1 -0
  135. package/dist/esm/lib/directives/drop-zone.directive.d.ts +30 -0
  136. package/dist/esm/lib/directives/drop-zone.directive.d.ts.map +1 -0
  137. package/dist/esm/lib/directives/drop-zone.directive.js +58 -0
  138. package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -0
  139. package/dist/esm/lib/directives/key-handler.directive.d.ts +29 -0
  140. package/dist/esm/lib/directives/key-handler.directive.d.ts.map +1 -0
  141. package/dist/esm/lib/directives/key-handler.directive.js +176 -0
  142. package/dist/esm/lib/directives/key-handler.directive.js.map +1 -0
  143. package/dist/esm/lib/directives/node-type.directive.d.ts +21 -0
  144. package/dist/esm/lib/directives/node-type.directive.d.ts.map +1 -0
  145. package/dist/esm/lib/directives/node-type.directive.js +32 -0
  146. package/dist/esm/lib/directives/node-type.directive.js.map +1 -0
  147. package/dist/esm/lib/public-api.d.ts +40 -0
  148. package/dist/esm/lib/public-api.d.ts.map +1 -0
  149. package/dist/esm/lib/public-api.js +67 -0
  150. package/dist/esm/lib/public-api.js.map +1 -0
  151. package/dist/esm/lib/services/flow-store.service.d.ts +227 -0
  152. package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -0
  153. package/dist/esm/lib/services/flow-store.service.js +542 -0
  154. package/dist/esm/lib/services/flow-store.service.js.map +1 -0
  155. package/dist/esm/lib/services/ng-flow.service.d.ts +186 -0
  156. package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -0
  157. package/dist/esm/lib/services/ng-flow.service.js +501 -0
  158. package/dist/esm/lib/services/ng-flow.service.js.map +1 -0
  159. package/dist/esm/lib/services/tokens.d.ts +4 -0
  160. package/dist/esm/lib/services/tokens.d.ts.map +1 -0
  161. package/dist/esm/lib/services/tokens.js +4 -0
  162. package/dist/esm/lib/services/tokens.js.map +1 -0
  163. package/dist/esm/lib/types/edges.d.ts +83 -0
  164. package/dist/esm/lib/types/edges.d.ts.map +1 -0
  165. package/dist/esm/lib/types/edges.js +2 -0
  166. package/dist/esm/lib/types/edges.js.map +1 -0
  167. package/dist/esm/lib/types/general.d.ts +128 -0
  168. package/dist/esm/lib/types/general.d.ts.map +1 -0
  169. package/dist/esm/lib/types/general.js +2 -0
  170. package/dist/esm/lib/types/general.js.map +1 -0
  171. package/dist/esm/lib/types/index.d.ts +5 -0
  172. package/dist/esm/lib/types/index.d.ts.map +1 -0
  173. package/dist/esm/lib/types/index.js +5 -0
  174. package/dist/esm/lib/types/index.js.map +1 -0
  175. package/dist/esm/lib/types/nodes.d.ts +53 -0
  176. package/dist/esm/lib/types/nodes.d.ts.map +1 -0
  177. package/dist/esm/lib/types/nodes.js +2 -0
  178. package/dist/esm/lib/types/nodes.js.map +1 -0
  179. package/dist/esm/lib/types/store.d.ts +71 -0
  180. package/dist/esm/lib/types/store.d.ts.map +1 -0
  181. package/dist/esm/lib/types/store.js +2 -0
  182. package/dist/esm/lib/types/store.js.map +1 -0
  183. package/dist/esm/lib/utils/changes.d.ts +12 -0
  184. package/dist/esm/lib/utils/changes.d.ts.map +1 -0
  185. package/dist/esm/lib/utils/changes.js +134 -0
  186. package/dist/esm/lib/utils/changes.js.map +1 -0
  187. package/dist/esm/lib/utils/index.d.ts +2 -0
  188. package/dist/esm/lib/utils/index.d.ts.map +1 -0
  189. package/dist/esm/lib/utils/index.js +2 -0
  190. package/dist/esm/lib/utils/index.js.map +1 -0
  191. package/dist/esm/lib/utils/type-guards.d.ts +12 -0
  192. package/dist/esm/lib/utils/type-guards.d.ts.map +1 -0
  193. package/dist/esm/lib/utils/type-guards.js +16 -0
  194. package/dist/esm/lib/utils/type-guards.js.map +1 -0
  195. package/dist/style.css +1392 -0
  196. package/package.json +60 -0
@@ -0,0 +1,162 @@
1
+ import { Component, ChangeDetectionStrategy, input, output, inject, computed, ElementRef, Optional, Inject, } from '@angular/core';
2
+ import { Position, XYHandle } from '@angflow/system';
3
+ import { FlowStore } from '../../services/flow-store.service';
4
+ import { NODE_ID } from '../../services/tokens';
5
+ import * as i0 from "@angular/core";
6
+ const _c0 = ["*"];
7
+ export class HandleComponent {
8
+ constructor(nodeId) {
9
+ this.Position = Position;
10
+ this.type = input.required(...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
11
+ this.position = input(Position.Top, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
12
+ this.handleId = input(null, { ...(ngDevMode ? { debugName: "handleId" } : /* istanbul ignore next */ {}), alias: 'id' });
13
+ this.isConnectable = input(true, ...(ngDevMode ? [{ debugName: "isConnectable" }] : /* istanbul ignore next */ []));
14
+ this.isConnectableStart = input(true, ...(ngDevMode ? [{ debugName: "isConnectableStart" }] : /* istanbul ignore next */ []));
15
+ this.isConnectableEnd = input(true, ...(ngDevMode ? [{ debugName: "isConnectableEnd" }] : /* istanbul ignore next */ []));
16
+ this.isValidConnection = input(undefined, ...(ngDevMode ? [{ debugName: "isValidConnection" }] : /* istanbul ignore next */ []));
17
+ /** Emitted when a connection is completed on this handle. */
18
+ this.handleConnect = output({ alias: 'onConnect' });
19
+ this.store = inject(FlowStore);
20
+ this.el = inject((ElementRef));
21
+ // Injected from parent NodeWrapperComponent
22
+ this.nodeId = '';
23
+ // data-id attribute used by XYHandle to find handles in the DOM
24
+ this.dataId = computed(() => `${this.store.rfId()}-${this.nodeId}-${this.handleId()}-${this.type()}`, ...(ngDevMode ? [{ debugName: "dataId" }] : /* istanbul ignore next */ []));
25
+ this.nodeId = nodeId ?? '';
26
+ }
27
+ ngOnInit() { }
28
+ ngOnDestroy() { }
29
+ onPointerDown(event) {
30
+ if (!this.isConnectableStart())
31
+ return;
32
+ // Stop propagation to prevent d3-drag on the parent node from capturing this event
33
+ event.stopPropagation();
34
+ const isTarget = this.type() === 'target';
35
+ const store = this.store;
36
+ // Use per-handle isValidConnection if provided, otherwise fall back to store-level
37
+ const handleValidation = this.isValidConnection();
38
+ const storeValidation = store.isValidConnection();
39
+ const validationFn = handleValidation ?? storeValidation;
40
+ XYHandle.onPointerDown(event, {
41
+ autoPanOnConnect: store.autoPanOnConnect(),
42
+ connectionMode: store.connectionMode(),
43
+ connectionRadius: store.connectionRadius(),
44
+ domNode: store.domNode(),
45
+ handleId: this.handleId(),
46
+ nodeId: this.nodeId,
47
+ isTarget,
48
+ nodeLookup: store.nodeLookup,
49
+ lib: 'ng',
50
+ flowId: store.rfId(),
51
+ updateConnection: (connection) => store.updateConnection(connection),
52
+ panBy: (delta) => store.panBy(delta),
53
+ cancelConnection: () => store.cancelConnection(),
54
+ onConnect: (connection) => {
55
+ this.handleConnect.emit(connection);
56
+ store.onConnect?.(connection);
57
+ },
58
+ onConnectStart: (event, params) => store.onConnectStart?.(event, params),
59
+ onConnectEnd: (event) => store.onConnectEnd?.(event),
60
+ getTransform: () => store.transform(),
61
+ getFromHandle: () => {
62
+ const conn = store.connection();
63
+ return conn.inProgress ? conn.fromHandle : null;
64
+ },
65
+ autoPanSpeed: store.autoPanSpeed(),
66
+ dragThreshold: 0,
67
+ handleDomNode: this.el.nativeElement,
68
+ isValidConnection: validationFn,
69
+ });
70
+ }
71
+ onClick(event) {
72
+ const store = this.store;
73
+ if (!store.connectOnClick())
74
+ return;
75
+ const startHandle = store.connectionClickStartHandle();
76
+ if (!startHandle) {
77
+ // First click — store this handle as the start of the connection
78
+ store.connectionClickStartHandle.set({
79
+ nodeId: this.nodeId,
80
+ handleId: this.handleId(),
81
+ type: this.type(),
82
+ });
83
+ store.onClickConnectStart?.(event, {
84
+ nodeId: this.nodeId,
85
+ handleId: this.handleId(),
86
+ handleType: this.type(),
87
+ });
88
+ store.onConnectStart?.(event, {
89
+ nodeId: this.nodeId,
90
+ handleId: this.handleId(),
91
+ handleType: this.type(),
92
+ });
93
+ }
94
+ else {
95
+ // Second click — complete the connection
96
+ const isSource = startHandle.type === 'source';
97
+ const connection = {
98
+ source: isSource ? startHandle.nodeId : this.nodeId,
99
+ sourceHandle: isSource ? startHandle.handleId : this.handleId(),
100
+ target: isSource ? this.nodeId : startHandle.nodeId,
101
+ targetHandle: isSource ? this.handleId() : startHandle.handleId,
102
+ };
103
+ // Validate using per-handle or store-level validation
104
+ const handleValidation = this.isValidConnection();
105
+ const storeValidation = store.isValidConnection();
106
+ const validationFn = handleValidation ?? storeValidation;
107
+ if (!validationFn || validationFn(connection)) {
108
+ this.handleConnect.emit(connection);
109
+ store.onConnect?.(connection);
110
+ }
111
+ store.connectionClickStartHandle.set(null);
112
+ store.onClickConnectEnd?.(event);
113
+ store.onConnectEnd?.(event);
114
+ }
115
+ }
116
+ static { this.ɵfac = function HandleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HandleComponent)(i0.ɵɵdirectiveInject(NODE_ID, 8)); }; }
117
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HandleComponent, selectors: [["ng-flow-handle"]], hostAttrs: [1, "ng-flow__handle", "xy-flow__handle"], hostVars: 25, hostBindings: function HandleComponent_HostBindings(rf, ctx) { if (rf & 1) {
118
+ i0.ɵɵlistener("mousedown", function HandleComponent_mousedown_HostBindingHandler($event) { return ctx.onPointerDown($event); })("click", function HandleComponent_click_HostBindingHandler($event) { return ctx.onClick($event); });
119
+ } if (rf & 2) {
120
+ i0.ɵɵattribute("data-handleid", ctx.handleId())("data-nodeid", ctx.nodeId)("data-handlepos", ctx.position())("data-id", ctx.dataId())("aria-describedby", ctx.store.rfId() + "-handle-desc");
121
+ i0.ɵɵclassProp("xy-flow__handle-top", ctx.position() === ctx.Position.Top)("xy-flow__handle-bottom", ctx.position() === ctx.Position.Bottom)("xy-flow__handle-left", ctx.position() === ctx.Position.Left)("xy-flow__handle-right", ctx.position() === ctx.Position.Right)("source", ctx.type() === "source")("target", ctx.type() === "target")("connectionindicator", true)("connectable", ctx.isConnectable())("connectablestart", ctx.isConnectableStart())("connectableend", ctx.isConnectableEnd());
122
+ } }, inputs: { type: [1, "type"], position: [1, "position"], handleId: [1, "id", "handleId"], isConnectable: [1, "isConnectable"], isConnectableStart: [1, "isConnectableStart"], isConnectableEnd: [1, "isConnectableEnd"], isValidConnection: [1, "isValidConnection"] }, outputs: { handleConnect: "onConnect" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function HandleComponent_Template(rf, ctx) { if (rf & 1) {
123
+ i0.ɵɵprojectionDef();
124
+ i0.ɵɵprojection(0);
125
+ } }, encapsulation: 2, changeDetection: 0 }); }
126
+ }
127
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HandleComponent, [{
128
+ type: Component,
129
+ args: [{
130
+ selector: 'ng-flow-handle',
131
+ standalone: true,
132
+ changeDetection: ChangeDetectionStrategy.OnPush,
133
+ host: {
134
+ 'class': 'ng-flow__handle xy-flow__handle',
135
+ '[class.xy-flow__handle-top]': 'position() === Position.Top',
136
+ '[class.xy-flow__handle-bottom]': 'position() === Position.Bottom',
137
+ '[class.xy-flow__handle-left]': 'position() === Position.Left',
138
+ '[class.xy-flow__handle-right]': 'position() === Position.Right',
139
+ '[class.source]': 'type() === "source"',
140
+ '[class.target]': 'type() === "target"',
141
+ '[class.connectionindicator]': 'true',
142
+ '[class.connectable]': 'isConnectable()',
143
+ '[class.connectablestart]': 'isConnectableStart()',
144
+ '[class.connectableend]': 'isConnectableEnd()',
145
+ '[attr.data-handleid]': 'handleId()',
146
+ '[attr.data-nodeid]': 'nodeId',
147
+ '[attr.data-handlepos]': 'position()',
148
+ '[attr.data-id]': 'dataId()',
149
+ '[attr.aria-describedby]': 'store.rfId() + "-handle-desc"',
150
+ '(mousedown)': 'onPointerDown($event)',
151
+ '(click)': 'onClick($event)',
152
+ },
153
+ template: `<ng-content />`,
154
+ }]
155
+ }], () => [{ type: undefined, decorators: [{
156
+ type: Optional
157
+ }, {
158
+ type: Inject,
159
+ args: [NODE_ID]
160
+ }] }], { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], handleId: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], isConnectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isConnectable", required: false }] }], isConnectableStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "isConnectableStart", required: false }] }], isConnectableEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "isConnectableEnd", required: false }] }], isValidConnection: [{ type: i0.Input, args: [{ isSignal: true, alias: "isValidConnection", required: false }] }], handleConnect: [{ type: i0.Output, args: ["onConnect"] }] }); })();
161
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HandleComponent, { className: "HandleComponent", filePath: "lib/components/handle/handle.component.ts", lineNumber: 44 }); })();
162
+ //# sourceMappingURL=handle.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/handle/handle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EAGV,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA0D,MAAM,iBAAiB,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;;;AA4BhD,MAAM,OAAO,eAAe;IAuB1B,YAAyC,MAAqB;QAtBrD,aAAQ,GAAG,QAAQ,CAAC;QAEpB,SAAI,GAAG,KAAK,CAAC,QAAQ,0EAAc,CAAC;QACpC,aAAQ,GAAG,KAAK,CAAW,QAAQ,CAAC,GAAG,+EAAC,CAAC;QACzC,aAAQ,GAAG,KAAK,CAAgB,IAAI,gFAAI,KAAK,EAAE,IAAI,GAAG,CAAC;QACvD,kBAAa,GAAG,KAAK,CAAC,IAAI,oFAAC,CAAC;QAC5B,uBAAkB,GAAG,KAAK,CAAC,IAAI,yFAAC,CAAC;QACjC,qBAAgB,GAAG,KAAK,CAAC,IAAI,uFAAC,CAAC;QAC/B,sBAAiB,GAAG,KAAK,CAAoD,SAAS,wFAAC,CAAC;QAEjG,6DAA6D;QACpD,kBAAa,GAAG,MAAM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IAAI,EAAE;oBACJ,OAAO,EAAE,iCAAiC;oBAC1C,6BAA6B,EAAE,6BAA6B;oBAC5D,gCAAgC,EAAE,gCAAgC;oBAClE,8BAA8B,EAAE,8BAA8B;oBAC9D,+BAA+B,EAAE,+BAA+B;oBAChE,gBAAgB,EAAE,qBAAqB;oBACvC,gBAAgB,EAAE,qBAAqB;oBACvC,6BAA6B,EAAE,MAAM;oBACrC,qBAAqB,EAAE,iBAAiB;oBACxC,0BAA0B,EAAE,sBAAsB;oBAClD,wBAAwB,EAAE,oBAAoB;oBAC9C,sBAAsB,EAAE,YAAY;oBACpC,oBAAoB,EAAE,QAAQ;oBAC9B,uBAAuB,EAAE,YAAY;oBACrC,gBAAgB,EAAE,UAAU;oBAC5B,yBAAyB,EAAE,+BAA+B;oBAC1D,aAAa,EAAE,uBAAuB;oBACtC,SAAS,EAAE,iBAAiB;iBAC7B;gBACD,QAAQ,EAAE,gBAAgB;aAC3B;;sBAwBc,QAAQ;;sBAAI,MAAM;uBAAC,OAAO;;kFAvB5B,eAAe"}
@@ -0,0 +1,75 @@
1
+ import { AfterViewInit, OnDestroy, Type } from '@angular/core';
2
+ import { type PanelPosition } from '@angflow/system';
3
+ import { FlowStore } from '../../services/flow-store.service';
4
+ import type { Node } from '../../types';
5
+ import * as i0 from "@angular/core";
6
+ export type GetMiniMapNodeAttribute<NodeType extends Node = Node> = (node: NodeType) => string;
7
+ export declare class MiniMapComponent implements AfterViewInit, OnDestroy {
8
+ readonly store: FlowStore<Node, import("../../types").Edge>;
9
+ private minimapContainerRef;
10
+ readonly position: import("@angular/core").InputSignal<PanelPosition>;
11
+ readonly mmWidth: import("@angular/core").InputSignal<number>;
12
+ readonly mmHeight: import("@angular/core").InputSignal<number>;
13
+ readonly pannable: import("@angular/core").InputSignal<boolean>;
14
+ readonly zoomable: import("@angular/core").InputSignal<boolean>;
15
+ readonly zoomStep: import("@angular/core").InputSignal<number>;
16
+ readonly inversePan: import("@angular/core").InputSignal<boolean>;
17
+ readonly nodeColor: import("@angular/core").InputSignal<string | GetMiniMapNodeAttribute<Node>>;
18
+ readonly nodeStrokeColor: import("@angular/core").InputSignal<string | GetMiniMapNodeAttribute<Node>>;
19
+ readonly nodeClassName: import("@angular/core").InputSignal<string | GetMiniMapNodeAttribute<Node>>;
20
+ readonly nodeBorderRadius: import("@angular/core").InputSignal<number>;
21
+ readonly nodeStrokeWidth: import("@angular/core").InputSignal<number>;
22
+ readonly nodeComponent: import("@angular/core").InputSignal<Type<unknown> | null>;
23
+ readonly bgColor: import("@angular/core").InputSignal<string | undefined>;
24
+ readonly maskColor: import("@angular/core").InputSignal<string>;
25
+ readonly maskStrokeColor: import("@angular/core").InputSignal<string | undefined>;
26
+ readonly maskStrokeWidth: import("@angular/core").InputSignal<number>;
27
+ readonly offsetScale: import("@angular/core").InputSignal<number>;
28
+ readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
29
+ readonly minimapClick: import("@angular/core").OutputEmitterRef<{
30
+ event: MouseEvent;
31
+ position: {
32
+ x: number;
33
+ y: number;
34
+ };
35
+ }>;
36
+ readonly minimapNodeClick: import("@angular/core").OutputEmitterRef<{
37
+ event: MouseEvent;
38
+ node: Node;
39
+ }>;
40
+ private xyMinimap;
41
+ readonly minimapNodes: import("@angular/core").Signal<{
42
+ id: string;
43
+ x: number;
44
+ y: number;
45
+ width: number;
46
+ height: number;
47
+ _userNode: Node;
48
+ }[]>;
49
+ readonly viewBox: import("@angular/core").Signal<string>;
50
+ readonly maskPosition: import("@angular/core").Signal<{
51
+ x: number;
52
+ y: number;
53
+ width: number;
54
+ height: number;
55
+ }>;
56
+ getNodeColor(node: {
57
+ _userNode?: Node;
58
+ }): string;
59
+ getNodeStrokeColor(node: {
60
+ _userNode?: Node;
61
+ }): string;
62
+ getNodeClassName(node: {
63
+ _userNode?: Node;
64
+ }): string;
65
+ ngAfterViewInit(): void;
66
+ onMinimapClick(event: MouseEvent): void;
67
+ onMinimapNodeClick(event: MouseEvent, node: {
68
+ _userNode?: Node;
69
+ }): void;
70
+ ngOnDestroy(): void;
71
+ private computeBounds;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<MiniMapComponent, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<MiniMapComponent, "ng-flow-minimap", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "mmWidth": { "alias": "width"; "required": false; "isSignal": true; }; "mmHeight": { "alias": "height"; "required": false; "isSignal": true; }; "pannable": { "alias": "pannable"; "required": false; "isSignal": true; }; "zoomable": { "alias": "zoomable"; "required": false; "isSignal": true; }; "zoomStep": { "alias": "zoomStep"; "required": false; "isSignal": true; }; "inversePan": { "alias": "inversePan"; "required": false; "isSignal": true; }; "nodeColor": { "alias": "nodeColor"; "required": false; "isSignal": true; }; "nodeStrokeColor": { "alias": "nodeStrokeColor"; "required": false; "isSignal": true; }; "nodeClassName": { "alias": "nodeClassName"; "required": false; "isSignal": true; }; "nodeBorderRadius": { "alias": "nodeBorderRadius"; "required": false; "isSignal": true; }; "nodeStrokeWidth": { "alias": "nodeStrokeWidth"; "required": false; "isSignal": true; }; "nodeComponent": { "alias": "nodeComponent"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "maskColor": { "alias": "maskColor"; "required": false; "isSignal": true; }; "maskStrokeColor": { "alias": "maskStrokeColor"; "required": false; "isSignal": true; }; "maskStrokeWidth": { "alias": "maskStrokeWidth"; "required": false; "isSignal": true; }; "offsetScale": { "alias": "offsetScale"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "minimapClick": "minimapClick"; "minimapNodeClick": "minimapNodeClick"; }, never, never, true, never>;
74
+ }
75
+ //# sourceMappingURL=minimap.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimap.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/minimap/minimap.component.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,aAAa,EACb,SAAS,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B,UAAU;cAAQ,IAAI;OAAM;IAExE,OAAO,CAAC,SAAS,CAA6C;IAE9D,QAAQ,CAAC,YAAY;;;;;;;SAWlB;IAEH,QAAQ,CAAC,OAAO,yCAKb;IAEH,QAAQ,CAAC,YAAY;;;;;OAUlB;IAEH,YAAY,CAAC,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,MAAM;IAQhD,kBAAkB,CAAC,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,MAAM;IAQtD,gBAAgB,CAAC,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,MAAM;IAQpD,eAAe,IAAI,IAAI;IAEvB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAmEvC,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI;IAOvE,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,aAAa;yCA5KV,gBAAgB;2CAAhB,gBAAgB;CAyL5B"}
@@ -0,0 +1,319 @@
1
+ import { Component, ChangeDetectionStrategy, input, output, inject, computed, viewChild, } from '@angular/core';
2
+ import { FlowStore } from '../../services/flow-store.service';
3
+ import { PanelComponent } from '../panel/panel.component';
4
+ import * as i0 from "@angular/core";
5
+ const _c0 = ["minimapContainer"];
6
+ const _forTrack0 = ($index, $item) => $item.id;
7
+ function MiniMapComponent_For_10_Template(rf, ctx) { if (rf & 1) {
8
+ const _r1 = i0.ɵɵgetCurrentView();
9
+ i0.ɵɵnamespaceSVG();
10
+ i0.ɵɵelementStart(0, "rect", 8);
11
+ i0.ɵɵlistener("click", function MiniMapComponent_For_10_Template_rect_click_0_listener($event) { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMinimapNodeClick($event, node_r2)); });
12
+ i0.ɵɵelementEnd();
13
+ } if (rf & 2) {
14
+ const node_r2 = ctx.$implicit;
15
+ const ctx_r2 = i0.ɵɵnextContext();
16
+ i0.ɵɵclassMap(ctx_r2.getNodeClassName(node_r2));
17
+ i0.ɵɵattribute("x", node_r2.x)("y", node_r2.y)("width", node_r2.width)("height", node_r2.height)("rx", ctx_r2.nodeBorderRadius())("fill", ctx_r2.getNodeColor(node_r2))("stroke", ctx_r2.getNodeStrokeColor(node_r2))("stroke-width", ctx_r2.nodeStrokeWidth());
18
+ } }
19
+ function MiniMapComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
20
+ i0.ɵɵnamespaceSVG();
21
+ i0.ɵɵelement(0, "rect", 9)(1, "rect", 10);
22
+ } if (rf & 2) {
23
+ const ctx_r2 = i0.ɵɵnextContext();
24
+ i0.ɵɵattribute("fill", ctx_r2.maskColor());
25
+ i0.ɵɵadvance();
26
+ i0.ɵɵattribute("x", ctx_r2.maskPosition().x)("y", ctx_r2.maskPosition().y)("width", ctx_r2.maskPosition().width)("height", ctx_r2.maskPosition().height);
27
+ } }
28
+ export class MiniMapComponent {
29
+ constructor() {
30
+ this.store = inject(FlowStore);
31
+ this.minimapContainerRef = viewChild('minimapContainer', ...(ngDevMode ? [{ debugName: "minimapContainerRef" }] : /* istanbul ignore next */ []));
32
+ this.position = input('bottom-right', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
33
+ this.mmWidth = input(200, { ...(ngDevMode ? { debugName: "mmWidth" } : /* istanbul ignore next */ {}), alias: 'width' });
34
+ this.mmHeight = input(150, { ...(ngDevMode ? { debugName: "mmHeight" } : /* istanbul ignore next */ {}), alias: 'height' });
35
+ this.pannable = input(false, ...(ngDevMode ? [{ debugName: "pannable" }] : /* istanbul ignore next */ []));
36
+ this.zoomable = input(false, ...(ngDevMode ? [{ debugName: "zoomable" }] : /* istanbul ignore next */ []));
37
+ this.zoomStep = input(10, ...(ngDevMode ? [{ debugName: "zoomStep" }] : /* istanbul ignore next */ []));
38
+ this.inversePan = input(false, ...(ngDevMode ? [{ debugName: "inversePan" }] : /* istanbul ignore next */ []));
39
+ // Node styling
40
+ this.nodeColor = input('#e2e2e2', ...(ngDevMode ? [{ debugName: "nodeColor" }] : /* istanbul ignore next */ []));
41
+ this.nodeStrokeColor = input('transparent', ...(ngDevMode ? [{ debugName: "nodeStrokeColor" }] : /* istanbul ignore next */ []));
42
+ this.nodeClassName = input('', ...(ngDevMode ? [{ debugName: "nodeClassName" }] : /* istanbul ignore next */ []));
43
+ this.nodeBorderRadius = input(5, ...(ngDevMode ? [{ debugName: "nodeBorderRadius" }] : /* istanbul ignore next */ []));
44
+ this.nodeStrokeWidth = input(2, ...(ngDevMode ? [{ debugName: "nodeStrokeWidth" }] : /* istanbul ignore next */ []));
45
+ this.nodeComponent = input(null, ...(ngDevMode ? [{ debugName: "nodeComponent" }] : /* istanbul ignore next */ []));
46
+ // Appearance
47
+ this.bgColor = input(...(ngDevMode ? [undefined, { debugName: "bgColor" }] : /* istanbul ignore next */ []));
48
+ this.maskColor = input('rgba(240, 240, 240, 0.6)', ...(ngDevMode ? [{ debugName: "maskColor" }] : /* istanbul ignore next */ []));
49
+ this.maskStrokeColor = input(...(ngDevMode ? [undefined, { debugName: "maskStrokeColor" }] : /* istanbul ignore next */ []));
50
+ this.maskStrokeWidth = input(6, ...(ngDevMode ? [{ debugName: "maskStrokeWidth" }] : /* istanbul ignore next */ []));
51
+ this.offsetScale = input(5, ...(ngDevMode ? [{ debugName: "offsetScale" }] : /* istanbul ignore next */ []));
52
+ // Accessibility
53
+ this.ariaLabel = input('Mini Map', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
54
+ // Events
55
+ this.minimapClick = output();
56
+ this.minimapNodeClick = output();
57
+ this.xyMinimap = null;
58
+ this.minimapNodes = computed(() => {
59
+ this.store.version(); // react to node changes
60
+ const nodes = Array.from(this.store.nodeLookup.values());
61
+ return nodes.map((node) => ({
62
+ id: node.id,
63
+ x: node.internals?.positionAbsolute?.x ?? 0,
64
+ y: node.internals?.positionAbsolute?.y ?? 0,
65
+ width: node.measured?.width ?? node.width ?? 150,
66
+ height: node.measured?.height ?? node.height ?? 40,
67
+ _userNode: node.internals?.userNode,
68
+ }));
69
+ }, ...(ngDevMode ? [{ debugName: "minimapNodes" }] : /* istanbul ignore next */ []));
70
+ this.viewBox = computed(() => {
71
+ this.store.version();
72
+ const bounds = this.computeBounds();
73
+ const padding = 20;
74
+ return `${bounds.x - padding} ${bounds.y - padding} ${bounds.width + padding * 2} ${bounds.height + padding * 2}`;
75
+ }, ...(ngDevMode ? [{ debugName: "viewBox" }] : /* istanbul ignore next */ []));
76
+ this.maskPosition = computed(() => {
77
+ const t = this.store.transform();
78
+ const w = this.store.width();
79
+ const h = this.store.height();
80
+ return {
81
+ x: -t[0] / t[2],
82
+ y: -t[1] / t[2],
83
+ width: w / t[2],
84
+ height: h / t[2],
85
+ };
86
+ }, ...(ngDevMode ? [{ debugName: "maskPosition" }] : /* istanbul ignore next */ []));
87
+ }
88
+ getNodeColor(node) {
89
+ const color = this.nodeColor();
90
+ if (typeof color === 'function' && node._userNode) {
91
+ return color(node._userNode);
92
+ }
93
+ return typeof color === 'string' ? color : '#e2e2e2';
94
+ }
95
+ getNodeStrokeColor(node) {
96
+ const strokeColor = this.nodeStrokeColor();
97
+ if (typeof strokeColor === 'function' && node._userNode) {
98
+ return strokeColor(node._userNode);
99
+ }
100
+ return typeof strokeColor === 'string' ? strokeColor : 'transparent';
101
+ }
102
+ getNodeClassName(node) {
103
+ const className = this.nodeClassName();
104
+ if (typeof className === 'function' && node._userNode) {
105
+ return className(node._userNode);
106
+ }
107
+ return typeof className === 'string' ? className : '';
108
+ }
109
+ ngAfterViewInit() { }
110
+ onMinimapClick(event) {
111
+ const container = this.minimapContainerRef()?.nativeElement;
112
+ if (!container)
113
+ return;
114
+ const svgEl = container.querySelector('svg');
115
+ if (!svgEl)
116
+ return;
117
+ // Get click position relative to the minimap SVG
118
+ const rect = svgEl.getBoundingClientRect();
119
+ const clickX = event.clientX - rect.left;
120
+ const clickY = event.clientY - rect.top;
121
+ // Convert from SVG pixel coords to viewBox coords
122
+ const bounds = this.computeBounds();
123
+ const padding = 20;
124
+ const vbX = bounds.x - padding;
125
+ const vbY = bounds.y - padding;
126
+ const vbW = bounds.width + padding * 2;
127
+ const vbH = bounds.height + padding * 2;
128
+ const flowX = vbX + (clickX / this.mmWidth()) * vbW;
129
+ const flowY = vbY + (clickY / this.mmHeight()) * vbH;
130
+ // Emit click event
131
+ this.minimapClick.emit({ event, position: { x: flowX, y: flowY } });
132
+ if (!this.pannable())
133
+ return;
134
+ // Pan viewport to center on the clicked flow position
135
+ const zoom = this.store.transform()[2];
136
+ const newX = this.store.width() / 2 - flowX * zoom;
137
+ const newY = this.store.height() / 2 - flowY * zoom;
138
+ // Animate the viewport pan over ~300ms using requestAnimationFrame
139
+ const startX = this.store.transform()[0];
140
+ const startY = this.store.transform()[1];
141
+ const startTime = performance.now();
142
+ const duration = 300;
143
+ const animate = (now) => {
144
+ const elapsed = now - startTime;
145
+ const t = Math.min(elapsed / duration, 1);
146
+ // Ease-out cubic
147
+ const ease = 1 - Math.pow(1 - t, 3);
148
+ const currentX = startX + (newX - startX) * ease;
149
+ const currentY = startY + (newY - startY) * ease;
150
+ this.store.transform.set([currentX, currentY, zoom]);
151
+ this.store.bumpVersion();
152
+ if (t < 1) {
153
+ requestAnimationFrame(animate);
154
+ }
155
+ else {
156
+ // Sync d3-zoom internal state without transition
157
+ try {
158
+ this.store.panZoom()?.syncViewport({ x: newX, y: newY, zoom });
159
+ }
160
+ catch {
161
+ // d3-transition may not be available; the transform signal
162
+ // is the source of truth and d3 will re-sync on next interaction
163
+ }
164
+ }
165
+ };
166
+ requestAnimationFrame(animate);
167
+ }
168
+ onMinimapNodeClick(event, node) {
169
+ event.stopPropagation();
170
+ if (node._userNode) {
171
+ this.minimapNodeClick.emit({ event, node: node._userNode });
172
+ }
173
+ }
174
+ ngOnDestroy() {
175
+ this.xyMinimap?.destroy();
176
+ }
177
+ computeBounds() {
178
+ const nodes = this.minimapNodes();
179
+ if (nodes.length === 0)
180
+ return { x: 0, y: 0, width: 200, height: 150 };
181
+ let minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;
182
+ for (const n of nodes) {
183
+ minX = Math.min(minX, n.x);
184
+ minY = Math.min(minY, n.y);
185
+ maxX = Math.max(maxX, n.x + n.width);
186
+ maxY = Math.max(maxY, n.y + n.height);
187
+ }
188
+ return { x: minX, y: minY, width: maxX - minX, height: maxY - minY };
189
+ }
190
+ static { this.ɵfac = function MiniMapComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MiniMapComponent)(); }; }
191
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MiniMapComponent, selectors: [["ng-flow-minimap"]], viewQuery: function MiniMapComponent_Query(rf, ctx) { if (rf & 1) {
192
+ i0.ɵɵviewQuerySignal(ctx.minimapContainerRef, _c0, 5);
193
+ } if (rf & 2) {
194
+ i0.ɵɵqueryAdvance();
195
+ } }, inputs: { position: [1, "position"], mmWidth: [1, "width", "mmWidth"], mmHeight: [1, "height", "mmHeight"], pannable: [1, "pannable"], zoomable: [1, "zoomable"], zoomStep: [1, "zoomStep"], inversePan: [1, "inversePan"], nodeColor: [1, "nodeColor"], nodeStrokeColor: [1, "nodeStrokeColor"], nodeClassName: [1, "nodeClassName"], nodeBorderRadius: [1, "nodeBorderRadius"], nodeStrokeWidth: [1, "nodeStrokeWidth"], nodeComponent: [1, "nodeComponent"], bgColor: [1, "bgColor"], maskColor: [1, "maskColor"], maskStrokeColor: [1, "maskStrokeColor"], maskStrokeWidth: [1, "maskStrokeWidth"], offsetScale: [1, "offsetScale"], ariaLabel: [1, "ariaLabel"] }, outputs: { minimapClick: "minimapClick", minimapNodeClick: "minimapNodeClick" }, decls: 13, vars: 22, consts: [["minimapContainer", ""], [3, "position"], [1, "ng-flow__minimap", "xy-flow__minimap", 2, "border-radius", "4px", "overflow", "hidden", "border", "1px solid #ddd", "box-shadow", "0 1px 4px rgba(0,0,0,0.1)", "cursor", "pointer", 3, "click"], [1, "xy-flow__minimap-svg"], ["x", "-10000", "y", "-10000", "width", "20000", "height", "20000"], ["fill", "#fff"], [1, "xy-flow__minimap-node", 3, "class"], ["fill", "none", "rx", "2"], [1, "xy-flow__minimap-node", 3, "click"], ["x", "-10000", "y", "-10000", "width", "20000", "height", "20000", 2, "pointer-events", "none"], ["fill", "#fff", 2, "pointer-events", "none"]], template: function MiniMapComponent_Template(rf, ctx) { if (rf & 1) {
196
+ i0.ɵɵelementStart(0, "ng-flow-panel", 1)(1, "div", 2, 0);
197
+ i0.ɵɵlistener("click", function MiniMapComponent_Template_div_click_1_listener($event) { return ctx.onMinimapClick($event); });
198
+ i0.ɵɵnamespaceSVG();
199
+ i0.ɵɵelementStart(3, "svg", 3);
200
+ i0.ɵɵelement(4, "rect", 4);
201
+ i0.ɵɵelementStart(5, "defs")(6, "clipPath");
202
+ i0.ɵɵelement(7, "rect", 4);
203
+ i0.ɵɵelementEnd()();
204
+ i0.ɵɵelement(8, "rect", 5);
205
+ i0.ɵɵrepeaterCreate(9, MiniMapComponent_For_10_Template, 1, 10, ":svg:rect", 6, _forTrack0);
206
+ i0.ɵɵelement(11, "rect", 7);
207
+ i0.ɵɵconditionalCreate(12, MiniMapComponent_Conditional_12_Template, 2, 5);
208
+ i0.ɵɵelementEnd()()();
209
+ } if (rf & 2) {
210
+ i0.ɵɵproperty("position", ctx.position());
211
+ i0.ɵɵadvance();
212
+ i0.ɵɵstyleProp("width", ctx.mmWidth(), "px")("height", ctx.mmHeight(), "px");
213
+ i0.ɵɵattribute("aria-label", ctx.ariaLabel());
214
+ i0.ɵɵadvance(2);
215
+ i0.ɵɵattribute("width", ctx.mmWidth())("height", ctx.mmHeight())("viewBox", ctx.viewBox());
216
+ i0.ɵɵadvance();
217
+ i0.ɵɵattribute("fill", ctx.bgColor() ?? "#f0f0f0");
218
+ i0.ɵɵadvance(2);
219
+ i0.ɵɵattribute("id", "minimap-mask-" + ctx.store.rfId());
220
+ i0.ɵɵadvance(2);
221
+ i0.ɵɵattribute("x", ctx.maskPosition().x)("y", ctx.maskPosition().y)("width", ctx.maskPosition().width)("height", ctx.maskPosition().height);
222
+ i0.ɵɵadvance();
223
+ i0.ɵɵrepeater(ctx.minimapNodes());
224
+ i0.ɵɵadvance(2);
225
+ i0.ɵɵattribute("x", ctx.maskPosition().x)("y", ctx.maskPosition().y)("width", ctx.maskPosition().width)("height", ctx.maskPosition().height)("stroke", ctx.maskStrokeColor() ?? "rgba(0,89,220,0.6)")("stroke-width", ctx.maskStrokeWidth());
226
+ i0.ɵɵadvance();
227
+ i0.ɵɵconditional(ctx.maskColor() ? 12 : -1);
228
+ } }, dependencies: [PanelComponent], encapsulation: 2, changeDetection: 0 }); }
229
+ }
230
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MiniMapComponent, [{
231
+ type: Component,
232
+ args: [{
233
+ selector: 'ng-flow-minimap',
234
+ standalone: true,
235
+ imports: [PanelComponent],
236
+ changeDetection: ChangeDetectionStrategy.OnPush,
237
+ template: `
238
+ <ng-flow-panel [position]="position()">
239
+ <div
240
+ class="ng-flow__minimap xy-flow__minimap"
241
+ #minimapContainer
242
+ [attr.aria-label]="ariaLabel()"
243
+ [style.width.px]="mmWidth()"
244
+ [style.height.px]="mmHeight()"
245
+ style="border-radius: 4px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.1); cursor: pointer;"
246
+ (click)="onMinimapClick($event)"
247
+ >
248
+ <svg
249
+ class="xy-flow__minimap-svg"
250
+ [attr.width]="mmWidth()"
251
+ [attr.height]="mmHeight()"
252
+ [attr.viewBox]="viewBox()"
253
+ >
254
+ <!-- Background -->
255
+ <rect x="-10000" y="-10000" width="20000" height="20000" [attr.fill]="bgColor() ?? '#f0f0f0'" />
256
+ <!-- Mask: dim area outside viewport -->
257
+ <defs>
258
+ <clipPath [attr.id]="'minimap-mask-' + store.rfId()">
259
+ <rect x="-10000" y="-10000" width="20000" height="20000" />
260
+ </clipPath>
261
+ </defs>
262
+ <!-- Viewport window (bright area) -->
263
+ <rect
264
+ [attr.x]="maskPosition().x"
265
+ [attr.y]="maskPosition().y"
266
+ [attr.width]="maskPosition().width"
267
+ [attr.height]="maskPosition().height"
268
+ fill="#fff"
269
+ />
270
+ <!-- Nodes -->
271
+ @for (node of minimapNodes(); track node.id) {
272
+ <rect
273
+ class="xy-flow__minimap-node"
274
+ [class]="getNodeClassName(node)"
275
+ [attr.x]="node.x"
276
+ [attr.y]="node.y"
277
+ [attr.width]="node.width"
278
+ [attr.height]="node.height"
279
+ [attr.rx]="nodeBorderRadius()"
280
+ [attr.fill]="getNodeColor(node)"
281
+ [attr.stroke]="getNodeStrokeColor(node)"
282
+ [attr.stroke-width]="nodeStrokeWidth()"
283
+ (click)="onMinimapNodeClick($event, node)"
284
+ />
285
+ }
286
+ <!-- Viewport outline -->
287
+ <rect
288
+ [attr.x]="maskPosition().x"
289
+ [attr.y]="maskPosition().y"
290
+ [attr.width]="maskPosition().width"
291
+ [attr.height]="maskPosition().height"
292
+ fill="none"
293
+ [attr.stroke]="maskStrokeColor() ?? 'rgba(0,89,220,0.6)'"
294
+ [attr.stroke-width]="maskStrokeWidth()"
295
+ rx="2"
296
+ />
297
+ <!-- Mask overlay (dim non-viewport area) -->
298
+ @if (maskColor()) {
299
+ <rect x="-10000" y="-10000" width="20000" height="20000"
300
+ [attr.fill]="maskColor()"
301
+ style="pointer-events: none;"
302
+ />
303
+ <rect
304
+ [attr.x]="maskPosition().x"
305
+ [attr.y]="maskPosition().y"
306
+ [attr.width]="maskPosition().width"
307
+ [attr.height]="maskPosition().height"
308
+ fill="#fff"
309
+ style="pointer-events: none;"
310
+ />
311
+ }
312
+ </svg>
313
+ </div>
314
+ </ng-flow-panel>
315
+ `,
316
+ }]
317
+ }], null, { minimapContainerRef: [{ type: i0.ViewChild, args: ['minimapContainer', { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], mmWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], mmHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], pannable: [{ type: i0.Input, args: [{ isSignal: true, alias: "pannable", required: false }] }], zoomable: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomable", required: false }] }], zoomStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomStep", required: false }] }], inversePan: [{ type: i0.Input, args: [{ isSignal: true, alias: "inversePan", required: false }] }], nodeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeColor", required: false }] }], nodeStrokeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeStrokeColor", required: false }] }], nodeClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeClassName", required: false }] }], nodeBorderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeBorderRadius", required: false }] }], nodeStrokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeStrokeWidth", required: false }] }], nodeComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeComponent", required: false }] }], bgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "bgColor", required: false }] }], maskColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskColor", required: false }] }], maskStrokeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStrokeColor", required: false }] }], maskStrokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStrokeWidth", required: false }] }], offsetScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetScale", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], minimapClick: [{ type: i0.Output, args: ["minimapClick"] }], minimapNodeClick: [{ type: i0.Output, args: ["minimapNodeClick"] }] }); })();
318
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MiniMapComponent, { className: "MiniMapComponent", filePath: "lib/components/minimap/minimap.component.ts", lineNumber: 110 }); })();
319
+ //# sourceMappingURL=minimap.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimap.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/minimap/minimap.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EAER,SAAS,GAIV,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;;;;;;IA6C9C,+BAYE;IADA,2MAAS,0CAAgC,KAAC;IAX5C,iBAYE;;;;IAVA,+CAAgC;;;;;IA6BlC,AAJA,0BAGE,eAQA;;;;IANA,cAA2B;;;AAazC,MAAM,OAAO,gBAAgB;IArF7B;QAsFW,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3B,wBAAmB,GAAG,SAAS,CAAa,kBAAkB,0FAAC,CAAC;QAE/D,aAAQ,GAAG,KAAK,CAAgB,cAAc,+EAAC,CAAC;QAChD,YAAO,GAAG,KAAK,CAAC,GAAG,+EAAI,KAAK,EAAE,OAAO,GAAG,CAAC;QACzC,aAAQ,GAAG,KAAK,CAAC,GAAG,gFAAI,KAAK,EAAE,QAAQ,GAAG,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,EAAE,+EAAC,CAAC;QACrB,eAAU,GAAG,KAAK,CAAC,KAAK,iFAAC,CAAC;QAEnC,eAAe;QACN,cAAS,GAAG,KAAK,CAAmC,SAAS,gFAAC,CAAC;QAC/D,oBAAe,G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AM,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;IACvE,CAAC;iHAxLU,gBAAgB;oEAAhB,gBAAgB;;;;;YA9EvB,AADF,wCAAuC,gBASpC;YADC,gGAAS,0BAAsB,IAAC;;YAEhC,8BAKC;YAEC,0BAAgG;YAG9F,AADF,4BAAM,eACiD;YACnD,0BAA2D;YAE/D,AADE,iBAAW,EACN;YAEP,0BAME;YAEF,2FAcC;YAED,2BASE;YAEF,0EAAmB;YAgBzB,AADE,AADE,iBAAM,EACF,EACQ;;YA5ED,yCAAuB;YAKlC,cAA4B;YAC5B,AADA,4CAA4B,gCACE;;YAM5B,eAAwB;;YAKiC,cAAoC;;YAGjF,eAA0C;;YAMpD,eAA2B;;YAO7B,cAcC;YAdD,cAAA,kBAAc,CAcb;YAGC,eAA2B;;YAU7B,cAaC;YAbD,2CAaC;4BA5EC,cAAc;;iFAkFb,gBAAgB;cArF5B,SAAS;eAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ET;aACF;mEAGqD,kBAAkB;kFAF3D,gBAAgB"}
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgFlowProviderComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgFlowProviderComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgFlowProviderComponent, "ng-flow-provider", never, {}, {}, never, ["*"], true, never>;
5
+ }
6
+ //# sourceMappingURL=ng-flow-provider.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-flow-provider.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/ng-flow-provider/ng-flow-provider.component.ts"],"names":[],"mappings":";AAIA,qBAOa,uBAAuB;yCAAvB,uBAAuB;2CAAvB,uBAAuB;CAAG"}