@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.30

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 (539) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/compiler-runtime.js +5 -0
  3. package/dist/_virtual/compiler-runtime2.js +4 -0
  4. package/dist/_virtual/index.js +4 -0
  5. package/dist/_virtual/index2.js +4 -0
  6. package/dist/_virtual/react-compiler-runtime.development.js +4 -0
  7. package/dist/_virtual/react-compiler-runtime.production.js +4 -0
  8. package/dist/_virtual/react-contenteditable.js +7 -0
  9. package/dist/_virtual/react-contenteditable2.js +4 -0
  10. package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
  11. package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
  12. package/dist/_virtual/react-dom-server.browser.development.js +4 -0
  13. package/dist/_virtual/react-dom-server.browser.production.js +4 -0
  14. package/dist/_virtual/react-is.development.js +4 -0
  15. package/dist/_virtual/react-is.production.min.js +4 -0
  16. package/dist/_virtual/server.browser.js +5 -0
  17. package/dist/_virtual/server.browser2.js +4 -0
  18. package/dist/assets/components/alert/Alert.style.css +1 -0
  19. package/dist/assets/components/aurora/Aurora.style.css +1 -0
  20. package/dist/assets/components/avatar/Avatar.style.css +1 -0
  21. package/dist/assets/components/badge/Badge.style.css +1 -0
  22. package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
  23. package/dist/assets/components/button/Button.style.css +1 -0
  24. package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
  25. package/dist/assets/components/card/Card.style.css +1 -0
  26. package/dist/assets/components/command/Command.style.css +1 -0
  27. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  28. package/dist/assets/components/d-flow/DFlow.style.css +1 -0
  29. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  30. package/dist/assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css +1 -0
  31. package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +1 -0
  32. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  33. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  34. package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +1 -0
  35. package/dist/assets/components/d-layout/DLayout.style.css +1 -0
  36. package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
  37. package/dist/assets/components/dialog/Dialog.style.css +1 -0
  38. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
  39. package/dist/assets/components/form/Input.style.css +1 -0
  40. package/dist/assets/components/menu/Menu.style.css +1 -0
  41. package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
  42. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
  43. package/dist/assets/components/spacing/Spacing.style.css +1 -0
  44. package/dist/assets/components/tab/Tab.style.css +1 -0
  45. package/dist/assets/components/text/Text.style.css +1 -0
  46. package/dist/assets/components/toast/Toast.style.css +1 -0
  47. package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
  48. package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
  49. package/dist/components/alert/Alert.d.ts +7 -0
  50. package/dist/components/alert/Alert.js +38 -0
  51. package/dist/components/aurora/Aurora.d.ts +5 -0
  52. package/dist/components/aurora/Aurora.js +23 -0
  53. package/dist/components/avatar/Avatar.js +9 -9
  54. package/dist/components/badge/Badge.d.ts +2 -1
  55. package/dist/components/badge/Badge.js +58 -17
  56. package/dist/components/breadcrumb/Breadcrumb.js +16 -28
  57. package/dist/components/button/Button.d.ts +3 -2
  58. package/dist/components/button/Button.js +23 -20
  59. package/dist/components/button-group/ButtonGroup.js +12 -11
  60. package/dist/components/card/Card.d.ts +2 -1
  61. package/dist/components/card/Card.js +25 -22
  62. package/dist/components/card/CardSection.d.ts +1 -0
  63. package/dist/components/card/CardSection.js +18 -12
  64. package/dist/components/col/Col.js +9 -8
  65. package/dist/components/command/Command.js +19 -18
  66. package/dist/components/container/Container.js +12 -11
  67. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  68. package/dist/components/context-menu/ContextMenu.js +191 -0
  69. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  70. package/dist/components/d-application/DApplication.service.js +9 -0
  71. package/dist/components/d-flow/DFlow.d.ts +7 -3
  72. package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
  73. package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
  74. package/dist/components/d-flow/DFlow.js +313 -258
  75. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
  76. package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
  77. package/dist/components/d-flow/DFlow.service.d.ts +17 -7
  78. package/dist/components/d-flow/DFlow.service.js +132 -7
  79. package/dist/components/d-flow/DFlow.util.d.ts +4 -0
  80. package/dist/components/d-flow/DFlow.util.js +63 -0
  81. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  82. package/dist/components/d-flow/DFlowEdge.js +69 -0
  83. package/dist/components/d-flow/index.d.ts +1 -10
  84. package/dist/components/d-flow/index.js +9 -44
  85. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +14 -0
  86. package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
  87. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
  88. package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
  89. package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
  90. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  91. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
  92. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  93. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
  94. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  95. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  96. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  97. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  98. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  99. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +10 -0
  100. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
  101. package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
  102. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  103. package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
  104. package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
  105. package/dist/components/d-flow-file/DFlowTabs.js +132 -0
  106. package/dist/components/d-flow-file/index.d.ts +1 -0
  107. package/dist/components/d-flow-file/index.js +4 -0
  108. package/dist/components/d-flow-folder/DFlowFolder.d.ts +33 -0
  109. package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
  110. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  111. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -0
  112. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  113. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  114. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +10 -0
  115. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
  116. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  117. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
  118. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
  119. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  120. package/dist/components/d-flow-folder/index.d.ts +4 -0
  121. package/dist/components/d-flow-folder/index.js +12 -0
  122. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  123. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
  124. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  125. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  126. package/dist/components/d-flow-function/DFlowFunction.service.d.ts +11 -0
  127. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  128. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
  129. package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
  130. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  131. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -0
  132. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  133. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  134. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  135. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +43 -0
  136. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  137. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
  138. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  139. package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
  140. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
  141. package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
  142. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
  143. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
  144. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
  145. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
  146. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
  147. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
  148. package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
  149. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  150. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  151. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  152. package/dist/components/d-flow-panel/DFlowPanelControl.js +72 -0
  153. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  154. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  155. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  156. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  157. package/dist/components/d-flow-panel/index.d.ts +5 -0
  158. package/dist/components/d-flow-panel/index.js +12 -0
  159. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
  160. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
  161. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
  162. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
  163. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
  164. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
  165. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
  166. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -0
  167. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  168. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  169. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +72 -0
  170. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  171. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +12 -11
  172. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  173. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  174. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  175. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  176. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  177. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
  178. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
  179. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  180. package/dist/components/d-flow-suggestion/index.js +4 -0
  181. package/dist/components/d-flow-type/DFlowType.service.d.ts +11 -0
  182. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  183. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
  184. package/dist/components/d-flow-type/DFlowType.view.js +85 -0
  185. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  186. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  187. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  188. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  189. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  190. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  191. package/dist/components/d-flow-validation/DNodeValidation.hook.js +58 -0
  192. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  193. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  194. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  195. package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
  196. package/dist/components/d-fullscreen/DFullScreen.js +24 -18
  197. package/dist/components/d-layout/DLayout.js +27 -26
  198. package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
  199. package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
  200. package/dist/components/d-license/index.d.ts +2 -0
  201. package/dist/components/d-license/index.js +6 -0
  202. package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
  203. package/dist/components/d-member/DNamespaceMember.service.js +17 -0
  204. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
  205. package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +16 -11
  206. package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
  207. package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
  208. package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
  209. package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
  210. package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
  211. package/dist/components/d-member/DNamespaceMemberList.js +23 -0
  212. package/dist/components/d-member/index.d.ts +4 -0
  213. package/dist/components/d-member/index.js +10 -0
  214. package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
  215. package/dist/components/d-namespace/DNamespace.service.js +7 -6
  216. package/dist/components/d-namespace/index.d.ts +0 -10
  217. package/dist/components/d-namespace/index.js +4 -33
  218. package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
  219. package/dist/components/d-organization/DOrganization.service.js +8 -7
  220. package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
  221. package/dist/components/d-organization/DOrganization.view.js +21 -18
  222. package/dist/components/d-organization/DOrganizationCard.d.ts +4 -3
  223. package/dist/components/d-organization/DOrganizationCard.js +13 -60
  224. package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
  225. package/dist/components/d-organization/DOrganizationList.js +23 -0
  226. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  227. package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
  228. package/dist/components/d-organization/DOrganizatonContent.js +101 -0
  229. package/dist/components/d-organization/index.d.ts +1 -0
  230. package/dist/components/d-organization/index.js +30 -10
  231. package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
  232. package/dist/components/d-project/DNamespaceProject.service.js +12 -0
  233. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
  234. package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
  235. package/dist/components/d-project/DNamespaceProjectCard.d.ts +9 -0
  236. package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
  237. package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
  238. package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
  239. package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
  240. package/dist/components/d-project/DNamespaceProjectList.js +25 -0
  241. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
  242. package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
  243. package/dist/components/d-project/index.d.ts +5 -0
  244. package/dist/components/d-project/index.js +26 -0
  245. package/dist/components/d-resizable/DResizable.d.ts +4 -4
  246. package/dist/components/d-resizable/DResizable.js +26 -23
  247. package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
  248. package/dist/components/d-role/DNamespaceRole.service.js +12 -0
  249. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
  250. package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
  251. package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
  252. package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
  253. package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
  254. package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
  255. package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
  256. package/dist/components/d-role/DNamespaceRoleList.js +24 -0
  257. package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
  258. package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
  259. package/dist/components/d-role/index.d.ts +4 -0
  260. package/dist/components/d-role/index.js +10 -0
  261. package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
  262. package/dist/components/d-runtime/DRuntime.service.js +2 -4
  263. package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
  264. package/dist/components/d-runtime/DRuntime.view.js +6 -3
  265. package/dist/components/d-runtime/DRuntimeCard.d.ts +9 -0
  266. package/dist/components/d-runtime/DRuntimeCard.js +18 -0
  267. package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
  268. package/dist/components/d-runtime/DRuntimeContent.js +45 -0
  269. package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
  270. package/dist/components/d-runtime/DRuntimeList.js +28 -0
  271. package/dist/components/d-runtime/index.d.ts +2 -0
  272. package/dist/components/d-runtime/index.js +6 -2
  273. package/dist/components/d-user/DUser.service.d.ts +3 -4
  274. package/dist/components/d-user/DUser.service.js +9 -9
  275. package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
  276. package/dist/components/d-user/DUser.session.hook.js +16 -0
  277. package/dist/components/d-user/DUser.view.d.ts +4 -1
  278. package/dist/components/d-user/DUser.view.js +13 -10
  279. package/dist/components/d-user/DUserCard.d.ts +8 -0
  280. package/dist/components/d-user/DUserCard.js +15 -0
  281. package/dist/components/d-user/DUserContent.d.ts +8 -0
  282. package/dist/components/d-user/DUserContent.js +84 -0
  283. package/dist/components/d-user/DUserInput.d.ts +7 -0
  284. package/dist/components/d-user/DUserInput.js +100 -0
  285. package/dist/components/d-user/DUserList.d.ts +9 -0
  286. package/dist/components/d-user/DUserList.js +22 -0
  287. package/dist/components/d-user/DUserMenu.js +20 -19
  288. package/dist/components/d-user/index.d.ts +4 -0
  289. package/dist/components/d-user/index.js +17 -8
  290. package/dist/components/dialog/Dialog.d.ts +2 -1
  291. package/dist/components/dialog/Dialog.js +69 -60
  292. package/dist/components/file-tabs/FileTabs.js +41 -40
  293. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
  294. package/dist/components/file-tabs/FileTabs.service.js +74 -26
  295. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  296. package/dist/components/flex/Flex.js +2 -2
  297. package/dist/components/form/CheckboxInput.js +62 -53
  298. package/dist/components/form/EmailInput.js +11 -10
  299. package/dist/components/form/Input.d.ts +18 -5
  300. package/dist/components/form/Input.js +333 -139
  301. package/dist/components/form/Input.syntax.hook.d.ts +10 -0
  302. package/dist/components/form/Input.syntax.hook.js +14 -0
  303. package/dist/components/form/Input.utils.d.ts +10 -0
  304. package/dist/components/form/Input.utils.js +38 -0
  305. package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
  306. package/dist/components/form/InputContentEditable.hook.js +471 -0
  307. package/dist/components/form/InputDescription.js +1 -1
  308. package/dist/components/form/InputLabel.js +1 -1
  309. package/dist/components/form/InputMessage.js +1 -1
  310. package/dist/components/form/InputSuggestion.d.ts +16 -8
  311. package/dist/components/form/InputSuggestion.js +189 -73
  312. package/dist/components/form/NumberInput.js +9 -9
  313. package/dist/components/form/PasswordInput.js +11 -10
  314. package/dist/components/form/PinInput.js +2 -2
  315. package/dist/components/form/RadioGroup.js +2 -2
  316. package/dist/components/form/RadioInput.js +2 -2
  317. package/dist/components/form/SwitchInput.js +7 -7
  318. package/dist/components/form/TextInput.js +12 -11
  319. package/dist/components/form/index.js +26 -27
  320. package/dist/components/form/useForm.d.ts +3 -1
  321. package/dist/components/form/useForm.js +53 -33
  322. package/dist/components/menu/Menu.d.ts +7 -3
  323. package/dist/components/menu/Menu.js +24 -24
  324. package/dist/components/quote/Quote.js +32 -36
  325. package/dist/components/row/Row.js +10 -9
  326. package/dist/components/scroll-area/ScrollArea.js +18 -17
  327. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  328. package/dist/components/segmented-control/SegmentedControl.js +19 -16
  329. package/dist/components/spacing/Spacing.d.ts +6 -0
  330. package/dist/components/spacing/Spacing.js +23 -0
  331. package/dist/components/tab/Tab.d.ts +11 -0
  332. package/dist/components/tab/Tab.js +40 -0
  333. package/dist/components/text/Text.js +2 -2
  334. package/dist/components/toast/Toast.d.ts +13 -0
  335. package/dist/components/toast/Toast.js +62 -0
  336. package/dist/components/tooltip/Tooltip.js +36 -35
  337. package/dist/index.d.ts +17 -0
  338. package/dist/index.js +264 -216
  339. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  340. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  341. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  342. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  343. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  344. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  345. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  346. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  347. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  348. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  349. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  350. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  351. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  352. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  353. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  354. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  355. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  356. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  357. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  358. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  359. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  360. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  361. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  362. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  363. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  364. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  365. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  366. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  367. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  368. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  369. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  370. package/dist/node_modules/object-assign/index.js +49 -0
  371. package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  372. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  373. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  374. package/dist/node_modules/prop-types/index.js +17 -0
  375. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  376. package/dist/node_modules/prop-types/lib/has.js +7 -0
  377. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
  378. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
  379. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  380. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
  381. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
  382. package/dist/node_modules/react/compiler-runtime.js +10 -0
  383. package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
  384. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
  385. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
  386. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
  387. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
  388. package/dist/node_modules/react-dom/server.browser.js +15 -0
  389. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  390. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  391. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  392. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  393. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  394. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  395. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  396. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  397. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  398. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  399. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  400. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  401. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  402. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  403. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  404. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  405. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  406. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  407. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  408. package/dist/utils/arrayService.d.ts +2 -2
  409. package/dist/utils/contextStore.js +1 -1
  410. package/dist/utils/generics.d.ts +7 -6
  411. package/dist/utils/generics.js +136 -124
  412. package/dist/utils/index.js +22 -21
  413. package/dist/utils/inspection.d.ts +4 -2
  414. package/dist/utils/inspection.js +27 -2
  415. package/dist/utils/objectStore.js +15 -15
  416. package/dist/utils/reactiveArrayService.d.ts +3 -3
  417. package/dist/utils/reactiveArrayService.js +53 -43
  418. package/dist/utils/types.d.ts +2 -2
  419. package/package.json +38 -33
  420. package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
  421. package/dist/assets/Avatar.css +0 -1
  422. package/dist/assets/Badge.css +0 -1
  423. package/dist/assets/Button.css +0 -1
  424. package/dist/assets/ButtonGroup.css +0 -1
  425. package/dist/assets/Card.css +0 -1
  426. package/dist/assets/Command.css +0 -1
  427. package/dist/assets/DFlowFolder.css +0 -1
  428. package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
  429. package/dist/assets/DFlowInputDataType.css +0 -1
  430. package/dist/assets/DFlowMiniMap.css +0 -1
  431. package/dist/assets/DFlowSuggestionSearchInput.css +0 -1
  432. package/dist/assets/DFlowValidation.css +0 -1
  433. package/dist/assets/DLayout.css +0 -1
  434. package/dist/assets/DResizable.css +0 -1
  435. package/dist/assets/Dialog.css +0 -1
  436. package/dist/assets/FileTabs.css +0 -1
  437. package/dist/assets/Input.css +0 -1
  438. package/dist/assets/Menu.css +0 -1
  439. package/dist/assets/SegmentedControl.css +0 -1
  440. package/dist/assets/Text.css +0 -1
  441. package/dist/assets/Tooltip.css +0 -1
  442. package/dist/compiler-runtime-BNHg76kC.js +0 -36
  443. package/dist/components/d-flow/DFlow.view.d.ts +0 -109
  444. package/dist/components/d-flow/DFlow.view.js +0 -213
  445. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  446. package/dist/components/d-flow/control/DFlowControl.js +0 -77
  447. package/dist/components/d-flow/control/index.d.ts +0 -1
  448. package/dist/components/d-flow/control/index.js +0 -4
  449. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  450. package/dist/components/d-flow/data-type/DFlowDataType.service.js +0 -7
  451. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  452. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  453. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  454. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -6
  455. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  456. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
  457. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
  458. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
  459. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
  460. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  461. package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
  462. package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
  463. package/dist/components/d-flow/folder/index.d.ts +0 -1
  464. package/dist/components/d-flow/folder/index.js +0 -6
  465. package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
  466. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  467. package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
  468. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  469. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  470. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -75
  471. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  472. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  473. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  474. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  475. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  476. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -97
  477. package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
  478. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
  479. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  480. package/dist/components/d-flow/minimap/index.js +0 -4
  481. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +0 -33
  482. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
  483. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  484. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  485. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  486. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  487. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  488. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -21
  489. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  490. package/dist/components/d-flow/suggestion/index.js +0 -7
  491. package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +0 -11
  492. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
  493. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  494. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  495. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  496. package/dist/components/d-flow/type/DFlowType.service.d.ts +0 -6
  497. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  498. package/dist/components/d-flow/type/DFlowType.view.js +0 -69
  499. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  500. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  501. package/dist/components/d-flow/validation/DFlowValidation.js +0 -59
  502. package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
  503. package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
  504. package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
  505. package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
  506. package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
  507. package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
  508. package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +0 -9
  509. package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
  510. package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
  511. package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
  512. package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
  513. package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
  514. /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
  515. /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
  516. /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
  517. /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
  518. /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
  519. /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
  520. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  521. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  522. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  523. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  524. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  525. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  526. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  527. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  528. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  529. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  530. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  531. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  532. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  533. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  534. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  535. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  536. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  537. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
  538. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
  539. /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
