@foblex/flow 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (794) hide show
  1. package/common-behaviours/change-position.d.ts +2 -1
  2. package/common-behaviours/change-zoom/change-zoom.d.ts +1 -1
  3. package/common-behaviours/fit-to-parent/fit-to-parent.d.ts +1 -1
  4. package/common-behaviours/i-transformable.d.ts +4 -0
  5. package/common-behaviours/index.d.ts +1 -0
  6. package/common-behaviours/one-to-one-centering/one-to-one-centering.d.ts +1 -1
  7. package/components/f-flow/f-backgroud/domain/i-f-background-pattern.d.ts +6 -0
  8. package/components/f-flow/f-backgroud/domain/index.d.ts +1 -0
  9. package/components/f-flow/f-backgroud/domain/public-api.d.ts +1 -0
  10. package/{internal → components/f-flow}/f-backgroud/f-background-base.d.ts +4 -8
  11. package/components/f-flow/f-backgroud/f-background.component.d.ts +20 -0
  12. package/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.d.ts +31 -0
  13. package/components/f-flow/f-backgroud/f-cell-pattern/index.d.ts +1 -0
  14. package/components/f-flow/f-backgroud/f-cell-pattern/public-api.d.ts +1 -0
  15. package/components/f-flow/f-backgroud/index.d.ts +4 -0
  16. package/components/f-flow/f-backgroud/public-api.d.ts +3 -0
  17. package/{directives/f-containers/f-items-container/canvas-change.event.d.ts → components/f-flow/f-canvas/domain/f-canvas-change.event.d.ts} +1 -1
  18. package/components/f-flow/f-canvas/domain/index.d.ts +1 -0
  19. package/components/f-flow/f-canvas/domain/public-api.d.ts +1 -0
  20. package/{directives/f-containers/f-items-container/f-items-container-base.d.ts → components/f-flow/f-canvas/f-canvas-base.d.ts} +13 -12
  21. package/components/f-flow/f-canvas/f-canvas.component.d.ts +28 -0
  22. package/components/f-flow/f-canvas/f-zoom/f-zoom-base.d.ts +26 -0
  23. package/components/f-flow/f-canvas/f-zoom/f-zoom.directive.d.ts +17 -0
  24. package/components/f-flow/f-canvas/index.d.ts +4 -0
  25. package/components/f-flow/f-canvas/public-api.d.ts +3 -0
  26. package/components/f-flow/f-definitions/domain/i-connection-marker.d.ts +5 -0
  27. package/components/f-flow/f-definitions/f-definitions-base.d.ts +10 -0
  28. package/components/f-flow/f-definitions/f-definitions.component.d.ts +20 -0
  29. package/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.d.ts +13 -0
  30. package/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.d.ts +14 -0
  31. package/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.d.ts +13 -0
  32. package/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.d.ts +14 -0
  33. package/components/f-flow/f-definitions/f-markers/index.d.ts +4 -0
  34. package/components/f-flow/f-definitions/f-markers/public-api.d.ts +4 -0
  35. package/components/f-flow/f-definitions/index.d.ts +3 -0
  36. package/components/f-flow/f-definitions/public-api.d.ts +2 -0
  37. package/components/f-flow/f-flow-base.d.ts +5 -35
  38. package/components/f-flow/f-flow.component.d.ts +22 -32
  39. package/components/f-flow/f-parent.injection-token.d.ts +5 -0
  40. package/components/f-flow/index.d.ts +4 -0
  41. package/components/f-flow/public-api.d.ts +3 -0
  42. package/components/index.d.ts +0 -3
  43. package/components/public-api.d.ts +0 -3
  44. package/domain/errors.d.ts +3 -0
  45. package/domain/get-all-nodes-rect.handler.d.ts +10 -0
  46. package/domain/get-connection-vector/get-connection-vector.handler.d.ts +12 -0
  47. package/domain/get-connection-vector/get-connection-vector.request.d.ts +11 -0
  48. package/domain/get-connection-vector/index.d.ts +2 -0
  49. package/domain/get-connection.handler.d.ts +12 -0
  50. package/domain/get-connector-side-in-node/e-connector-side.d.ts +6 -0
  51. package/domain/get-connector-side-in-node/get-connector-side-in-node.handler.d.ts +5 -0
  52. package/domain/get-connector-side-in-node/index.d.ts +2 -0
  53. package/domain/get-element-rect-in-flow.handler.d.ts +12 -0
  54. package/domain/get-incoming-connections.handler.d.ts +13 -0
  55. package/domain/get-input-rect-in-flow.handler.d.ts +19 -0
  56. package/domain/get-outgoing-connections.handler.d.ts +13 -0
  57. package/domain/get-output-rect-in-flow.handler.d.ts +19 -0
  58. package/domain/index.d.ts +12 -0
  59. package/domain/providers.d.ts +10 -0
  60. package/domain/update-node-layer.handler.d.ts +12 -0
  61. package/esm2022/common-behaviours/change-position.mjs +1 -1
  62. package/esm2022/common-behaviours/change-zoom/change-zoom.mjs +1 -1
  63. package/esm2022/common-behaviours/fit-to-parent/fit-to-parent.mjs +1 -1
  64. package/esm2022/common-behaviours/i-transformable.mjs +2 -0
  65. package/esm2022/common-behaviours/index.mjs +2 -1
  66. package/esm2022/common-behaviours/one-to-one-centering/one-to-one-centering.mjs +1 -1
  67. package/esm2022/components/f-flow/f-backgroud/domain/i-f-background-pattern.mjs +3 -0
  68. package/esm2022/components/f-flow/f-backgroud/domain/index.mjs +2 -0
  69. package/esm2022/components/f-flow/f-backgroud/domain/public-api.mjs +2 -0
  70. package/esm2022/components/f-flow/f-backgroud/f-background-base.mjs +11 -0
  71. package/esm2022/components/f-flow/f-backgroud/f-background.component.mjs +60 -0
  72. package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/f-cell-pattern.component.mjs +90 -0
  73. package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/index.mjs +2 -0
  74. package/esm2022/components/f-flow/f-backgroud/f-cell-pattern/public-api.mjs +2 -0
  75. package/esm2022/components/f-flow/f-backgroud/index.mjs +5 -0
  76. package/esm2022/components/f-flow/f-backgroud/public-api.mjs +4 -0
  77. package/esm2022/components/f-flow/f-canvas/domain/f-canvas-change.event.mjs +7 -0
  78. package/esm2022/components/f-flow/f-canvas/domain/index.mjs +2 -0
  79. package/esm2022/components/f-flow/f-canvas/domain/public-api.mjs +2 -0
  80. package/esm2022/components/f-flow/f-canvas/f-canvas-base.mjs +26 -0
  81. package/esm2022/components/f-flow/f-canvas/f-canvas.component.mjs +91 -0
  82. package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom-base.mjs +94 -0
  83. package/esm2022/components/f-flow/f-canvas/f-zoom/f-zoom.directive.mjs +59 -0
  84. package/esm2022/components/f-flow/f-canvas/f-zoom/index.mjs +3 -0
  85. package/esm2022/components/f-flow/f-canvas/f-zoom/public-api.mjs +2 -0
  86. package/esm2022/components/f-flow/f-canvas/index.mjs +5 -0
  87. package/esm2022/components/f-flow/f-canvas/public-api.mjs +4 -0
  88. package/esm2022/components/f-flow/f-definitions/domain/i-connection-marker.mjs +3 -0
  89. package/esm2022/components/f-flow/f-definitions/f-definitions-base.mjs +11 -0
  90. package/esm2022/components/f-flow/f-definitions/f-definitions.component.mjs +73 -0
  91. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end-selected.directive.mjs +36 -0
  92. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-end.directive.mjs +39 -0
  93. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start-selected.directive.mjs +36 -0
  94. package/esm2022/components/f-flow/f-definitions/f-markers/f-connection-marker-start.directive.mjs +39 -0
  95. package/esm2022/components/f-flow/f-definitions/f-markers/index.mjs +5 -0
  96. package/esm2022/components/f-flow/f-definitions/f-markers/public-api.mjs +5 -0
  97. package/esm2022/components/f-flow/f-definitions/index.mjs +4 -0
  98. package/esm2022/components/f-flow/f-definitions/public-api.mjs +3 -0
  99. package/esm2022/components/f-flow/f-flow-base.mjs +4 -72
  100. package/esm2022/components/f-flow/f-flow.component.mjs +98 -80
  101. package/esm2022/components/f-flow/f-parent.injection-token.mjs +3 -0
  102. package/esm2022/components/f-flow/index.mjs +5 -1
  103. package/esm2022/components/f-flow/public-api.mjs +4 -1
  104. package/esm2022/components/index.mjs +1 -4
  105. package/esm2022/components/public-api.mjs +1 -4
  106. package/esm2022/domain/errors.mjs +10 -0
  107. package/esm2022/domain/get-all-nodes-rect.handler.mjs +23 -0
  108. package/esm2022/domain/get-connection-vector/get-connection-vector.handler.mjs +72 -0
  109. package/esm2022/domain/get-connection-vector/get-connection-vector.request.mjs +10 -0
  110. package/esm2022/domain/get-connection-vector/index.mjs +3 -0
  111. package/esm2022/domain/get-connection.handler.mjs +21 -0
  112. package/esm2022/domain/get-connector-side-in-node/e-connector-side.mjs +8 -0
  113. package/esm2022/domain/get-connector-side-in-node/get-connector-side-in-node.handler.mjs +26 -0
  114. package/esm2022/domain/get-connector-side-in-node/index.mjs +3 -0
  115. package/esm2022/domain/get-element-rect-in-flow.handler.mjs +28 -0
  116. package/esm2022/domain/get-incoming-connections.handler.mjs +23 -0
  117. package/esm2022/domain/get-input-rect-in-flow.handler.mjs +25 -0
  118. package/esm2022/domain/get-outgoing-connections.handler.mjs +23 -0
  119. package/esm2022/domain/get-output-rect-in-flow.handler.mjs +25 -0
  120. package/esm2022/domain/index.mjs +13 -0
  121. package/esm2022/domain/providers.mjs +21 -0
  122. package/esm2022/domain/update-node-layer.handler.mjs +29 -0
  123. package/esm2022/f-components-store.mjs +68 -0
  124. package/esm2022/f-connection/common/cast-to-connection-behavior.mjs +9 -0
  125. package/esm2022/f-connection/common/cast-to-connection-type.mjs +9 -0
  126. package/esm2022/f-connection/common/e-connection-behavior.mjs +6 -0
  127. package/esm2022/f-connection/common/e-connection-type.mjs +7 -0
  128. package/esm2022/f-connection/common/f-connection-base.mjs +57 -0
  129. package/esm2022/f-connection/common/f-connection-identifiers.mjs +22 -0
  130. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +62 -0
  131. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +66 -0
  132. package/esm2022/f-connection/common/f-connection-text/i-connection-text.mjs +3 -0
  133. package/esm2022/f-connection/common/f-connection-text/index.mjs +4 -0
  134. package/esm2022/f-connection/common/f-connection.injection-token.mjs +3 -0
  135. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +30 -0
  136. package/esm2022/f-connection/common/f-drag-handle/index.mjs +2 -0
  137. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +63 -0
  138. package/esm2022/f-connection/common/f-gradient/i-connection-gradient.mjs +3 -0
  139. package/esm2022/f-connection/common/f-gradient/index.mjs +3 -0
  140. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +59 -0
  141. package/esm2022/f-connection/common/f-path/i-connection-path.mjs +3 -0
  142. package/esm2022/f-connection/common/f-path/index.mjs +3 -0
  143. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +37 -0
  144. package/esm2022/f-connection/common/f-selection/index.mjs +2 -0
  145. package/esm2022/f-connection/common/i-has-connection-color.mjs +2 -0
  146. package/esm2022/f-connection/common/i-has-connection-from-to.mjs +2 -0
  147. package/esm2022/f-connection/common/i-has-connection-text.mjs +2 -0
  148. package/esm2022/f-connection/common/index.mjs +17 -0
  149. package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +20 -0
  150. package/esm2022/f-connection/common/mixins/change-connection-visibility.mixin.mjs +14 -0
  151. package/esm2022/f-connection/common/mixins/index.mjs +3 -0
  152. package/esm2022/f-connection/common/path-constructor/bezier-path.mjs +7 -0
  153. package/esm2022/f-connection/common/path-constructor/i-path-constructor.mjs +2 -0
  154. package/esm2022/f-connection/common/path-constructor/index.mjs +6 -0
  155. package/esm2022/f-connection/common/path-constructor/path-constructor.mjs +14 -0
  156. package/esm2022/f-connection/common/path-constructor/segment-path/connector-side-point.mjs +9 -0
  157. package/esm2022/f-connection/common/path-constructor/segment-path/edge-center-calculator.mjs +10 -0
  158. package/esm2022/f-connection/common/path-constructor/segment-path/index.mjs +6 -0
  159. package/esm2022/f-connection/common/path-constructor/segment-path/path-bend.mjs +19 -0
  160. package/esm2022/f-connection/common/path-constructor/segment-path/point-utils.mjs +14 -0
  161. package/esm2022/f-connection/common/path-constructor/segment-path/segment-path.mjs +123 -0
  162. package/esm2022/f-connection/common/path-constructor/straight-path/index.mjs +2 -0
  163. package/esm2022/f-connection/common/path-constructor/straight-path/straight-path.mjs +9 -0
  164. package/esm2022/f-connection/f-connection/f-connection.component.mjs +96 -0
  165. package/esm2022/f-connection/f-connection/index.mjs +2 -0
  166. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +90 -0
  167. package/esm2022/f-connection/f-connection-for-create/index.mjs +2 -0
  168. package/esm2022/f-connection/index.mjs +4 -0
  169. package/esm2022/f-connection/public-api.mjs +3 -0
  170. package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +20 -0
  171. package/esm2022/f-draggable/canvas/canvas.on-pointer-up.mjs +23 -0
  172. package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +37 -0
  173. package/esm2022/f-draggable/canvas/index.mjs +5 -0
  174. package/esm2022/f-draggable/canvas/providers.mjs +7 -0
  175. package/esm2022/f-draggable/components/f-external-item/f-external-item-base.mjs +11 -0
  176. package/esm2022/f-draggable/components/f-external-item/f-external-item.directive.mjs +44 -0
  177. package/esm2022/f-draggable/components/f-external-item/f-external-item.service.mjs +28 -0
  178. package/esm2022/f-draggable/components/f-external-item/index.mjs +5 -0
  179. package/esm2022/f-draggable/components/f-external-item/is-external-item.mjs +7 -0
  180. package/esm2022/f-draggable/components/f-external-item/public-api.mjs +2 -0
  181. package/esm2022/f-draggable/components/f-line-alignment/domain/i-line-alignment-rect.mjs +2 -0
  182. package/esm2022/f-draggable/components/f-line-alignment/domain/i-line-alignment-result.mjs +2 -0
  183. package/esm2022/f-draggable/components/f-line-alignment/domain/i-nearest-coordinate-result.mjs +2 -0
  184. package/esm2022/f-draggable/components/f-line-alignment/domain/index.mjs +7 -0
  185. package/esm2022/f-draggable/components/f-line-alignment/domain/line-element.mjs +23 -0
  186. package/esm2022/f-draggable/components/f-line-alignment/domain/line-service.mjs +33 -0
  187. package/esm2022/f-draggable/components/f-line-alignment/domain/nearest-coordinate.mjs +100 -0
  188. package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment-base.mjs +11 -0
  189. package/esm2022/f-draggable/components/f-line-alignment/f-line-alignment.component.mjs +90 -0
  190. package/esm2022/f-draggable/components/f-line-alignment/index.mjs +4 -0
  191. package/esm2022/f-draggable/components/f-line-alignment/public-api.mjs +2 -0
  192. package/esm2022/f-draggable/components/f-selection-area/domain/i-selection-area-rect.mjs +2 -0
  193. package/esm2022/f-draggable/components/f-selection-area/domain/index.mjs +2 -0
  194. package/esm2022/f-draggable/components/f-selection-area/f-selection-area-base.mjs +11 -0
  195. package/esm2022/f-draggable/components/f-selection-area/f-selection-area.component.mjs +44 -0
  196. package/esm2022/f-draggable/components/f-selection-area/index.mjs +4 -0
  197. package/esm2022/f-draggable/components/f-selection-area/public-api.mjs +2 -0
  198. package/esm2022/f-draggable/components/index.mjs +4 -0
  199. package/esm2022/f-draggable/components/public-api.mjs +4 -0
  200. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +34 -0
  201. package/esm2022/f-draggable/connections/create-connection/create-connection.event.mjs +7 -0
  202. package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +50 -0
  203. package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +86 -0
  204. package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +34 -0
  205. package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +2 -0
  206. package/esm2022/f-draggable/connections/create-connection/index.mjs +6 -0
  207. package/esm2022/f-draggable/connections/create-connection/public-api.mjs +2 -0
  208. package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +43 -0
  209. package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +7 -0
  210. package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +34 -0
  211. package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +2 -0
  212. package/esm2022/f-draggable/connections/find-inputs-under-pointer/index.mjs +5 -0
  213. package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +2 -0
  214. package/esm2022/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +25 -0
  215. package/esm2022/f-draggable/connections/index.mjs +5 -0
  216. package/esm2022/f-draggable/connections/providers.mjs +14 -0
  217. package/esm2022/f-draggable/connections/public-api.mjs +3 -0
  218. package/esm2022/f-draggable/connections/reassign-connection/index.mjs +5 -0
  219. package/esm2022/f-draggable/connections/reassign-connection/public-api.mjs +2 -0
  220. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +37 -0
  221. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +9 -0
  222. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +36 -0
  223. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +52 -0
  224. package/esm2022/f-draggable/e-draggable-type.mjs +11 -0
  225. package/esm2022/f-draggable/external-item/create-node.event.mjs +7 -0
  226. package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +38 -0
  227. package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +42 -0
  228. package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +41 -0
  229. package/esm2022/f-draggable/external-item/index.mjs +6 -0
  230. package/esm2022/f-draggable/external-item/providers.mjs +7 -0
  231. package/esm2022/f-draggable/external-item/public-api.mjs +2 -0
  232. package/esm2022/f-draggable/f-draggable-base.mjs +15 -0
  233. package/esm2022/f-draggable/f-draggable-data-context.mjs +22 -0
  234. package/esm2022/f-draggable/f-draggable.directive.mjs +104 -0
  235. package/esm2022/f-draggable/i-draggable-item.mjs +2 -0
  236. package/esm2022/f-draggable/index.mjs +13 -0
  237. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +31 -0
  238. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +31 -0
  239. package/esm2022/f-draggable/node/connection.drag-handler.mjs +29 -0
  240. package/esm2022/f-draggable/node/domain/is-connection-under-node/index.mjs +2 -0
  241. package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +70 -0
  242. package/esm2022/f-draggable/node/index.mjs +8 -0
  243. package/esm2022/f-draggable/node/node.drag-handler.mjs +21 -0
  244. package/esm2022/f-draggable/node/node.on-pointer-up.mjs +44 -0
  245. package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +101 -0
  246. package/esm2022/f-draggable/node/providers.mjs +9 -0
  247. package/esm2022/f-draggable/public-api.mjs +5 -0
  248. package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +54 -0
  249. package/esm2022/f-draggable/selection-area/get-can-be-selected-items/i-selectable-with-rect.mjs +2 -0
  250. package/esm2022/f-draggable/selection-area/get-can-be-selected-items/index.mjs +3 -0
  251. package/esm2022/f-draggable/selection-area/index.mjs +6 -0
  252. package/esm2022/f-draggable/selection-area/providers.mjs +9 -0
  253. package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +49 -0
  254. package/esm2022/f-draggable/selection-area/selection-area.on-pointer-up.mjs +23 -0
  255. package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +32 -0
  256. package/esm2022/f-draggable/single-select/index.mjs +3 -0
  257. package/esm2022/f-draggable/single-select/providers.mjs +5 -0
  258. package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +64 -0
  259. package/esm2022/f-flow.module.mjs +80 -42
  260. package/esm2022/f-node/f-connectors/f-connector-base.mjs +15 -0
  261. package/esm2022/f-node/f-connectors/f-node-input/f-node-input-base.mjs +19 -0
  262. package/esm2022/f-node/f-connectors/f-node-input/f-node-input.directive.mjs +83 -0
  263. package/esm2022/f-node/f-connectors/f-node-input/index.mjs +4 -0
  264. package/esm2022/f-node/f-connectors/f-node-input/is-node-input.mjs +4 -0
  265. package/esm2022/f-node/f-connectors/f-node-input/public-api.mjs +2 -0
  266. package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet-base.mjs +23 -0
  267. package/esm2022/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +66 -0
  268. package/esm2022/f-node/f-connectors/f-node-outlet/index.mjs +4 -0
  269. package/esm2022/f-node/f-connectors/f-node-outlet/is-node-outlet.mjs +4 -0
  270. package/esm2022/f-node/f-connectors/f-node-outlet/public-api.mjs +2 -0
  271. package/esm2022/f-node/f-connectors/f-node-output/f-node-output-base.mjs +19 -0
  272. package/esm2022/f-node/f-connectors/f-node-output/f-node-output.directive.mjs +71 -0
  273. package/esm2022/f-node/f-connectors/f-node-output/index.mjs +4 -0
  274. package/esm2022/f-node/f-connectors/f-node-output/is-node-output.mjs +4 -0
  275. package/esm2022/f-node/f-connectors/f-node-output/public-api.mjs +2 -0
  276. package/esm2022/f-node/f-connectors/index.mjs +5 -0
  277. package/esm2022/f-node/f-connectors/public-api.mjs +4 -0
  278. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +55 -0
  279. package/esm2022/f-node/f-drag-handle/index.mjs +3 -0
  280. package/esm2022/f-node/f-drag-handle/is-drag-handle.mjs +20 -0
  281. package/esm2022/f-node/f-drag-handle/public-api.mjs +2 -0
  282. package/esm2022/f-node/f-node-base.mjs +33 -0
  283. package/esm2022/f-node/f-node.component.mjs +88 -0
  284. package/esm2022/f-node/f-resize-observer.mjs +16 -0
  285. package/esm2022/f-node/index.mjs +7 -0
  286. package/esm2022/f-node/is-node.mjs +4 -0
  287. package/esm2022/f-node/public-api.mjs +4 -0
  288. package/esm2022/get-flow-uid.mjs +7 -0
  289. package/esm2022/public-api.mjs +4 -3
  290. package/f-components-store.d.ts +36 -0
  291. package/f-connection/common/cast-to-connection-behavior.d.ts +2 -0
  292. package/f-connection/common/cast-to-connection-type.d.ts +2 -0
  293. package/f-connection/common/e-connection-behavior.d.ts +4 -0
  294. package/f-connection/common/e-connection-type.d.ts +5 -0
  295. package/f-connection/common/f-connection-base.d.ts +54 -0
  296. package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +20 -0
  297. package/{components/f-connection → f-connection}/common/f-connection-text/f-connection-text.component.d.ts +10 -7
  298. package/f-connection/common/f-connection-text/i-connection-text.d.ts +6 -0
  299. package/{components/f-connection → f-connection}/common/f-connection-text/index.d.ts +1 -0
  300. package/f-connection/common/f-connection.injection-token.d.ts +2 -0
  301. package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +22 -0
  302. package/f-connection/common/f-gradient/i-connection-gradient.d.ts +7 -0
  303. package/{components/f-connection → f-connection}/common/f-gradient/index.d.ts +1 -0
  304. package/f-connection/common/f-path/f-connection-path.component.d.ts +20 -0
  305. package/f-connection/common/f-path/i-connection-path.d.ts +9 -0
  306. package/{components/f-connection → f-connection}/common/f-path/index.d.ts +1 -0
  307. package/{components/f-connection → f-connection}/common/f-selection/f-connection-selection.component.d.ts +4 -5
  308. package/f-connection/common/i-has-connection-color.d.ts +4 -0
  309. package/f-connection/common/i-has-connection-from-to.d.ts +4 -0
  310. package/f-connection/common/i-has-connection-text.d.ts +3 -0
  311. package/f-connection/common/index.d.ts +16 -0
  312. package/f-connection/common/mixins/change-connection-selection.mixin.d.ts +12 -0
  313. package/f-connection/common/mixins/change-connection-visibility.mixin.d.ts +10 -0
  314. package/f-connection/common/mixins/index.d.ts +2 -0
  315. package/f-connection/common/path-constructor/bezier-path.d.ts +6 -0
  316. package/f-connection/common/path-constructor/i-path-constructor.d.ts +12 -0
  317. package/f-connection/common/path-constructor/index.d.ts +5 -0
  318. package/f-connection/common/path-constructor/path-constructor.d.ts +8 -0
  319. package/f-connection/common/path-constructor/segment-path/connector-side-point.d.ts +6 -0
  320. package/f-connection/common/path-constructor/segment-path/edge-center-calculator.d.ts +3 -0
  321. package/f-connection/common/path-constructor/segment-path/index.d.ts +5 -0
  322. package/f-connection/common/path-constructor/segment-path/path-bend.d.ts +4 -0
  323. package/f-connection/common/path-constructor/segment-path/point-utils.d.ts +6 -0
  324. package/f-connection/common/path-constructor/segment-path/segment-path.d.ts +10 -0
  325. package/f-connection/common/path-constructor/straight-path/index.d.ts +1 -0
  326. package/f-connection/common/path-constructor/straight-path/straight-path.d.ts +6 -0
  327. package/f-connection/f-connection/f-connection.component.d.ts +35 -0
  328. package/{components/f-connection → f-connection}/f-connection/index.d.ts +0 -1
  329. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +36 -0
  330. package/f-connection/f-connection-for-create/index.d.ts +1 -0
  331. package/{components/f-connection → f-connection}/index.d.ts +1 -1
  332. package/f-connection/public-api.d.ts +2 -0
  333. package/f-draggable/canvas/canvas.drag-handler.d.ts +13 -0
  334. package/f-draggable/canvas/canvas.on-pointer-up.d.ts +10 -0
  335. package/f-draggable/canvas/canvas.prepare-drag-sequence.d.ts +13 -0
  336. package/f-draggable/canvas/index.d.ts +4 -0
  337. package/f-draggable/canvas/providers.d.ts +3 -0
  338. package/f-draggable/components/f-line-alignment/domain/i-line-alignment-rect.d.ts +6 -0
  339. package/f-draggable/components/f-line-alignment/domain/index.d.ts +6 -0
  340. package/f-draggable/components/f-line-alignment/domain/line-element.d.ts +9 -0
  341. package/f-draggable/components/f-line-alignment/domain/line-service.d.ts +11 -0
  342. package/f-draggable/components/f-line-alignment/domain/nearest-coordinate.d.ts +25 -0
  343. package/f-draggable/components/f-line-alignment/f-line-alignment-base.d.ts +15 -0
  344. package/f-draggable/components/f-line-alignment/f-line-alignment.component.d.ts +31 -0
  345. package/f-draggable/components/f-line-alignment/index.d.ts +3 -0
  346. package/f-draggable/components/f-line-alignment/public-api.d.ts +1 -0
  347. package/f-draggable/components/f-selection-area/domain/i-selection-area-rect.d.ts +6 -0
  348. package/f-draggable/components/f-selection-area/domain/index.d.ts +1 -0
  349. package/f-draggable/components/f-selection-area/f-selection-area-base.d.ts +13 -0
  350. package/f-draggable/components/f-selection-area/f-selection-area.component.d.ts +17 -0
  351. package/f-draggable/components/f-selection-area/index.d.ts +3 -0
  352. package/f-draggable/components/f-selection-area/public-api.d.ts +1 -0
  353. package/f-draggable/components/index.d.ts +3 -0
  354. package/f-draggable/components/public-api.d.ts +3 -0
  355. package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +19 -0
  356. package/f-draggable/connections/create-connection/create-connection.on-pointer-up.d.ts +16 -0
  357. package/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.d.ts +22 -0
  358. package/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +13 -0
  359. package/{directives/f-draggable → f-draggable}/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.d.ts +0 -1
  360. package/f-draggable/connections/create-connection/index.d.ts +5 -0
  361. package/f-draggable/connections/create-connection/public-api.d.ts +1 -0
  362. package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +18 -0
  363. package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts +8 -0
  364. package/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +13 -0
  365. package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.d.ts +0 -1
  366. package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/inputs-under-pointer/index.d.ts +0 -1
  367. package/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.d.ts +12 -0
  368. package/{directives/f-draggable → f-draggable}/connections/index.d.ts +1 -0
  369. package/f-draggable/connections/providers.d.ts +4 -0
  370. package/f-draggable/connections/public-api.d.ts +2 -0
  371. package/f-draggable/connections/reassign-connection/index.d.ts +4 -0
  372. package/f-draggable/connections/reassign-connection/public-api.d.ts +1 -0
  373. package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +20 -0
  374. package/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.d.ts +15 -0
  375. package/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.d.ts +19 -0
  376. package/{directives/f-draggable → f-draggable}/e-draggable-type.d.ts +1 -2
  377. package/{directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.d.ts → f-draggable/external-item/external-item.drag-handler.d.ts} +5 -4
  378. package/f-draggable/external-item/external-item.on-pointer-up.d.ts +16 -0
  379. package/f-draggable/external-item/external-item.prepare-drag-sequence.d.ts +16 -0
  380. package/f-draggable/external-item/index.d.ts +5 -0
  381. package/f-draggable/external-item/providers.d.ts +3 -0
  382. package/f-draggable/f-draggable-base.d.ts +16 -0
  383. package/f-draggable/f-draggable-data-context.d.ts +16 -0
  384. package/f-draggable/f-draggable.directive.d.ts +31 -0
  385. package/{directives/f-draggable → f-draggable}/i-draggable-item.d.ts +2 -2
  386. package/{directives/f-draggable → f-draggable}/index.d.ts +4 -5
  387. package/f-draggable/node/connection-source.drag-handler.d.ts +19 -0
  388. package/f-draggable/node/connection-target.drag-handler.d.ts +19 -0
  389. package/f-draggable/node/connection.drag-handler.d.ts +18 -0
  390. package/f-draggable/node/domain/is-connection-under-node/index.d.ts +1 -0
  391. package/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.d.ts +22 -0
  392. package/f-draggable/node/index.d.ts +7 -0
  393. package/f-draggable/node/node.drag-handler.d.ts +14 -0
  394. package/f-draggable/node/node.on-pointer-up.d.ts +16 -0
  395. package/f-draggable/node/node.prepare-drag-sequence.d.ts +24 -0
  396. package/f-draggable/node/providers.d.ts +4 -0
  397. package/{directives/f-draggable → f-draggable}/public-api.d.ts +1 -1
  398. package/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.d.ts +20 -0
  399. package/f-draggable/selection-area/get-can-be-selected-items/i-selectable-with-rect.d.ts +6 -0
  400. package/f-draggable/selection-area/get-can-be-selected-items/index.d.ts +2 -0
  401. package/f-draggable/selection-area/index.d.ts +5 -0
  402. package/f-draggable/selection-area/providers.d.ts +4 -0
  403. package/f-draggable/selection-area/selection-area.drag-handle.d.ts +19 -0
  404. package/f-draggable/selection-area/selection-area.on-pointer-up.d.ts +10 -0
  405. package/f-draggable/selection-area/selection-area.prepare-drag-sequence.d.ts +15 -0
  406. package/f-draggable/single-select/index.d.ts +2 -0
  407. package/f-draggable/single-select/providers.d.ts +2 -0
  408. package/f-draggable/single-select/single-select.on-pointer-down.d.ts +17 -0
  409. package/f-flow.module.d.ts +27 -17
  410. package/{components → f-node}/f-connectors/f-connector-base.d.ts +5 -3
  411. package/{components → f-node}/f-connectors/f-node-input/f-node-input-base.d.ts +1 -1
  412. package/f-node/f-connectors/f-node-input/f-node-input.directive.d.ts +25 -0
  413. package/{components → f-node}/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +5 -4
  414. package/f-node/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +21 -0
  415. package/{components → f-node}/f-connectors/f-node-output/f-node-output-base.d.ts +3 -3
  416. package/f-node/f-connectors/f-node-output/f-node-output.directive.d.ts +22 -0
  417. package/{components → f-node}/f-connectors/index.d.ts +0 -2
  418. package/{components/f-node → f-node}/f-drag-handle/f-drag-handle.directive.d.ts +2 -2
  419. package/{components/f-node → f-node}/f-node-base.d.ts +10 -9
  420. package/f-node/f-node.component.d.ts +28 -0
  421. package/f-node/f-resize-observer.d.ts +4 -0
  422. package/{components/f-node → f-node}/index.d.ts +2 -1
  423. package/{components/f-node → f-node}/public-api.d.ts +1 -1
  424. package/fesm2022/foblex-flow.mjs +3371 -2461
  425. package/fesm2022/foblex-flow.mjs.map +1 -1
  426. package/get-flow-uid.d.ts +4 -0
  427. package/package.json +2 -2
  428. package/public-api.d.ts +3 -2
  429. package/components/f-connection/common/f-connection-base.d.ts +0 -30
  430. package/components/f-connection/common/f-connection-common.module.d.ts +0 -13
  431. package/components/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +0 -17
  432. package/components/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +0 -21
  433. package/components/f-connection/common/f-path/f-connection-path.component.d.ts +0 -21
  434. package/components/f-connection/common/get-connection-intersect.d.ts +0 -2
  435. package/components/f-connection/common/i-input-output-model.d.ts +0 -5
  436. package/components/f-connection/common/index.d.ts +0 -10
  437. package/components/f-connection/common/public-api.d.ts +0 -6
  438. package/components/f-connection/f-connection/f-connection.component.d.ts +0 -28
  439. package/components/f-connection/f-connection/f-connection.module.d.ts +0 -9
  440. package/components/f-connection/f-temp-connection/f-temp-connection.component.d.ts +0 -27
  441. package/components/f-connection/f-temp-connection/f-temp-connection.module.d.ts +0 -9
  442. package/components/f-connection/f-temp-connection/index.d.ts +0 -3
  443. package/components/f-connection/f-temp-connection/temp-connection-input-output-model.d.ts +0 -7
  444. package/components/f-connection/public-api.d.ts +0 -3
  445. package/components/f-connectors/f-node-input/f-node-input.directive.d.ts +0 -20
  446. package/components/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +0 -20
  447. package/components/f-connectors/f-node-output/f-node-output.directive.d.ts +0 -19
  448. package/components/f-connectors/f-out-connector-base.d.ts +0 -4
  449. package/components/f-connectors/get-element-rect-in-canvas.d.ts +0 -2
  450. package/components/f-flow/i-flow-connector-parent.d.ts +0 -7
  451. package/components/f-node/f-foreign-object/f-foreign-object-base.d.ts +0 -20
  452. package/components/f-node/f-foreign-object/f-foreign-object.component.d.ts +0 -16
  453. package/components/f-node/f-foreign-object/index.d.ts +0 -2
  454. package/components/f-node/f-foreign-object/public-api.d.ts +0 -1
  455. package/components/f-node/f-node.component.d.ts +0 -22
  456. package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.d.ts +0 -16
  457. package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.d.ts +0 -5
  458. package/directives/f-connect-if-intersect/connect-if-intersect/index.d.ts +0 -2
  459. package/directives/f-connect-if-intersect/f-connect-if-intersect-base.d.ts +0 -11
  460. package/directives/f-connect-if-intersect/f-connect-if-intersect.directive.d.ts +0 -16
  461. package/directives/f-connect-if-intersect/index.d.ts +0 -3
  462. package/directives/f-connect-if-intersect/public-api.d.ts +0 -2
  463. package/directives/f-containers/f-connections-container/f-connections-container-base.d.ts +0 -18
  464. package/directives/f-containers/f-connections-container/f-connections-container.component.d.ts +0 -14
  465. package/directives/f-containers/f-connections-container/index.d.ts +0 -2
  466. package/directives/f-containers/f-connections-container/public-api.d.ts +0 -1
  467. package/directives/f-containers/f-items-container/f-items-container.directive.d.ts +0 -13
  468. package/directives/f-containers/f-items-container/index.d.ts +0 -3
  469. package/directives/f-containers/f-items-container/public-api.d.ts +0 -2
  470. package/directives/f-containers/f-nodes-container/f-nodes-container-base.d.ts +0 -18
  471. package/directives/f-containers/f-nodes-container/f-nodes-container.component.d.ts +0 -12
  472. package/directives/f-containers/f-nodes-container/index.d.ts +0 -2
  473. package/directives/f-containers/f-nodes-container/public-api.d.ts +0 -1
  474. package/directives/f-containers/index.d.ts +0 -3
  475. package/directives/f-containers/public-api.d.ts +0 -3
  476. package/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.d.ts +0 -12
  477. package/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.d.ts +0 -5
  478. package/directives/f-draggable/canvas/canvas-on-pointer-down/index.d.ts +0 -2
  479. package/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.d.ts +0 -13
  480. package/directives/f-draggable/canvas/canvas-on-pointer-move/index.d.ts +0 -1
  481. package/directives/f-draggable/canvas/index.d.ts +0 -2
  482. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.d.ts +0 -6
  483. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.d.ts +0 -14
  484. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.d.ts +0 -2
  485. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.d.ts +0 -7
  486. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.d.ts +0 -11
  487. package/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.d.ts +0 -2
  488. package/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.d.ts +0 -16
  489. package/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +0 -8
  490. package/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.d.ts +0 -5
  491. package/directives/f-draggable/connections/create-connection/index.d.ts +0 -5
  492. package/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +0 -9
  493. package/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts +0 -8
  494. package/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +0 -8
  495. package/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.d.ts +0 -5
  496. package/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.d.ts +0 -8
  497. package/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.d.ts +0 -5
  498. package/directives/f-draggable/connections/public-api.d.ts +0 -2
  499. package/directives/f-draggable/connections/reassign-connection/index.d.ts +0 -4
  500. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.d.ts +0 -2
  501. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.d.ts +0 -6
  502. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.d.ts +0 -11
  503. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.d.ts +0 -1
  504. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.d.ts +0 -17
  505. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.d.ts +0 -2
  506. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.d.ts +0 -7
  507. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.d.ts +0 -11
  508. package/directives/f-draggable/default-drag-handler/default-drag.handler.d.ts +0 -5
  509. package/directives/f-draggable/default-drag-handler/index.d.ts +0 -1
  510. package/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.d.ts +0 -10
  511. package/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.d.ts +0 -5
  512. package/directives/f-draggable/external-item/external-item-on-pointer-down/index.d.ts +0 -2
  513. package/directives/f-draggable/external-item/external-item-on-pointer-move/index.d.ts +0 -1
  514. package/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.d.ts +0 -11
  515. package/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.d.ts +0 -7
  516. package/directives/f-draggable/external-item/external-item-on-pointer-up/index.d.ts +0 -2
  517. package/directives/f-draggable/external-item/index.d.ts +0 -4
  518. package/directives/f-draggable/f-draggable-base.d.ts +0 -47
  519. package/directives/f-draggable/f-draggable.directive.d.ts +0 -23
  520. package/directives/f-draggable/f-draggable.module.d.ts +0 -9
  521. package/directives/f-draggable/f-draggable.service.d.ts +0 -13
  522. package/directives/f-draggable/i-drag-handler.d.ts +0 -9
  523. package/directives/f-draggable/node/index.d.ts +0 -3
  524. package/directives/f-draggable/node/node-on-pointer-down/index.d.ts +0 -2
  525. package/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.d.ts +0 -9
  526. package/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.d.ts +0 -17
  527. package/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.d.ts +0 -15
  528. package/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.d.ts +0 -15
  529. package/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.d.ts +0 -14
  530. package/directives/f-draggable/node/node-on-pointer-move/index.d.ts +0 -4
  531. package/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.d.ts +0 -15
  532. package/directives/f-draggable/node/node-on-pointer-up/index.d.ts +0 -2
  533. package/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.d.ts +0 -7
  534. package/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.d.ts +0 -11
  535. package/directives/f-draggable/selection/index.d.ts +0 -3
  536. package/directives/f-draggable/selection/selection-on-pointer-down/index.d.ts +0 -2
  537. package/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.d.ts +0 -8
  538. package/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.d.ts +0 -12
  539. package/directives/f-draggable/selection/selection-on-pointer-move/index.d.ts +0 -1
  540. package/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.d.ts +0 -20
  541. package/directives/f-draggable/selection/selection-on-pointer-up/index.d.ts +0 -2
  542. package/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.d.ts +0 -9
  543. package/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.d.ts +0 -8
  544. package/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.d.ts +0 -3
  545. package/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.d.ts +0 -3
  546. package/directives/f-line-alignment/domain/index.d.ts +0 -4
  547. package/directives/f-line-alignment/f-line-alignment.directive.d.ts +0 -25
  548. package/directives/f-line-alignment/index.d.ts +0 -2
  549. package/directives/f-line-alignment/public-api.d.ts +0 -1
  550. package/directives/f-selection/f-selection.directive.d.ts +0 -15
  551. package/directives/f-selection/index.d.ts +0 -1
  552. package/directives/f-selection/public-api.d.ts +0 -1
  553. package/directives/f-zoom/f-zoom-base.d.ts +0 -24
  554. package/directives/f-zoom/f-zoom.directive.d.ts +0 -15
  555. package/directives/index.d.ts +0 -7
  556. package/directives/public-api.d.ts +0 -7
  557. package/esm2022/components/f-connection/common/f-connection-base.mjs +0 -32
  558. package/esm2022/components/f-connection/common/f-connection-common.module.mjs +0 -44
  559. package/esm2022/components/f-connection/common/f-connection-identifiers.mjs +0 -21
  560. package/esm2022/components/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +0 -38
  561. package/esm2022/components/f-connection/common/f-connection-text/f-connection-text.component.mjs +0 -55
  562. package/esm2022/components/f-connection/common/f-connection-text/index.mjs +0 -3
  563. package/esm2022/components/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +0 -30
  564. package/esm2022/components/f-connection/common/f-drag-handle/index.mjs +0 -2
  565. package/esm2022/components/f-connection/common/f-gradient/f-connection-gradient.component.mjs +0 -59
  566. package/esm2022/components/f-connection/common/f-gradient/index.mjs +0 -2
  567. package/esm2022/components/f-connection/common/f-path/f-connection-path.component.mjs +0 -58
  568. package/esm2022/components/f-connection/common/f-path/index.mjs +0 -2
  569. package/esm2022/components/f-connection/common/f-selection/f-connection-selection.component.mjs +0 -34
  570. package/esm2022/components/f-connection/common/f-selection/index.mjs +0 -2
  571. package/esm2022/components/f-connection/common/get-connection-intersect.mjs +0 -10
  572. package/esm2022/components/f-connection/common/i-input-output-model.mjs +0 -2
  573. package/esm2022/components/f-connection/common/index.mjs +0 -11
  574. package/esm2022/components/f-connection/common/public-api.mjs +0 -7
  575. package/esm2022/components/f-connection/f-connection/f-connection.component.mjs +0 -86
  576. package/esm2022/components/f-connection/f-connection/f-connection.module.mjs +0 -28
  577. package/esm2022/components/f-connection/f-connection/index.mjs +0 -3
  578. package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +0 -61
  579. package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.module.mjs +0 -28
  580. package/esm2022/components/f-connection/f-temp-connection/index.mjs +0 -4
  581. package/esm2022/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +0 -7
  582. package/esm2022/components/f-connection/index.mjs +0 -4
  583. package/esm2022/components/f-connection/public-api.mjs +0 -4
  584. package/esm2022/components/f-connectors/f-connector-base.mjs +0 -14
  585. package/esm2022/components/f-connectors/f-node-input/f-node-input-base.mjs +0 -19
  586. package/esm2022/components/f-connectors/f-node-input/f-node-input.directive.mjs +0 -71
  587. package/esm2022/components/f-connectors/f-node-input/index.mjs +0 -4
  588. package/esm2022/components/f-connectors/f-node-input/is-node-input.mjs +0 -4
  589. package/esm2022/components/f-connectors/f-node-input/public-api.mjs +0 -2
  590. package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet-base.mjs +0 -22
  591. package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +0 -69
  592. package/esm2022/components/f-connectors/f-node-outlet/index.mjs +0 -4
  593. package/esm2022/components/f-connectors/f-node-outlet/is-node-outlet.mjs +0 -4
  594. package/esm2022/components/f-connectors/f-node-outlet/public-api.mjs +0 -2
  595. package/esm2022/components/f-connectors/f-node-output/f-node-output-base.mjs +0 -19
  596. package/esm2022/components/f-connectors/f-node-output/f-node-output.directive.mjs +0 -67
  597. package/esm2022/components/f-connectors/f-node-output/index.mjs +0 -4
  598. package/esm2022/components/f-connectors/f-node-output/is-node-output.mjs +0 -4
  599. package/esm2022/components/f-connectors/f-node-output/public-api.mjs +0 -2
  600. package/esm2022/components/f-connectors/f-out-connector-base.mjs +0 -4
  601. package/esm2022/components/f-connectors/get-element-rect-in-canvas.mjs +0 -8
  602. package/esm2022/components/f-connectors/index.mjs +0 -7
  603. package/esm2022/components/f-connectors/public-api.mjs +0 -4
  604. package/esm2022/components/f-flow/i-flow-connector-parent.mjs +0 -3
  605. package/esm2022/components/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -54
  606. package/esm2022/components/f-node/f-drag-handle/index.mjs +0 -3
  607. package/esm2022/components/f-node/f-drag-handle/is-drag-handle.mjs +0 -20
  608. package/esm2022/components/f-node/f-drag-handle/public-api.mjs +0 -2
  609. package/esm2022/components/f-node/f-foreign-object/f-foreign-object-base.mjs +0 -44
  610. package/esm2022/components/f-node/f-foreign-object/f-foreign-object.component.mjs +0 -49
  611. package/esm2022/components/f-node/f-foreign-object/index.mjs +0 -3
  612. package/esm2022/components/f-node/f-foreign-object/public-api.mjs +0 -2
  613. package/esm2022/components/f-node/f-node-base.mjs +0 -33
  614. package/esm2022/components/f-node/f-node.component.mjs +0 -62
  615. package/esm2022/components/f-node/index.mjs +0 -6
  616. package/esm2022/components/f-node/is-node.mjs +0 -4
  617. package/esm2022/components/f-node/public-api.mjs +0 -4
  618. package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +0 -55
  619. package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.mjs +0 -6
  620. package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/index.mjs +0 -3
  621. package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect-base.mjs +0 -10
  622. package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +0 -51
  623. package/esm2022/directives/f-connect-if-intersect/index.mjs +0 -4
  624. package/esm2022/directives/f-connect-if-intersect/public-api.mjs +0 -3
  625. package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs +0 -32
  626. package/esm2022/directives/f-containers/f-connections-container/f-connections-container.component.mjs +0 -30
  627. package/esm2022/directives/f-containers/f-connections-container/index.mjs +0 -3
  628. package/esm2022/directives/f-containers/f-connections-container/public-api.mjs +0 -2
  629. package/esm2022/directives/f-containers/f-items-container/canvas-change.event.mjs +0 -7
  630. package/esm2022/directives/f-containers/f-items-container/f-items-container-base.mjs +0 -45
  631. package/esm2022/directives/f-containers/f-items-container/f-items-container.directive.mjs +0 -48
  632. package/esm2022/directives/f-containers/f-items-container/index.mjs +0 -4
  633. package/esm2022/directives/f-containers/f-items-container/public-api.mjs +0 -3
  634. package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container-base.mjs +0 -39
  635. package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container.component.mjs +0 -25
  636. package/esm2022/directives/f-containers/f-nodes-container/index.mjs +0 -3
  637. package/esm2022/directives/f-containers/f-nodes-container/public-api.mjs +0 -2
  638. package/esm2022/directives/f-containers/index.mjs +0 -4
  639. package/esm2022/directives/f-containers/public-api.mjs +0 -4
  640. package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.mjs +0 -24
  641. package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.mjs +0 -6
  642. package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/index.mjs +0 -3
  643. package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.mjs +0 -20
  644. package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/index.mjs +0 -2
  645. package/esm2022/directives/f-draggable/canvas/index.mjs +0 -3
  646. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.mjs +0 -7
  647. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.mjs +0 -75
  648. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.mjs +0 -3
  649. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.mjs +0 -7
  650. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.mjs +0 -31
  651. package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.mjs +0 -3
  652. package/esm2022/directives/f-draggable/connections/create-connection/create-connection.event.mjs +0 -7
  653. package/esm2022/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +0 -28
  654. package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +0 -20
  655. package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.mjs +0 -6
  656. package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +0 -3
  657. package/esm2022/directives/f-draggable/connections/create-connection/index.mjs +0 -6
  658. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +0 -25
  659. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +0 -7
  660. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +0 -20
  661. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.mjs +0 -6
  662. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +0 -3
  663. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/index.mjs +0 -5
  664. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +0 -3
  665. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +0 -14
  666. package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.mjs +0 -6
  667. package/esm2022/directives/f-draggable/connections/index.mjs +0 -4
  668. package/esm2022/directives/f-draggable/connections/public-api.mjs +0 -3
  669. package/esm2022/directives/f-draggable/connections/reassign-connection/index.mjs +0 -5
  670. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +0 -9
  671. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.mjs +0 -3
  672. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.mjs +0 -7
  673. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +0 -36
  674. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.mjs +0 -2
  675. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +0 -31
  676. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.mjs +0 -3
  677. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.mjs +0 -7
  678. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.mjs +0 -26
  679. package/esm2022/directives/f-draggable/default-drag-handler/default-drag.handler.mjs +0 -11
  680. package/esm2022/directives/f-draggable/default-drag-handler/index.mjs +0 -2
  681. package/esm2022/directives/f-draggable/e-draggable-type.mjs +0 -12
  682. package/esm2022/directives/f-draggable/external-item/create-node.event.mjs +0 -7
  683. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.mjs +0 -28
  684. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.mjs +0 -6
  685. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/index.mjs +0 -3
  686. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.mjs +0 -30
  687. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/index.mjs +0 -2
  688. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.mjs +0 -26
  689. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.mjs +0 -7
  690. package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/index.mjs +0 -3
  691. package/esm2022/directives/f-draggable/external-item/index.mjs +0 -5
  692. package/esm2022/directives/f-draggable/external-item/public-api.mjs +0 -2
  693. package/esm2022/directives/f-draggable/f-draggable-base.mjs +0 -103
  694. package/esm2022/directives/f-draggable/f-draggable.directive.mjs +0 -53
  695. package/esm2022/directives/f-draggable/f-draggable.module.mjs +0 -37
  696. package/esm2022/directives/f-draggable/f-draggable.service.mjs +0 -23
  697. package/esm2022/directives/f-draggable/i-drag-handler.mjs +0 -2
  698. package/esm2022/directives/f-draggable/i-draggable-item.mjs +0 -2
  699. package/esm2022/directives/f-draggable/index.mjs +0 -14
  700. package/esm2022/directives/f-draggable/node/index.mjs +0 -4
  701. package/esm2022/directives/f-draggable/node/node-on-pointer-down/index.mjs +0 -3
  702. package/esm2022/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.mjs +0 -9
  703. package/esm2022/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.mjs +0 -88
  704. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +0 -24
  705. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +0 -24
  706. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +0 -22
  707. package/esm2022/directives/f-draggable/node/node-on-pointer-move/index.mjs +0 -5
  708. package/esm2022/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.mjs +0 -23
  709. package/esm2022/directives/f-draggable/node/node-on-pointer-up/index.mjs +0 -3
  710. package/esm2022/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.mjs +0 -7
  711. package/esm2022/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +0 -28
  712. package/esm2022/directives/f-draggable/public-api.mjs +0 -5
  713. package/esm2022/directives/f-draggable/selection/index.mjs +0 -4
  714. package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/index.mjs +0 -3
  715. package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.mjs +0 -8
  716. package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +0 -61
  717. package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/index.mjs +0 -2
  718. package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +0 -57
  719. package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/index.mjs +0 -3
  720. package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.mjs +0 -8
  721. package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.mjs +0 -22
  722. package/esm2022/directives/f-external-item/f-external-item-base.mjs +0 -11
  723. package/esm2022/directives/f-external-item/f-external-item.directive.mjs +0 -44
  724. package/esm2022/directives/f-external-item/f-external-item.service.mjs +0 -25
  725. package/esm2022/directives/f-external-item/index.mjs +0 -5
  726. package/esm2022/directives/f-external-item/is-external-item.mjs +0 -7
  727. package/esm2022/directives/f-external-item/public-api.mjs +0 -2
  728. package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.mjs +0 -40
  729. package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.mjs +0 -40
  730. package/esm2022/directives/f-line-alignment/domain/i-line-alignment-result.mjs +0 -2
  731. package/esm2022/directives/f-line-alignment/domain/i-nearest-coordinate-result.mjs +0 -2
  732. package/esm2022/directives/f-line-alignment/domain/index.mjs +0 -5
  733. package/esm2022/directives/f-line-alignment/f-line-alignment.directive.mjs +0 -107
  734. package/esm2022/directives/f-line-alignment/index.mjs +0 -3
  735. package/esm2022/directives/f-line-alignment/public-api.mjs +0 -2
  736. package/esm2022/directives/f-selection/f-selection.directive.mjs +0 -41
  737. package/esm2022/directives/f-selection/index.mjs +0 -2
  738. package/esm2022/directives/f-selection/public-api.mjs +0 -2
  739. package/esm2022/directives/f-zoom/f-zoom-base.mjs +0 -89
  740. package/esm2022/directives/f-zoom/f-zoom.directive.mjs +0 -57
  741. package/esm2022/directives/f-zoom/index.mjs +0 -3
  742. package/esm2022/directives/f-zoom/public-api.mjs +0 -2
  743. package/esm2022/directives/index.mjs +0 -8
  744. package/esm2022/directives/public-api.mjs +0 -8
  745. package/esm2022/i-selectable.mjs +0 -2
  746. package/esm2022/internal/f-backgroud/f-background-base.mjs +0 -25
  747. package/esm2022/internal/f-backgroud/f-background.directive.mjs +0 -24
  748. package/esm2022/internal/f-backgroud/index.mjs +0 -3
  749. package/esm2022/internal/f-canvas/f-canvas-base.mjs +0 -25
  750. package/esm2022/internal/f-canvas/f-canvas.directive.mjs +0 -19
  751. package/esm2022/internal/f-canvas/index.mjs +0 -3
  752. package/esm2022/internal/index.mjs +0 -3
  753. package/esm2022/tokens.mjs +0 -4
  754. package/i-selectable.d.ts +0 -7
  755. package/internal/f-backgroud/f-background.directive.d.ts +0 -9
  756. package/internal/f-backgroud/index.d.ts +0 -2
  757. package/internal/f-canvas/f-canvas-base.d.ts +0 -12
  758. package/internal/f-canvas/f-canvas.directive.d.ts +0 -8
  759. package/internal/f-canvas/index.d.ts +0 -2
  760. package/internal/index.d.ts +0 -2
  761. package/tokens.d.ts +0 -3
  762. /package/{directives → components/f-flow/f-canvas}/f-zoom/index.d.ts +0 -0
  763. /package/{directives → components/f-flow/f-canvas}/f-zoom/public-api.d.ts +0 -0
  764. /package/{components/f-connection → f-connection}/common/f-connection-identifiers.d.ts +0 -0
  765. /package/{components/f-connection → f-connection}/common/f-drag-handle/f-connection-drag-handle.component.d.ts +0 -0
  766. /package/{components/f-connection → f-connection}/common/f-drag-handle/index.d.ts +0 -0
  767. /package/{components/f-connection → f-connection}/common/f-selection/index.d.ts +0 -0
  768. /package/{directives → f-draggable/components}/f-external-item/f-external-item-base.d.ts +0 -0
  769. /package/{directives → f-draggable/components}/f-external-item/f-external-item.directive.d.ts +0 -0
  770. /package/{directives → f-draggable/components}/f-external-item/f-external-item.service.d.ts +0 -0
  771. /package/{directives → f-draggable/components}/f-external-item/index.d.ts +0 -0
  772. /package/{directives → f-draggable/components}/f-external-item/is-external-item.d.ts +0 -0
  773. /package/{directives → f-draggable/components}/f-external-item/public-api.d.ts +0 -0
  774. /package/{directives → f-draggable/components}/f-line-alignment/domain/i-line-alignment-result.d.ts +0 -0
  775. /package/{directives → f-draggable/components}/f-line-alignment/domain/i-nearest-coordinate-result.d.ts +0 -0
  776. /package/{directives/f-draggable → f-draggable}/connections/create-connection/create-connection.event.d.ts +0 -0
  777. /package/{directives/f-draggable → f-draggable}/connections/find-inputs-under-pointer/index.d.ts +0 -0
  778. /package/{directives/f-draggable → f-draggable}/connections/reassign-connection/reassign-connection.event.d.ts +0 -0
  779. /package/{directives/f-draggable → f-draggable}/external-item/create-node.event.d.ts +0 -0
  780. /package/{directives/f-draggable → f-draggable}/external-item/public-api.d.ts +0 -0
  781. /package/{components → f-node}/f-connectors/f-node-input/index.d.ts +0 -0
  782. /package/{components → f-node}/f-connectors/f-node-input/is-node-input.d.ts +0 -0
  783. /package/{components → f-node}/f-connectors/f-node-input/public-api.d.ts +0 -0
  784. /package/{components → f-node}/f-connectors/f-node-outlet/index.d.ts +0 -0
  785. /package/{components → f-node}/f-connectors/f-node-outlet/is-node-outlet.d.ts +0 -0
  786. /package/{components → f-node}/f-connectors/f-node-outlet/public-api.d.ts +0 -0
  787. /package/{components → f-node}/f-connectors/f-node-output/index.d.ts +0 -0
  788. /package/{components → f-node}/f-connectors/f-node-output/is-node-output.d.ts +0 -0
  789. /package/{components → f-node}/f-connectors/f-node-output/public-api.d.ts +0 -0
  790. /package/{components → f-node}/f-connectors/public-api.d.ts +0 -0
  791. /package/{components/f-node → f-node}/f-drag-handle/index.d.ts +0 -0
  792. /package/{components/f-node → f-node}/f-drag-handle/is-drag-handle.d.ts +0 -0
  793. /package/{components/f-node → f-node}/f-drag-handle/public-api.d.ts +0 -0
  794. /package/{components/f-node → f-node}/is-node.d.ts +0 -0
