@code0-tech/pictor 0.0.0-mvp.46 → 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 (295) 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 +14 -15
  4. package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
  5. package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
  6. package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
  7. package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
  8. package/dist/components/menu/Menu.js +8 -8
  9. package/dist/components/resizable/Resizable.d.ts +12 -0
  10. package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
  11. package/dist/components/tab/Tab.js +4 -4
  12. package/dist/components/toast/Toast.js +1 -1
  13. package/dist/index.d.ts +0 -20
  14. package/dist/index.js +152 -273
  15. package/package.json +18 -18
  16. package/dist/assets/components/d-flow/DFlow.style.css +0 -1
  17. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
  18. package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
  19. package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
  20. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
  21. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  22. package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
  23. package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
  24. package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
  25. package/dist/components/d-application/DApplication.service.d.ts +0 -9
  26. package/dist/components/d-application/DApplication.service.js +0 -10
  27. package/dist/components/d-flow/DFlow.d.ts +0 -9
  28. package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
  29. package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
  30. package/dist/components/d-flow/DFlow.js +0 -484
  31. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
  32. package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
  33. package/dist/components/d-flow/DFlow.service.d.ts +0 -21
  34. package/dist/components/d-flow/DFlow.service.js +0 -156
  35. package/dist/components/d-flow/DFlow.util.d.ts +0 -4
  36. package/dist/components/d-flow/DFlow.util.js +0 -63
  37. package/dist/components/d-flow/DFlow.view.d.ts +0 -4
  38. package/dist/components/d-flow/DFlow.view.js +0 -1
  39. package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
  40. package/dist/components/d-flow/DFlowEdge.js +0 -69
  41. package/dist/components/d-flow/index.d.ts +0 -4
  42. package/dist/components/d-flow/index.js +0 -10
  43. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
  44. package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
  45. package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
  46. package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
  47. package/dist/components/d-flow-data-type/index.d.ts +0 -2
  48. package/dist/components/d-flow-data-type/index.js +0 -6
  49. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
  50. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -231
  51. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
  52. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -235
  53. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
  54. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
  55. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
  56. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
  57. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
  58. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
  59. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
  60. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
  61. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
  62. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
  63. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
  64. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
  65. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
  66. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
  67. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
  68. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
  69. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
  70. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
  71. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
  72. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
  73. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
  74. package/dist/components/d-flow-file/DFlowTabDefault.js +0 -106
  75. package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
  76. package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
  77. package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
  78. package/dist/components/d-flow-file/DFlowTabs.js +0 -84
  79. package/dist/components/d-flow-file/index.d.ts +0 -1
  80. package/dist/components/d-flow-file/index.js +0 -4
  81. package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
  82. package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
  83. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
  84. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
  85. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
  86. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
  87. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
  88. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
  89. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
  90. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
  91. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
  92. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
  93. package/dist/components/d-flow-folder/index.d.ts +0 -4
  94. package/dist/components/d-flow-folder/index.js +0 -13
  95. package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
  96. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
  97. package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
  98. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
  99. package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
  100. package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
  101. package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
  102. package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
  103. package/dist/components/d-flow-function/index.d.ts +0 -2
  104. package/dist/components/d-flow-function/index.js +0 -7
  105. package/dist/components/d-flow-input/DFlowInput.d.ts +0 -11
  106. package/dist/components/d-flow-input/DFlowInput.js +0 -29
  107. package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
  108. package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
  109. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
  110. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
  111. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -5
  112. package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
  113. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
  114. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
  115. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
  116. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
  117. package/dist/components/d-flow-input/DFlowInputObject.d.ts +0 -10
  118. package/dist/components/d-flow-input/DFlowInputObject.js +0 -83
  119. package/dist/components/d-flow-input/DFlowInputObjectEditDialog.d.ts +0 -16
  120. package/dist/components/d-flow-input/DFlowInputObjectEditDialog.js +0 -118
  121. package/dist/components/d-flow-input/DFlowInputObjectTree.d.ts +0 -16
  122. package/dist/components/d-flow-input/DFlowInputObjectTree.js +0 -99
  123. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
  124. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
  125. package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
  126. package/dist/components/d-flow-node/DFlowNode.js +0 -1
  127. package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
  128. package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
  129. package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
  130. package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
  131. package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
  132. package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
  133. package/dist/components/d-flow-node/DFlowNodeReference.return.hook.d.ts +0 -4
  134. package/dist/components/d-flow-node/DFlowNodeReference.return.hook.js +0 -77
  135. package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
  136. package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
  137. package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
  138. package/dist/components/d-flow-panel/DFlowExport.js +0 -33
  139. package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
  140. package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
  141. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
  142. package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
  143. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
  144. package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
  145. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
  146. package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
  147. package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
  148. package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
  149. package/dist/components/d-flow-panel/index.d.ts +0 -5
  150. package/dist/components/d-flow-panel/index.js +0 -12
  151. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
  152. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
  153. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
  154. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
  155. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
  156. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -133
  157. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
  158. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
  159. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
  160. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
  161. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
  162. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -66
  163. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
  164. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
  165. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
  166. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
  167. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
  168. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
  169. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
  170. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
  171. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
  172. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
  173. package/dist/components/d-flow-suggestion/index.d.ts +0 -1
  174. package/dist/components/d-flow-suggestion/index.js +0 -4
  175. package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
  176. package/dist/components/d-flow-type/DFlowType.service.js +0 -13
  177. package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
  178. package/dist/components/d-flow-type/DFlowType.view.js +0 -93
  179. package/dist/components/d-flow-type/index.d.ts +0 -2
  180. package/dist/components/d-flow-type/index.js +0 -6
  181. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
  182. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
  183. package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
  184. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
  185. package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
  186. package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
  187. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
  188. package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -63
  189. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
  190. package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
  191. package/dist/components/d-flow-validation/index.d.ts +0 -2
  192. package/dist/components/d-flow-validation/index.js +0 -6
  193. package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
  194. package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
  195. package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
  196. package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
  197. package/dist/components/d-license/index.d.ts +0 -2
  198. package/dist/components/d-license/index.js +0 -6
  199. package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
  200. package/dist/components/d-member/DNamespaceMember.service.js +0 -18
  201. package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
  202. package/dist/components/d-member/DNamespaceMember.view.js +0 -62
  203. package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
  204. package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
  205. package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
  206. package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
  207. package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
  208. package/dist/components/d-member/DNamespaceMemberList.js +0 -24
  209. package/dist/components/d-member/index.d.ts +0 -4
  210. package/dist/components/d-member/index.js +0 -10
  211. package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
  212. package/dist/components/d-namespace/DNamespace.service.js +0 -13
  213. package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
  214. package/dist/components/d-namespace/DNamespace.view.js +0 -65
  215. package/dist/components/d-namespace/index.d.ts +0 -2
  216. package/dist/components/d-namespace/index.js +0 -6
  217. package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
  218. package/dist/components/d-organization/DOrganization.service.js +0 -13
  219. package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
  220. package/dist/components/d-organization/DOrganization.view.js +0 -55
  221. package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
  222. package/dist/components/d-organization/DOrganizationCard.js +0 -16
  223. package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
  224. package/dist/components/d-organization/DOrganizationList.js +0 -24
  225. package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
  226. package/dist/components/d-organization/DOrganizationMenu.js +0 -18
  227. package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
  228. package/dist/components/d-organization/DOrganizatonContent.js +0 -102
  229. package/dist/components/d-organization/index.d.ts +0 -5
  230. package/dist/components/d-organization/index.js +0 -40
  231. package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
  232. package/dist/components/d-project/DNamespaceProject.service.js +0 -13
  233. package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
  234. package/dist/components/d-project/DNamespaceProject.view.js +0 -78
  235. package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
  236. package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
  237. package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
  238. package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
  239. package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
  240. package/dist/components/d-project/DNamespaceProjectList.js +0 -26
  241. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
  242. package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
  243. package/dist/components/d-project/index.d.ts +0 -5
  244. package/dist/components/d-project/index.js +0 -27
  245. package/dist/components/d-resizable/DResizable.d.ts +0 -12
  246. package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
  247. package/dist/components/d-role/DNamespaceRole.service.js +0 -13
  248. package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
  249. package/dist/components/d-role/DNamespaceRole.view.js +0 -61
  250. package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
  251. package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
  252. package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
  253. package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
  254. package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
  255. package/dist/components/d-role/DNamespaceRoleList.js +0 -25
  256. package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
  257. package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
  258. package/dist/components/d-role/index.d.ts +0 -4
  259. package/dist/components/d-role/index.js +0 -10
  260. package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
  261. package/dist/components/d-runtime/DRuntime.service.js +0 -9
  262. package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
  263. package/dist/components/d-runtime/DRuntime.view.js +0 -76
  264. package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
  265. package/dist/components/d-runtime/DRuntimeCard.js +0 -18
  266. package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
  267. package/dist/components/d-runtime/DRuntimeContent.js +0 -46
  268. package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
  269. package/dist/components/d-runtime/DRuntimeList.js +0 -29
  270. package/dist/components/d-runtime/index.d.ts +0 -4
  271. package/dist/components/d-runtime/index.js +0 -10
  272. package/dist/components/d-user/DUser.service.d.ts +0 -20
  273. package/dist/components/d-user/DUser.service.js +0 -18
  274. package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
  275. package/dist/components/d-user/DUser.session.hook.js +0 -16
  276. package/dist/components/d-user/DUser.view.d.ts +0 -55
  277. package/dist/components/d-user/DUser.view.js +0 -103
  278. package/dist/components/d-user/DUserCard.d.ts +0 -8
  279. package/dist/components/d-user/DUserCard.js +0 -15
  280. package/dist/components/d-user/DUserContent.d.ts +0 -8
  281. package/dist/components/d-user/DUserContent.js +0 -52
  282. package/dist/components/d-user/DUserInput.d.ts +0 -7
  283. package/dist/components/d-user/DUserInput.js +0 -101
  284. package/dist/components/d-user/DUserList.d.ts +0 -9
  285. package/dist/components/d-user/DUserList.js +0 -23
  286. package/dist/components/d-user/DUserMenu.d.ts +0 -8
  287. package/dist/components/d-user/DUserMenu.js +0 -30
  288. package/dist/components/d-user/index.d.ts +0 -7
  289. package/dist/components/d-user/index.js +0 -27
  290. package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
  291. package/dist/utils/generics.d.ts +0 -21
  292. package/dist/utils/generics.js +0 -373
  293. /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
  294. /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
  295. /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
