@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47

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 (291) hide show
  1. package/dist/components/avatar/Avatar.js +6 -7
  2. package/dist/components/data-table/DataTableFilterInput.js +5 -3
  3. package/dist/components/editor/Editor.js +29 -30
  4. package/dist/components/form/InputSuggestion.js +29 -29
  5. package/dist/components/form/useForm.d.ts +3 -3
  6. package/dist/components/form/useForm.js +16 -16
  7. package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
  8. package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
  9. package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
  10. package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
  11. package/dist/components/menu/Menu.js +8 -8
  12. package/dist/components/resizable/Resizable.d.ts +12 -0
  13. package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
  14. package/dist/components/tab/Tab.js +4 -4
  15. package/dist/components/toast/Toast.js +1 -1
  16. package/dist/index.d.ts +0 -20
  17. package/dist/index.js +152 -273
  18. package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
  19. package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
  20. package/dist/node_modules/prettier/standalone.js +1657 -1440
  21. package/package.json +29 -29
  22. package/dist/assets/components/d-flow/DFlow.style.css +0 -1
  23. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
  24. package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
  25. package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
  26. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
  27. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  28. package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
  29. package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
  30. package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
  31. package/dist/components/d-application/DApplication.service.d.ts +0 -9
  32. package/dist/components/d-application/DApplication.service.js +0 -10
  33. package/dist/components/d-flow/DFlow.d.ts +0 -9
  34. package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
  35. package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
  36. package/dist/components/d-flow/DFlow.js +0 -484
  37. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
  38. package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
  39. package/dist/components/d-flow/DFlow.service.d.ts +0 -21
  40. package/dist/components/d-flow/DFlow.service.js +0 -148
  41. package/dist/components/d-flow/DFlow.util.d.ts +0 -4
  42. package/dist/components/d-flow/DFlow.util.js +0 -63
  43. package/dist/components/d-flow/DFlow.view.d.ts +0 -4
  44. package/dist/components/d-flow/DFlow.view.js +0 -1
  45. package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
  46. package/dist/components/d-flow/DFlowEdge.js +0 -69
  47. package/dist/components/d-flow/index.d.ts +0 -4
  48. package/dist/components/d-flow/index.js +0 -10
  49. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
  50. package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
  51. package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
  52. package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
  53. package/dist/components/d-flow-data-type/index.d.ts +0 -2
  54. package/dist/components/d-flow-data-type/index.js +0 -6
  55. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
  56. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
  57. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
  58. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
  59. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
  60. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
  61. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
  62. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
  63. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
  64. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
  65. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
  66. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
  67. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
  68. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
  69. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
  70. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
  71. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
  72. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
  73. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
  74. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
  75. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
  76. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
  77. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
  78. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
  79. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
  80. package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
  81. package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
  82. package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
  83. package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
  84. package/dist/components/d-flow-file/DFlowTabs.js +0 -84
  85. package/dist/components/d-flow-file/index.d.ts +0 -1
  86. package/dist/components/d-flow-file/index.js +0 -4
  87. package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
  88. package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
  89. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
  90. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
  91. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
  92. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
  93. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
  94. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
  95. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
  96. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
  97. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
  98. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
  99. package/dist/components/d-flow-folder/index.d.ts +0 -4
  100. package/dist/components/d-flow-folder/index.js +0 -13
  101. package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
  102. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
  103. package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
  104. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
  105. package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
  106. package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
  107. package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
  108. package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
  109. package/dist/components/d-flow-function/index.d.ts +0 -2
  110. package/dist/components/d-flow-function/index.js +0 -7
  111. package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
  112. package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
  113. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
  114. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
  115. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
  116. package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
  117. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
  118. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
  119. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
  120. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
  121. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
  122. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
  123. package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
  124. package/dist/components/d-flow-node/DFlowNode.js +0 -1
  125. package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
  126. package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
  127. package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
  128. package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
  129. package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
  130. package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
  131. package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
  132. package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
  133. package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
  134. package/dist/components/d-flow-panel/DFlowExport.js +0 -33
  135. package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
  136. package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
  137. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
  138. package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
  139. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
  140. package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
  141. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
  142. package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
  143. package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
  144. package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
  145. package/dist/components/d-flow-panel/index.d.ts +0 -5
  146. package/dist/components/d-flow-panel/index.js +0 -12
  147. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
  148. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
  149. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
  150. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
  151. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
  152. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
  153. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
  154. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
  155. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
  156. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
  157. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
  158. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
  159. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
  160. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
  161. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
  162. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
  163. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
  164. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
  165. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
  166. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
  167. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
  168. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
  169. package/dist/components/d-flow-suggestion/index.d.ts +0 -1
  170. package/dist/components/d-flow-suggestion/index.js +0 -4
  171. package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
  172. package/dist/components/d-flow-type/DFlowType.service.js +0 -13
  173. package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
  174. package/dist/components/d-flow-type/DFlowType.view.js +0 -93
  175. package/dist/components/d-flow-type/index.d.ts +0 -2
  176. package/dist/components/d-flow-type/index.js +0 -6
  177. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
  178. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
  179. package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
  180. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
  181. package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
  182. package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
  183. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
  184. package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
  185. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
  186. package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
  187. package/dist/components/d-flow-validation/index.d.ts +0 -2
  188. package/dist/components/d-flow-validation/index.js +0 -6
  189. package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
  190. package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
  191. package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
  192. package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
  193. package/dist/components/d-license/index.d.ts +0 -2
  194. package/dist/components/d-license/index.js +0 -6
  195. package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
  196. package/dist/components/d-member/DNamespaceMember.service.js +0 -18
  197. package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
  198. package/dist/components/d-member/DNamespaceMember.view.js +0 -62
  199. package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
  200. package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
  201. package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
  202. package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
  203. package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
  204. package/dist/components/d-member/DNamespaceMemberList.js +0 -24
  205. package/dist/components/d-member/index.d.ts +0 -4
  206. package/dist/components/d-member/index.js +0 -10
  207. package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
  208. package/dist/components/d-namespace/DNamespace.service.js +0 -13
  209. package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
  210. package/dist/components/d-namespace/DNamespace.view.js +0 -65
  211. package/dist/components/d-namespace/index.d.ts +0 -2
  212. package/dist/components/d-namespace/index.js +0 -6
  213. package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
  214. package/dist/components/d-organization/DOrganization.service.js +0 -13
  215. package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
  216. package/dist/components/d-organization/DOrganization.view.js +0 -55
  217. package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
  218. package/dist/components/d-organization/DOrganizationCard.js +0 -16
  219. package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
  220. package/dist/components/d-organization/DOrganizationList.js +0 -24
  221. package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
  222. package/dist/components/d-organization/DOrganizationMenu.js +0 -18
  223. package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
  224. package/dist/components/d-organization/DOrganizatonContent.js +0 -102
  225. package/dist/components/d-organization/index.d.ts +0 -5
  226. package/dist/components/d-organization/index.js +0 -40
  227. package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
  228. package/dist/components/d-project/DNamespaceProject.service.js +0 -13
  229. package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
  230. package/dist/components/d-project/DNamespaceProject.view.js +0 -78
  231. package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
  232. package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
  233. package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
  234. package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
  235. package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
  236. package/dist/components/d-project/DNamespaceProjectList.js +0 -26
  237. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
  238. package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
  239. package/dist/components/d-project/index.d.ts +0 -5
  240. package/dist/components/d-project/index.js +0 -27
  241. package/dist/components/d-resizable/DResizable.d.ts +0 -12
  242. package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
  243. package/dist/components/d-role/DNamespaceRole.service.js +0 -13
  244. package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
  245. package/dist/components/d-role/DNamespaceRole.view.js +0 -61
  246. package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
  247. package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
  248. package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
  249. package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
  250. package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
  251. package/dist/components/d-role/DNamespaceRoleList.js +0 -25
  252. package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
  253. package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
  254. package/dist/components/d-role/index.d.ts +0 -4
  255. package/dist/components/d-role/index.js +0 -10
  256. package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
  257. package/dist/components/d-runtime/DRuntime.service.js +0 -9
  258. package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
  259. package/dist/components/d-runtime/DRuntime.view.js +0 -76
  260. package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
  261. package/dist/components/d-runtime/DRuntimeCard.js +0 -18
  262. package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
  263. package/dist/components/d-runtime/DRuntimeContent.js +0 -46
  264. package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
  265. package/dist/components/d-runtime/DRuntimeList.js +0 -29
  266. package/dist/components/d-runtime/index.d.ts +0 -4
  267. package/dist/components/d-runtime/index.js +0 -10
  268. package/dist/components/d-user/DUser.service.d.ts +0 -20
  269. package/dist/components/d-user/DUser.service.js +0 -18
  270. package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
  271. package/dist/components/d-user/DUser.session.hook.js +0 -16
  272. package/dist/components/d-user/DUser.view.d.ts +0 -55
  273. package/dist/components/d-user/DUser.view.js +0 -103
  274. package/dist/components/d-user/DUserCard.d.ts +0 -8
  275. package/dist/components/d-user/DUserCard.js +0 -15
  276. package/dist/components/d-user/DUserContent.d.ts +0 -8
  277. package/dist/components/d-user/DUserContent.js +0 -52
  278. package/dist/components/d-user/DUserInput.d.ts +0 -7
  279. package/dist/components/d-user/DUserInput.js +0 -101
  280. package/dist/components/d-user/DUserList.d.ts +0 -9
  281. package/dist/components/d-user/DUserList.js +0 -23
  282. package/dist/components/d-user/DUserMenu.d.ts +0 -8
  283. package/dist/components/d-user/DUserMenu.js +0 -30
  284. package/dist/components/d-user/index.d.ts +0 -7
  285. package/dist/components/d-user/index.js +0 -27
  286. package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
  287. package/dist/utils/generics.d.ts +0 -21
  288. package/dist/utils/generics.js +0 -385
  289. /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
  290. /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
  291. /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