@@ -0,0 +1,71 @@
1
+ import { Directive, Inject, Input } from '@angular/core';
2
+ import { BooleanExtensions } from '@foblex/core';
3
+ import { FNodeOutputBase, F_NODE_OUTPUT } from './f-node-output-base';
4
+ import { F_NODE } from '../../f-node-base';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../../f-components-store";
7
+ import * as i2 from "../../f-node-base";
8
+ let uniqueId = 0;
9
+ export class FNodeOutputDirective extends FNodeOutputBase {
10
+ get disabled() {
11
+ return this.isDisabled;
12
+ }
13
+ set disabled(isDisabled) {
14
+ const value = BooleanExtensions.castToBoolean(isDisabled);
15
+ if (value !== this.isDisabled) {
16
+ this.isDisabled = value;
17
+ this.stateChanges.next();
18
+ }
19
+ }
20
+ get hostElement() {
21
+ return this.elementReference.nativeElement;
22
+ }
23
+ constructor(elementReference, fNode, fComponentsStore) {
24
+ super();
25
+ this.elementReference = elementReference;
26
+ this.fNode = fNode;
27
+ this.fComponentsStore = fComponentsStore;
28
+ this.id = `f-node-output-${uniqueId++}`;
29
+ this.isDisabled = false;
30
+ this.isConnected = false;
31
+ }
32
+ ngOnInit() {
33
+ if (!this.fNode) {
34
+ throw new Error('fNodeOutput must be inside f-node');
35
+ }
36
+ this.fComponentsStore.addOutput(this);
37
+ this.fNode.addConnector(this);
38
+ }
39
+ setConnected(isConnected) {
40
+ this.isConnected = isConnected;
41
+ this.hostElement.classList.toggle('f-node-output-connected', isConnected);
42
+ }
43
+ ngOnDestroy() {
44
+ this.fNode.removeConnector(this);
45
+ this.fComponentsStore.removeOutput(this);
46
+ }
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutputDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE }, { token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Directive }); }
48
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodeOutputDirective, selector: "[fNodeOutput]", inputs: { id: ["fNodeOutputId", "id"], disabled: ["fNodeOutputDisabled", "disabled"] }, host: { properties: { "attr.id": "id", "class.f-node-output-disabled": "disabled" }, classAttribute: "f-component f-node-output" }, providers: [{ provide: F_NODE_OUTPUT, useExisting: FNodeOutputDirective }], usesInheritance: true, ngImport: i0 }); }
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeOutputDirective, decorators: [{
51
+ type: Directive,
52
+ args: [{
53
+ selector: "[fNodeOutput]",
54
+ host: {
55
+ '[attr.id]': 'id',
56
+ class: "f-component f-node-output",
57
+ '[class.f-node-output-disabled]': 'disabled',
58
+ },
59
+ providers: [{ provide: F_NODE_OUTPUT, useExisting: FNodeOutputDirective }],
60
+ }]
61
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.FNodeBase, decorators: [{
62
+ type: Inject,
63
+ args: [F_NODE]
64
+ }] }, { type: i1.FComponentsStore }]; }, propDecorators: { id: [{
65
+ type: Input,
66
+ args: ['fNodeOutputId']
67
+ }], disabled: [{
68
+ type: Input,
69
+ args: ['fNodeOutputDisabled']
70
+ }] } });
71
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLW91dHB1dC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLW91dHB1dC9mLW5vZGUtb3V0cHV0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLE1BQU0sRUFBRSxLQUFLLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNqRCxPQUFPLEVBQUUsZUFBZSxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3RFLE9BQU8sRUFBRSxNQUFNLEVBQWEsTUFBTSxtQkFBbUIsQ0FBQzs7OztBQUd0RCxJQUFJ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ICAgaWYgKCF0aGlzLmZOb2RlKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ2ZOb2RlT3V0cHV0IG11c3QgYmUgaW5zaWRlIGYtbm9kZScpO1xuICAgIH1cbiAgICB0aGlzLmZDb21wb25lbnRzU3RvcmUuYWRkT3V0cHV0KHRoaXMpO1xuICAgIHRoaXMuZk5vZGUuYWRkQ29ubmVjdG9yKHRoaXMpO1xuICB9XG5cbiAgcHVibGljIG92ZXJyaWRlIHNldENvbm5lY3RlZChpc0Nvbm5lY3RlZDogYm9vbGVhbik6IHZvaWQge1xuICAgIHRoaXMuaXNDb25uZWN0ZWQgPSBpc0Nvbm5lY3RlZDtcbiAgICB0aGlzLmhvc3RFbGVtZW50LmNsYXNzTGlzdC50b2dnbGUoJ2Ytbm9kZS1vdXRwdXQtY29ubmVjdGVkJywgaXNDb25uZWN0ZWQpO1xuICB9XG5cbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuZk5vZGUucmVtb3ZlQ29ubmVjdG9yKHRoaXMpO1xuICAgIHRoaXMuZkNvbXBvbmVudHNTdG9yZS5yZW1vdmVPdXRwdXQodGhpcyk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,4 @@
1
+ export * from './f-node-output-base';
2
+ export * from './is-node-output';
3
+ export * from './f-node-output.directive';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLW91dHB1dC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDO0FBRXJDLGNBQWMsa0JBQWtCLENBQUM7QUFFakMsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dHB1dC1iYXNlJztcblxuZXhwb3J0ICogZnJvbSAnLi9pcy1ub2RlLW91dHB1dCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dHB1dC5kaXJlY3RpdmUnO1xuIl19
@@ -0,0 +1,4 @@
1
+ export function isNodeOutput(element) {
2
+ return !!element.closest('[fNodeOutput]');
3
+ }
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9kZS1vdXRwdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvZi1ub2RlLW91dHB1dC9pcy1ub2RlLW91dHB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsWUFBWSxDQUFDLE9BQWlDO0lBQzVELE9BQU8sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDLENBQUM7QUFDNUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc05vZGVPdXRwdXQoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogYm9vbGVhbiB7XG4gIHJldHVybiAhIWVsZW1lbnQuY2xvc2VzdCgnW2ZOb2RlT3V0cHV0XScpO1xufVxuIl19
@@ -0,0 +1,2 @@
1
+ export * from './f-node-output.directive';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9mLW5vZGUtb3V0cHV0L3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dHB1dC5kaXJlY3RpdmUnO1xuIl19
@@ -0,0 +1,5 @@
1
+ export * from './f-node-input';
2
+ export * from './f-node-outlet';
3
+ export * from './f-node-output';
4
+ export * from './f-connector-base';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWNvbm5lY3RvcnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUUvQixjQUFjLGlCQUFpQixDQUFDO0FBRWhDLGNBQWMsaUJBQWlCLENBQUM7QUFFaEMsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLWlucHV0JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtb3V0bGV0JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtb3V0cHV0JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3Rvci1iYXNlJztcbiJdfQ==
@@ -0,0 +1,4 @@
1
+ export * from './f-node-input/public-api';
2
+ export * from './f-node-output/public-api';
3
+ export * from './f-node-outlet/public-api';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtY29ubmVjdG9ycy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFFMUMsY0FBYyw0QkFBNEIsQ0FBQztBQUUzQyxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtaW5wdXQvcHVibGljLWFwaSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2RlLW91dHB1dC9wdWJsaWMtYXBpJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtb3V0bGV0L3B1YmxpYy1hcGknO1xuIl19
@@ -0,0 +1,55 @@
1
+ import { Directive, Inject, InjectionToken, Input, Optional, SkipSelf } from "@angular/core";
2
+ import { Subject } from 'rxjs';
3
+ import { BooleanExtensions } from '@foblex/core';
4
+ import { F_NODE } from '../f-node-base';
5
+ import * as i0 from "@angular/core";
6
+ export const F_DRAG_HANDLE = new InjectionToken('F_DRAG_HANDLE');
7
+ export class FDragHandleDirective {
8
+ get disabled() {
9
+ return this.isDisabled;
10
+ }
11
+ set disabled(isDisabled) {
12
+ const value = BooleanExtensions.castToBoolean(isDisabled);
13
+ if (value !== this.isDisabled) {
14
+ this.isDisabled = value;
15
+ this.stateChanges.next();
16
+ }
17
+ }
18
+ get hostElement() {
19
+ return this.elementReference.nativeElement;
20
+ }
21
+ constructor(elementReference, _parentNode) {
22
+ this.elementReference = elementReference;
23
+ this.stateChanges = new Subject();
24
+ this.isDisabled = false;
25
+ this._parentNode = _parentNode;
26
+ }
27
+ ngOnDestroy() {
28
+ this.stateChanges.complete();
29
+ }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDragHandleDirective, deps: [{ token: i0.ElementRef }, { token: F_NODE, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive }); }
31
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FDragHandleDirective, isStandalone: true, selector: "[fDragHandle]", inputs: { disabled: ["fDragHandleDisabled", "disabled"] }, host: { properties: { "class.f-drag-handle-disabled": "disabled" }, classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 }); }
32
+ }
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FDragHandleDirective, decorators: [{
34
+ type: Directive,
35
+ args: [{
36
+ selector: "[fDragHandle]",
37
+ standalone: true,
38
+ host: {
39
+ class: "f-drag-handle f-component",
40
+ '[class.f-drag-handle-disabled]': 'disabled'
41
+ },
42
+ providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }],
43
+ }]
44
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
45
+ type: Inject,
46
+ args: [F_NODE]
47
+ }, {
48
+ type: Optional
49
+ }, {
50
+ type: SkipSelf
51
+ }] }]; }, propDecorators: { disabled: [{
52
+ type: Input,
53
+ args: ['fDragHandleDisabled']
54
+ }] } });
55
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1kcmFnLWhhbmRsZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWRyYWctaGFuZGxlL2YtZHJhZy1oYW5kbGUuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQWMsTUFBTSxFQUFFLGNBQWMsRUFBRSxLQUFLLEVBQWEsUUFBUSxFQUFFLFFBQVEsRUFDcEYsTUFBTSxlQUFlLENBQUM7QU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MuY2FzdFRvQm9vbGVhbihpc0Rpc2FibGVkKTtcbiAgICBpZiAodmFsdWUgIT09IHRoaXMuaXNEaXNhYmxlZCkge1xuICAgICAgdGhpcy5pc0Rpc2FibGVkID0gdmFsdWU7XG4gICAgICB0aGlzLnN0YXRlQ2hhbmdlcy5uZXh0KCk7XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBpc0Rpc2FibGVkOiBib29sZWFuID0gZmFsc2U7XG5cbiAgcHVibGljIGdldCBob3N0RWxlbWVudCgpOiBIVE1MRWxlbWVudCB7XG4gICAgcmV0dXJuIHRoaXMuZWxlbWVudFJlZmVyZW5jZS5uYXRpdmVFbGVtZW50O1xuICB9XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSBlbGVtZW50UmVmZXJlbmNlOiBFbGVtZW50UmVmPEhUTUxFbGVtZW50PixcbiAgICBASW5qZWN0KEZfTk9ERSkgQE9wdGlvbmFsKCkgQFNraXBTZWxmKCkgX3BhcmVudE5vZGU/OiBhbnksXG4gICkge1xuICAgIHRoaXMuX3BhcmVudE5vZGUgPSBfcGFyZW50Tm9kZTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnN0YXRlQ2hhbmdlcy5jb21wbGV0ZSgpO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,3 @@
1
+ export * from './f-drag-handle.directive';
2
+ export * from './is-drag-handle';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWRyYWctaGFuZGxlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1kcmFnLWhhbmRsZS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9pcy1kcmFnLWhhbmRsZSc7XG4iXX0=
@@ -0,0 +1,20 @@
1
+ export function isNodeDragHandle(element) {
2
+ const dragHandle = getClosestDragHandle(element);
3
+ return !!dragHandle && !isElementOrParentExcluded(element);
4
+ }
5
+ function isElementOrParentExcluded(element) {
6
+ const isContains = isElementContainsClass(element);
7
+ const parentElement = element.parentElement;
8
+ const dragHandle = getClosestDragHandle(parentElement);
9
+ if (!isContains && !!dragHandle) {
10
+ return isElementOrParentExcluded(parentElement);
11
+ }
12
+ return isContains;
13
+ }
14
+ function getClosestDragHandle(element) {
15
+ return element.closest('.f-drag-handle');
16
+ }
17
+ function isElementContainsClass(element) {
18
+ return element.classList.contains('f-drag-handle-disabled');
19
+ }
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZHJhZy1oYW5kbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWRyYWctaGFuZGxlL2lzLWRyYWctaGFuZGxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxnQkFBZ0IsQ0FBQyxPQUFpQztJQUNoRSxNQUFNLFVBQVUsR0FBRyxvQkFBb0IsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNqRCxPQUFPLENBQUMsQ0FBQyxVQUFVLElBQUksQ0FBQyx5QkFBeUIsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUM3RCxDQUFDO0FBRUQsU0FBUyx5QkFBeUIsQ0FBQyxPQUFpQztJQUNsRSxNQUFNLFVBQVUsR0FBRyxzQkFBc0IsQ0FBQyxPQUFPLENBQUMsQ0FBQ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yZW50RWxlbWVudCBhcyBIVE1MRWxlbWVudCk7XG4gIGNvbnN0IGRyYWdIYW5kbGUgPSBnZXRDbG9zZXN0RHJhZ0hhbmRsZShwYXJlbnRFbGVtZW50KTtcbiAgaWYgKCFpc0NvbnRhaW5zICYmICEhZHJhZ0hhbmRsZSkge1xuICAgIHJldHVybiBpc0VsZW1lbnRPclBhcmVudEV4Y2x1ZGVkKHBhcmVudEVsZW1lbnQpO1xuICB9XG4gIHJldHVybiBpc0NvbnRhaW5zO1xufVxuXG5mdW5jdGlvbiBnZXRDbG9zZXN0RHJhZ0hhbmRsZShlbGVtZW50OiBIVE1MRWxlbWVudCB8IFNWR0VsZW1lbnQpOiBIVE1MRWxlbWVudCB7XG4gIHJldHVybiBlbGVtZW50LmNsb3Nlc3QoJy5mLWRyYWctaGFuZGxlJykgYXMgSFRNTEVsZW1lbnQ7XG59XG5cbmZ1bmN0aW9uIGlzRWxlbWVudENvbnRhaW5zQ2xhc3MoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogYm9vbGVhbiB7XG4gIHJldHVybiBlbGVtZW50LmNsYXNzTGlzdC5jb250YWlucygnZi1kcmFnLWhhbmRsZS1kaXNhYmxlZCcpO1xufVxuIl19
@@ -0,0 +1,2 @@
1
+ export * from './f-drag-handle.directive';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2YtZHJhZy1oYW5kbGUvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWRyYWctaGFuZGxlLmRpcmVjdGl2ZSc7XG4iXX0=
@@ -0,0 +1,33 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import { PointExtensions } from '@foblex/core';
4
+ import { F_SELECTED_CLASS } from '../f-connection';
5
+ export const F_NODE = new InjectionToken('F_NODE');
6
+ export class FNodeBase {
7
+ constructor() {
8
+ this.stateChanges = new Subject();
9
+ this._position = PointExtensions.initialize();
10
+ }
11
+ isContains(element) {
12
+ return this.hostElement.contains(element);
13
+ }
14
+ redraw() {
15
+ this.hostElement.setAttribute('style', 'transform: translate(' + this.position.x + 'px,' + this.position.y + 'px)');
16
+ }
17
+ deselect() {
18
+ this.hostElement.classList.remove(F_SELECTED_CLASS);
19
+ }
20
+ select() {
21
+ this.hostElement.classList.add(F_SELECTED_CLASS);
22
+ }
23
+ isSelected() {
24
+ return this.hostElement.classList.contains(F_SELECTED_CLASS);
25
+ }
26
+ updatePosition(position) {
27
+ this._position = position;
28
+ }
29
+ completeDrag() {
30
+ this.positionChange.emit(this.position);
31
+ }
32
+ }
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLW5vZGUtYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWdCLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQy9CLE9BQU8sRUFBMkIsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXhFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBZSxNQUFNLGlCQUFpQixDQUFDO0FBR2hFLE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxJQUFJLGNBQWMsQ0FBWSxRQU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ZWFuIHtcbiAgICByZXR1cm4gdGhpcy5ob3N0RWxlbWVudC5jbGFzc0xpc3QuY29udGFpbnMoRl9TRUxFQ1RFRF9DTEFTUyk7XG4gIH1cblxuICBwdWJsaWMgdXBkYXRlUG9zaXRpb24ocG9zaXRpb246IElQb2ludCk6IHZvaWQge1xuICAgIHRoaXMuX3Bvc2l0aW9uID0gcG9zaXRpb247XG4gIH1cblxuICBwdWJsaWMgY29tcGxldGVEcmFnKCk6IHZvaWQge1xuICAgIHRoaXMucG9zaXRpb25DaGFuZ2UuZW1pdCh0aGlzLnBvc2l0aW9uKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,88 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from "@angular/core";
2
+ import { PointExtensions } from '@foblex/core';
3
+ import { FNodeBase, F_NODE } from './f-node-base';
4
+ import { startWith, Subscription } from 'rxjs';
5
+ import { FResizeObserver } from './f-resize-observer';
6
+ import { GetConnectorSideInNodeHandler } from '../domain';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../f-components-store";
9
+ let uniqueId = 0;
10
+ export class FNodeComponent extends FNodeBase {
11
+ set position(value) {
12
+ this._position = PointExtensions.castToPoint(value);
13
+ this.refresh();
14
+ }
15
+ get position() {
16
+ return this._position;
17
+ }
18
+ get hostElement() {
19
+ return this.elementReference.nativeElement;
20
+ }
21
+ constructor(elementReference, fComponentsStore) {
22
+ super();
23
+ this.elementReference = elementReference;
24
+ this.fComponentsStore = fComponentsStore;
25
+ this.subscriptions$ = new Subscription();
26
+ this.id = `f-node-${uniqueId++}`;
27
+ this.positionChange = new EventEmitter();
28
+ this.disabled = false;
29
+ this.connectors = [];
30
+ }
31
+ ngOnInit() {
32
+ super.redraw();
33
+ this.fComponentsStore.addNode(this);
34
+ }
35
+ ngAfterViewInit() {
36
+ this.subscriptions$.add(this.subscribeOnResizeChanges());
37
+ }
38
+ subscribeOnResizeChanges() {
39
+ return new FResizeObserver(this.hostElement).pipe(startWith(null)).subscribe(() => {
40
+ this.connectors.forEach((connector) => {
41
+ connector.side = new GetConnectorSideInNodeHandler().handle(connector.hostElement, this.hostElement);
42
+ });
43
+ this.fComponentsStore.changes.next();
44
+ });
45
+ }
46
+ addConnector(connector) {
47
+ this.connectors.push(connector);
48
+ }
49
+ removeConnector(connector) {
50
+ const index = this.connectors.indexOf(connector);
51
+ if (index !== -1) {
52
+ this.connectors.splice(index, 1);
53
+ }
54
+ }
55
+ refresh() {
56
+ this.stateChanges.next();
57
+ }
58
+ ngOnDestroy() {
59
+ this.fComponentsStore.removeNode(this);
60
+ this.stateChanges.complete();
61
+ this.subscriptions$.unsubscribe();
62
+ }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeComponent, deps: [{ token: i0.ElementRef }, { token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: FNodeComponent, selector: "f-node", inputs: { id: "id", position: ["fNodePosition", "position"], disabled: "disabled" }, outputs: { positionChange: "fNodePositionChange" }, host: { properties: { "attr.id": "id", "class.f-disabled": "disabled" }, classAttribute: "f-node f-component" }, providers: [
65
+ { provide: F_NODE, useExisting: FNodeComponent }
66
+ ], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{position:absolute!important;left:0;top:0;pointer-events:all;transform-origin:0 0;-webkit-user-select:none;user-select:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
+ }
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeComponent, decorators: [{
69
+ type: Component,
70
+ args: [{ selector: "f-node", exportAs: "fComponent", changeDetection: ChangeDetectionStrategy.OnPush, host: {
71
+ '[attr.id]': 'id',
72
+ class: "f-node f-component",
73
+ '[class.f-disabled]': 'disabled',
74
+ }, providers: [
75
+ { provide: F_NODE, useExisting: FNodeComponent }
76
+ ], template: "<ng-content></ng-content>\n", styles: [":host{position:absolute!important;left:0;top:0;pointer-events:all;transform-origin:0 0;-webkit-user-select:none;user-select:none}\n"] }]
77
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FComponentsStore }]; }, propDecorators: { id: [{
78
+ type: Input
79
+ }], position: [{
80
+ type: Input,
81
+ args: ['fNodePosition']
82
+ }], positionChange: [{
83
+ type: Output,
84
+ args: ['fNodePositionChange']
85
+ }], disabled: [{
86
+ type: Input
87
+ }] } });
88
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2Ytbm9kZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLW5vZGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLHVCQUF1QixFQUFFLFNBQVMsRUFBYyxZQUFZLEVBQzVELEtBQUssRUFBcUIsTUFBTSxHQUNqQyxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQTJCLGVBQWUsRUFBYyxNQUFNLGNBQWMsQ0FBQztBQUNwRixPQUFPLEVBQ0wsU0FBUyxFQUFFLE1BQU0sRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBR3RELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLFdBQVcs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biAgcHVibGljIG92ZXJyaWRlIGFkZENvbm5lY3Rvcihjb25uZWN0b3I6IEZDb25uZWN0b3JCYXNlKTogdm9pZCB7XG4gICAgdGhpcy5jb25uZWN0b3JzLnB1c2goY29ubmVjdG9yKTtcbiAgfVxuXG4gIHB1YmxpYyBvdmVycmlkZSByZW1vdmVDb25uZWN0b3IoY29ubmVjdG9yOiBGQ29ubmVjdG9yQmFzZSk6IHZvaWQge1xuICAgIGNvbnN0IGluZGV4ID0gdGhpcy5jb25uZWN0b3JzLmluZGV4T2YoY29ubmVjdG9yKTtcbiAgICBpZiAoaW5kZXggIT09IC0xKSB7XG4gICAgICB0aGlzLmNvbm5lY3RvcnMuc3BsaWNlKGluZGV4LCAxKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgcmVmcmVzaCgpOiB2b2lkIHtcbiAgICB0aGlzLnN0YXRlQ2hhbmdlcy5uZXh0KCk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5mQ29tcG9uZW50c1N0b3JlLnJlbW92ZU5vZGUodGhpcyk7XG4gICAgdGhpcy5zdGF0ZUNoYW5nZXMuY29tcGxldGUoKTtcbiAgICB0aGlzLnN1YnNjcmlwdGlvbnMkLnVuc3Vic2NyaWJlKCk7XG4gIH1cbn1cbiIsIjxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiJdfQ==
@@ -0,0 +1,16 @@
1
+ import { Observable } from 'rxjs';
2
+ export class FResizeObserver extends Observable {
3
+ constructor(element) {
4
+ super(subscriber => {
5
+ const observer = new ResizeObserver(entries => {
6
+ subscriber.next(entries);
7
+ });
8
+ observer.observe(element);
9
+ return function unsubscribe() {
10
+ observer.unobserve(element);
11
+ observer.disconnect();
12
+ };
13
+ });
14
+ }
15
+ }
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1yZXNpemUtb2JzZXJ2ZXIuanMiLCJzb3VyY2V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gICAgIHN1YnNjcmliZXIubmV4dChlbnRyaWVzKTtcbiAgICAgIH0pO1xuXG4gICAgICBvYnNlcnZlci5vYnNlcnZlKGVsZW1lbnQpO1xuXG4gICAgICByZXR1cm4gZnVuY3Rpb24gdW5zdWJzY3JpYmUoKSB7XG4gICAgICAgIG9ic2VydmVyLnVub2JzZXJ2ZShlbGVtZW50KTtcbiAgICAgICAgb2JzZXJ2ZXIuZGlzY29ubmVjdCgpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,7 @@
1
+ export * from './f-connectors';
2
+ export * from './f-drag-handle';
3
+ export * from './f-node.component';
4
+ export * from './f-node-base';
5
+ export * from './f-resize-observer';
6
+ export * from './is-node';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdCQUFnQixDQUFDO0FBRS9CLGNBQWMsaUJBQWlCLENBQUM7QUFFaEMsY0FBYyxvQkFBb0IsQ0FBQztBQUVuQyxjQUFjLGVBQWUsQ0FBQztBQUU5QixjQUFjLHFCQUFxQixDQUFDO0FBRXBDLGNBQWMsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3RvcnMnO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtZHJhZy1oYW5kbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS5jb21wb25lbnQnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS1iYXNlJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLXJlc2l6ZS1vYnNlcnZlcic7XG5cbmV4cG9ydCAqIGZyb20gJy4vaXMtbm9kZSc7XG4iXX0=
@@ -0,0 +1,4 @@
1
+ export function isNode(element) {
2
+ return !!element.closest('f-node');
3
+ }
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL2lzLW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLE1BQU0sQ0FBQyxPQUFpQztJQUN0RCxPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQ3JDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaXNOb2RlKGVsZW1lbnQ6IEhUTUxFbGVtZW50IHwgU1ZHRWxlbWVudCk6IGJvb2xlYW4ge1xuICByZXR1cm4gISFlbGVtZW50LmNsb3Nlc3QoJ2Ytbm9kZScpO1xufVxuXG4iXX0=
@@ -0,0 +1,4 @@
1
+ export * from './f-connectors/public-api';
2
+ export * from './f-drag-handle/public-api';
3
+ export * from './f-node.component';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1ub2RlL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQztBQUUxQyxjQUFjLDRCQUE0QixDQUFDO0FBRTNDLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2YtY29ubmVjdG9ycy9wdWJsaWMtYXBpJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWRyYWctaGFuZGxlL3B1YmxpYy1hcGknO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS5jb21wb25lbnQnO1xuIl19
@@ -0,0 +1,7 @@
1
+ export const FLOW = {
2
+ UID: 'f-flow',
3
+ };
4
+ export function getFlowUid() {
5
+ return FLOW.UID;
6
+ }
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWZsb3ctdWlkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9nZXQtZmxvdy11aWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHO0lBQ2xCLEdBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQztBQUVGLE1BQU0sVUFBVSxVQUFVO0lBQ3RCLE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQztBQUNwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IEZMT1cgPSB7XG4gIFVJRDogJ2YtZmxvdycsXG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZ2V0Rmxvd1VpZCgpOiBzdHJpbmcge1xuICAgIHJldHVybiBGTE9XLlVJRDtcbn1cbiJdfQ==
@@ -1,5 +1,6 @@
1
1
  export * from './components/public-api';
