@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,122 +1,132 @@
1
- import { jsx as K } from "react/jsx-runtime";
2
- import { c as U } from "../../compiler-runtime-BNHg76kC.js";
3
- import { ReactFlowProvider as $, useNodesState as J, useEdgesState as Q, useUpdateNodeInternals as Z, ReactFlow as tt } from "@xyflow/react";
4
- import G from "react";
5
- import { mergeCode0Props as et } from "../../utils/utils.js";
6
- import { DFlowFunctionDefaultCard as ot } from "./function/DFlowFunctionDefaultCard.js";
7
- import { DFlowFunctionGroupCard as st } from "./function/DFlowFunctionGroupCard.js";
8
- import { DFlowFunctionSuggestionCard as nt } from "./function/DFlowFunctionSuggestionCard.js";
9
- import { DFlowFunctionTriggerCard as it } from "./function/DFlowFunctionTriggerCard.js";
10
- import { DFlowEdge as rt } from "./edge/DFlowEdge.js";
11
- import '../../assets/DFlow.css';const at = (y, C) => {
12
- if (!C || C.size === 0)
13
- return {
14
- nodes: y
15
- };
16
- const m = 75, Y = 75, N = 16, z = 0.25;
17
- let _ = 0, F = !1;
18
- const f = y.map((o) => ({
19
- ...o
20
- })), L = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map();
21
- for (const o of f) {
22
- const c = o.data?.linkingId;
23
- if (c) {
24
- let l = W.get(c);
25
- l || (l = [], W.set(c, l)), l.push(o.id);
1
+ import { jsx as z, jsxs as Q } from "react/jsx-runtime";
2
+ import { c as Z } from "../../_virtual/compiler-runtime.js";
3
+ import "../../utils/contextStore.js";
4
+ import W from "react";
5
+ import { mergeCode0Props as tt } from "../../utils/utils.js";
6
+ import { ReactFlowProvider as et, useNodesState as ot, useEdgesState as st, useUpdateNodeInternals as nt, ReactFlow as it, Background as rt, BackgroundVariant as at } from "@xyflow/react";
7
+ 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 { DFlowFunctionDefaultCard as ct } from "../d-flow-function/DFlowFunctionDefaultCard.js";
10
+ import { DFlowFunctionGroupCard as dt } from "../d-flow-function/DFlowFunctionGroupCard.js";
11
+ import { DFlowFunctionSuggestionCard as ht } from "../d-flow-function/DFlowFunctionSuggestionCard.js";
12
+ import { DFlowFunctionTriggerCard as lt } from "../d-flow-function/DFlowFunctionTriggerCard.js";
13
+ import { DFlowEdge as gt } from "./DFlowEdge.js";
14
+ import { DFlowPanelSize as pt } from "../d-flow-panel/DFlowPanelSize.js";
15
+ import { DFlowPanelControl as mt } from "../d-flow-panel/DFlowPanelControl.js";
16
+ import { useFlowEdges as ft } from "./DFlow.edges.hook.js";
17
+ import { useFlowNodes as ut } from "./DFlow.nodes.hook.js";
18
+ import "../button/Button.js";
19
+ /* empty css */
20
+ import { DFlowPanelLayout as wt } from "../d-flow-panel/DFlowPanelLayout.js";
21
+ import { DFlowValidation as yt } from "../d-flow-validation/DFlowValidation.js";
22
+ const xt = (m, F) => {
23
+ if (!F || F.size === 0) return {
24
+ nodes: m
25
+ };
26
+ const w = 50, Y = 50, N = 16, x = 0.25;
27
+ let G = 0, A = !1;
28
+ const K = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map();
29
+ for (const e of m) {
30
+ const a = e.data?.linkingId;
31
+ if (a) {
32
+ const l = H.get(a) ?? [];
33
+ l.push(e.id), H.set(a, l);
26
34
  }
27
- if (o.parentId && !c) {
28
- let l = L.get(o.parentId);
29
- l || (l = [], L.set(o.parentId, l)), l.push(o.id);
35
+ if (e.parentId && !a) {
36
+ const l = K.get(e.parentId) ?? [];
37
+ l.push(e.id), K.set(e.parentId, l);
30
38
  }
31
39
  }
32
- const M = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), w = new Map(f.map((o) => [o.id, o]));
33
- for (const [o, c] of L) {
34
- const l = new Array(c.length);
35
- for (let b = 0; b < c.length; b++) l[b] = w.get(c[b]);
36
- M.set(o, l);
40
+ const R = new Map(m.map((e) => [e.id, e])), O = /* @__PURE__ */ new Map();
41
+ for (const [e, a] of K) {
42
+ const l = new Array(a.length);
43
+ for (let p = 0; p < a.length; p++) l[p] = R.get(a[p]);
44
+ O.set(e, l);
37
45
  }
38
- for (const [o, c] of W) {
39
- const l = new Array(c.length);
40
- for (let b = 0; b < c.length; b++) l[b] = w.get(c[b]);
41
- E.set(o, l);
46
+ const X = /* @__PURE__ */ new Map();
47
+ for (const [e, a] of H) {
48
+ const l = new Array(a.length);
49
+ for (let p = 0; p < a.length; p++) l[p] = R.get(a[p]);
50
+ X.set(e, l);
42
51
  }
43
- const g = /* @__PURE__ */ new Map();
44
- for (const o of f) {
45
- const c = typeof o.style?.width == "number" ? o.style.width : void 0, l = typeof o.style?.height == "number" ? o.style.height : void 0, b = o.measured?.width && o.measured.width > 0 ? o.measured.width : void 0, P = o.measured?.height && o.measured.height > 0 ? o.measured.height : void 0;
46
- g.set(o.id, {
47
- w: c ?? b ?? 200,
48
- h: l ?? P ?? 80
52
+ const C = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
53
+ for (const e of m) {
54
+ const a = typeof e.style?.width == "number" ? e.style.width : void 0, l = typeof e.style?.height == "number" ? e.style.height : void 0, p = e.measured?.width && e.measured.width > 0 ? e.measured.width : void 0, T = e.measured?.height && e.measured.height > 0 ? e.measured.height : void 0;
55
+ b.set(e.id, {
56
+ w: a ?? p ?? 200,
57
+ h: l ?? T ?? 80
49
58
  });
50
59
  }
51
- const B = /* @__PURE__ */ new Map(), x = (o) => {
52
- if (B.has(o.id)) return B.get(o.id);
53
- if (o.type !== "group") {
54
- const T = g.get(o.id);
55
- return B.set(o.id, T), T;
60
+ const E = (e) => B.get(e.id)?.width, y = (e) => B.get(e.id)?.height, f = /* @__PURE__ */ new Map(), I = (e) => {
61
+ const a = f.get(e.id);
62
+ if (a) return a;
63
+ if (e.type !== "group") {
64
+ const S = b.get(e.id);
65
+ return f.set(e.id, S), S;
56
66
  }
57
- const c = typeof o.style?.width == "number" ? o.style.width : void 0, l = typeof o.style?.height == "number" ? o.style.height : void 0;
58
- if (c !== void 0 && l !== void 0) {
59
- const T = {
60
- w: c,
61
- h: l
67
+ const l = E(e), p = y(e);
68
+ if (l !== void 0 && p !== void 0) {
69
+ const S = {
70
+ w: l,
71
+ h: p
62
72
  };
63
- return B.set(o.id, T), T;
73
+ return f.set(e.id, S), S;
64
74
  }
65
- const b = M.get(o.id) ?? [];
66
- let P = 0, H = 0, v = 0;
67
- for (const T of b) {
68
- const V = x(T);
69
- P += V.h, V.w > H && (H = V.w), v++;
75
+ const T = O.get(e.id) ?? [];
76
+ let k = 0, V = 0, _ = 0;
77
+ for (const S of T) {
78
+ const L = I(S);
79
+ k += L.h, L.w > V && (V = L.w), _++;
70
80
  }
71
- P += m * Math.max(0, v - 1);
72
- const D = {
73
- w: H + 2 * N,
74
- h: (v ? P : 0) + 2 * N
81
+ k += w * Math.max(0, _ - 1);
82
+ const q = {
83
+ w: V + 2 * N,
84
+ h: (_ ? k : 0) + 2 * N
75
85
  };
76
- return B.set(o.id, D), D;
86
+ return f.set(e.id, q), q;
77
87
  };
78
88
  do {
79
- F = !1, _++, B.clear();
80
- for (const e of f) x(e);
81
- const o = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = (e) => Math.round(e / 10), b = (e, h, p) => {
82
- const d = [{
83
- node: e,
89
+ A = !1, G++, f.clear();
90
+ for (const o of m) I(o);
91
+ const e = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = (o) => Math.round(o / 10), p = (o, h, g) => {
92
+ const i = [{
93
+ node: o,
84
94
  cx: h,
85
- cy: p,
95
+ cy: g,
86
96
  phase: 0
87
97
  }];
88
- let I = 0;
89
- for (; d.length; ) {
90
- const t = d[d.length - 1];
98
+ let M = 0;
99
+ for (; i.length; ) {
100
+ const t = i[i.length - 1];
91
101
  switch (t.phase) {
92
102
  case 0: {
93
- o.set(t.node.id, {
103
+ e.set(t.node.id, {
94
104
  x: t.cx,
95
105
  y: t.cy
96
106
  });
97
107
  const {
98
- w: s,
99
- h: n
100
- } = x(t.node);
101
- t.w = s, t.h = n;
102
- const i = E.get(t.node.id) ?? [], r = [], u = [];
103
- for (const k of i)
104
- k.type === "group" ? u.push(k) : r.push(k);
105
- r.sort((k, a) => +k.data?.paramIndex - +a.data?.paramIndex), u.sort((k, a) => +k.data?.paramIndex - +a.data?.paramIndex), t.right = r, t.gParams = u;
106
- let S = 0;
107
- for (const k of r) S += x(k).h;
108
- S += m * Math.max(0, r.length - 1), t.py = t.cy - S / 2, t.rightBottom = t.cy + n / 2, t.rightIndex = 0, t.phase = 1;
108
+ w: n,
109
+ h: r
110
+ } = I(t.node);
111
+ t.w = n, t.h = r;
112
+ const s = X.get(t.node.id) ?? [], c = [], D = [];
113
+ for (const d of s)
114
+ d.type === "group" ? D.push(d) : c.push(d);
115
+ c.sort((d, u) => +d.data?.paramIndex - +u.data?.paramIndex), D.sort((d, u) => +d.data?.paramIndex - +u.data?.paramIndex), t.right = c, t.gParams = D;
116
+ let v = 0;
117
+ for (const d of c) v += I(d).h;
118
+ v += w * Math.max(0, c.length - 1), t.py = t.cy - v / 2, t.rightBottom = t.cy + r / 2, t.rightIndex = 0, t.phase = 1;
109
119
  break;
110
120
  }
111
121
  case 1: {
112
122
  if (t.rightIndex < t.right.length) {
113
- const s = t.right[t.rightIndex], n = x(s), i = t.cx + t.w / 2 + Y + n.w / 2;
114
- let r = t.py + n.h / 2;
115
- const u = l(i), k = (c.get(u) ?? Number.NEGATIVE_INFINITY) + m;
116
- r - n.h / 2 < k && (r = k + n.h / 2, t.py = r - n.h / 2), t.childKey = u, t.childPs = n, d.push({
117
- node: s,
118
- cx: i,
119
- cy: r,
123
+ const n = t.right[t.rightIndex], r = I(n), s = t.cx + t.w / 2 + Y + r.w / 2;
124
+ let c = t.py + r.h / 2;
125
+ const D = l(s), d = (a.get(D) ?? Number.NEGATIVE_INFINITY) + w;
126
+ c - r.h / 2 < d && (c = d + r.h / 2, t.py = c - r.h / 2), t.childKey = D, t.childPs = r, i.push({
127
+ node: n,
128
+ cx: s,
129
+ cy: c,
120
130
  phase: 0
121
131
  }), t.phase = 10;
122
132
  } else
@@ -124,250 +134,295 @@ import '../../assets/DFlow.css';const at = (y, C) => {
124
134
  break;
125
135
  }
126
136
  case 10: {
127
- const s = t.lastChildBottom;
128
- c.set(t.childKey, Math.max(c.get(t.childKey) ?? Number.NEGATIVE_INFINITY, s)), t.rightBottom = Math.max(t.rightBottom, s), t.py = Math.max(t.py + t.childPs.h + m, s + m), t.rightIndex++, t.phase = 1;
137
+ const n = t.lastChildBottom;
138
+ a.set(t.childKey, Math.max(a.get(t.childKey) ?? Number.NEGATIVE_INFINITY, n)), t.rightBottom = Math.max(t.rightBottom, n), t.py = Math.max(t.py + t.childPs.h + w, n + w), t.rightIndex++, t.phase = 1;
129
139
  break;
130
140
  }
131
141
  case 2: {
132
142
  if (t.gParams && t.gParams.length) {
133
- const s = [];
134
- let n = 0;
135
- for (const i of t.gParams) {
136
- const r = x(i);
137
- s.push(r), n += r.w;
143
+ const n = [];
144
+ let r = 0;
145
+ for (const s of t.gParams) {
146
+ const c = I(s);
147
+ n.push(c), r += c.w;
138
148
  }
139
- n += Y * (t.gParams.length - 1), t.gSizes = s, t.gx = t.cx - n / 2, t.gy = t.bottom + m, t.rowBottom = t.bottom, t.gIndex = 0, t.phase = 3;
149
+ r += Y * (t.gParams.length - 1), t.gSizes = n, t.gx = t.cx - r / 2, t.gy = t.bottom + w, t.rowBottom = t.bottom, t.gIndex = 0, t.phase = 3;
140
150
  } else
141
151
  t.phase = 4;
142
152
  break;
143
153
  }
144
154
  case 3: {
145
155
  if (t.gIndex < t.gParams.length) {
146
- const s = t.gParams[t.gIndex], n = t.gSizes[t.gIndex], i = t.gx + n.w / 2, r = t.gy + n.h / 2;
147
- t.gx += n.w + Y, d.push({
148
- node: s,
149
- cx: i,
150
- cy: r,
156
+ const n = t.gParams[t.gIndex], r = t.gSizes[t.gIndex], s = t.gx + r.w / 2, c = t.gy + r.h / 2;
157
+ t.gx += r.w + Y, i.push({
158
+ node: n,
159
+ cx: s,
160
+ cy: c,
151
161
  phase: 0
152
- }), t.childPs = n, t.phase = 30;
162
+ }), t.childPs = r, t.phase = 30;
153
163
  } else
154
164
  t.bottom = t.rowBottom, t.phase = 4;
155
165
  break;
156
166
  }
157
167
  case 30: {
158
- const s = t.lastChildBottom;
159
- t.rowBottom = Math.max(t.rowBottom, s), t.gIndex++, t.phase = 3;
168
+ const n = t.lastChildBottom;
169
+ t.rowBottom = Math.max(t.rowBottom, n), t.gIndex++, t.phase = 3;
160
170
  break;
161
171
  }
162
172
  case 4: {
163
173
  if (t.node.type === "group") {
164
- const s = M.get(t.node.id) ?? [], n = [];
165
- for (const i of s)
166
- i.data?.linkingId || n.push(i);
167
- t.kids = n, t.kidIndex = 0, t.curY = t.cy - t.h / 2 + N, t.phase = 5;
174
+ const n = O.get(t.node.id) ?? [], r = [];
175
+ for (const s of n)
176
+ s.data?.linkingId || r.push(s);
177
+ t.kids = r, t.kidIndex = 0, t.curY = t.cy - t.h / 2 + N, t.phase = 5;
168
178
  } else
169
179
  t.phase = 6;
170
180
  break;
171
181
  }
172
182
  case 5: {
173
183
  if (t.kidIndex < t.kids.length) {
174
- const s = t.kids[t.kidIndex], n = x(s), i = t.curY + n.h / 2;
175
- d.push({
176
- node: s,
184
+ const n = t.kids[t.kidIndex], r = I(n), s = t.curY + r.h / 2;
185
+ i.push({
186
+ node: n,
177
187
  cx: t.cx,
178
- cy: i,
188
+ cy: s,
179
189
  phase: 0
180
- }), t.childPs = n, t.phase = 50;
190
+ }), t.childPs = r, t.phase = 50;
181
191
  } else {
182
- const s = t.curY - m;
183
- t.bottom = Math.max(t.bottom, s + N), t.phase = 6;
192
+ const n = t.curY - w;
193
+ t.bottom = Math.max(t.bottom, n + N), t.phase = 6;
184
194
  }
185
195
  break;
186
196
  }
187
197
  case 50: {
188
- const s = t.lastChildBottom;
189
- t.curY = s + m, t.kidIndex++, t.phase = 5;
198
+ const n = t.lastChildBottom;
199
+ t.curY = n + w, t.kidIndex++, t.phase = 5;
190
200
  break;
191
201
  }
192
202
  case 6: {
193
- const s = d.pop();
194
- d.length ? d[d.length - 1].lastChildBottom = s.bottom : I = s.bottom;
203
+ const n = i.pop();
204
+ i.length ? i[i.length - 1].lastChildBottom = n.bottom : M = n.bottom;
195
205
  break;
196
206
  }
197
207
  }
198
208
  }
199
- return I;
209
+ return M;
200
210
  };
201
- let P = 0;
202
- for (const e of f)
203
- !e.data?.linkingId && !e.parentId && (P = b(e, 0, P + x(e).h / 2) + m);
204
- const H = /* @__PURE__ */ new Map();
205
- for (const e of f) H.set(e.id, o.get(e.id));
206
- const v = /* @__PURE__ */ new Map();
207
- for (const e of f) {
211
+ let T = 0;
212
+ for (const o of m)
213
+ !o.data?.linkingId && !o.parentId && (T = p(o, 0, T + I(o).h / 2) + w);
214
+ const k = /* @__PURE__ */ new Map();
215
+ for (const o of m) {
208
216
  const {
209
217
  w: h,
210
- h: p
211
- } = x(e), {
212
- x: d,
213
- y: I
214
- } = H.get(e.id);
215
- v.set(e.id, {
216
- x: d - h / 2,
217
- y: I - p / 2
218
+ h: g
219
+ } = I(o), i = e.get(o.id);
220
+ k.set(o.id, {
221
+ x: i.x - h / 2,
222
+ y: i.y - g / 2
218
223
  });
219
224
  }
220
- for (const e of f) {
221
- const h = v.get(e.id);
222
- let p = h.x, d = h.y;
223
- if (e.parentId) {
224
- const I = v.get(e.parentId);
225
- p -= I.x, d -= I.y;
225
+ for (const o of m) {
226
+ const h = k.get(o.id);
227
+ let g = h.x, i = h.y;
228
+ if (o.parentId) {
229
+ const t = k.get(o.parentId);
230
+ g -= t.x, i -= t.y;
226
231
  }
227
- e.position = {
228
- x: p,
229
- y: d
230
- };
232
+ const M = C.get(o.id);
233
+ (!M || Math.abs(M.x - g) > x || Math.abs(M.y - i) > x) && (C.set(o.id, {
234
+ x: g,
235
+ y: i
236
+ }), A = !0);
231
237
  }
232
- const D = /* @__PURE__ */ new Map();
233
- for (const e of f) D.set(e.id, e);
234
- const T = (e) => {
235
- let h = 0, p = e;
236
- for (; p?.parentId && (h++, p = D.get(p.parentId), !!p); )
238
+ const V = (o) => {
239
+ let h = 0, g = o;
240
+ for (; g?.parentId && (h++, g = R.get(g.parentId), !!g); )
237
241
  ;
238
242
  return h;
239
- }, V = [];
240
- for (const e of f)
241
- e.type === "group" && V.push(e);
242
- V.sort((e, h) => T(h) - T(e));
243
- for (const e of V) {
243
+ }, _ = [];
244
+ for (const o of m) o.type === "group" && _.push(o);
245
+ _.sort((o, h) => V(h) - V(o));
246
+ const q = (o) => {
247
+ const h = typeof o.style?.width == "number" ? o.style.width : void 0, g = typeof o.style?.height == "number" ? o.style.height : void 0, i = b.get(o.id);
248
+ return {
249
+ w: h ?? i.w,
250
+ h: g ?? i.h
251
+ };
252
+ };
253
+ for (const o of _) {
244
254
  const h = [];
245
- for (const a of f)
246
- a.parentId === e.id && h.push(a);
255
+ for (const d of m)
256
+ d.parentId === o.id && h.push(d);
247
257
  if (!h.length) {
248
- const a = typeof e.style?.width == "number" ? e.style.width : 2 * N, A = typeof e.style?.height == "number" ? e.style.height : 2 * N;
249
- e.style = {
250
- ...e.style,
251
- width: a,
252
- height: A
253
- };
258
+ const d = E(o) ?? (typeof o.style?.width == "number" ? o.style.width : 2 * N), u = y(o) ?? (typeof o.style?.height == "number" ? o.style.height : 2 * N);
259
+ B.set(o.id, {
260
+ width: d,
261
+ height: u
262
+ }), j.set(o.id, {
263
+ width: d,
264
+ height: u
265
+ }), b.set(o.id, {
266
+ w: d,
267
+ h: u
268
+ });
254
269
  continue;
255
270
  }
256
- const p = (a) => {
257
- const A = typeof a.style?.width == "number" ? a.style.width : void 0, j = typeof a.style?.height == "number" ? a.style.height : void 0, X = g.get(a.id);
258
- return {
259
- w: A ?? X.w,
260
- h: j ?? X.h
261
- };
262
- };
263
- let d = Number.POSITIVE_INFINITY, I = Number.POSITIVE_INFINITY, t = Number.NEGATIVE_INFINITY, s = Number.NEGATIVE_INFINITY;
264
- for (const a of h) {
265
- const A = p(a);
266
- a.position.x < d && (d = a.position.x), a.position.y < I && (I = a.position.y), a.position.x + A.w > t && (t = a.position.x + A.w), a.position.y + A.h > s && (s = a.position.y + A.h);
267
- }
268
- const n = d - N, i = I - N;
269
- if (Math.abs(n) > z || Math.abs(i) > z) {
270
- for (const a of h)
271
- a.position.x -= n, a.position.y -= i;
272
- F = !0;
271
+ let g = Number.POSITIVE_INFINITY, i = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY, t = Number.NEGATIVE_INFINITY;
272
+ for (const d of h) {
273
+ const u = q(d), P = C.get(d.id);
274
+ P.x < g && (g = P.x), P.y < i && (i = P.y), P.x + u.w > M && (M = P.x + u.w), P.y + u.h > t && (t = P.y + u.h);
273
275
  }
274
- const r = t - d + 2 * N, u = s - I + 2 * N, S = typeof e.style?.width == "number" ? e.style.width : x(e).w, k = typeof e.style?.height == "number" ? e.style.height : x(e).h;
275
- (Math.abs(r - S) > z || Math.abs(u - k) > z) && (F = !0), e.measured = {
276
- width: r,
277
- height: u
278
- }, e.style = {
279
- ...e.style,
280
- width: r,
281
- height: u
282
- }, g.set(e.id, {
283
- w: r,
284
- h: u
276
+ const n = g - N, r = i - N;
277
+ if (Math.abs(n) > x || Math.abs(r) > x)
278
+ for (const d of h) {
279
+ const u = C.get(d.id), P = u.x - n, U = u.y - r;
280
+ (Math.abs(u.x - P) > x || Math.abs(u.y - U) > x) && (C.set(d.id, {
281
+ x: P,
282
+ y: U
283
+ }), A = !0);
284
+ }
285
+ const s = M - g + 2 * N, c = t - i + 2 * N, D = E(o) ?? (typeof o.style?.width == "number" ? o.style.width : I(o).w), v = y(o) ?? (typeof o.style?.height == "number" ? o.style.height : I(o).h);
286
+ (Math.abs(s - D) > x || Math.abs(c - v) > x) && (A = !0), B.set(o.id, {
287
+ width: s,
288
+ height: c
289
+ }), j.set(o.id, {
290
+ width: s,
291
+ height: c
292
+ }), b.set(o.id, {
293
+ w: s,
294
+ h: c
285
295
  });
286
296
  }
287
- B.clear();
288
- for (const e of f) x(e);
289
- const R = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
290
- for (const e of f) {
291
- const h = x(e), p = o.get(e.id);
292
- O.set(e.id, p), R.set(e.id, {
293
- x: p.x - h.w / 2,
294
- y: p.y - h.h / 2
297
+ f.clear();
298
+ for (const o of m) I(o);
299
+ const S = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
300
+ for (const o of m) {
301
+ const h = I(o), g = e.get(o.id);
302
+ L.set(o.id, g), S.set(o.id, {
303
+ x: g.x - h.w / 2,
304
+ y: g.y - h.h / 2
295
305
  });
296
306
  }
297
- for (const e of f) {
298
- const h = [], p = E.get(e.id) ?? [];
299
- for (const i of p)
300
- i.type === "group" && h.push(i);
307
+ for (const o of m) {
308
+ const h = [], g = X.get(o.id) ?? [];
309
+ for (const s of g) s.type === "group" && h.push(s);
301
310
  if (!h.length) continue;
302
- const d = h.slice().sort((i, r) => (+i.data?.paramIndex || 0) - (+r.data?.paramIndex || 0)), I = [];
303
- for (const i of d) {
304
- const r = D.get(i.id), u = typeof r.style?.width == "number" ? r.style.width : void 0;
305
- I.push(u ?? x(r).w);
311
+ const i = h.slice().sort((s, c) => (+s.data?.paramIndex || 0) - (+c.data?.paramIndex || 0)), M = [];
312
+ for (const s of i) {
313
+ const c = E(s) ?? (typeof s.style?.width == "number" ? s.style.width : void 0);
314
+ M.push(c ?? I(s).w);
306
315
  }
307
316
  let t = 0;
308
- for (const i of I) t += i;
309
- t += Y * (d.length - 1);
310
- let n = O.get(e.id).x - t / 2;
311
- for (let i = 0; i < d.length; i++) {
312
- const r = d[i], u = D.get(r.id), S = u.parentId ? R.get(u.parentId) : {
317
+ for (const s of M) t += s;
318
+ t += Y * (i.length - 1);
319
+ let r = L.get(o.id).x - t / 2;
320
+ for (let s = 0; s < i.length; s++) {
321
+ const c = i[s], D = c.parentId ? S.get(c.parentId) : {
313
322
  x: 0
314
- };
315
- u.position.x = n - S.x, n += I[i] + Y;
323
+ }, v = C.get(c.id), d = r - D.x, u = v.y;
324
+ (Math.abs(v.x - d) > x || Math.abs(v.y - u) > x) && (C.set(c.id, {
325
+ x: d,
326
+ y: u
327
+ }), A = !0), r += M[s] + Y;
316
328
  }
317
329
  }
318
- } while (F && _ < 5);
330
+ } while (A && G < 5);
319
331
  return {
320
- nodes: f
332
+ nodes: m.map((e) => {
333
+ const a = C.get(e.id), l = j.get(e.id), p = B.get(e.id);
334
+ let T = !1;
335
+ if (a) {
336
+ const k = e.position ?? {
337
+ x: 0,
338
+ y: 0
339
+ };
340
+ (Math.abs(k.x - a.x) > x || Math.abs(k.y - a.y) > x) && (T = !0);
341
+ }
342
+ if (l) {
343
+ const k = e.measured ?? {
344
+ width: 0,
345
+ height: 0
346
+ };
347
+ (Math.abs(k.width - l.width) > x || Math.abs(k.height - l.height) > x) && (T = !0);
348
+ }
349
+ if (p) {
350
+ const k = typeof e.style?.width == "number" ? e.style.width : void 0, V = typeof e.style?.height == "number" ? e.style.height : void 0;
351
+ (k !== p.width || V !== p.height) && (T = !0);
352
+ }
353
+ return T ? {
354
+ ...e,
355
+ position: a ?? e.position,
356
+ measured: l ? {
357
+ ...e.measured,
358
+ width: l.width,
359
+ height: l.height
360
+ } : e.measured,
361
+ style: p ? {
362
+ ...e.style,
363
+ width: p.width,
364
+ height: p.height
365
+ } : e.style
366
+ } : e;
367
+ })
321
368
  };
322
- }, q = G.cache(at), It = (y) => {
323
- const C = U.c(2);
324
- let m;
325
- return C[0] !== y ? (m = /* @__PURE__ */ K($, { children: /* @__PURE__ */ K(dt, { ...y }) }), C[0] = y, C[1] = m) : m = C[1], m;
326
- }, dt = (y) => {
327
- const [C, m] = J(y.nodes), [Y, N, z] = Q(y.edges), _ = Z(), F = G.useCallback((M) => {
369
+ }, $ = W.cache(xt), Gt = (m) => {
370
+ const F = Z.c(2);
371
+ let w;
372
+ return F[0] !== m ? (w = /* @__PURE__ */ z(et, { children: /* @__PURE__ */ z(It, { ...m }) }), F[0] = m, F[1] = w) : w = F[1], w;
373
+ }, It = (m) => {
374
+ const {
375
+ flowId: F,
376
+ namespaceId: w,
377
+ projectId: Y
378
+ } = m, N = W.useMemo(() => ({
379
+ default: ct,
380
+ group: dt,
381
+ suggestion: ht,
382
+ trigger: lt
383
+ }), []), x = W.useMemo(() => ({
384
+ default: gt
385
+ }), []), G = ut(F, w, Y), A = ft(F, w, Y), [K, H] = ot([]), [R, O, X] = st([]), C = nt(), B = W.useCallback((b) => {
328
386
  requestAnimationFrame(() => {
329
- M.forEach((E) => _(E));
387
+ b.forEach((E) => C(E));
330
388
  });
331
- }, [_]), f = {
332
- default: ot,
333
- group: st,
334
- suggestion: nt,
335
- trigger: it,
336
- ...y.nodeTypes
337
- }, L = {
338
- default: rt,
339
- ...y.edgeTypes
340
- }, W = G.useCallback((M) => {
341
- const E = Array.from(new Set(M.filter((g) => g.type === "dimensions" || g.type === "position").map((g) => g.id))), w = /* @__PURE__ */ new Map();
342
- M.filter((g) => g.type === "dimensions").forEach((g) => w.set(g.id, g.dimensions)), m((g) => {
343
- const B = g.map((o) => {
344
- if (!w.has(o.id)) return o;
345
- const c = w.get(o.id) || {};
389
+ }, [C]), j = W.useCallback((b) => {
390
+ const E = Array.from(new Set(b.filter((f) => f.type === "dimensions" || f.type === "position").map((f) => f.id))), y = /* @__PURE__ */ new Map();
391
+ b.filter((f) => f.type === "dimensions").forEach((f) => y.set(f.id, f.dimensions)), H((f) => {
392
+ const I = f.map((e) => {
393
+ if (!y.has(e.id)) return e;
394
+ const a = y.get(e.id) || {};
346
395
  return {
347
- ...o,
396
+ ...e,
348
397
  measured: {
349
- width: c.width ?? o.measured?.width ?? 0,
350
- height: c.height ?? o.measured?.height ?? 0
398
+ width: a.width ?? e.measured?.width ?? 0,
399
+ height: a.height ?? e.measured?.height ?? 0
351
400
  }
352
401
  };
353
402
  });
354
- return q(B, new Set(E)).nodes;
355
- }), F(E);
356
- }, [F]);
357
- return G.useEffect(() => {
358
- const M = y.nodes.map((w) => {
359
- const g = w.measured ? [] : document.querySelectorAll("[data-id='" + w.id + "']");
403
+ return $(I, new Set(E)).nodes;
404
+ }), B(E);
405
+ }, [B]);
406
+ return W.useEffect(() => {
407
+ const b = G.map((y) => {
408
+ const f = y.measured ? [] : document.querySelectorAll("[data-id='" + y.id + "']");
360
409
  return {
361
- ...w,
410
+ ...y,
362
411
  measured: {
363
- width: w.measured?.width ?? g[0]?.clientWidth ?? 0,
364
- height: w.measured?.height ?? g[0]?.clientHeight ?? 0
412
+ width: y.measured?.width ?? f[0]?.clientWidth ?? 0,
413
+ height: y.measured?.height ?? f[0]?.clientHeight ?? 0
365
414
  }
366
415
  };
367
- }), E = q(M, new Set(M.map((w) => w.id)));
368
- m(E.nodes), N(y.edges), F(E.nodes.map((w) => w.id));
369
- }, [y.nodes, y.edges, F]), /* @__PURE__ */ K(tt, { onlyRenderVisibleElements: !0, panOnScroll: !1, nodeTypes: f, edgeTypes: L, onInit: (M) => M.fitView(), onNodesChange: W, onEdgesChange: z, ...et("flow", y), nodes: C, edges: Y });
416
+ }), E = $(b, new Set(b.map((y) => y.id)));
417
+ H(E.nodes), O(A), B(E.nodes.map((y) => y.id));
418
+ }, [G, A, B]), /* @__PURE__ */ Q(it, { onlyRenderVisibleElements: !0, panOnScroll: !1, nodeTypes: N, edgeTypes: x, onInit: (b) => b.fitView(), onNodesChange: j, onEdgesChange: X, ...tt("flow", m), nodes: K, edges: R, children: [
419
+ /* @__PURE__ */ z(rt, { variant: at.Dots, color: "rgba(255,255,255, .05)", gap: 8, size: 2 }),
420
+ /* @__PURE__ */ z(pt, {}),
421
+ /* @__PURE__ */ z(wt, {}),
422
+ /* @__PURE__ */ z(yt, { flowId: "gid://sagittarius/Flow/1" }),
423
+ /* @__PURE__ */ z(mt, { flowId: F })
424
+ ] });
370
425
  };
371
426
  export {
372
- It as DFlow
427
+ Gt as DFlow
373
428
  };