rete-angular-plugin 0.0.0 → 2.0.0

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 (472) hide show
  1. package/12/bundles/rete-angular-plugin-ng12.umd.js +2197 -0
  2. package/12/bundles/rete-angular-plugin-ng12.umd.js.map +1 -0
  3. package/12/core.d.ts +48 -0
  4. package/12/esm2015/core.js +103 -0
  5. package/12/esm2015/index.js +11 -0
  6. package/12/esm2015/module.js +58 -0
  7. package/12/esm2015/presets/classic/components/connection/connection-wrapper.component.js +84 -0
  8. package/12/esm2015/presets/classic/components/connection/connection.component.js +32 -0
  9. package/12/esm2015/presets/classic/components/control/control.component.js +54 -0
  10. package/12/esm2015/presets/classic/components/index.js +6 -0
  11. package/12/esm2015/presets/classic/components/node/node.component.js +143 -0
  12. package/12/esm2015/presets/classic/components/socket/socket.component.js +34 -0
  13. package/12/esm2015/presets/classic/index.js +108 -0
  14. package/12/esm2015/presets/classic/types.js +2 -0
  15. package/12/esm2015/presets/context-menu/components/index.js +4 -0
  16. package/12/esm2015/presets/context-menu/components/item/item.component.js +116 -0
  17. package/12/esm2015/presets/context-menu/components/menu/menu.component.js +111 -0
  18. package/12/esm2015/presets/context-menu/components/search/search.component.js +28 -0
  19. package/12/esm2015/presets/context-menu/debounce.js +17 -0
  20. package/12/esm2015/presets/context-menu/index.js +38 -0
  21. package/12/esm2015/presets/context-menu/module.js +40 -0
  22. package/12/esm2015/presets/context-menu/types.js +2 -0
  23. package/12/esm2015/presets/index.js +5 -0
  24. package/12/esm2015/presets/minimap/components/index.js +4 -0
  25. package/12/esm2015/presets/minimap/components/mini-node/mini-node.component.js +55 -0
  26. package/12/esm2015/presets/minimap/components/mini-viewport/mini-viewport.component.js +81 -0
  27. package/12/esm2015/presets/minimap/components/minimap/minimap.component.js +104 -0
  28. package/12/esm2015/presets/minimap/index.js +42 -0
  29. package/12/esm2015/presets/minimap/module.js +40 -0
  30. package/12/esm2015/presets/minimap/types.js +2 -0
  31. package/12/esm2015/presets/reroute/components/index.js +3 -0
  32. package/12/esm2015/presets/reroute/components/pin/pin.component.js +86 -0
  33. package/12/esm2015/presets/reroute/components/pins/pins.component.js +52 -0
  34. package/12/esm2015/presets/reroute/index.js +32 -0
  35. package/12/esm2015/presets/reroute/module.js +35 -0
  36. package/12/esm2015/presets/reroute/types.js +2 -0
  37. package/12/esm2015/presets/types.js +2 -0
  38. package/12/esm2015/rete-angular-plugin-ng12.js +5 -0
  39. package/12/esm2015/shared/drag.js +23 -0
  40. package/12/esm2015/types.js +2 -0
  41. package/12/fesm2015/rete-angular-plugin-ng12.js +1475 -0
  42. package/12/fesm2015/rete-angular-plugin-ng12.js.map +1 -0
  43. package/12/index.d.ts +12 -0
  44. package/12/module.d.ts +12 -0
  45. package/12/package.json +17 -0
  46. package/12/presets/classic/components/connection/connection-wrapper.component.d.ts +30 -0
  47. package/12/presets/classic/components/connection/connection.component.d.ts +11 -0
  48. package/12/presets/classic/components/control/control.component.d.ts +14 -0
  49. package/12/presets/classic/components/index.d.ts +5 -0
  50. package/12/presets/classic/components/node/node.component.d.ts +28 -0
  51. package/12/presets/classic/components/socket/socket.component.d.ts +12 -0
  52. package/12/presets/classic/index.d.ts +18 -0
  53. package/12/presets/classic/types.d.ts +49 -0
  54. package/12/presets/context-menu/components/index.d.ts +3 -0
  55. package/12/presets/context-menu/components/item/item.component.d.ts +26 -0
  56. package/12/presets/context-menu/components/menu/menu.component.d.ts +27 -0
  57. package/12/presets/context-menu/components/search/search.component.d.ts +8 -0
  58. package/12/presets/context-menu/debounce.d.ts +5 -0
  59. package/12/presets/context-menu/index.d.ts +6 -0
  60. package/12/presets/context-menu/module.d.ts +10 -0
  61. package/12/presets/context-menu/types.d.ts +12 -0
  62. package/12/presets/index.d.ts +4 -0
  63. package/12/presets/minimap/components/index.d.ts +3 -0
  64. package/12/presets/minimap/components/mini-node/mini-node.component.d.ts +14 -0
  65. package/12/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +27 -0
  66. package/12/presets/minimap/components/minimap/minimap.component.d.ts +25 -0
  67. package/12/presets/minimap/index.d.ts +6 -0
  68. package/12/presets/minimap/module.d.ts +10 -0
  69. package/12/presets/minimap/types.d.ts +22 -0
  70. package/12/presets/reroute/components/index.d.ts +2 -0
  71. package/12/presets/reroute/components/pin/pin.component.d.ts +30 -0
  72. package/12/presets/reroute/components/pins/pins.component.d.ts +17 -0
  73. package/12/presets/reroute/index.d.ts +10 -0
  74. package/12/presets/reroute/module.d.ts +9 -0
  75. package/12/presets/reroute/types.d.ts +18 -0
  76. package/12/presets/types.d.ts +15 -0
  77. package/12/rete-angular-plugin-ng12.d.ts +5 -0
  78. package/12/shared/drag.d.ts +10 -0
  79. package/12/types.d.ts +29 -0
  80. package/13/core.d.ts +48 -0
  81. package/13/esm2020/core.mjs +109 -0
  82. package/13/esm2020/index.mjs +11 -0
  83. package/13/esm2020/module.mjs +58 -0
  84. package/13/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +79 -0
  85. package/13/esm2020/presets/classic/components/connection/connection.component.mjs +28 -0
  86. package/13/esm2020/presets/classic/components/control/control.component.mjs +51 -0
  87. package/13/esm2020/presets/classic/components/index.mjs +6 -0
  88. package/13/esm2020/presets/classic/components/node/node.component.mjs +137 -0
  89. package/13/esm2020/presets/classic/components/socket/socket.component.mjs +31 -0
  90. package/13/esm2020/presets/classic/index.mjs +111 -0
  91. package/13/esm2020/presets/classic/types.mjs +2 -0
  92. package/13/esm2020/presets/context-menu/components/index.mjs +4 -0
  93. package/13/esm2020/presets/context-menu/components/item/item.component.mjs +111 -0
  94. package/13/esm2020/presets/context-menu/components/menu/menu.component.mjs +105 -0
  95. package/13/esm2020/presets/context-menu/components/search/search.component.mjs +24 -0
  96. package/13/esm2020/presets/context-menu/debounce.mjs +17 -0
  97. package/13/esm2020/presets/context-menu/index.mjs +38 -0
  98. package/13/esm2020/presets/context-menu/module.mjs +40 -0
  99. package/13/esm2020/presets/context-menu/types.mjs +2 -0
  100. package/13/esm2020/presets/index.mjs +5 -0
  101. package/13/esm2020/presets/minimap/components/index.mjs +4 -0
  102. package/13/esm2020/presets/minimap/components/mini-node/mini-node.component.mjs +50 -0
  103. package/13/esm2020/presets/minimap/components/mini-viewport/mini-viewport.component.mjs +76 -0
  104. package/13/esm2020/presets/minimap/components/minimap/minimap.component.mjs +100 -0
  105. package/13/esm2020/presets/minimap/index.mjs +42 -0
  106. package/13/esm2020/presets/minimap/module.mjs +40 -0
  107. package/13/esm2020/presets/minimap/types.mjs +2 -0
  108. package/13/esm2020/presets/reroute/components/index.mjs +3 -0
  109. package/13/esm2020/presets/reroute/components/pin/pin.component.mjs +81 -0
  110. package/13/esm2020/presets/reroute/components/pins/pins.component.mjs +50 -0
  111. package/13/esm2020/presets/reroute/index.mjs +40 -0
  112. package/13/esm2020/presets/reroute/module.mjs +35 -0
  113. package/13/esm2020/presets/reroute/types.mjs +2 -0
  114. package/13/esm2020/presets/types.mjs +2 -0
  115. package/13/esm2020/rete-angular-plugin-ng13.mjs +5 -0
  116. package/13/esm2020/shared/drag.mjs +23 -0
  117. package/13/esm2020/types.mjs +2 -0
  118. package/13/fesm2015/rete-angular-plugin-ng13.mjs +1545 -0
  119. package/13/fesm2015/rete-angular-plugin-ng13.mjs.map +1 -0
  120. package/13/fesm2020/rete-angular-plugin-ng13.mjs +1436 -0
  121. package/13/fesm2020/rete-angular-plugin-ng13.mjs.map +1 -0
  122. package/13/index.d.ts +12 -0
  123. package/13/module.d.ts +12 -0
  124. package/13/package.json +30 -0
  125. package/13/presets/classic/components/connection/connection-wrapper.component.d.ts +30 -0
  126. package/13/presets/classic/components/connection/connection.component.d.ts +11 -0
  127. package/13/presets/classic/components/control/control.component.d.ts +14 -0
  128. package/13/presets/classic/components/index.d.ts +5 -0
  129. package/13/presets/classic/components/node/node.component.d.ts +28 -0
  130. package/13/presets/classic/components/socket/socket.component.d.ts +12 -0
  131. package/13/presets/classic/index.d.ts +18 -0
  132. package/13/presets/classic/types.d.ts +49 -0
  133. package/13/presets/context-menu/components/index.d.ts +3 -0
  134. package/13/presets/context-menu/components/item/item.component.d.ts +26 -0
  135. package/13/presets/context-menu/components/menu/menu.component.d.ts +27 -0
  136. package/13/presets/context-menu/components/search/search.component.d.ts +8 -0
  137. package/13/presets/context-menu/debounce.d.ts +5 -0
  138. package/13/presets/context-menu/index.d.ts +6 -0
  139. package/13/presets/context-menu/module.d.ts +10 -0
  140. package/13/presets/context-menu/types.d.ts +12 -0
  141. package/13/presets/index.d.ts +4 -0
  142. package/13/presets/minimap/components/index.d.ts +3 -0
  143. package/13/presets/minimap/components/mini-node/mini-node.component.d.ts +14 -0
  144. package/13/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +27 -0
  145. package/13/presets/minimap/components/minimap/minimap.component.d.ts +25 -0
  146. package/13/presets/minimap/index.d.ts +6 -0
  147. package/13/presets/minimap/module.d.ts +10 -0
  148. package/13/presets/minimap/types.d.ts +22 -0
  149. package/13/presets/reroute/components/index.d.ts +2 -0
  150. package/13/presets/reroute/components/pin/pin.component.d.ts +30 -0
  151. package/13/presets/reroute/components/pins/pins.component.d.ts +17 -0
  152. package/13/presets/reroute/index.d.ts +10 -0
  153. package/13/presets/reroute/module.d.ts +9 -0
  154. package/13/presets/reroute/types.d.ts +18 -0
  155. package/13/presets/types.d.ts +15 -0
  156. package/13/rete-angular-plugin-ng13.d.ts +5 -0
  157. package/13/shared/drag.d.ts +10 -0
  158. package/13/types.d.ts +29 -0
  159. package/14/core.d.ts +48 -0
  160. package/14/esm2020/core.mjs +109 -0
  161. package/14/esm2020/index.mjs +11 -0
  162. package/14/esm2020/module.mjs +56 -0
  163. package/14/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +79 -0
  164. package/14/esm2020/presets/classic/components/connection/connection.component.mjs +28 -0
  165. package/14/esm2020/presets/classic/components/control/control.component.mjs +51 -0
  166. package/14/esm2020/presets/classic/components/index.mjs +6 -0
  167. package/14/esm2020/presets/classic/components/node/node.component.mjs +137 -0
  168. package/14/esm2020/presets/classic/components/socket/socket.component.mjs +31 -0
  169. package/14/esm2020/presets/classic/index.mjs +111 -0
  170. package/14/esm2020/presets/classic/types.mjs +2 -0
  171. package/14/esm2020/presets/context-menu/components/index.mjs +4 -0
  172. package/14/esm2020/presets/context-menu/components/item/item.component.mjs +111 -0
  173. package/14/esm2020/presets/context-menu/components/menu/menu.component.mjs +105 -0
  174. package/14/esm2020/presets/context-menu/components/search/search.component.mjs +24 -0
  175. package/14/esm2020/presets/context-menu/debounce.mjs +17 -0
  176. package/14/esm2020/presets/context-menu/index.mjs +38 -0
  177. package/14/esm2020/presets/context-menu/module.mjs +38 -0
  178. package/14/esm2020/presets/context-menu/types.mjs +2 -0
  179. package/14/esm2020/presets/index.mjs +5 -0
  180. package/14/esm2020/presets/minimap/components/index.mjs +4 -0
  181. package/14/esm2020/presets/minimap/components/mini-node/mini-node.component.mjs +50 -0
  182. package/14/esm2020/presets/minimap/components/mini-viewport/mini-viewport.component.mjs +76 -0
  183. package/14/esm2020/presets/minimap/components/minimap/minimap.component.mjs +100 -0
  184. package/14/esm2020/presets/minimap/index.mjs +42 -0
  185. package/14/esm2020/presets/minimap/module.mjs +38 -0
  186. package/14/esm2020/presets/minimap/types.mjs +2 -0
  187. package/14/esm2020/presets/reroute/components/index.mjs +3 -0
  188. package/14/esm2020/presets/reroute/components/pin/pin.component.mjs +81 -0
  189. package/14/esm2020/presets/reroute/components/pins/pins.component.mjs +50 -0
  190. package/14/esm2020/presets/reroute/index.mjs +40 -0
  191. package/14/esm2020/presets/reroute/module.mjs +33 -0
  192. package/14/esm2020/presets/reroute/types.mjs +2 -0
  193. package/14/esm2020/presets/types.mjs +2 -0
  194. package/14/esm2020/rete-angular-plugin-ng14.mjs +5 -0
  195. package/14/esm2020/shared/drag.mjs +23 -0
  196. package/14/esm2020/types.mjs +2 -0
  197. package/14/fesm2015/rete-angular-plugin-ng14.mjs +1537 -0
  198. package/14/fesm2015/rete-angular-plugin-ng14.mjs.map +1 -0
  199. package/14/fesm2020/rete-angular-plugin-ng14.mjs +1428 -0
  200. package/14/fesm2020/rete-angular-plugin-ng14.mjs.map +1 -0
  201. package/14/index.d.ts +12 -0
  202. package/14/module.d.ts +12 -0
  203. package/14/package.json +30 -0
  204. package/14/presets/classic/components/connection/connection-wrapper.component.d.ts +30 -0
  205. package/14/presets/classic/components/connection/connection.component.d.ts +11 -0
  206. package/14/presets/classic/components/control/control.component.d.ts +14 -0
  207. package/14/presets/classic/components/index.d.ts +5 -0
  208. package/14/presets/classic/components/node/node.component.d.ts +28 -0
  209. package/14/presets/classic/components/socket/socket.component.d.ts +12 -0
  210. package/14/presets/classic/index.d.ts +18 -0
  211. package/14/presets/classic/types.d.ts +49 -0
  212. package/14/presets/context-menu/components/index.d.ts +3 -0
  213. package/14/presets/context-menu/components/item/item.component.d.ts +26 -0
  214. package/14/presets/context-menu/components/menu/menu.component.d.ts +27 -0
  215. package/14/presets/context-menu/components/search/search.component.d.ts +8 -0
  216. package/14/presets/context-menu/debounce.d.ts +5 -0
  217. package/14/presets/context-menu/index.d.ts +6 -0
  218. package/14/presets/context-menu/module.d.ts +10 -0
  219. package/14/presets/context-menu/types.d.ts +12 -0
  220. package/14/presets/index.d.ts +4 -0
  221. package/14/presets/minimap/components/index.d.ts +3 -0
  222. package/14/presets/minimap/components/mini-node/mini-node.component.d.ts +14 -0
  223. package/14/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +27 -0
  224. package/14/presets/minimap/components/minimap/minimap.component.d.ts +25 -0
  225. package/14/presets/minimap/index.d.ts +6 -0
  226. package/14/presets/minimap/module.d.ts +10 -0
  227. package/14/presets/minimap/types.d.ts +22 -0
  228. package/14/presets/reroute/components/index.d.ts +2 -0
  229. package/14/presets/reroute/components/pin/pin.component.d.ts +30 -0
  230. package/14/presets/reroute/components/pins/pins.component.d.ts +17 -0
  231. package/14/presets/reroute/index.d.ts +10 -0
  232. package/14/presets/reroute/module.d.ts +9 -0
  233. package/14/presets/reroute/types.d.ts +18 -0
  234. package/14/presets/types.d.ts +15 -0
  235. package/14/shared/drag.d.ts +10 -0
  236. package/14/types.d.ts +29 -0
  237. package/15/core.d.ts +48 -0
  238. package/15/esm2020/core.mjs +109 -0
  239. package/15/esm2020/index.mjs +11 -0
  240. package/15/esm2020/module.mjs +56 -0
  241. package/15/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +79 -0
  242. package/15/esm2020/presets/classic/components/connection/connection.component.mjs +28 -0
  243. package/15/esm2020/presets/classic/components/control/control.component.mjs +51 -0
  244. package/15/esm2020/presets/classic/components/index.mjs +6 -0
  245. package/15/esm2020/presets/classic/components/node/node.component.mjs +137 -0
  246. package/15/esm2020/presets/classic/components/socket/socket.component.mjs +31 -0
  247. package/15/esm2020/presets/classic/index.mjs +111 -0
  248. package/15/esm2020/presets/classic/types.mjs +2 -0
  249. package/15/esm2020/presets/context-menu/components/index.mjs +4 -0
  250. package/15/esm2020/presets/context-menu/components/item/item.component.mjs +111 -0
  251. package/15/esm2020/presets/context-menu/components/menu/menu.component.mjs +105 -0
  252. package/15/esm2020/presets/context-menu/components/search/search.component.mjs +24 -0
  253. package/15/esm2020/presets/context-menu/debounce.mjs +17 -0
  254. package/15/esm2020/presets/context-menu/index.mjs +38 -0
  255. package/15/esm2020/presets/context-menu/module.mjs +38 -0
  256. package/15/esm2020/presets/context-menu/types.mjs +2 -0
  257. package/15/esm2020/presets/index.mjs +5 -0
  258. package/15/esm2020/presets/minimap/components/index.mjs +4 -0
  259. package/15/esm2020/presets/minimap/components/mini-node/mini-node.component.mjs +50 -0
  260. package/15/esm2020/presets/minimap/components/mini-viewport/mini-viewport.component.mjs +76 -0
  261. package/15/esm2020/presets/minimap/components/minimap/minimap.component.mjs +100 -0
  262. package/15/esm2020/presets/minimap/index.mjs +42 -0
  263. package/15/esm2020/presets/minimap/module.mjs +38 -0
  264. package/15/esm2020/presets/minimap/types.mjs +2 -0
  265. package/15/esm2020/presets/reroute/components/index.mjs +3 -0
  266. package/15/esm2020/presets/reroute/components/pin/pin.component.mjs +81 -0
  267. package/15/esm2020/presets/reroute/components/pins/pins.component.mjs +50 -0
  268. package/15/esm2020/presets/reroute/index.mjs +40 -0
  269. package/15/esm2020/presets/reroute/module.mjs +33 -0
  270. package/15/esm2020/presets/reroute/types.mjs +2 -0
  271. package/15/esm2020/presets/types.mjs +2 -0
  272. package/15/esm2020/rete-angular-plugin-ng15.mjs +5 -0
  273. package/15/esm2020/shared/drag.mjs +23 -0
  274. package/15/esm2020/types.mjs +2 -0
  275. package/15/fesm2015/rete-angular-plugin-ng15.mjs +1537 -0
  276. package/15/fesm2015/rete-angular-plugin-ng15.mjs.map +1 -0
  277. package/15/fesm2020/rete-angular-plugin-ng15.mjs +1428 -0
  278. package/15/fesm2020/rete-angular-plugin-ng15.mjs.map +1 -0
  279. package/15/index.d.ts +12 -0
  280. package/15/module.d.ts +12 -0
  281. package/15/package.json +30 -0
  282. package/15/presets/classic/components/connection/connection-wrapper.component.d.ts +30 -0
  283. package/15/presets/classic/components/connection/connection.component.d.ts +11 -0
  284. package/15/presets/classic/components/control/control.component.d.ts +14 -0
  285. package/15/presets/classic/components/index.d.ts +5 -0
  286. package/15/presets/classic/components/node/node.component.d.ts +28 -0
  287. package/15/presets/classic/components/socket/socket.component.d.ts +12 -0
  288. package/15/presets/classic/index.d.ts +18 -0
  289. package/15/presets/classic/types.d.ts +49 -0
  290. package/15/presets/context-menu/components/index.d.ts +3 -0
  291. package/15/presets/context-menu/components/item/item.component.d.ts +26 -0
  292. package/15/presets/context-menu/components/menu/menu.component.d.ts +27 -0
  293. package/15/presets/context-menu/components/search/search.component.d.ts +8 -0
  294. package/15/presets/context-menu/debounce.d.ts +5 -0
  295. package/15/presets/context-menu/index.d.ts +6 -0
  296. package/15/presets/context-menu/module.d.ts +10 -0
  297. package/15/presets/context-menu/types.d.ts +12 -0
  298. package/15/presets/index.d.ts +4 -0
  299. package/15/presets/minimap/components/index.d.ts +3 -0
  300. package/15/presets/minimap/components/mini-node/mini-node.component.d.ts +14 -0
  301. package/15/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +27 -0
  302. package/15/presets/minimap/components/minimap/minimap.component.d.ts +25 -0
  303. package/15/presets/minimap/index.d.ts +6 -0
  304. package/15/presets/minimap/module.d.ts +10 -0
  305. package/15/presets/minimap/types.d.ts +22 -0
  306. package/15/presets/reroute/components/index.d.ts +2 -0
  307. package/15/presets/reroute/components/pin/pin.component.d.ts +30 -0
  308. package/15/presets/reroute/components/pins/pins.component.d.ts +17 -0
  309. package/15/presets/reroute/index.d.ts +10 -0
  310. package/15/presets/reroute/module.d.ts +9 -0
  311. package/15/presets/reroute/types.d.ts +18 -0
  312. package/15/presets/types.d.ts +15 -0
  313. package/15/shared/drag.d.ts +10 -0
  314. package/15/types.d.ts +29 -0
  315. package/16/core.d.ts +48 -0
  316. package/16/esm2022/core.mjs +111 -0
  317. package/16/esm2022/index.mjs +11 -0
  318. package/16/esm2022/module.mjs +49 -0
  319. package/16/esm2022/presets/classic/components/connection/connection-wrapper.component.mjs +90 -0
  320. package/16/esm2022/presets/classic/components/connection/connection.component.mjs +32 -0
  321. package/16/esm2022/presets/classic/components/control/control.component.mjs +54 -0
  322. package/16/esm2022/presets/classic/components/index.mjs +6 -0
  323. package/16/esm2022/presets/classic/components/node/node.component.mjs +144 -0
  324. package/16/esm2022/presets/classic/components/socket/socket.component.mjs +34 -0
  325. package/16/esm2022/presets/classic/index.mjs +111 -0
  326. package/16/esm2022/presets/classic/types.mjs +2 -0
  327. package/16/esm2022/presets/context-menu/components/index.mjs +4 -0
  328. package/16/esm2022/presets/context-menu/components/item/item.component.mjs +114 -0
  329. package/16/esm2022/presets/context-menu/components/menu/menu.component.mjs +111 -0
  330. package/16/esm2022/presets/context-menu/components/search/search.component.mjs +23 -0
  331. package/16/esm2022/presets/context-menu/debounce.mjs +17 -0
  332. package/16/esm2022/presets/context-menu/index.mjs +38 -0
  333. package/16/esm2022/presets/context-menu/module.mjs +35 -0
  334. package/16/esm2022/presets/context-menu/types.mjs +2 -0
  335. package/16/esm2022/presets/index.mjs +5 -0
  336. package/16/esm2022/presets/minimap/components/index.mjs +4 -0
  337. package/16/esm2022/presets/minimap/components/mini-node/mini-node.component.mjs +54 -0
  338. package/16/esm2022/presets/minimap/components/mini-viewport/mini-viewport.component.mjs +80 -0
  339. package/16/esm2022/presets/minimap/components/minimap/minimap.component.mjs +109 -0
  340. package/16/esm2022/presets/minimap/index.mjs +42 -0
  341. package/16/esm2022/presets/minimap/module.mjs +35 -0
  342. package/16/esm2022/presets/minimap/types.mjs +2 -0
  343. package/16/esm2022/presets/reroute/components/index.mjs +3 -0
  344. package/16/esm2022/presets/reroute/components/pin/pin.component.mjs +85 -0
  345. package/16/esm2022/presets/reroute/components/pins/pins.component.mjs +57 -0
  346. package/16/esm2022/presets/reroute/index.mjs +40 -0
  347. package/16/esm2022/presets/reroute/module.mjs +30 -0
  348. package/16/esm2022/presets/reroute/types.mjs +2 -0
  349. package/16/esm2022/presets/types.mjs +2 -0
  350. package/16/esm2022/rete-angular-plugin-ng16.mjs +5 -0
  351. package/16/esm2022/shared/drag.mjs +23 -0
  352. package/16/esm2022/types.mjs +2 -0
  353. package/16/fesm2022/rete-angular-plugin-ng16.mjs +1478 -0
  354. package/16/fesm2022/rete-angular-plugin-ng16.mjs.map +1 -0
  355. package/16/index.d.ts +12 -0
  356. package/16/module.d.ts +12 -0
  357. package/16/package.json +24 -0
  358. package/16/presets/classic/components/connection/connection-wrapper.component.d.ts +30 -0
  359. package/16/presets/classic/components/connection/connection.component.d.ts +11 -0
  360. package/16/presets/classic/components/control/control.component.d.ts +14 -0
  361. package/16/presets/classic/components/index.d.ts +5 -0
  362. package/16/presets/classic/components/node/node.component.d.ts +28 -0
  363. package/16/presets/classic/components/socket/socket.component.d.ts +12 -0
  364. package/16/presets/classic/index.d.ts +18 -0
  365. package/16/presets/classic/types.d.ts +49 -0
  366. package/16/presets/context-menu/components/index.d.ts +3 -0
  367. package/16/presets/context-menu/components/item/item.component.d.ts +26 -0
  368. package/16/presets/context-menu/components/menu/menu.component.d.ts +27 -0
  369. package/16/presets/context-menu/components/search/search.component.d.ts +8 -0
  370. package/16/presets/context-menu/debounce.d.ts +5 -0
  371. package/16/presets/context-menu/index.d.ts +6 -0
  372. package/16/presets/context-menu/module.d.ts +10 -0
  373. package/16/presets/context-menu/types.d.ts +12 -0
  374. package/16/presets/index.d.ts +4 -0
  375. package/16/presets/minimap/components/index.d.ts +3 -0
  376. package/16/presets/minimap/components/mini-node/mini-node.component.d.ts +14 -0
  377. package/16/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +27 -0
  378. package/16/presets/minimap/components/minimap/minimap.component.d.ts +25 -0
  379. package/16/presets/minimap/index.d.ts +6 -0
  380. package/16/presets/minimap/module.d.ts +10 -0
  381. package/16/presets/minimap/types.d.ts +22 -0
  382. package/16/presets/reroute/components/index.d.ts +2 -0
  383. package/16/presets/reroute/components/pin/pin.component.d.ts +30 -0
  384. package/16/presets/reroute/components/pins/pins.component.d.ts +17 -0
  385. package/16/presets/reroute/index.d.ts +10 -0
  386. package/16/presets/reroute/module.d.ts +9 -0
  387. package/16/presets/reroute/types.d.ts +18 -0
  388. package/16/presets/types.d.ts +15 -0
  389. package/16/shared/drag.d.ts +10 -0
  390. package/16/types.d.ts +29 -0
  391. package/LICENSE +21 -0
  392. package/README.md +28 -0
  393. package/bundles/rete-angular-plugin.umd.js +1707 -0
  394. package/bundles/rete-angular-plugin.umd.js.map +1 -0
  395. package/core.d.ts +48 -0
  396. package/esm2015/core.js +103 -0
  397. package/esm2015/index.js +12 -0
  398. package/esm2015/module.js +40 -0
  399. package/esm2015/presets/classic/components/connection/connection-wrapper.component.js +80 -0
  400. package/esm2015/presets/classic/components/connection/connection.component.js +17 -0
  401. package/esm2015/presets/classic/components/control/control.component.js +42 -0
  402. package/esm2015/presets/classic/components/index.js +6 -0
  403. package/esm2015/presets/classic/components/node/node.component.js +62 -0
  404. package/esm2015/presets/classic/components/socket/socket.component.js +29 -0
  405. package/esm2015/presets/classic/index.js +108 -0
  406. package/esm2015/presets/classic/types.js +2 -0
  407. package/esm2015/presets/context-menu/components/index.js +4 -0
  408. package/esm2015/presets/context-menu/components/item/item.component.js +64 -0
  409. package/esm2015/presets/context-menu/components/menu/menu.component.js +62 -0
  410. package/esm2015/presets/context-menu/components/search/search.component.js +18 -0
  411. package/esm2015/presets/context-menu/debounce.js +17 -0
  412. package/esm2015/presets/context-menu/index.js +38 -0
  413. package/esm2015/presets/context-menu/module.js +28 -0
  414. package/esm2015/presets/context-menu/types.js +2 -0
  415. package/esm2015/presets/index.js +9 -0
  416. package/esm2015/presets/minimap/components/index.js +4 -0
  417. package/esm2015/presets/minimap/components/mini-node/mini-node.component.js +39 -0
  418. package/esm2015/presets/minimap/components/mini-viewport/mini-viewport.component.js +59 -0
  419. package/esm2015/presets/minimap/components/minimap/minimap.component.js +70 -0
  420. package/esm2015/presets/minimap/index.js +42 -0
  421. package/esm2015/presets/minimap/module.js +28 -0
  422. package/esm2015/presets/minimap/types.js +2 -0
  423. package/esm2015/presets/reroute/components/index.js +3 -0
  424. package/esm2015/presets/reroute/components/pin/pin.component.js +66 -0
  425. package/esm2015/presets/reroute/components/pins/pins.component.js +31 -0
  426. package/esm2015/presets/reroute/index.js +32 -0
  427. package/esm2015/presets/reroute/module.js +25 -0
  428. package/esm2015/presets/reroute/types.js +2 -0
  429. package/esm2015/presets/types.js +2 -0
  430. package/esm2015/rete-angular-plugin.js +18 -0
  431. package/esm2015/shared/drag.js +23 -0
  432. package/esm2015/types.js +2 -0
  433. package/fesm2015/rete-angular-plugin.js +1111 -0
  434. package/fesm2015/rete-angular-plugin.js.map +1 -0
  435. package/index.d.ts +12 -0
  436. package/module.d.ts +2 -0
  437. package/package.json +37 -5
  438. package/presets/classic/components/connection/connection-wrapper.component.d.ts +27 -0
  439. package/presets/classic/components/connection/connection.component.d.ts +8 -0
  440. package/presets/classic/components/control/control.component.d.ts +11 -0
  441. package/presets/classic/components/index.d.ts +5 -0
  442. package/presets/classic/components/node/node.component.d.ts +23 -0
  443. package/presets/classic/components/socket/socket.component.d.ts +9 -0
  444. package/presets/classic/index.d.ts +18 -0
  445. package/presets/classic/types.d.ts +49 -0
  446. package/presets/context-menu/components/index.d.ts +3 -0
  447. package/presets/context-menu/components/item/item.component.d.ts +23 -0
  448. package/presets/context-menu/components/menu/menu.component.d.ts +24 -0
  449. package/presets/context-menu/components/search/search.component.d.ts +5 -0
  450. package/presets/context-menu/debounce.d.ts +5 -0
  451. package/presets/context-menu/index.d.ts +6 -0
  452. package/presets/context-menu/module.d.ts +2 -0
  453. package/presets/context-menu/types.d.ts +12 -0
  454. package/presets/index.d.ts +4 -0
  455. package/presets/minimap/components/index.d.ts +3 -0
  456. package/presets/minimap/components/mini-node/mini-node.component.d.ts +11 -0
  457. package/presets/minimap/components/mini-viewport/mini-viewport.component.d.ts +24 -0
  458. package/presets/minimap/components/minimap/minimap.component.d.ts +22 -0
  459. package/presets/minimap/index.d.ts +6 -0
  460. package/presets/minimap/module.d.ts +2 -0
  461. package/presets/minimap/types.d.ts +22 -0
  462. package/presets/reroute/components/index.d.ts +2 -0
  463. package/presets/reroute/components/pin/pin.component.d.ts +27 -0
  464. package/presets/reroute/components/pins/pins.component.d.ts +14 -0
  465. package/presets/reroute/index.d.ts +10 -0
  466. package/presets/reroute/module.d.ts +2 -0
  467. package/presets/reroute/types.d.ts +18 -0
  468. package/presets/types.d.ts +15 -0
  469. package/rete-angular-plugin.d.ts +17 -0
  470. package/rete-angular-plugin.metadata.json +1 -0
  471. package/shared/drag.d.ts +10 -0
  472. package/types.d.ts +29 -0