2
- export * from './directives/public-api';
3
- export * from './internal/f-canvas/f-canvas.directive';
2
+ export * from './f-connection/public-api';
3
+ export * from './f-draggable/public-api';
4
+ export * from './f-node/public-api';
4
5
  export * from './f-flow.module';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2YtZmxvd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ZnJvbSAnLi9mLWZsb3cubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,36 @@
1
+ import { FBackgroundBase, FCanvasBase, FDefinitionsBase, FFlowBase } from './components';
2
+ import { Subject } from 'rxjs';
3
+ import { FDraggableBase } from './f-draggable';
4
+ import { ITransformModel } from '@foblex/core';
5
+ import { FConnectionBase } from './f-connection';
6
+ import { FConnectorBase, FNodeBase, FNodeInputBase, FNodeOutletBase, FNodeOutputBase } from './f-node';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FComponentsStore {
9
+ readonly changes: Subject<void>;
10
+ get flowHost(): HTMLElement;
11
+ get transform(): ITransformModel;
12
+ fFlow: FFlowBase | undefined;
13
+ fCanvas: FCanvasBase | undefined;
14
+ fBackground: FBackgroundBase | undefined;
15
+ fNodes: FNodeBase[];
16
+ fConnections: FConnectionBase[];
17
+ fTempConnection: FConnectionBase | undefined;
18
+ fOutputs: FConnectorBase[];
19
+ fInputs: FConnectorBase[];
20
+ fOutlets: FConnectorBase[];
21
+ fDefs: FDefinitionsBase | undefined;
22
+ fDraggable: FDraggableBase | undefined;
23
+ addOutput(output: FNodeOutputBase): void;
24
+ removeOutput(output: FNodeOutputBase): void;
25
+ addInput(input: FNodeInputBase): void;
26
+ removeInput(input: FNodeInputBase): void;
27
+ addOutlet(outlet: FNodeOutletBase): void;
28
+ removeOutlet(outlet: FNodeOutletBase): void;
29
+ addNode(node: FNodeBase): void;
30
+ findNode(element: HTMLElement | SVGElement): FNodeBase | undefined;
31
+ removeNode(node: FNodeBase): void;
32
+ addConnection(connection: FConnectionBase): void;
33
+ removeConnection(connection: FConnectionBase): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FComponentsStore, never>;
35
+ static ɵprov: i0.ɵɵInjectableDeclaration<FComponentsStore>;
36
+ }
@@ -0,0 +1,2 @@
1
+ import { EConnectionBehavior } from './e-connection-behavior';
2
+ export declare function castToConnectionBehavior(behavior: string): EConnectionBehavior;
@@ -0,0 +1,2 @@
1
+ import { EConnectionType } from './e-connection-type';
2
+ export declare function castToConnectionType(type: string): EConnectionType;
@@ -0,0 +1,4 @@
1
+ export declare enum EConnectionBehavior {
2
+ FIXED = "fixed",
3
+ FLOATING = "floating"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum EConnectionType {
2
+ SEGMENT = "segment",
3
+ STRAIGHT = "straight",
4
+ BEZIER = "bezier"
5
+ }
@@ -0,0 +1,54 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { IHasHostElement, IPoint, IVector } from '@foblex/core';
3
+ import { Subject } from 'rxjs';
4
+ import { EConnectionBehavior } from './e-connection-behavior';
5
+ import { EConnectionType } from './e-connection-type';
6
+ import { IHasConnectionColor } from './i-has-connection-color';
7
+ import { IHasConnectionFromTo } from './i-has-connection-from-to';
8
+ import { IHasConnectionText } from './i-has-connection-text';
9
+ import { ICanChangeConnectionVisibility, ISelectable } from './mixins';
10
+ import { IConnectionPath } from './f-path';
11
+ import { IConnectionGradient } from './f-gradient';
12
+ import { FConnectionDragHandleComponent } from './f-drag-handle';
13
+ import { FConnectionSelectionComponent } from './f-selection';
14
+ import { IConnectionText } from './f-connection-text';
15
+ import { IHasStateChanges } from '../../i-has-state-changes';
16
+ import { EConnectorSide } from '../../domain';
17
+ import * as i0 from "@angular/core";
18
+ declare const MIXIN_BASE: import("../../common-behaviours").Constructor<ISelectable> & import("../../common-behaviours").AbstractConstructor<ISelectable> & import("../../common-behaviours").Constructor<ICanChangeConnectionVisibility> & import("../../common-behaviours").AbstractConstructor<ICanChangeConnectionVisibility> & {
19
+ new (hostElement: HTMLElement): {
20
+ hostElement: HTMLElement;
21
+ };
22
+ };
23
+ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHasHostElement, ISelectable, ICanChangeConnectionVisibility, IHasStateChanges, IHasConnectionColor, IHasConnectionFromTo, IHasConnectionText {
24
+ abstract id: any;
25
+ abstract text: string;
26
+ abstract startColor: string;
27
+ abstract endColor: string;
28
+ abstract outputId: any;
29
+ abstract inputId: any;
30
+ path: string;
31
+ vector: IVector;
32
+ readonly stateChanges: Subject<void>;
33
+ abstract disabled: boolean;
34
+ abstract boundingElement: HTMLElement | SVGElement;
35
+ abstract behavior: EConnectionBehavior;
36
+ abstract type: EConnectionType;
37
+ abstract fDefs: ElementRef<SVGDefsElement>;
38
+ abstract fPath: IConnectionPath;
39
+ abstract fGradient: IConnectionGradient;
40
+ abstract fDragHandle: FConnectionDragHandleComponent;
41
+ abstract fSelection: FConnectionSelectionComponent;
42
+ abstract fText: IConnectionText;
43
+ abstract fLabel: ElementRef<SVGRectElement>;
44
+ protected constructor(elementReference: ElementRef<HTMLElement>);
45
+ initialize(): void;
46
+ private reset;
47
+ isContains(element: HTMLElement | SVGElement): boolean;
48
+ setVector(from: IPoint, fromSide: EConnectorSide, to: IPoint, toSide: EConnectorSide): void;
49
+ setMarkers(markers: SVGMarkerElement[]): void;
50
+ redraw(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionBase, never>;
52
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectionBase, never, never, {}, {}, never, never, false, never>;
53
+ }
54
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { IHasHostElement } from '@foblex/core';
3
+ import { IHasConnectionText } from '../i-has-connection-text';
4
+ import { IHasConnectionFromTo } from '../i-has-connection-from-to';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FConnectionTextPathDirective implements IHasHostElement, OnInit {
7
+ private elementReference;
8
+ private base;
9
+ get linkToConnection(): string;
10
+ get hostElement(): SVGTextPathElement;
11
+ symbolWidth: number;
12
+ fontSize: string;
13
+ constructor(elementReference: ElementRef<SVGTextPathElement>, base: IHasConnectionText & IHasConnectionFromTo);
14
+ ngOnInit(): void;
15
+ getBBox(): DOMRect;
16
+ private getFontStyles;
17
+ private getSymbolWidth;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionTextPathDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectionTextPathDirective, "textPath[f-connection-text-path]", never, {}, {}, never, never, false, never>;
20
+ }
@@ -1,19 +1,22 @@
1
1
  import { ElementRef } from "@angular/core";
2
- import { IHasHostElement, IVector } from '@foblex/core';
2
+ import { IVector } from '@foblex/core';
3
3
  import { FConnectionTextPathDirective } from './f-connection-text-path.directive';
4
- import { IInputOutputModel } from '../i-input-output-model';
5
- import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
4
+ import { IHasConnectionText } from '../i-has-connection-text';
5
+ import { IHasConnectionFromTo } from '../i-has-connection-from-to';
6
+ import { IConnectionText } from './i-connection-text';
6
7
  import * as i0 from "@angular/core";
7
- export declare class FConnectionTextComponent implements IHasHostElement {
8
+ export declare class FConnectionTextComponent implements IConnectionText {
8
9
  private elementReference;
9
- fromTo: IInputOutputModel<FNodeOutputBase | FNodeOutletBase> | undefined;
10
+ private base;
10
11
  get textId(): string;
11
12
  get hostElement(): SVGTextElement;
13
+ get text(): string;
12
14
  textPathDirective: FConnectionTextPathDirective;
13
- constructor(elementReference: ElementRef<SVGTextElement>);
15
+ constructor(elementReference: ElementRef<SVGTextElement>, base: IHasConnectionText & IHasConnectionFromTo);
14
16
  redraw(vector: IVector): void;
17
+ private calculateDy;
15
18
  private static isTextReverse;
16
19
  private static getTextStartOffset;
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionTextComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionTextComponent, "text[f-connection-text]", never, { "fromTo": { "alias": "fromTo"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionTextComponent, "text[f-connection-text]", never, {}, {}, never, never, false, never>;
19
22
  }
@@ -0,0 +1,6 @@
1
+ import { IHasHostElement, IVector } from '@foblex/core';
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const CONNECTION_TEXT: InjectionToken<IConnectionText>;
4
+ export interface IConnectionText extends IHasHostElement {
5
+ redraw(vector: IVector): void;
6
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './f-connection-text.component';
2
2
  export * from './f-connection-text-path.directive';
3
+ export * from './i-connection-text';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const F_CONNECTION: InjectionToken<unknown>;