@@ -1,3 +1,7 @@
1
1
  import { Node } from '@xyflow/react';
2
- import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
- export declare const useFlowNodes: (flowId: Flow["id"]) => Node[];
2
+ import { Flow, Namespace, NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
3
+ import { DFlowFunctionDefaultCardDataProps } from '../d-flow-function/DFlowFunctionDefaultCard';
4
+ import { DFlowFunctionSuggestionCardDataProps } from '../d-flow-function/DFlowFunctionSuggestionCard';
5
+ import { DFlowFunctionTriggerCardDataProps } from '../d-flow-function/DFlowFunctionTriggerCard';
6
+ import { DFlowFunctionGroupCardDataProps } from '../d-flow-function/DFlowFunctionGroupCard';
7
+ export declare const useFlowNodes: (flowId: Flow["id"], namespaceId?: Namespace["id"], projectId?: NamespaceProject["id"]) => Node<DFlowFunctionDefaultCardDataProps | DFlowFunctionSuggestionCardDataProps | DFlowFunctionTriggerCardDataProps | DFlowFunctionGroupCardDataProps>[];
@@ -1,140 +1,121 @@
1
- import { useService as T } from "../../utils/contextStore.js";
2
- import { DFlowReactiveService as A } from "./DFlow.service.js";
3
- import { NodeFunctionView as $ } from "./DFlow.view.js";
4
- import { DFlowFunctionReactiveService as M } from "./function/DFlowFunction.service.js";
5
- import { D as R } from "../../DFlowDataType.service-Dz8pQUeO.js";
6
- import { DataTypeVariant as V } from "@code0-tech/sagittarius-graphql-types";
7
- const E = /* @__PURE__ */ new Map([["std", "default"]]), K = (s, x) => {
8
- if (!x || s.size === 0) return "";
9
- const f = /[:._\-\/\s]+/, d = x.trim().toLowerCase();
10
- let t = null, i = -1 / 0;
11
- for (const [l, v] of s.entries()) {
12
- const n = l.trim().toLowerCase();
13
- if (d === n)
14
- return v;
15
- let a = 0;
16
- if (d.startsWith(n)) {
17
- a = 2e3 + n.length * 2;
18
- const u = d.charAt(n.length);
19
- (u === "" || f.test(u)) && (a += 200);
1
+ import { useService as b, useStore as B } from "../../utils/contextStore.js";
2
+ import C from "react";
3
+ import "merge-props";
4
+ import { DFlowReactiveService as M } from "./DFlow.service.js";
5
+ import { DFlowFunctionReactiveService as _ } from "../d-flow-function/DFlowFunction.service.js";
6
+ import { hashToColor as O } from "./DFlow.util.js";
7
+ import { DFlowDataTypeReactiveService as k } from "../d-flow-data-type/DFlowDataType.service.js";
8
+ const V = /* @__PURE__ */ new Map([["std", "default"]]), j = (i, m) => {
9
+ if (!m || i.size === 0) return "";
10
+ const v = /[:._\-\/\s]+/, o = m.trim().toLowerCase();
11
+ let n = null, u = -1 / 0;
12
+ for (const [l, T] of i.entries()) {
13
+ const a = l.trim().toLowerCase();
14
+ if (o === a)
15
+ return T;
16
+ let t = 0;
17
+ if (o.startsWith(a)) {
18
+ t = 2e3 + a.length * 2;
19
+ const d = o.charAt(a.length);
20
+ (d === "" || v.test(d)) && (t += 200);
20
21
  } else {
21
- const u = Math.min(d.length, n.length);
22
+ const d = Math.min(o.length, a.length);
22
23
  let r = 0;
23
- for (; r < u && d.charCodeAt(r) === n.charCodeAt(r); )
24
+ for (; r < d && o.charCodeAt(r) === a.charCodeAt(r); )
24
25
  r++;
25
26
  if (r > 0) {
26
- a = 1e3 + r;
27
- const h = d.charAt(r), m = n.charAt(r);
28
- (h === "" || f.test(h) || m === "" || f.test(m)) && (a += 50);
27
+ t = 1e3 + r;
28
+ const f = o.charAt(r), g = a.charAt(r);
29
+ (f === "" || v.test(f) || g === "" || v.test(g)) && (t += 50);
29
30
  }
30
31
  }
31
- a > i ? (i = a, t = l) : (a === i && t !== null && l.length > t.length || a === i && t === null) && (t = l);
32
+ t > u ? (u = t, n = l) : (t === u && n !== null && l.length > n.length || t === u && n === null) && (n = l);
32
33
  }
33
- return t !== null ? s.get(t) : "";
34
- }, O = (s) => {
35
- const x = T(A), f = T(M), d = T(R), t = x.getById(s);
36
- if (!t) return [];
37
- const i = [];
38
- let l = 0;
39
- const v = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = (e, o = v) => (o.has(e) || o.set(e, f.getById(e)), o.get(e)), u = (e, o = n) => (o.has(e) || o.set(e, d.getDataType(e)), o.get(e));
40
- let r = 0;
41
- const h = () => ++r;
42
- let m = 0;
43
- i.push({
44
- id: `${t.id}`,
45
- type: "trigger",
46
- position: {
47
- x: 0,
48
- y: 0
49
- },
50
- draggable: !1,
51
- data: {
52
- instance: t,
53
- flowId: s
54
- }
55
- });
56
- const I = (e, o = !1, B, y = 0, D = [0], c, N = v, S = n) => {
57
- const p = `${e.id}-${l++}`, C = ++m;
58
- i.push({
59
- id: p,
60
- type: K(E, e.functionDefinition?.identifier),
34
+ return n !== null ? i.get(n) : "";
35
+ }, Z = (i, m, v) => {
36
+ const o = b(M), n = B(M), u = b(_), l = B(_), T = b(k), a = B(k), t = C.useMemo(() => o.getById(i, {
37
+ namespaceId: m,
38
+ projectId: v
39
+ }), [i, n]);
40
+ return C.useMemo(() => {
41
+ if (!t) return [];
42
+ const d = [];
43
+ let r = 0;
44
+ const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), A = (e, s = f) => (s.has(e) || s.set(e, u.getById(e)), s.get(e)), $ = (e, s = g) => (s.has(e) || s.set(e, T.getDataType(e)), s.get(e));
45
+ let R = 0;
46
+ const E = () => ++R;
47
+ let W = 0;
48
+ d.push({
49
+ id: `${t.id}`,
50
+ type: "trigger",
61
51
  position: {
62
52
  x: 0,
63
53
  y: 0
64
54
  },
65
55
  draggable: !1,
66
- parentId: c,
67
- extent: c ? "parent" : void 0,
68
56
  data: {
69
- instance: e,
70
- isParameter: o,
71
- flowId: s,
72
- linkingId: o ? B : void 0,
73
- scope: D,
74
- // scope is now a PATH (number[])
75
- depth: y,
76
- // structural depth (0 at root, +1 per group)
77
- index: C
78
- // global node level
79
- }
80
- }), !e.nextNodeId && !o && i.push({
81
- id: `${p}-suggestion`,
82
- type: "suggestion",
83
- position: {
84
- x: 0,
85
- y: 0
86
- },
87
- draggable: !1,
88
- extent: c ? "parent" : void 0,
89
- parentId: c,
90
- data: {
91
- flowId: s,
92
- parentFunction: e
57
+ instance: t,
58
+ flowId: i
93
59
  }
94
60
  });
95
- const k = a(e.functionDefinition?.id, N);
96
- e.parameters?.forEach((g) => {
97
- const F = k?.parameterDefinitions.find((b) => b.id == g.runtimeParameter?.id)?.dataTypeIdentifier;
98
- if ((F ? u(F, S) : void 0)?.variant === V.Node) {
99
- if (g.value && g.value instanceof $) {
100
- const b = `${p}-group-${l++}`, w = [...D, h()];
101
- i.push({
102
- id: b,
103
- type: "group",
104
- position: {
105
- x: 0,
106
- y: 0
107
- },
108
- draggable: !1,
109
- parentId: c,
110
- extent: c ? "parent" : void 0,
111
- data: {
112
- isParameter: !0,
113
- linkingId: p,
114
- flowId: s,
115
- depth: y + 1,
116
- scope: w
117
- }
118
- }), I(g.value, !1, void 0, y + 1, w, b, N, S);
61
+ const I = (e, s = !1, K, p = 0, h = [0], y, S = f, N = g) => {
62
+ if (!e) return;
63
+ const D = `${e?.id}-${r++}`, L = ++W;
64
+ d.push({
65
+ id: D,
66
+ type: j(V, e?.functionDefinition?.identifier),
67
+ position: {
68
+ x: 0,
69
+ y: 0
70
+ },
71
+ draggable: !1,
72
+ parentId: y,
73
+ extent: y ? "parent" : void 0,
74
+ data: {
75
+ nodeId: e.id,
76
+ isParameter: s,
77
+ flowId: i,
78
+ linkingId: s ? K : void 0,
79
+ scope: h,
80
+ // scope is now a PATH (number[])
81
+ depth: p,
82
+ // structural depth (0 at root, +1 per group)
83
+ index: L
84
+ // global node level
119
85
  }
120
- } else g.value && g.value instanceof $ && I(g.value, !0, p, y, D, c, N, S);
121
- }), e.nextNodeId && I(t.getNodeById(e.nextNodeId), !1, void 0, y, D, c, N, S);
122
- };
123
- return t.startingNodeId ? I(t.getNodeById(t.startingNodeId), !1, void 0, 0, [0], void 0, v, n) : i.push({
124
- id: `${t.id}-suggestion`,
125
- type: "suggestion",
126
- position: {
127
- x: 0,
128
- y: 0
129
- },
130
- draggable: !1,
131
- extent: void 0,
132
- data: {
133
- flowId: s,
134
- parentFunction: void 0
135
- }
136
- }), i;
86
+ });
87
+ const z = A(e?.functionDefinition?.id, S);
88
+ e.parameters?.nodes?.forEach((c) => {
89
+ const F = z?.parameterDefinitions.find((x) => x.id == c?.runtimeParameter?.id)?.dataTypeIdentifier;
90
+ if ((F ? $(F, N) : void 0)?.variant === "NODE") {
91
+ if (c?.value && c.value.__typename === "NodeFunctionIdWrapper") {
92
+ const x = `${D}-group-${r++}`, w = [...h, E()];
93
+ d.push({
94
+ id: x,
95
+ type: "group",
96
+ position: {
97
+ x: 0,
98
+ y: 0
99
+ },
100
+ draggable: !1,
101
+ parentId: y,
102
+ extent: y ? "parent" : void 0,
103
+ data: {
104
+ isParameter: !0,
105
+ linkingId: D,
106
+ flowId: i,
107
+ depth: p + 1,
108
+ scope: w,
109
+ color: O(c.value?.id ?? "")
110
+ }
111
+ }), I(o.getNodeById(i, c.value.id), !1, void 0, p + 1, w, x, S, N);
112
+ }
113
+ } else c?.value && c.value.__typename === "NodeFunctionIdWrapper" && I(o.getNodeById(i, c.value.id), !0, D, p, h, y, S, N);
114
+ }), e.nextNodeId && I(o.getNodeById(t.id, e.nextNodeId), !1, void 0, p, h, y, S, N);
115
+ };
116
+ return t.startingNodeId && I(o.getNodeById(t.id, t.startingNodeId), !1, void 0, 0, [0], void 0, f, g), d;
117
+ }, [t, n, l, a]);
137
118
  };
138
119
  export {
139
- O as useFlowNodes
120
+ Z as useFlowNodes
140
121
  };
@@ -1,10 +1,20 @@
1
- import { FlowView } from './DFlow.view';
2
- import { ReactiveArrayService } from '../../utils/reactiveArrayService';
3
- import { Flow, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
4
- export declare abstract class DFlowReactiveService extends ReactiveArrayService<FlowView> {
5
- getById(id: Flow['id']): FlowView | undefined;
6
- /** Creates a new flow. */
1
+ import { ReactiveArrayService } from '../../utils';
2
+ import { Flow, FlowInput, FlowSetting, LiteralValue, Maybe, Namespace, NamespaceProject, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload, NamespacesProjectsFlowsUpdateInput, NamespacesProjectsFlowsUpdatePayload, NodeFunction, NodeParameter, ReferenceValue, Scalars } from '@code0-tech/sagittarius-graphql-types';
3
+ export type DFlowDependencies = {
4
+ namespaceId: Namespace['id'];
5
+ projectId: NamespaceProject['id'];
6
+ };
7
+ export declare abstract class DFlowReactiveService extends ReactiveArrayService<Flow, DFlowDependencies> {
8
+ getById(id: Flow['id'], dependencies?: DFlowDependencies): Flow | undefined;
9
+ protected removeParameterNode(flow: Flow, parameter: NodeParameter): void;
10
+ getLinkedNodesById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction[];
11
+ getNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction | undefined;
12
+ getPayloadById(flowId: Flow['id']): FlowInput | undefined;
13
+ deleteNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): Promise<void>;
14
+ addNextNodeById(flowId: Flow['id'], parentNodeId: NodeFunction['id'] | null, nextNode: NodeFunction): Promise<void>;
15
+ setSettingValue(flowId: Flow['id'], settingIdentifier: Maybe<Scalars['String']['output']>, value: FlowSetting['value']): Promise<void>;
16
+ setParameterValue(flowId: Flow['id'], nodeId: NodeFunction['id'], parameterId: NodeParameter['id'], value?: LiteralValue | ReferenceValue | NodeFunction): Promise<void>;
7
17
  abstract flowCreate(payload: NamespacesProjectsFlowsCreateInput): Promise<NamespacesProjectsFlowsCreatePayload | undefined>;
8
- /** Deletes a namespace project. */
9
18
  abstract flowDelete(payload: NamespacesProjectsFlowsDeleteInput): Promise<NamespacesProjectsFlowsDeletePayload | undefined>;
19
+ abstract flowUpdate(payload: NamespacesProjectsFlowsUpdateInput): Promise<NamespacesProjectsFlowsUpdatePayload | undefined>;
10
20
  }
@@ -1,11 +1,136 @@
1
- import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
2
- class c extends i {
3
- //TODO: inject UI error handler for toasts
4
- //inject: namespaceId and projectId because the runtimes query needs it
5
- getById(e) {
6
- return this.values().find((r) => r.id === e);
1
+ import "../../utils/contextStore.js";
2
+ import "react";
3
+ import { ReactiveArrayService as N } from "../../utils/reactiveArrayService.js";
4
+ import "merge-props";
5
+ class m extends N {
6
+ getById(t, i) {
7
+ return this.values(i).find((n) => n.id === t);
8
+ }
9
+ removeParameterNode(t, i) {
10
+ if (i?.value?.__typename === "NodeFunctionIdWrapper") {
11
+ const n = t?.nodes?.nodes?.find((e) => e?.id === i.value?.id);
12
+ if (n) {
13
+ t.nodes.nodes = t.nodes.nodes.filter((d) => d?.id !== i.value?.id);
14
+ let e = n.nextNodeId;
15
+ for (; e; ) {
16
+ const d = t.nodes.nodes.find((o) => o?.id === e);
17
+ d ? (t.nodes.nodes = t.nodes.nodes.filter((o) => o?.id !== e), e = d.nextNodeId) : e = null;
18
+ }
19
+ n.parameters?.nodes?.forEach((d) => {
20
+ this.removeParameterNode(t, d);
21
+ });
22
+ }
23
+ }
24
+ }
25
+ getLinkedNodesById(t, i) {
26
+ const n = this.getNodeById(t, i), e = n ? this.getLinkedNodesById(t, n.nextNodeId) : [], d = [];
27
+ return n?.parameters?.nodes?.forEach((o) => {
28
+ if (o?.value?.__typename === "NodeFunctionIdWrapper") {
29
+ const r = this.getNodeById(t, o.value?.id);
30
+ r && (d.push(r), d.push(...r ? this.getLinkedNodesById(t, r.nextNodeId) : []));
31
+ }
32
+ }), [...n ? [n] : [], ...d, ...e];
33
+ }
34
+ getNodeById(t, i) {
35
+ return this.getById(t)?.nodes?.nodes?.find((n) => n?.id === i);
36
+ }
37
+ getPayloadById(t) {
38
+ const i = this.getById(t), n = (e) => ({
39
+ ...e?.dataType ? {
40
+ dataTypeId: e?.dataType?.id
41
+ } : {},
42
+ ...e?.genericKey ? {
43
+ genericKey: e?.genericKey
44
+ } : {},
45
+ ...e?.genericType ? {
46
+ genericType: {
47
+ dataTypeId: e?.genericType?.dataType?.id,
48
+ genericMappers: e?.genericType?.genericMappers?.map((d) => ({
49
+ target: d.target,
50
+ sourceDataTypeIdentifiers: d.sourceDataTypeIdentifiers?.map(n) ?? []
51
+ })) ?? []
52
+ }
53
+ } : {}
54
+ });
55
+ return {
56
+ name: i?.name,
57
+ type: i?.type?.id,
58
+ settings: i?.settings?.nodes?.map((e) => ({
59
+ flowSettingIdentifier: e?.flowSettingIdentifier,
60
+ value: e?.value
61
+ })),
62
+ nodes: i?.nodes?.nodes?.map((e) => ({
63
+ id: e?.id,
64
+ nextNodeId: e?.nextNodeId,
65
+ parameters: e?.parameters?.nodes?.map((d) => ({
66
+ runtimeParameterDefinitionId: d?.runtimeParameter?.id,
67
+ value: d?.value?.__typename === "NodeFunctionIdWrapper" ? {
68
+ nodeFunctionId: d.value.id
69
+ } : d?.value?.__typename === "LiteralValue" ? {
70
+ literalValue: d.value.value
71
+ } : {
72
+ referenceValue: {
73
+ dataTypeIdentifier: n((d?.value).dataTypeIdentifier),
74
+ depth: (d?.value).depth,
75
+ node: (d?.value).node,
76
+ nodeFunctionId: (d?.value).nodeFunctionId,
77
+ referencePath: (d?.value).referencePath,
78
+ scope: (d?.value).scope
79
+ }
80
+ }
81
+ })) ?? [],
82
+ runtimeFunctionId: e?.functionDefinition?.runtimeFunctionDefinition?.id
83
+ })) ?? [],
84
+ startingNodeId: i?.startingNodeId
85
+ };
86
+ }
87
+ async deleteNodeById(t, i) {
88
+ const n = this.getById(t), e = this.getNodeById(t, i), d = n?.nodes?.nodes?.find((s) => s?.parameters?.nodes?.find((a) => a?.value?.__typename === "NodeFunctionIdWrapper" && a.value?.id === i)), o = n?.nodes?.nodes?.find((s) => s?.nextNodeId === i), r = this.values().findIndex((s) => s.id === t);
89
+ if (!(!n || !e)) {
90
+ if (n.nodes.nodes = n.nodes.nodes.filter((s) => s?.id !== i), e.parameters?.nodes?.forEach((s) => this.removeParameterNode(n, s)), o ? o.nextNodeId = e.nextNodeId : d || (n.startingNodeId = e.nextNodeId ?? void 0), d) {
91
+ const s = d.parameters?.nodes?.find((a) => a?.value?.__typename === "NodeFunctionIdWrapper" && a.value?.id === i);
92
+ s && (s.value = void 0);
93
+ }
94
+ this.set(r, n);
95
+ }
96
+ }
97
+ async addNextNodeById(t, i, n) {
98
+ const e = this.getById(t), d = this.values().findIndex((u) => u.id === t), o = i ? this.getNodeById(t, i) : void 0;
99
+ if (!e || i && !o) return;
100
+ const s = `gid://sagittarius/NodeFunction/${Math.max(0, ...e.nodes?.nodes?.map((u) => Number(u?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]) + 1}`, a = {
101
+ ...JSON.parse(JSON.stringify(n)),
102
+ id: s
103
+ };
104
+ o && o.nextNodeId ? a.nextNodeId = o.nextNodeId : !o && e.startingNodeId && (a.nextNodeId = e.startingNodeId), e.nodes?.nodes?.push(a), o ? o.nextNodeId = a.id : e.startingNodeId = a.id, this.set(d, e);
105
+ }
106
+ async setSettingValue(t, i, n) {
107
+ const e = this.getById(t), d = this.values().findIndex((r) => r.id === t);
108
+ if (!e) return;
109
+ const o = e.settings?.nodes?.find((r) => r?.flowSettingIdentifier === i);
110
+ o && (o.value = n, this.set(d, e));
111
+ }
112
+ async setParameterValue(t, i, n, e) {
113
+ const d = this.getById(t), o = this.values().findIndex((a) => a.id === t);
114
+ if (!d) return;
115
+ const r = this.getNodeById(t, i);
116
+ if (!r) return;
117
+ const s = r.parameters?.nodes?.find((a) => a?.id === n);
118
+ if (s) {
119
+ if (this.removeParameterNode(d, s), e?.__typename === "NodeFunction") {
120
+ const a = Math.max(0, ...d.nodes?.nodes?.map((c) => Number(c?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]), u = {
121
+ ...e,
122
+ id: `gid://sagittarius/NodeFunction/${a + 1}`
123
+ };
124
+ d.nodes?.nodes?.push(u), s.value = {
125
+ id: `gid://sagittarius/NodeFunction/${a + 1}`,
126
+ __typename: "NodeFunctionIdWrapper"
127
+ };
128
+ } else
129
+ s.value = e;
130
+ this.set(o, d);
131
+ }
7
132
  }
8
133
  }
9
134
  export {
10
- c as DFlowReactiveService
135
+ m as DFlowReactiveService
11
136
  };
@@ -0,0 +1,4 @@
1
+ import { DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
2
+ export declare const hashToColor: (s: string) => string;
3
+ export declare const attachDataTypeIdentifiers: <T>(identifiers: DataTypeIdentifier[], input: T) => T;
4
+ export declare const resolveDataTypeIdentifiers: (list: DataTypeIdentifier[]) => DataTypeIdentifier[];
@@ -0,0 +1,63 @@
1
+ import { md5 as d } from "js-md5";
2
+ const f = 137.50776405003785, T = (t) => {
3
+ const a = t.match(/\/(\d+)\s*$/);
4
+ return a ? Number(a[1]) : null;
5
+ }, m = (t) => {
6
+ const a = T(t);
7
+ if (a != null)
8
+ return `hsl(${25 + a * f % 320}, 100%, 72%)`;
9
+ const n = d(d(t));
10
+ return `hsl(${25 + parseInt(n.slice(0, 8), 16) % 320}, 100%, 72%)`;
11
+ }, l = (t, a) => {
12
+ const n = new Map(t.filter((r) => r?.id).map((r) => [r.id, r])), i = (r) => Array.isArray(r) ? r.map(i) : r && typeof r == "object" ? {
13
+ ...Object.fromEntries(Object.entries(r).map(([s, e]) => [s, i(e)])),
14
+ ...r.dataTypeIdentifierId ? {
15
+ dataTypeIdentifier: n.get(r.dataTypeIdentifierId) ?? null
16
+ } : {},
17
+ ...Array.isArray(r.sourceDataTypeIdentifierIds) ? {
18
+ sourceDataTypeIdentifiers: r.sourceDataTypeIdentifierIds.map((s) => n.get(s)).filter(Boolean)
19
+ } : {}
20
+ } : r;
21
+ return i(a);
22
+ }, u = (t) => {
23
+ const a = new Map(t.filter((e) => e?.id).map((e) => [e.id, e])), n = /* @__PURE__ */ new Map(), i = (e) => {
24
+ if (!e?.id) return e;
25
+ if (n.has(e.id)) return n.get(e.id);
26
+ const o = {
27
+ ...e
28
+ };
29
+ if (n.set(e.id, o), e.genericType) {
30
+ o.genericType = {
31
+ ...e.genericType
32
+ };
33
+ const p = e.genericType.genericMappers;
34
+ Array.isArray(p) && (o.genericType.genericMappers = p.map((c) => ({
35
+ ...c,
36
+ ...Array.isArray(c.sourceDataTypeIdentifierIds) ? {
37
+ sourceDataTypeIdentifiers: c.sourceDataTypeIdentifierIds.map((y) => i(a.get(y) ?? null)).filter(Boolean)
38
+ } : {}
39
+ })));
40
+ }
41
+ return o;
42
+ }, r = t.map((e) => i(e)).filter(Boolean), s = (e) => {
43
+ if (!e) return e;
44
+ const o = e?.dataTypeIdentifiers?.nodes;
45
+ if (!Array.isArray(o)) return e;
46
+ const p = u(o), c = {
47
+ ...e,
48
+ dataTypeIdentifiers: {
49
+ ...e.dataTypeIdentifiers,
50
+ nodes: p
51
+ }
52
+ };
53
+ return l(p, c);
54
+ };
55
+ return r.forEach((e) => {
56
+ e?.dataType && (e.dataType = s(e.dataType)), e?.genericType?.dataType && (e.genericType.dataType = s(e.genericType.dataType));
57
+ }), r;
58
+ };
59
+ export {
60
+ l as attachDataTypeIdentifiers,
61
+ m as hashToColor,
62
+ u as resolveDataTypeIdentifiers
63
+ };
@@ -1,10 +1,12 @@
1
- import { Code0Component } from '../../../utils/types';
1
+ import { Code0Component } from '../../utils';
2
2
  import { Edge, EdgeProps } from '@xyflow/react';
3
3
  import { default as React } from 'react';
4
+ import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
4
5
  export interface DFlowEdgeDataProps extends Code0Component<HTMLDivElement> {
5
6
  color?: string;
6
- isParameter?: boolean;
7
- isSuggestion?: boolean;
7
+ type: 'parameter' | 'suggestion' | 'group' | 'default';
8
+ parentNodeId?: NodeFunction['id'] | null;
9
+ flowId: Flow['id'];
8
10
  }
9
11
  export type DFlowEdgeProps = EdgeProps<Edge<DFlowEdgeDataProps>>;
10
12
  export declare const DFlowEdge: React.FC<DFlowEdgeProps>;
@@ -0,0 +1,69 @@
1
+ import { jsx as n, jsxs as O, Fragment as z } from "react/jsx-runtime";
2
+ import { c as D } from "../../_virtual/compiler-runtime.js";
3
+ import { Position as P, getSmoothStepPath as G, BaseEdge as T, EdgeLabelRenderer as W } from "@xyflow/react";
4
+ import { memo as q } from "react";
5
+ import { Badge as A } from "../badge/Badge.js";
6
+ const V = q((E) => {
7
+ const t = D.c(43);
8
+ let s, i, a, d, e, o, r, l;
9
+ if (t[0] !== E) {
10
+ const {
11
+ sourceX: S,
12
+ sourceY: j,
13
+ targetX: v,
14
+ targetY: w,
15
+ id: C,
16
+ data: F,
17
+ label: I,
18
+ style: H,
19
+ ...U
20
+ } = E;
21
+ e = S, o = j, r = v, l = w, i = C, s = F, a = I, d = U, t[0] = E, t[1] = s, t[2] = i, t[3] = a, t[4] = d, t[5] = e, t[6] = o, t[7] = r, t[8] = l;
22
+ } else
23
+ s = t[1], i = t[2], a = t[3], d = t[4], e = t[5], o = t[6], r = t[7], l = t[8];
24
+ const X = s?.type === "parameter" ? P.Left : P.Bottom, Y = s?.type === "parameter" ? P.Right : P.Top;
25
+ let h;
26
+ t[9] !== e || t[10] !== o || t[11] !== X || t[12] !== Y || t[13] !== r || t[14] !== l ? (h = G({
27
+ sourceX: e,
28
+ sourceY: o,
29
+ sourcePosition: X,
30
+ targetX: r,
31
+ targetY: l,
32
+ targetPosition: Y,
33
+ borderRadius: 16,
34
+ stepPosition: 0.5
35
+ }), t[9] = e, t[10] = o, t[11] = X, t[12] = Y, t[13] = r, t[14] = l, t[15] = h) : h = t[15];
36
+ const [$, R, k] = h, x = s?.color ?? "#ffffff", y = `dflow-edge-gradient-${i}`;
37
+ let c, p;
38
+ t[16] !== x ? (c = /* @__PURE__ */ n("stop", { offset: "0", stopColor: x, stopOpacity: 0.25 }), p = /* @__PURE__ */ n("stop", { offset: "1", stopColor: x, stopOpacity: 0.75 }), t[16] = x, t[17] = c, t[18] = p) : (c = t[17], p = t[18]);
39
+ let f;
40
+ t[19] !== y || t[20] !== e || t[21] !== o || t[22] !== c || t[23] !== p || t[24] !== r || t[25] !== l ? (f = /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ O("linearGradient", { id: y, x1: e, y1: o, x2: r, y2: l, gradientUnits: "userSpaceOnUse", children: [
41
+ c,
42
+ p
43
+ ] }) }), t[19] = y, t[20] = e, t[21] = o, t[22] = c, t[23] = p, t[24] = r, t[25] = l, t[26] = f) : f = t[26];
44
+ const B = `url(#${y})`, L = s?.type === "default" ? "3px" : "2px";
45
+ let m;
46
+ t[27] !== B || t[28] !== L ? (m = {
47
+ stroke: B,
48
+ strokeWidth: L,
49
+ strokeLinecap: "round"
50
+ }, t[27] = B, t[28] = L, t[29] = m) : m = t[29];
51
+ let g;
52
+ t[30] !== $ || t[31] !== i || t[32] !== d || t[33] !== m ? (g = /* @__PURE__ */ n(T, { id: i, path: $, ...d, style: m }), t[30] = $, t[31] = i, t[32] = d, t[33] = m, t[34] = g) : g = t[34];
53
+ let u;
54
+ t[35] !== a || t[36] !== R || t[37] !== k ? (u = a ? /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n("div", { style: {
55
+ position: "absolute",
56
+ transform: `translate(-50%, -50%) translate(${R}px, ${k}px)`,
57
+ pointerEvents: "all",
58
+ zIndex: 100
59
+ }, children: /* @__PURE__ */ n(A, { color: "primary", border: !0, children: a }) }) }) : null, t[35] = a, t[36] = R, t[37] = k, t[38] = u) : u = t[38];
60
+ let b;
61
+ return t[39] !== u || t[40] !== f || t[41] !== g ? (b = /* @__PURE__ */ O(z, { children: [
62
+ f,
63
+ g,
64
+ u
65
+ ] }), t[39] = u, t[40] = f, t[41] = g, t[42] = b) : b = t[42], b;
66
+ });
67
+ export {
68
+ V as DFlowEdge
69
+ };
@@ -1,13 +1,4 @@
1
- export * from './DFlow.view';
1
+ export * from './DFlow';
2
2
  export * from './DFlow.service';
3
3
  export * from './DFlow.edges.hook';
4
4
  export * from './DFlow.nodes.hook';
5
- export * from './DFlow';
6
- export * from './control/index';
7
- export * from './data-type/index';
8
- export * from './folder/index';
9
- export * from './function/index';
10
- export * from './minimap/index';
11
- export * from './suggestion/index';
12
- export * from './type/index';
13
- export * from './validation/index';