@@ -0,0 +1,27 @@
1
+ import { MinimapData } from '../../types';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MiniViewportComponent {
4
+ left: number;
5
+ top: number;
6
+ width: number;
7
+ height: number;
8
+ containerWidth: number;
9
+ translate: MinimapData['translate'];
10
+ drag: {
11
+ start(e: {
12
+ pageX: number;
13
+ pageY: number;
14
+ }): void;
15
+ };
16
+ get styleLeft(): string;
17
+ get styleTop(): string;
18
+ get styleWidth(): string;
19
+ get styleHeight(): string;
20
+ pointerdown(event: PointerEvent): void;
21
+ px(value: number): string;
22
+ scale(v: number): number;
23
+ invert(v: number): number;
24
+ onDrag(dx: number, dy: number): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<MiniViewportComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<MiniViewportComponent, "minimap-mini-viewport", never, { "left": "left"; "top": "top"; "width": "width"; "height": "height"; "containerWidth": "containerWidth"; "translate": "translate"; }, {}, never, never, false>;
27
+ }
@@ -0,0 +1,25 @@
1
+ import { ChangeDetectorRef, OnChanges, ElementRef } from '@angular/core';
2
+ import { MinimapData } from '../../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MinimapComponent implements OnChanges {
5
+ el: ElementRef;
6
+ private cdr;
7
+ rendered: () => void;
8
+ size: number;
9
+ ratio: MinimapData['ratio'];
10
+ nodes: MinimapData['nodes'];
11
+ viewport: MinimapData['viewport'];
12
+ translate: MinimapData['translate'];
13
+ point: MinimapData['point'];
14
+ get width(): string;
15
+ get height(): string;
16
+ pointerdown(event: PointerEvent): void;
17
+ dblclick(event: MouseEvent): void;
18
+ constructor(el: ElementRef, cdr: ChangeDetectorRef);
19
+ ngOnChanges(): void;
20
+ px(value: number): string;
21
+ scale(value: number): number;
22
+ identifyMiniNode(_: number, item: MinimapData['nodes'][number]): string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinimapComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<MinimapComponent, "ng-component", never, { "rendered": "rendered"; "size": "size"; "ratio": "ratio"; "nodes": "nodes"; "viewport": "viewport"; "translate": "translate"; "point": "point"; }, {}, never, never, false>;
25
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseSchemes } from 'rete';
2
+ import { RenderPreset } from '../types';
3
+ import { MinimapRender } from './types';
4
+ export declare function setup<Schemes extends BaseSchemes, K extends MinimapRender>(props?: {
5
+ size?: number;
6
+ }): RenderPreset<Schemes, K>;
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/minimap/minimap.component";
3
+ import * as i2 from "./components/mini-viewport/mini-viewport.component";
4
+ import * as i3 from "./components/mini-node/mini-node.component";
5
+ import * as i4 from "@angular/common";
6
+ export declare class ReteMinimapModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReteMinimapModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReteMinimapModule, [typeof i1.MinimapComponent, typeof i2.MiniViewportComponent, typeof i3.MiniNodeComponent], [typeof i4.CommonModule], [typeof i1.MinimapComponent, typeof i2.MiniViewportComponent, typeof i3.MiniNodeComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ReteMinimapModule>;
10
+ }
@@ -0,0 +1,22 @@
1
+ import { RenderSignal } from '../../types';
2
+ export declare type Rect = {
3
+ width: number;
4
+ height: number;
5
+ left: number;
6
+ top: number;
7
+ };
8
+ export declare type Transform = {
9
+ x: number;
10
+ y: number;
11
+ k: number;
12
+ };
13
+ export declare type Translate = (dx: number, dy: number) => void;
14
+ export declare type MinimapData = {
15
+ ratio: number;
16
+ nodes: Rect[];
17
+ viewport: Rect;
18
+ start(): Transform;
19
+ translate: Translate;
20
+ point(x: number, y: number): void;
21
+ };
22
+ export declare type MinimapRender = RenderSignal<'minimap', MinimapData>;
@@ -0,0 +1,2 @@
1
+ export { PinsComponent } from './pins/pins.component';
2
+ export { PinComponent } from './pin/pin.component';
@@ -0,0 +1,30 @@
1
+ import { ChangeDetectorRef, OnChanges, EventEmitter } from '@angular/core';
2
+ import { Position } from '../../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PinComponent implements OnChanges {
5
+ private cdr;
6
+ position: Position;
7
+ selected?: boolean;
8
+ getPointer: () => Position;
9
+ menu: EventEmitter<void>;
10
+ translate: EventEmitter<{
11
+ dx: number;
12
+ dy: number;
13
+ }>;
14
+ down: EventEmitter<void>;
15
+ drag: {
16
+ start(e: {
17
+ pageX: number;
18
+ pageY: number;
19
+ }): void;
20
+ };
21
+ get _selected(): boolean;
22
+ get top(): string;
23
+ get left(): string;
24
+ pointerdown(event: PointerEvent): void;
25
+ contextmenu(event: MouseEvent): void;
26
+ constructor(cdr: ChangeDetectorRef);
27
+ ngOnChanges(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<PinComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PinComponent, "reroute-pin", never, { "position": "position"; "selected": "selected"; "getPointer": "getPointer"; }, { "menu": "menu"; "translate": "translate"; "down": "down"; }, never, never, false>;
30
+ }
@@ -0,0 +1,17 @@
1
+ import { ChangeDetectorRef, OnChanges } from '@angular/core';
2
+ import { Pin, PinData, Position } from '../../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PinsComponent implements OnChanges {
5
+ private cdr;
6
+ rendered: () => void;
7
+ pins: PinData['pins'];
8
+ down?: (id: string) => void;
9
+ translate?: (id: string, dx: number, dy: number) => void;
10
+ menu?: (id: string) => void;
11
+ getPointer?: () => Position;
12
+ constructor(cdr: ChangeDetectorRef);
13
+ ngOnChanges(): void;
14
+ track(_: number, item: Pin): string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<PinsComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<PinsComponent, "ng-component", never, { "rendered": "rendered"; "pins": "pins"; "down": "down"; "translate": "translate"; "menu": "menu"; "getPointer": "getPointer"; }, {}, never, never, false>;
17
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseSchemes } from 'rete';
2
+ import { RenderPreset } from '../types';
3
+ import { PinsRender } from './types';
4
+ declare type Props = {
5
+ translate?: (id: string, dx: number, dy: number) => void;
6
+ contextMenu?: (id: string) => void;
7
+ pointerdown?: (id: string) => void;
8
+ };
9
+ export declare function setup<Schemes extends BaseSchemes, K extends PinsRender>(props?: Props): RenderPreset<Schemes, K>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/pins/pins.component";
3
+ import * as i2 from "./components/pin/pin.component";
4
+ import * as i3 from "@angular/common";
5
+ export declare class ReteRerouteModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReteRerouteModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReteRerouteModule, [typeof i1.PinsComponent, typeof i2.PinComponent], [typeof i3.CommonModule], [typeof i1.PinsComponent, typeof i2.PinComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ReteRerouteModule>;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { ConnectionId } from 'rete';
2
+ import { RenderSignal } from '../../types';
3
+ export declare type Position = {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ export declare type Pin = {
8
+ id: string;
9
+ position: Position;
10
+ selected?: boolean;
11
+ };
12
+ export declare type PinData = {
13
+ id: ConnectionId;
14
+ pins: Pin[];
15
+ };
16
+ export declare type PinsRender = RenderSignal<'reroute-pins', {
17
+ data: PinData;
18
+ }>;
@@ -0,0 +1,15 @@
1
+ import { BaseSchemes } from 'rete';
2
+ import { AngularPlugin } from '../core';
3
+ export declare type RenderPreset<Schemes extends BaseSchemes, T> = {
4
+ attach?: (plugin: AngularPlugin<Schemes, T>) => void;
5
+ update: (context: Extract<T, {
6
+ type: 'render';
7
+ }>, plugin: AngularPlugin<Schemes, T>) => Record<string, unknown> | undefined | null | void;
8
+ mount: (context: Extract<T, {
9
+ type: 'render';
10
+ }>, plugin: AngularPlugin<Schemes, T>) => {
11
+ key: string;
12
+ component: any;
13
+ props: Record<string, unknown>;
14
+ } | undefined | null | void;
15
+ };
@@ -0,0 +1,10 @@
1
+ import { Position } from '../types';
2
+ declare type Translate = (dx: number, dy: number) => void;
3
+ declare type StartEvent = {
4
+ pageX: number;
5
+ pageY: number;
6
+ };
7
+ export declare function useDrag(translate: Translate, getPointer: (e: StartEvent) => Position): {
8
+ start(e: StartEvent): void;
9
+ };
10
+ export {};
package/14/types.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import { NgElement as NgEl, NgElementStrategy } from '@angular/elements';
2
+ export declare type NgElement = NgEl & {
3
+ ngElementStrategy: NgElementStrategy & {
4
+ setInputValue(key: string, value: any): void;
5
+ };
6
+ };
7
+ export declare type NodeProps = {
8
+ data: any;
9
+ rendered: any;
10
+ emit: any;
11
+ } & NgElement;
12
+ export declare type Position = {
13
+ x: number;
14
+ y: number;
15
+ };
16
+ export declare type RenderSignal<Type extends string, Data> = {
17
+ type: 'render';
18
+ data: {
19
+ element: HTMLElement;
20
+ filled?: boolean;
21
+ type: Type;
22
+ } & Data;
23
+ } | {
24
+ type: 'rendered';
25
+ data: {
26
+ element: HTMLElement;
27
+ type: Type;
28
+ } & Data;
29
+ };
package/15/core.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ import { Injector } from '@angular/core';
2
+ import { BaseSchemes, CanAssignSignal, Scope } from 'rete';
3
+ import { NgElement, Position, RenderSignal } from './types';
4
+ import { RenderPreset } from './presets/types';
5
+ declare type Item = {
6
+ key: string;
7
+ ngElement: NgElement;
8
+ };
9
+ declare type Renderer = {
10
+ get(element: HTMLElement): Item | undefined;
11
+ mount(element: HTMLElement, key: string, component: any, injector: Injector, props: Record<string, unknown>): void;
12
+ update(item: Item, props: Record<string, unknown>): void;
13
+ unmount(element: HTMLElement): void;
14
+ };
15
+ declare type Produces<Schemes extends BaseSchemes> = {
16
+ type: 'connectionpath';
17
+ data: {
18
+ payload: Schemes['Connection'];
19
+ path?: string;
20
+ points: Position[];
21
+ };
22
+ };
23
+ declare type Requires<Schemes extends BaseSchemes> = RenderSignal<'node', {
24
+ payload: Schemes['Node'];
25
+ }> | RenderSignal<'connection', {
26
+ payload: Schemes['Connection'];
27
+ start?: Position;
28
+ end?: Position;
29
+ }> | {
30
+ type: 'unmount';
31
+ data: {
32
+ element: HTMLElement;
33
+ };
34
+ };
35
+ export declare class AngularPlugin<Schemes extends BaseSchemes, T = Requires<Schemes>> extends Scope<Produces<Schemes>, [Requires<Schemes> | T]> {
36
+ private params;
37
+ presets: RenderPreset<Schemes, T>[];
38
+ renderer: Renderer;
39
+ owners: WeakMap<HTMLElement, RenderPreset<Schemes, T>>;
40
+ constructor(params: {
41
+ injector: Injector;
42
+ });
43
+ setParent(scope: Scope<Requires<Schemes> | T>): void;
44
+ private unmount;
45
+ private mount;
46
+ addPreset<K>(preset: RenderPreset<Schemes, CanAssignSignal<T, K> extends true ? K : 'Cannot apply preset. Provided signals are not compatible'>): void;
47
+ }
48
+ export {};
@@ -0,0 +1,109 @@
1
+ import { Scope } from 'rete';
2
+ import { createCustomElement } from '@angular/elements';
3
+ function getRenderer() {
4
+ const elements = new WeakMap();
5
+ return {
6
+ get(element) {
7
+ return elements.get(element);
8
+ },
9
+ mount(element, key, component, injector, props) {
10
+ // LIMITATION: If an element is remounted with the same identifier, the component cannot be replaced
11
+ const exists = customElements.get(key);
12
+ if (!exists) {
13
+ customElements.define(key, createCustomElement(component, { injector }));
14
+ }
15
+ const ngElement = document.createElement(key);
16
+ Object.keys(props).forEach(key => {
17
+ ngElement[key] = props[key];
18
+ });
19
+ element.appendChild(ngElement);
20
+ elements.set(element, { key, ngElement });
21
+ },
22
+ update({ ngElement }, props) {
23
+ Object.keys(props).forEach(key => {
24
+ ngElement.ngElementStrategy.setInputValue(key, props[key]);
25
+ });
26
+ ngElement.ngElementStrategy.setInputValue('seed', Math.random());
27
+ },
28
+ unmount(element) {
29
+ const existing = elements.get(element);
30
+ if (existing) {
31
+ existing.ngElement.remove();
32
+ elements.delete(element);
33
+ }
34
+ }
35
+ };
36
+ }
37
+ export class AngularPlugin extends Scope {
38
+ constructor(params) {
39
+ super('angular-render');
40
+ this.params = params;
41
+ this.presets = [];
42
+ this.owners = new WeakMap();
43
+ this.renderer = getRenderer();
44
+ this.addPipe(context => {
45
+ if (!context || typeof context !== 'object' || !('type' in context))
46
+ return context;
47
+ if (context.type === 'unmount') {
48
+ this.unmount(context.data.element);
49
+ }
50
+ else if (context.type === 'render') {
51
+ if ('filled' in context.data && context.data.filled) {
52
+ return context;
53
+ }
54
+ if (this.mount(context.data.element, context)) {
55
+ return {
56
+ ...context,
57
+ data: {
58
+ ...context.data,
59
+ filled: true
60
+ }
61
+ };
62
+ }
63
+ }
64
+ return context;
65
+ });
66
+ }
67
+ setParent(scope) {
68
+ super.setParent(scope);
69
+ this.presets.forEach(preset => {
70
+ if (preset.attach)
71
+ preset.attach(this);
72
+ });
73
+ }
74
+ unmount(element) {
75
+ this.owners.delete(element);
76
+ this.renderer.unmount(element);
77
+ }
78
+ mount(element, context) {
79
+ const existing = this.renderer.get(element);
80
+ if (existing) {
81
+ this.presets.forEach(preset => {
82
+ if (this.owners.get(element) !== preset)
83
+ return;
84
+ const result = preset.update(context, this);
85
+ if (result) {
86
+ this.renderer.update(existing, result);
87
+ }
88
+ });
89
+ return true;
90
+ }
91
+ for (const preset of this.presets) {
92
+ const result = preset.mount(context, this);
93
+ if (!result)
94
+ continue;
95
+ const { key, component, props } = result;
96
+ this.renderer.mount(element, key, component, this.params.injector, props);
97
+ this.owners.set(element, preset);
98
+ return true;
99
+ }
100
+ return;
101
+ }
102
+ addPreset(preset) {
103
+ const local = preset;
104
+ if (local.attach)
105
+ local.attach(this);
106
+ this.presets.push(local);
107
+ }
108
+ }
109
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL25nMTUvc3JjL2NvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFnQyxLQUFLLEVBQUUsTUFBTSxNQUFNLENBQUE7QUFDMUQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFheEQsU0FBUyxXQU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4gICAgICAgIGlmICgnZmlsbGVkJyBpbiBjb250ZXh0LmRhdGEgJiYgY29udGV4dC5kYXRhLmZpbGxlZCkge1xuICAgICAgICAgIHJldHVybiBjb250ZXh0XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMubW91bnQoY29udGV4dC5kYXRhLmVsZW1lbnQsIGNvbnRleHQpKSB7XG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIC4uLmNvbnRleHQsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgIC4uLmNvbnRleHQuZGF0YSxcbiAgICAgICAgICAgICAgZmlsbGVkOiB0cnVlXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBhcyB0eXBlb2YgY29udGV4dFxuICAgICAgICB9XG4gICAgICB9XG4gICAgICByZXR1cm4gY29udGV4dFxuICAgIH0pXG4gIH1cblxuICBzZXRQYXJlbnQoc2NvcGU6IFNjb3BlPFJlcXVpcmVzPFNjaGVtZXM+IHwgVD4pOiB2b2lkIHtcbiAgICBzdXBlci5zZXRQYXJlbnQoc2NvcGUpXG5cbiAgICB0aGlzLnByZXNldHMuZm9yRWFjaChwcmVzZXQgPT4ge1xuICAgICAgaWYgKHByZXNldC5hdHRhY2gpIHByZXNldC5hdHRhY2godGhpcylcbiAgICB9KVxuICB9XG5cblxuICBwcml2YXRlIHVubW91bnQoZWxlbWVudDogSFRNTEVsZW1lbnQpIHtcbiAgICB0aGlzLm93bmVycy5kZWxldGUoZWxlbWVudClcbiAgICB0aGlzLnJlbmRlcmVyLnVubW91bnQoZWxlbWVudClcbiAgfVxuXG4gIHByaXZhdGUgbW91bnQoZWxlbWVudDogSFRNTEVsZW1lbnQsIGNvbnRleHQ6IFJlcXVpcmVzPFNjaGVtZXM+KSB7XG4gICAgY29uc3QgZXhpc3RpbmcgPSB0aGlzLnJlbmRlcmVyLmdldChlbGVtZW50KVxuXG4gICAgaWYgKGV4aXN0aW5nKSB7XG4gICAgICB0aGlzLnByZX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JsZSc+KSB7XG4gICAgY29uc3QgbG9jYWwgPSBwcmVzZXQgYXMgdW5rbm93biBhcyBSZW5kZXJQcmVzZXQ8U2NoZW1lcywgVD5cblxuICAgIGlmIChsb2NhbC5hdHRhY2gpIGxvY2FsLmF0dGFjaCh0aGlzKVxuICAgIHRoaXMucHJlc2V0cy5wdXNoKGxvY2FsKVxuICB9XG59XG4iXX0=
@@ -0,0 +1,11 @@
1
+ export * as Presets from './presets';
2
+ export { ReteModule } from './module';
3
+ export { ReteContextMenuModule } from './presets/context-menu/module';
4
+ export { ReteMinimapModule } from './presets/minimap/module';
5
+ export { ReteRerouteModule } from './presets/reroute/module';
6
+ export * from './presets/classic/components';
7
+ export * from './presets/context-menu/components';
8
+ export * from './presets/minimap/components';
9
+ export * from './presets/reroute/components';
10
+ export * from './core';
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9uZzE1L3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLFdBQVcsQ0FBQTtBQUdwQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBRXJDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLCtCQUErQixDQUFBO0FBQ3JFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDBCQUEwQixDQUFBO0FBQzVELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDBCQUEwQixDQUFBO0FBQzVELGNBQWMsOEJBQThCLENBQUE7QUFDNUMsY0FBYyxtQ0FBbUMsQ0FBQTtBQUNqRCxjQUFjLDhCQUE4QixDQUFBO0FBQzVDLGNBQWMsOEJBQThCLENBQUE7QUFDNUMsY0FBYyxRQUFRLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBhcyBQcmVzZXRzIGZyb20gJy4vcHJlc2V0cydcblxuZXhwb3J0IHsgQW5ndWxhckFyZWEyRCB9IGZyb20gJy4vcHJlc2V0cy9jbGFzc2ljL3R5cGVzJ1xuZXhwb3J0IHsgUmV0ZU1vZHVsZSB9IGZyb20gJy4vbW9kdWxlJ1xuZXhwb3J0IHsgUmVuZGVyUHJlc2V0IH0gZnJvbSAnLi9wcmVzZXRzL3R5cGVzJ1xuZXhwb3J0IHsgUmV0ZUNvbnRleHRNZW51TW9kdWxlIH0gZnJvbSAnLi9wcmVzZXRzL2NvbnRleHQtbWVudS9tb2R1bGUnXG5leHBvcnQgeyBSZXRlTWluaW1hcE1vZHVsZSB9IGZyb20gJy4vcHJlc2V0cy9taW5pbWFwL21vZHVsZSdcbmV4cG9ydCB7IFJldGVSZXJvdXRlTW9kdWxlIH0gZnJvbSAnLi9wcmVzZXRzL3Jlcm91dGUvbW9kdWxlJ1xuZXhwb3J0ICogZnJvbSAnLi9wcmVzZXRzL2NsYXNzaWMvY29tcG9uZW50cydcbmV4cG9ydCAqIGZyb20gJy4vcHJlc2V0cy9jb250ZXh0LW1lbnUvY29tcG9uZW50cydcbmV4cG9ydCAqIGZyb20gJy4vcHJlc2V0cy9taW5pbWFwL2NvbXBvbmVudHMnXG5leHBvcnQgKiBmcm9tICcuL3ByZXNldHMvcmVyb3V0ZS9jb21wb25lbnRzJ1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlJ1xuIl19
@@ -0,0 +1,56 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { NodeComponent, RefDirective } from './presets/classic/components/node/node.component';
4
+ import { ConnectionComponent } from './presets/classic/components/connection/connection.component';
5
+ import { SocketComponent } from './presets/classic/components/socket/socket.component';
6
+ import { ConnectionWrapperComponent } from './presets/classic/components/connection/connection-wrapper.component';
7
+ import { ControlComponent } from './presets/classic/components/control/control.component';
8
+ import * as i0 from "@angular/core";
9
+ export class ReteModule {
10
+ }
11
+ ReteModule.ɵfac = function ReteModule_Factory(t) { return new (t || ReteModule)(); };
12
+ ReteModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ReteModule });
13
+ ReteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
14
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReteModule, [{
15
+ type: NgModule,
16
+ args: [{
17
+ declarations: [
18
+ RefDirective,
19
+ NodeComponent,
20
+ ConnectionComponent,
21
+ ConnectionWrapperComponent,
22
+ SocketComponent,
23
+ ControlComponent
24
+ ],
25
+ imports: [
26
+ CommonModule
27
+ ],
28
+ exports: [
29
+ RefDirective,
30
+ NodeComponent,
31
+ ConnectionComponent,
32
+ ConnectionWrapperComponent,
33
+ SocketComponent,
34
+ ControlComponent
35
+ ],
36
+ entryComponents: [
37
+ NodeComponent,
38
+ ConnectionComponent,
39
+ ConnectionWrapperComponent,
40
+ SocketComponent,
41
+ ControlComponent
42
+ ]
43
+ }]
44
+ }], null, null); })();
45
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ReteModule, { declarations: [RefDirective,
46
+ NodeComponent,
47
+ ConnectionComponent,
48
+ ConnectionWrapperComponent,
49
+ SocketComponent,
50
+ ControlComponent], imports: [CommonModule], exports: [RefDirective,
51
+ NodeComponent,
52
+ ConnectionComponent,
53
+ ConnectionWrapperComponent,
54
+ SocketComponent,
55
+ ControlComponent] }); })();
56
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbmcxNS9zcmMvbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQU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LFxuICAgIENvbnRyb2xDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgUmVmRGlyZWN0aXZlLFxuICAgIE5vZGVDb21wb25lbnQsXG4gICAgQ29ubmVjdGlvbkNvbXBvbmVudCxcbiAgICBDb25uZWN0aW9uV3JhcHBlckNvbXBvbmVudCxcbiAgICBTb2NrZXRDb21wb25lbnQsXG4gICAgQ29udHJvbENvbXBvbmVudFxuICBdLFxuICBlbnRyeUNvbXBvbmVudHM6IFtcbiAgICBOb2RlQ29tcG9uZW50LFxuICAgIENvbm5lY3Rpb25Db21wb25lbnQsXG4gICAgQ29ubmVjdGlvbldyYXBwZXJDb21wb25lbnQsXG4gICAgU29ja2V0Q29tcG9uZW50LFxuICAgIENvbnRyb2xDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBSZXRlTW9kdWxlIHt9XG4iXX0=
@@ -0,0 +1,79 @@
1
+ import { Component, Input, ChangeDetectorRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core';
2
+ import { ClassicPreset } from 'rete';
3
+ import * as i0 from "@angular/core";
4
+ export class ConnectionWrapperComponent {
5
+ constructor(cdr, viewContainerRef, componentFactoryResolver) {
6
+ this.cdr = cdr;
7
+ this.viewContainerRef = viewContainerRef;
8
+ this.componentFactoryResolver = componentFactoryResolver;
9
+ this.startOb = null;
10
+ this.endOb = null;
11
+ this.cdr.detach();
12
+ }
13
+ get _start() {
14
+ return 'x' in this.start ? this.start : this.startOb;
15
+ }
16
+ get _end() {
17
+ return 'x' in this.end ? this.end : this.endOb;
18
+ }
19
+ async ngOnChanges() {
20
+ await this.updatePath();
21
+ requestAnimationFrame(() => this.rendered());
22
+ this.cdr.detectChanges();
23
+ this.update();
24
+ }
25
+ async updatePath() {
26
+ if (this._start && this._end) {
27
+ this._path = await this.path(this._start, this._end);
28
+ }
29
+ }
30
+ ngOnInit() {
31
+ if (typeof this.start === 'function') {
32
+ this.start(async (value) => {
33
+ this.startOb = value;
34
+ await this.updatePath();
35
+ this.cdr.detectChanges();
36
+ this.update();
37
+ });
38
+ }
39
+ if (typeof this.end === 'function') {
40
+ this.end(async (value) => {
41
+ this.endOb = value;
42
+ await this.updatePath();
43
+ this.cdr.detectChanges();
44
+ this.update();
45
+ });
46
+ }
47
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(this.connectionComponent);
48
+ this.viewContainerRef.clear();
49
+ this.ref = this.viewContainerRef.createComponent(componentFactory);
50
+ this.update();
51
+ }
52
+ update() {
53
+ this.ref.instance.data = this.data;
54
+ this.ref.instance.start = this._start;
55
+ this.ref.instance.end = this._end;
56
+ this.ref.instance.path = this._path;
57
+ }
58
+ }
59
+ ConnectionWrapperComponent.ɵfac = function ConnectionWrapperComponent_Factory(t) { return new (t || ConnectionWrapperComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
60
+ ConnectionWrapperComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConnectionWrapperComponent, selectors: [["ng-component"]], inputs: { data: "data", start: "start", end: "end", path: "path", rendered: "rendered", connectionComponent: "connectionComponent" }, features: [i0.ɵɵNgOnChangesFeature], decls: 0, vars: 0, template: function ConnectionWrapperComponent_Template(rf, ctx) { }, encapsulation: 2 });
61
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConnectionWrapperComponent, [{
62
+ type: Component,
63
+ args: [{
64
+ template: ''
65
+ }]
66
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, { data: [{
67
+ type: Input
68
+ }], start: [{
69
+ type: Input
70
+ }], end: [{
71
+ type: Input
72
+ }], path: [{
73
+ type: Input
74
+ }], rendered: [{
75
+ type: Input
76
+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cGRhdGUoKVxuICB9XG5cbiAgdXBkYXRlKCkge1xuICAgIHRoaXMucmVmLmluc3RhbmNlLmRhdGEgPSB0aGlzLmRhdGFcbiAgICB0aGlzLnJlZi5pbnN0YW5jZS5zdGFydCA9IHRoaXMuX3N0YXJ0XG4gICAgdGhpcy5yZWYuaW5zdGFuY2UuZW5kID0gdGhpcy5fZW5kXG4gICAgdGhpcy5yZWYuaW5zdGFuY2UucGF0aCA9IHRoaXMuX3BhdGhcbiAgfVxufVxuIl19
@@ -0,0 +1,28 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { ClassicPreset } from 'rete';
3
+ import * as i0 from "@angular/core";
4
+ export class ConnectionComponent {
5
+ }
6
+ ConnectionComponent.ɵfac = function ConnectionComponent_Factory(t) { return new (t || ConnectionComponent)(); };
7
+ ConnectionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConnectionComponent, selectors: [["connection"]], inputs: { data: "data", start: "start", end: "end", path: "path" }, decls: 2, vars: 1, consts: [["data-testid", "connection"]], template: function ConnectionComponent_Template(rf, ctx) { if (rf & 1) {
8
+ i0.ɵɵnamespaceSVG();
9
+ i0.ɵɵelementStart(0, "svg", 0);
10
+ i0.ɵɵelement(1, "path");
11
+ i0.ɵɵelementEnd();
12
+ } if (rf & 2) {
13
+ i0.ɵɵadvance(1);
14
+ i0.ɵɵattribute("d", ctx.path);
15
+ } }, styles: ["svg[_ngcontent-%COMP%]{overflow:visible!important;position:absolute;pointer-events:none;width:9999px;height:9999px}svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:none;stroke-width:5px;stroke:#4682b4;pointer-events:auto}"] });
16
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConnectionComponent, [{
17
+ type: Component,
18
+ args: [{ selector: 'connection', template: "<svg data-testid=\"connection\">\n <path [attr.d]=\"path\" />\n</svg>\n", styles: ["svg{overflow:visible!important;position:absolute;pointer-events:none;width:9999px;height:9999px}svg path{fill:none;stroke-width:5px;stroke:#4682b4;pointer-events:auto}\n"] }]
19
+ }], null, { data: [{
20
+ type: Input
21
+ }], start: [{
22
+ type: Input
23
+ }], end: [{
24
+ type: Input
25
+ }], path: [{
26
+ type: Input
27
+ }] }); })();
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ubmVjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9uZzE1L3NyYy9wcmVzZXRzL2NsYXNzaWMvY29tcG9uZW50cy9jb25uZWN0aW9uL2Nvbm5lY3Rpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbmcxNS9zcmMvcHJlc2V0cy9jbGFzc2ljL2NvbXBvbmVudHMvY29ubmVjdGlvbi9jb25uZWN0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBVXJDLE1BQU0sT0FBTyxtQkFBbUI7O3NGQUFuQixtQkFBbUI7c0VBQW5CLG1CQUFtQjtRQ1hoQyxtQkFBOEI7UUFBOUIsOEJBQThCO1FBQzFCLHVCQUF3QjtRQUM1QixpQkFBTTs7UUFESSxlQUFlO1FBQWYsNkJBQWU7O3VGRFVaLG1CQUFtQjtjQUwvQixTQUFTOzJCQUNFLFlBQVk7Z0JBS2IsSUFBSTtrQkFBWixLQUFLO1lBQ0csS0FBSztrQkFBYixLQUFLO1lBQ0csR0FBRztrQkFBWCxLQUFLO1lBQ0csSUFBSTtrQkFBWixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1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