@@ -1,484 +0,0 @@
1
- import { jsx as b, jsxs as $, Fragment as ot } from "react/jsx-runtime";
2
- import { c as tt } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import v from "react";
5
- import { mergeCode0Props as st } from "../../utils/utils.js";
6
- import { ReactFlowProvider as nt, useNodesState as it, useEdgesState as rt, useUpdateNodeInternals as at, useReactFlow as ct, ReactFlow as dt, ViewportPortal as ht, Background as lt, BackgroundVariant as pt } from "@xyflow/react";
7
- import '../../assets/node_modules/ldrs/dist/react/LineWobble.css';import '../../assets/components/d-flow-panel/DFlowMiniMap.style.css';import '../../assets/components/d-flow/DFlow.style.css';import '../../assets/node_modules/@xyflow/react/dist/style.css';/* empty css */
8
- /* empty css */
9
- import { DFlowNodeDefaultCard as mt } from "../d-flow-node/DFlowNodeDefaultCard.js";
10
- import { DFlowNodeGroupCard as gt } from "../d-flow-node/DFlowNodeGroupCard.js";
11
- import { DFlowNodeTriggerCard as ft } from "../d-flow-node/DFlowNodeTriggerCard.js";
12
- import { DFlowEdge as ut } from "./DFlowEdge.js";
13
- import { DFlowPanelSize as wt } from "../d-flow-panel/DFlowPanelSize.js";
14
- import { DFlowPanelControl as yt } from "../d-flow-panel/DFlowPanelControl.js";
15
- import { useFlowEdges as xt } from "./DFlow.edges.hook.js";
16
- import { useFlowNodes as It } from "./DFlow.nodes.hook.js";
17
- import "../button/Button.js";
18
- /* empty css */
19
- import { DFlowPanelLayout as bt } from "../d-flow-panel/DFlowPanelLayout.js";
20
- import { DFlowValidation as kt } from "../d-flow-validation/DFlowValidation.js";
21
- import { DFlowPanelUpdate as Mt } from "../d-flow-panel/DFlowPanelUpdate.js";
22
- import { Text as et } from "../text/Text.js";
23
- /* empty css */
24
- import { Spacing as J } from "../spacing/Spacing.js";
25
- import Nt from "../../node_modules/ldrs/dist/react/LineWobble.js";
26
- const Tt = (r, k) => {
27
- if (!k || k.size === 0) return {
28
- nodes: r
29
- };
30
- const y = 50, N = 50, I = 16, u = 0.25;
31
- let _ = 0, T = !1;
32
- const C = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
33
- for (const e of r) {
34
- const s = e.data?.parentNodeId;
35
- if (s) {
36
- const n = Y.get(s) ?? [];
37
- n.push(e.id), Y.set(s, n);
38
- }
39
- if (e.parentId && !s) {
40
- const n = C.get(e.parentId) ?? [];
41
- n.push(e.id), C.set(e.parentId, n);
42
- }
43
- }
44
- const L = new Map(r.map((e) => [e.id, e])), q = /* @__PURE__ */ new Map();
45
- for (const [e, s] of C) {
46
- const n = new Array(s.length);
47
- for (let m = 0; m < s.length; m++) n[m] = L.get(s[m]);
48
- q.set(e, n);
49
- }
50
- const j = /* @__PURE__ */ new Map();
51
- for (const [e, s] of Y) {
52
- const n = new Array(s.length);
53
- for (let m = 0; m < s.length; m++) n[m] = L.get(s[m]);
54
- j.set(e, n);
55
- }
56
- const D = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map();
57
- for (const e of r) {
58
- const s = typeof e.style?.width == "number" ? e.style.width : void 0, n = typeof e.style?.height == "number" ? e.style.height : void 0, m = e.measured?.width && e.measured.width > 0 ? e.measured.width : void 0, F = e.measured?.height && e.measured.height > 0 ? e.measured.height : void 0;
59
- H.set(e.id, {
60
- w: s ?? m ?? 200,
61
- h: n ?? F ?? 80
62
- });
63
- }
64
- const G = (e) => E.get(e.id)?.width, W = (e) => E.get(e.id)?.height, P = /* @__PURE__ */ new Map(), x = (e) => {
65
- const s = P.get(e.id);
66
- if (s) return s;
67
- if (e.type !== "group") {
68
- const A = H.get(e.id);
69
- return P.set(e.id, A), A;
70
- }
71
- const n = G(e), m = W(e);
72
- if (n !== void 0 && m !== void 0) {
73
- const A = {
74
- w: n,
75
- h: m
76
- };
77
- return P.set(e.id, A), A;
78
- }
79
- const F = q.get(e.id) ?? [];
80
- let f = 0, S = 0, R = 0;
81
- for (const A of F) {
82
- const K = x(A);
83
- f += K.h, K.w > S && (S = K.w), R++;
84
- }
85
- f += y * Math.max(0, R - 1);
86
- const U = {
87
- w: S + 2 * I,
88
- h: (R ? f : 0) + 2 * I
89
- };
90
- return P.set(e.id, U), U;
91
- };
92
- do {
93
- T = !1, _++, P.clear();
94
- for (const o of r) x(o);
95
- const e = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), n = (o) => Math.round(o / 10), m = (o, p, g) => {
96
- const c = [{
97
- node: o,
98
- cx: p,
99
- cy: g,
100
- phase: 0
101
- }];
102
- let M = 0;
103
- for (; c.length; ) {
104
- const t = c[c.length - 1];
105
- switch (t.phase) {
106
- case 0: {
107
- e.set(t.node.id, {
108
- x: t.cx,
109
- y: t.cy
110
- });
111
- const {
112
- w: a,
113
- h: d
114
- } = x(t.node);
115
- t.w = a, t.h = d;
116
- const i = j.get(t.node.id) ?? [], h = [], z = [];
117
- for (const l of i)
118
- l.type === "group" ? z.push(l) : h.push(l);
119
- h.sort((l, w) => +l.data?.paramIndex - +w.data?.paramIndex), z.sort((l, w) => +l.data?.paramIndex - +w.data?.paramIndex), t.right = h, t.gParams = z;
120
- let V = 0;
121
- for (const l of h) V += x(l).h;
122
- V += y * Math.max(0, h.length - 1), t.py = t.cy - V / 2, t.rightBottom = t.cy + d / 2, t.rightIndex = 0, t.phase = 1;
123
- break;
124
- }
125
- case 1: {
126
- if (t.rightIndex < t.right.length) {
127
- const a = t.right[t.rightIndex], d = x(a), i = t.cx + t.w / 2 + N + d.w / 2;
128
- let h = t.py + d.h / 2;
129
- const z = n(i), l = (s.get(z) ?? Number.NEGATIVE_INFINITY) + y;
130
- h - d.h / 2 < l && (h = l + d.h / 2, t.py = h - d.h / 2), t.childKey = z, t.childPs = d, c.push({
131
- node: a,
132
- cx: i,
133
- cy: h,
134
- phase: 0
135
- }), t.phase = 10;
136
- } else
137
- t.bottom = Math.max(t.cy + t.h / 2, t.rightBottom), t.phase = 2;
138
- break;
139
- }
140
- case 10: {
141
- const a = t.lastChildBottom;
142
- s.set(t.childKey, Math.max(s.get(t.childKey) ?? Number.NEGATIVE_INFINITY, a)), t.rightBottom = Math.max(t.rightBottom, a), t.py = Math.max(t.py + t.childPs.h + y, a + y), t.rightIndex++, t.phase = 1;
143
- break;
144
- }
145
- case 2: {
146
- if (t.gParams && t.gParams.length) {
147
- const a = [];
148
- let d = 0;
149
- for (const i of t.gParams) {
150
- const h = x(i);
151
- a.push(h), d += h.w;
152
- }
153
- d += N * (t.gParams.length - 1), t.gSizes = a, t.gx = t.cx - d / 2, t.gy = t.bottom + y, t.rowBottom = t.bottom, t.gIndex = 0, t.phase = 3;
154
- } else
155
- t.phase = 4;
156
- break;
157
- }
158
- case 3: {
159
- if (t.gIndex < t.gParams.length) {
160
- const a = t.gParams[t.gIndex], d = t.gSizes[t.gIndex], i = t.gx + d.w / 2, h = t.gy + d.h / 2;
161
- t.gx += d.w + N, c.push({
162
- node: a,
163
- cx: i,
164
- cy: h,
165
- phase: 0
166
- }), t.childPs = d, t.phase = 30;
167
- } else
168
- t.bottom = t.rowBottom, t.phase = 4;
169
- break;
170
- }
171
- case 30: {
172
- const a = t.lastChildBottom;
173
- t.rowBottom = Math.max(t.rowBottom, a), t.gIndex++, t.phase = 3;
174
- break;
175
- }
176
- case 4: {
177
- if (t.node.type === "group") {
178
- const a = q.get(t.node.id) ?? [], d = [];
179
- for (const i of a)
180
- i.data?.parentNodeId || d.push(i);
181
- t.kids = d, t.kidIndex = 0, t.curY = t.cy - t.h / 2 + I, t.phase = 5;
182
- } else
183
- t.phase = 6;
184
- break;
185
- }
186
- case 5: {
187
- if (t.kidIndex < t.kids.length) {
188
- const a = t.kids[t.kidIndex], d = x(a), i = t.curY + d.h / 2;
189
- c.push({
190
- node: a,
191
- cx: t.cx,
192
- cy: i,
193
- phase: 0
194
- }), t.childPs = d, t.phase = 50;
195
- } else {
196
- const a = t.curY - y;
197
- t.bottom = Math.max(t.bottom, a + I), t.phase = 6;
198
- }
199
- break;
200
- }
201
- case 50: {
202
- const a = t.lastChildBottom;
203
- t.curY = a + y, t.kidIndex++, t.phase = 5;
204
- break;
205
- }
206
- case 6: {
207
- const a = c.pop();
208
- c.length ? c[c.length - 1].lastChildBottom = a.bottom : M = a.bottom;
209
- break;
210
- }
211
- }
212
- }
213
- return M;
214
- };
215
- let F = 0;
216
- for (const o of r)
217
- !o.data?.parentNodeId && !o.parentId && (F = m(o, 0, F + x(o).h / 2) + y);
218
- const f = /* @__PURE__ */ new Map();
219
- for (const o of r) {
220
- const {
221
- w: p,
222
- h: g
223
- } = x(o), c = e.get(o.id);
224
- f.set(o.id, {
225
- x: c.x - p / 2,
226
- y: c.y - g / 2
227
- });
228
- }
229
- for (const o of r) {
230
- const p = f.get(o.id);
231
- let g = p.x, c = p.y;
232
- if (o.parentId) {
233
- const t = f.get(o.parentId);
234
- g -= t.x, c -= t.y;
235
- }
236
- const M = D.get(o.id);
237
- (!M || Math.abs(M.x - g) > u || Math.abs(M.y - c) > u) && (D.set(o.id, {
238
- x: g,
239
- y: c
240
- }), T = !0);
241
- }
242
- const S = (o) => {
243
- let p = 0, g = o;
244
- for (; g?.parentId && (p++, g = L.get(g.parentId), !!g); )
245
- ;
246
- return p;
247
- }, R = [];
248
- for (const o of r) o.type === "group" && R.push(o);
249
- R.sort((o, p) => S(p) - S(o));
250
- const U = (o) => {
251
- const p = typeof o.style?.width == "number" ? o.style.width : void 0, g = typeof o.style?.height == "number" ? o.style.height : void 0, c = H.get(o.id);
252
- return {
253
- w: p ?? c.w,
254
- h: g ?? c.h
255
- };
256
- };
257
- for (const o of R) {
258
- const p = [];
259
- for (const l of r)
260
- l.parentId === o.id && p.push(l);
261
- if (!p.length) {
262
- const l = G(o) ?? (typeof o.style?.width == "number" ? o.style.width : 2 * I), w = W(o) ?? (typeof o.style?.height == "number" ? o.style.height : 2 * I);
263
- E.set(o.id, {
264
- width: l,
265
- height: w
266
- }), X.set(o.id, {
267
- width: l,
268
- height: w
269
- }), H.set(o.id, {
270
- w: l,
271
- h: w
272
- });
273
- continue;
274
- }
275
- let g = Number.POSITIVE_INFINITY, c = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY, t = Number.NEGATIVE_INFINITY;
276
- for (const l of p) {
277
- const w = U(l), B = D.get(l.id);
278
- B.x < g && (g = B.x), B.y < c && (c = B.y), B.x + w.w > M && (M = B.x + w.w), B.y + w.h > t && (t = B.y + w.h);
279
- }
280
- const a = g - I, d = c - I;
281
- if (Math.abs(a) > u || Math.abs(d) > u)
282
- for (const l of p) {
283
- const w = D.get(l.id), B = w.x - a, Z = w.y - d;
284
- (Math.abs(w.x - B) > u || Math.abs(w.y - Z) > u) && (D.set(l.id, {
285
- x: B,
286
- y: Z
287
- }), T = !0);
288
- }
289
- const i = M - g + 2 * I, h = t - c + 2 * I, z = G(o) ?? (typeof o.style?.width == "number" ? o.style.width : x(o).w), V = W(o) ?? (typeof o.style?.height == "number" ? o.style.height : x(o).h);
290
- (Math.abs(i - z) > u || Math.abs(h - V) > u) && (T = !0), E.set(o.id, {
291
- width: i,
292
- height: h
293
- }), X.set(o.id, {
294
- width: i,
295
- height: h
296
- }), H.set(o.id, {
297
- w: i,
298
- h
299
- });
300
- }
301
- P.clear();
302
- for (const o of r) x(o);
303
- const A = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map();
304
- for (const o of r) {
305
- const p = x(o), g = e.get(o.id);
306
- K.set(o.id, g), A.set(o.id, {
307
- x: g.x - p.w / 2,
308
- y: g.y - p.h / 2
309
- });
310
- }
311
- for (const o of r) {
312
- const p = [], g = j.get(o.id) ?? [];
313
- for (const i of g) i.type === "group" && p.push(i);
314
- if (!p.length) continue;
315
- const c = p.slice().sort((i, h) => (+i.data?.paramIndex || 0) - (+h.data?.paramIndex || 0)), M = [];
316
- for (const i of c) {
317
- const h = G(i) ?? (typeof i.style?.width == "number" ? i.style.width : void 0);
318
- M.push(h ?? x(i).w);
319
- }
320
- let t = 0;
321
- for (const i of M) t += i;
322
- t += N * (c.length - 1);
323
- let d = K.get(o.id).x - t / 2;
324
- for (let i = 0; i < c.length; i++) {
325
- const h = c[i], z = h.parentId ? A.get(h.parentId) : {
326
- x: 0
327
- }, V = D.get(h.id), l = d - z.x, w = V.y;
328
- (Math.abs(V.x - l) > u || Math.abs(V.y - w) > u) && (D.set(h.id, {
329
- x: l,
330
- y: w
331
- }), T = !0), d += M[i] + N;
332
- }
333
- }
334
- } while (T && _ < 5);
335
- return {
336
- nodes: r.map((e) => {
337
- const s = D.get(e.id), n = X.get(e.id), m = E.get(e.id);
338
- let F = !1;
339
- if (s) {
340
- const f = e.position ?? {
341
- x: 0,
342
- y: 0
343
- };
344
- (Math.abs(f.x - s.x) > u || Math.abs(f.y - s.y) > u) && (F = !0);
345
- }
346
- if (n) {
347
- const f = e.measured ?? {
348
- width: 0,
349
- height: 0
350
- };
351
- (Math.abs(f.width - n.width) > u || Math.abs(f.height - n.height) > u) && (F = !0);
352
- }
353
- if (m) {
354
- const f = typeof e.style?.width == "number" ? e.style.width : void 0, S = typeof e.style?.height == "number" ? e.style.height : void 0;
355
- (f !== m.width || S !== m.height) && (F = !0);
356
- }
357
- return F ? {
358
- ...e,
359
- position: s ?? e.position,
360
- measured: n ? {
361
- ...e.measured,
362
- width: n.width,
363
- height: n.height
364
- } : e.measured,
365
- style: m ? {
366
- ...e.style,
367
- width: m.width,
368
- height: m.height
369
- } : e.style
370
- } : e;
371
- })
372
- };
373
- }, Q = v.cache(Tt), Qt = (r) => {
374
- const k = tt.c(2);
375
- let y;
376
- return k[0] !== r ? (y = /* @__PURE__ */ b(nt, { children: /* @__PURE__ */ b(Et, { ...r }) }), k[0] = r, k[1] = y) : y = k[1], y;
377
- }, Et = (r) => {
378
- const {
379
- flowId: k,
380
- namespaceId: y,
381
- projectId: N,
382
- ...I
383
- } = r, u = v.useMemo(() => ({
384
- default: mt,
385
- group: gt,
386
- trigger: ft
387
- }), []), _ = v.useMemo(() => ({
388
- default: ut
389
- }), []), T = It(k, y, N), C = xt(k, y, N), [Y, L] = it([]), [q, j, D] = rt([]), [E, X] = v.useState(!1), H = at(), {
390
- fitView: G
391
- } = ct(), W = v.useRef(!1), P = v.useCallback((O) => {
392
- requestAnimationFrame(() => {
393
- O.forEach((e) => H(e));
394
- });
395
- }, [H]), x = v.useCallback((O) => {
396
- const e = Array.from(new Set(O.filter((n) => n.type === "dimensions" || n.type === "position").map((n) => n.id))), s = /* @__PURE__ */ new Map();
397
- O.filter((n) => n.type === "dimensions").forEach((n) => s.set(n.id, n.dimensions)), L((n) => {
398
- const m = n.map((f) => {
399
- if (!s.has(f.id)) return f;
400
- const S = s.get(f.id) || {};
401
- return {
402
- ...f,
403
- measured: {
404
- width: S.width ?? f.measured?.width ?? 0,
405
- height: S.height ?? f.measured?.height ?? 0
406
- }
407
- };
408
- });
409
- return Q(m, new Set(e)).nodes;
410
- }), P(e);
411
- }, [P]);
412
- return v.useEffect(() => {
413
- const O = T.map((s) => {
414
- const n = s.measured ? [] : document.querySelectorAll("[data-id='" + s.id + "']");
415
- return {
416
- ...s,
417
- measured: {
418
- width: s.measured?.width ?? n[0]?.clientWidth ?? 0,
419
- height: s.measured?.height ?? n[0]?.clientHeight ?? 0
420
- }
421
- };
422
- }), e = Q(O, new Set(O.map((s) => s.id)));
423
- L(e.nodes), j(C), P(e.nodes.map((s) => s.id));
424
- }, [T, C, P]), v.useEffect(() => {
425
- W.current || Y.length <= 0 || (W.current = !0, requestAnimationFrame(() => {
426
- requestAnimationFrame(() => {
427
- setTimeout(async () => {
428
- await G({
429
- padding: "64px",
430
- maxZoom: 1
431
- }), X(!0);
432
- }, 1e3);
433
- });
434
- }));
435
- }, [Y, W]), /* @__PURE__ */ $(dt, { onlyRenderVisibleElements: !0, panOnScroll: !1, nodeTypes: u, edgeTypes: _, onNodesChange: x, onEdgesChange: D, ...st("flow", I), "data-tree-visibility": E, proOptions: {
436
- hideAttribution: !0
437
- }, nodes: Y, edges: q, panOnDrag: E, zoomOnScroll: E, zoomOnPinch: E, zoomOnDoubleClick: E, children: [
438
- E ? null : /* @__PURE__ */ b(ht, { children: /* @__PURE__ */ $("div", { style: {
439
- left: "50%",
440
- top: "50%",
441
- transform: "translate(-50%, -50%)",
442
- position: "absolute",
443
- display: "flex",
444
- alignItems: "center",
445
- justifyContent: "center",
446
- flexDirection: "column"
447
- }, children: [
448
- /* @__PURE__ */ b(Nt, { size: "200", stroke: "5", bgOpacity: "0.5", speed: "2", color: "rgba(255, 255, 255, 0.15)" }),
449
- /* @__PURE__ */ b(J, { spacing: "xl" }),
450
- /* @__PURE__ */ b(Ft, {}),
451
- /* @__PURE__ */ b(J, { spacing: "xs" }),
452
- /* @__PURE__ */ b(et, { hierarchy: "tertiary", style: {
453
- margin: "0 20%",
454
- textAlign: "center"
455
- }, children: "We are running requests to prepare your flow. This may take a few moments." })
456
- ] }) }),
457
- E ? /* @__PURE__ */ $(ot, { children: [
458
- /* @__PURE__ */ b(lt, { variant: pt.Dots, color: "rgba(255,255,255, .05)", gap: 8, size: 2 }),
459
- /* @__PURE__ */ b(wt, {}),
460
- /* @__PURE__ */ b(bt, {}),
461
- /* @__PURE__ */ b(kt, { flowId: "gid://sagittarius/Flow/1" }),
462
- /* @__PURE__ */ b(yt, { flowId: k }),
463
- /* @__PURE__ */ b(Mt, { flowId: k })
464
- ] }) : null
465
- ] });
466
- }, Ft = () => {
467
- const r = tt.c(5), [k, y] = v.useState(0);
468
- let N;
469
- r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = ["Preparing flow data", "Loading node and edge definitions", "Calculating perfect layout"], r[0] = N) : N = r[0];
470
- const I = N;
471
- let u, _;
472
- r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
473
- const Y = setInterval(() => {
474
- y((L) => (L + 1) % I.length);
475
- }, 2e3);
476
- return () => clearInterval(Y);
477
- }, _ = [], r[1] = u, r[2] = _) : (u = r[1], _ = r[2]), v.useEffect(u, _);
478
- const T = I[k];
479
- let C;
480
- return r[3] !== T ? (C = /* @__PURE__ */ b(et, { size: "md", children: T }), r[3] = T, r[4] = C) : C = r[4], C;
481
- };
482
- export {
483
- Qt as DFlow
484
- };
@@ -1,4 +0,0 @@
1
- import { Node } from '@xyflow/react';
2
- import { Flow, Namespace, NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
3
- import { DFlowNodeProps } from '../d-flow-node/DFlowNode';
4
- export declare const useFlowNodes: (flowId: Flow["id"], namespaceId?: Namespace["id"], projectId?: NamespaceProject["id"]) => Node<DFlowNodeProps>[];
@@ -1,128 +0,0 @@
1
- import { useService as S, useStore as x } from "../../utils/contextStore.js";
2
- import B from "react";
3
- import "merge-props";
4
- import "js-md5";
5
- import { DFlowReactiveService as F } from "./DFlow.service.js";
6
- import { DFlowFunctionReactiveService as w } from "../d-flow-function/DFlowFunction.service.js";
7
- import { hashToColor as D } from "./DFlow.util.js";
8
- import { DFlowDataTypeReactiveService as A } from "../d-flow-data-type/DFlowDataType.service.js";
9
- const _ = /* @__PURE__ */ new Map([["std", "default"]]), k = (i, y) => {
10
- if (!y || i.size === 0) return "";
11
- const p = /[:._\-\/\s]+/, o = y.trim().toLowerCase();
12
- let n = null, l = -1 / 0;
13
- for (const [f, N] of i.entries()) {
14
- const a = f.trim().toLowerCase();
15
- if (o === a)
16
- return N;
17
- let e = 0;
18
- if (o.startsWith(a)) {
19
- e = 2e3 + a.length * 2;
20
- const s = o.charAt(a.length);
21
- (s === "" || p.test(s)) && (e += 200);
22
- } else {
23
- const s = Math.min(o.length, a.length);
24
- let t = 0;
25
- for (; t < s && o.charCodeAt(t) === a.charCodeAt(t); )
26
- t++;
27
- if (t > 0) {
28
- e = 1e3 + t;
29
- const m = o.charAt(t), v = a.charAt(t);
30
- (m === "" || p.test(m) || v === "" || p.test(v)) && (e += 50);
31
- }
32
- }
33
- e > l ? (l = e, n = f) : (e === l && n !== null && f.length > n.length || e === l && n === null) && (n = f);
34
- }
35
- return n !== null ? i.get(n) : "";
36
- }, j = (i, y, p) => {
37
- const o = S(F), n = x(F), l = S(w), f = x(w), N = S(A), a = x(A), e = B.useMemo(() => o.getById(i, {
38
- namespaceId: y,
39
- projectId: p
40
- }), [i, n]);
41
- return B.useMemo(() => {
42
- if (!e) return [];
43
- if (f.length <= 0) return [];
44
- if (a.length <= 0) return [];
45
- const s = [], t = /* @__PURE__ */ new Set();
46
- let m = 0, v = 0;
47
- s.push({
48
- id: `${e.id}`,
49
- type: "trigger",
50
- position: {
51
- x: 0,
52
- y: 0
53
- },
54
- draggable: !1,
55
- data: {
56
- flowId: i,
57
- nodeId: void 0,
58
- color: D(i)
59
- }
60
- });
61
- const I = (r, C = !1, M, u) => {
62
- if (!r?.id) return;
63
- const d = r.id;
64
- t.has(d) || (t.add(d), s.push({
65
- id: d,
66
- type: k(_, r.functionDefinition?.identifier ?? ""),
67
- position: {
68
- x: 0,
69
- y: 0
70
- },
71
- draggable: !1,
72
- parentId: u,
73
- extent: u ? "parent" : void 0,
74
- data: {
75
- nodeId: d,
76
- isParameter: C,
77
- flowId: i,
78
- parentNodeId: C ? M : void 0,
79
- index: ++v,
80
- color: D(d)
81
- }
82
- }));
83
- const R = r.functionDefinition?.id ? l.getById(r.functionDefinition.id) : void 0;
84
- if (r.parameters?.nodes?.forEach((g) => {
85
- const h = g?.value;
86
- if (!h || h.__typename !== "NodeFunctionIdWrapper") return;
87
- const T = R?.parameterDefinitions?.find((c) => c.id === g?.parameterDefinition?.id);
88
- if ((T?.dataTypeIdentifier ? N.getDataType(T.dataTypeIdentifier) : void 0)?.variant === "NODE") {
89
- const c = `${d}-group-${m++}`;
90
- t.has(c) || (t.add(c), s.push({
91
- id: c,
92
- type: "group",
93
- position: {
94
- x: 0,
95
- y: 0
96
- },
97
- draggable: !1,
98
- parentId: u,
99
- extent: u ? "parent" : void 0,
100
- data: {
101
- isParameter: !0,
102
- parentNodeId: d,
103
- nodeId: d,
104
- flowId: i,
105
- color: D(h.id)
106
- }
107
- }));
108
- const b = o.getNodeById(i, h.id);
109
- b && I(b, !1, void 0, c);
110
- } else {
111
- const c = o.getNodeById(i, h.id);
112
- c && I(c, !0, d, u);
113
- }
114
- }), r.nextNodeId) {
115
- const g = o.getNodeById(e.id, r.nextNodeId);
116
- g && I(g, !1, void 0, u);
117
- }
118
- };
119
- if (e.startingNodeId) {
120
- const r = o.getNodeById(e.id, e.startingNodeId);
121
- r && I(r);
122
- }
123
- return s;
124
- }, [e, n, f, a]);
125
- };
126
- export {
127
- j as useFlowNodes
128
- };
@@ -1,21 +0,0 @@
1
- import { ReactiveArrayService } from '../../utils';
2
- import { FlowInput, FlowSetting, LiteralValue, Maybe, Namespace, NamespaceProject, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload, NamespacesProjectsFlowsUpdateInput, NamespacesProjectsFlowsUpdatePayload, NodeFunction, NodeParameter, ReferenceValue, Scalars } from '@code0-tech/sagittarius-graphql-types';
3
- import { Flow } from './DFlow.view';
4
- export type DFlowDependencies = {
5
- namespaceId: Namespace['id'];
6
- projectId: NamespaceProject['id'];
7
- };
8
- export declare abstract class DFlowReactiveService extends ReactiveArrayService<Flow, DFlowDependencies> {
9
- getById(id: Flow['id'], dependencies?: DFlowDependencies): Flow | undefined;
10
- protected removeParameterNode(flow: Flow, parameter: NodeParameter): void;
11
- getLinkedNodesById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction[];
12
- getNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction | undefined;
13
- getPayloadById(flowId: Flow['id']): FlowInput;
14
- deleteNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): Promise<void>;
15
- addNextNodeById(flowId: Flow['id'], parentNodeId: NodeFunction['id'] | null, nextNode: NodeFunction): Promise<void>;
16
- setSettingValue(flowId: Flow['id'], settingIdentifier: Maybe<Scalars['String']['output']>, value: FlowSetting['value']): Promise<void>;
17
- setParameterValue(flowId: Flow['id'], nodeId: NodeFunction['id'], parameterId: NodeParameter['id'], value?: LiteralValue | ReferenceValue | NodeFunction): Promise<void>;
18
- abstract flowCreate(payload: NamespacesProjectsFlowsCreateInput): Promise<NamespacesProjectsFlowsCreatePayload | undefined>;
19
- abstract flowDelete(payload: NamespacesProjectsFlowsDeleteInput): Promise<NamespacesProjectsFlowsDeletePayload | undefined>;
20
- abstract flowUpdate(payload: NamespacesProjectsFlowsUpdateInput): Promise<NamespacesProjectsFlowsUpdatePayload | undefined>;
21
- }