@@ -1,9 +0,0 @@
1
- import { Code0ComponentProps } from '../../utils';
2
- import { default as React } from 'react';
3
- import { Flow, Namespace, NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
4
- export interface DFlowProps extends Code0ComponentProps {
5
- flowId: Flow['id'];
6
- namespaceId: Namespace['id'];
7
- projectId: NamespaceProject['id'];
8
- }
9
- export declare const DFlow: React.FC<DFlowProps>;
@@ -1,4 +0,0 @@
1
- import { Edge } from '@xyflow/react';
2
- import { Flow, Namespace, NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
3
- import { DFlowEdgeDataProps } from './DFlowEdge';
4
- export declare const useFlowEdges: (flowId: Flow["id"], namespaceId?: Namespace["id"], projectId?: NamespaceProject["id"]) => Edge<DFlowEdgeDataProps>[];
@@ -1,110 +0,0 @@
1
- import { useService as u, useStore as p } from "../../utils/contextStore.js";
2
- import $ from "react";
3
- import "merge-props";
4
- import "js-md5";
5
- import { DFlowReactiveService as h } from "./DFlow.service.js";
6
- import { DFlowFunctionReactiveService as I } from "../d-flow-function/DFlowFunction.service.js";
7
- import { hashToColor as b } from "./DFlow.util.js";
8
- import { DFlowDataTypeReactiveService as D } from "../d-flow-data-type/DFlowDataType.service.js";
9
- const O = (i, S, N) => {
10
- const f = u(h), g = p(h), F = u(I), m = p(I), T = u(D), y = p(D), s = $.useMemo(() => f.getById(i, {
11
- namespaceId: S,
12
- projectId: N
13
- }), [i, g]);
14
- return $.useMemo(() => {
15
- if (!s) return [];
16
- if (m.length <= 0) return [];
17
- if (y.length <= 0) return [];
18
- const o = [], c = /* @__PURE__ */ new Map();
19
- let x = 0;
20
- const l = (e, r, B = !1) => {
21
- if (!e) return "";
22
- if (e.id == s.startingNodeId && o.push({
23
- id: `trigger-${e.id}-next`,
24
- source: s.id,
25
- target: e.id,
26
- data: {
27
- color: "#ffffff",
28
- type: "default",
29
- flowId: i,
30
- parentNodeId: r?.id
31
- },
32
- deletable: !1,
33
- selectable: !1
34
- }), r?.id && !B) {
35
- const a = c.get(r.id) ?? [];
36
- a.length > 0 ? a.forEach((t, n) => o.push({
37
- id: `${t}-${e.id}-next-${n}`,
38
- source: t,
39
- target: e.id,
40
- data: {
41
- color: "#ffffff",
42
- type: "default",
43
- flowId: i,
44
- parentNodeId: r?.id
45
- },
46
- deletable: !1,
47
- selectable: !1
48
- })) : o.push({
49
- id: `${r.id}-${e.id}-next`,
50
- source: r.id,
51
- target: e.id,
52
- data: {
53
- color: "#ffffff",
54
- type: "default",
55
- flowId: i,
56
- parentNodeId: r.id
57
- },
58
- deletable: !1,
59
- selectable: !1
60
- });
61
- }
62
- return e.parameters?.nodes?.forEach((a) => {
63
- const t = a?.value, n = F.getById(e.functionDefinition?.id)?.parameterDefinitions?.find((d) => d.id === a?.parameterDefinition?.id), v = n?.dataTypeIdentifier, E = v ? T.getDataType(v) : void 0;
64
- if (t) {
65
- if (E?.variant === "NODE") {
66
- if (t && t.__typename === "NodeFunctionIdWrapper") {
67
- const d = `${e.id}-group-${x++}`;
68
- o.push({
69
- id: `${e.id}-${d}-param-${a.id}`,
70
- source: e.id,
71
- target: d,
72
- deletable: !1,
73
- selectable: !1,
74
- animated: !0,
75
- label: n?.names[0]?.content ?? a.id,
76
- data: {
77
- color: b(t?.id || ""),
78
- type: "group",
79
- flowId: i,
80
- parentNodeId: r?.id
81
- }
82
- }), (c.get(e.id) ?? (c.set(e.id, []), c.get(e.id))).push(d), l(f.getNodeById(i, t.id), e, !0);
83
- }
84
- } else if (t && t.__typename === "NodeFunctionIdWrapper") {
85
- const d = l(f.getNodeById(i, t.id), e, !0);
86
- o.push({
87
- id: `${d}-${e.id}-param-${a.id}`,
88
- source: d,
89
- target: e.id,
90
- targetHandle: `param-${a.id}`,
91
- animated: !0,
92
- deletable: !1,
93
- selectable: !1,
94
- data: {
95
- color: b(t?.id || ""),
96
- type: "parameter",
97
- flowId: i,
98
- parentNodeId: r?.id
99
- }
100
- });
101
- }
102
- }
103
- }), e.nextNodeId && l(f.getNodeById(s.id, e.nextNodeId), e), e.id;
104
- };
105
- return s.startingNodeId && l(f.getNodeById(s.id, s.startingNodeId), void 0, !1), o;
106
- }, [s, g, m, y]);
107
- };
108
- export {
109
- O as useFlowEdges
110
- };
@@ -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>[];