@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
@@ -0,0 +1,55 @@
1
+ import { jsx as o, jsxs as y } from "react/jsx-runtime";
2
+ import { c as b } from "../../_virtual/compiler-runtime.js";
3
+ import { DialogClose as x, DialogPortal as v, DialogContent as j, Dialog as F } from "../dialog/Dialog.js";
4
+ import { Text as g } from "../text/Text.js";
5
+ import { Badge as R } from "../badge/Badge.js";
6
+ import { Flex as S } from "../flex/Flex.js";
7
+ import { Button as w } from "../button/Button.js";
8
+ import B from "react";
9
+ const Y = (t) => {
10
+ const e = b.c(18), {
11
+ open: _
12
+ } = t, [s, C] = B.useState(_);
13
+ let a;
14
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = (u) => C(u), e[0] = a) : a = e[0];
15
+ const d = t.contextData.type == "item" ? "Remove flow" : "Remove folder", h = t.contextData.type == "item" ? "Are you sure you want to remove flow" : "Are you sure you want to remove folder";
16
+ let c;
17
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (c = {
18
+ color: "inherit"
19
+ }, e[1] = c) : c = e[1];
20
+ let l;
21
+ e[2] !== t.contextData.name ? (l = /* @__PURE__ */ o(R, { color: "info", children: /* @__PURE__ */ o(g, { size: "md", style: c, children: t.contextData.name }) }), e[2] = t.contextData.name, e[3] = l) : l = e[3];
22
+ const D = t.contextData.type == "folder" ? ", all flows and sub-folders inside " : "";
23
+ let n;
24
+ e[4] !== h || e[5] !== l || e[6] !== D ? (n = /* @__PURE__ */ y(g, { size: "md", hierarchy: "secondary", children: [
25
+ h,
26
+ " ",
27
+ " ",
28
+ l,
29
+ " ",
30
+ " ",
31
+ D,
32
+ "from the this project?"
33
+ ] }), e[4] = h, e[5] = l, e[6] = D, e[7] = n) : n = e[7];
34
+ let m;
35
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ o(w, { color: "secondary", children: "No, go back!" }) }), e[8] = m) : m = e[8];
36
+ let i;
37
+ e[9] !== t ? (i = /* @__PURE__ */ y(S, { justify: "space-between", align: "center", children: [
38
+ m,
39
+ /* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ o(w, { color: "error", onClick: () => {
40
+ t.contextData.type === "item" ? t.onDelete?.(t.contextData.flow) : t.contextData.type === "folder" && t.contextData.flow.forEach((u) => {
41
+ t.onDelete?.(u);
42
+ });
43
+ }, children: "Yes, remove!" }) })
44
+ ] }), e[9] = t, e[10] = i) : i = e[10];
45
+ let r;
46
+ e[11] !== d || e[12] !== n || e[13] !== i ? (r = /* @__PURE__ */ o(v, { children: /* @__PURE__ */ y(j, { autoFocus: !0, showCloseButton: !0, title: d, children: [
47
+ n,
48
+ i
49
+ ] }) }), e[11] = d, e[12] = n, e[13] = i, e[14] = r) : r = e[14];
50
+ let f;
51
+ return e[15] !== s || e[16] !== r ? (f = /* @__PURE__ */ o(F, { open: s, onOpenChange: a, children: r }), e[15] = s, e[16] = r, e[17] = f) : f = e[17], f;
52
+ };
53
+ export {
54
+ Y as DFlowFolderDeleteDialog
55
+ };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { TextInputProps } from '../form';
3
+ export interface DFlowFolderItemPathInputProps extends TextInputProps {
4
+ }
5
+ export declare const DFlowFolderItemPathInput: React.FC<DFlowFolderItemPathInputProps>;
@@ -0,0 +1,50 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { c as l } from "../../_virtual/compiler-runtime.js";
3
+ import "react";
4
+ import "@radix-ui/react-checkbox";
5
+ import "merge-props";
6
+ import "@tabler/icons-react";
7
+ import '../../assets/components/form/Input.style.css';/* empty css */
8
+ import "../form/EmailInput.js";
9
+ import "../form/Input.js";
10
+ import "../form/InputSuggestion.js";
11
+ import "../form/NumberInput.js";
12
+ import "../form/PasswordInput.js";
13
+ import "@radix-ui/react-one-time-password-field";
14
+ import "@radix-ui/react-radio-group";
15
+ import "../form/SwitchInput.js";
16
+ import { TextInput as c } from "../form/TextInput.js";
17
+ import { Badge as h } from "../badge/Badge.js";
18
+ const R = (e) => {
19
+ const r = l.c(4);
20
+ let t;
21
+ r[0] !== e ? ({
22
+ ...t
23
+ } = e, r[0] = e, r[1] = t) : t = r[1];
24
+ const o = a;
25
+ let n;
26
+ return r[2] !== t ? (n = /* @__PURE__ */ p(c, { transformSyntax: o, ...t }), r[2] = t, r[3] = n) : n = r[3], n;
27
+ };
28
+ function f(e) {
29
+ const r = [];
30
+ let t = "";
31
+ return e.split("").forEach((o) => o === "/" ? (t && r.push(t), t = "", r.push("/")) : (t = t + o, t)), t && r.push(t), r;
32
+ }
33
+ function a(e, r) {
34
+ const o = f(e ?? "");
35
+ let n = 0;
36
+ return o.map((m, i) => {
37
+ const s = {
38
+ type: o.length - 1 !== i ? "block" : "text",
39
+ value: m,
40
+ start: n,
41
+ end: n + m.length,
42
+ visualLength: o.length - 1 !== i ? 1 : m.length,
43
+ content: o.length - 1 !== i ? /* @__PURE__ */ p(h, { color: m == "/" ? "warning" : "info", children: m }) : m
44
+ };
45
+ return n = n + m.length, [s];
46
+ }).flat();
47
+ }
48
+ export {
49
+ R as DFlowFolderItemPathInput
50
+ };
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
3
+ import { Flow } from '@code0-tech/sagittarius-graphql-types';
4
+ export interface DFlowFolderRenameDialogProps {
5
+ contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
6
+ open?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ onRename?: (flow: Flow, newName: string) => void;
9
+ }
10
+ export declare const DFlowFolderRenameDialog: React.FC<DFlowFolderRenameDialogProps>;
@@ -0,0 +1,55 @@
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { Dialog as f, DialogPortal as D, DialogContent as g, DialogClose as m } from "../dialog/Dialog.js";
4
+ import { DFlowFolderItemPathInput as x } from "./DFlowFolderItemPathInput.js";
5
+ import { Flex as w } from "../flex/Flex.js";
6
+ import { Button as l } from "../button/Button.js";
7
+ import "../../_virtual/compiler-runtime.js";
8
+ import "@radix-ui/react-checkbox";
9
+ import "merge-props";
10
+ import "@tabler/icons-react";
11
+ import '../../assets/components/form/Input.style.css';/* empty css */
12
+ import "../form/EmailInput.js";
13
+ import "../form/Input.js";
14
+ import "../form/InputSuggestion.js";
15
+ import "../form/NumberInput.js";
16
+ import "../form/PasswordInput.js";
17
+ import "@radix-ui/react-one-time-password-field";
18
+ import "@radix-ui/react-radio-group";
19
+ import "../form/SwitchInput.js";
20
+ import "../form/TextInput.js";
21
+ import { useForm as C } from "../form/useForm.js";
22
+ const G = (e) => {
23
+ const {
24
+ open: a
25
+ } = e, [c, h] = i.useState(a), u = i.useMemo(() => ({
26
+ path: e.contextData.name
27
+ }), []);
28
+ i.useEffect(() => {
29
+ h(a);
30
+ }, [a]);
31
+ const [s, d] = C({
32
+ initialValues: u,
33
+ validate: {
34
+ path: (o) => null
35
+ },
36
+ onSubmit: (o) => {
37
+ e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "folder" && e.contextData.flow.forEach((n) => {
38
+ const p = n.name?.replace(e.contextData.name, o.path) ?? n.name;
39
+ e.onRename?.(n, p);
40
+ });
41
+ }
42
+ });
43
+ return /* @__PURE__ */ t(f, { open: c, onOpenChange: (o) => {
44
+ e.onOpenChange?.(o);
45
+ }, children: /* @__PURE__ */ t(D, { children: /* @__PURE__ */ r(g, { autoFocus: !0, showCloseButton: !0, title: e.contextData.type == "item" ? "Rename flow" : "Rename folder", children: [
46
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(x, { description: "You can choose a new name here and only use alphanumeric names.", title: e.contextData.type == "item" ? "Name of the flow" : "Name of the folder", ...s.getInputProps("path") }) }),
47
+ /* @__PURE__ */ r(w, { justify: "space-between", align: "center", children: [
48
+ /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "secondary", children: "No, go back!" }) }),
49
+ /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "success", onClick: d, children: "Yes, save!" }) })
50
+ ] })
51
+ ] }) }) });
52
+ };
53
+ export {
54
+ G as DFlowFolderRenameDialog
55
+ };
@@ -0,0 +1,4 @@
1
+ export * from './DFlowFolder';
2
+ export * from './DFlowFolderDeleteDialog';
3
+ export * from './DFlowFolderCreateDialog';
4
+ export * from './DFlowFolderRenameDialog';
@@ -0,0 +1,12 @@
1
+ import { DFlowFolder as l, DFlowFolderGroup as r, DFlowFolderItem as F } from "./DFlowFolder.js";
2
+ import { DFlowFolderDeleteDialog as t } from "./DFlowFolderDeleteDialog.js";
3
+ import { DFlowFolderCreateDialog as m } from "./DFlowFolderCreateDialog.js";
4
+ import { DFlowFolderRenameDialog as a } from "./DFlowFolderRenameDialog.js";
5
+ export {
6
+ l as DFlowFolder,
7
+ m as DFlowFolderCreateDialog,
8
+ t as DFlowFolderDeleteDialog,
9
+ r as DFlowFolderGroup,
10
+ F as DFlowFolderItem,
11
+ a as DFlowFolderRenameDialog
12
+ };
@@ -1,4 +1,4 @@
1
1
  import { FunctionDefinitionView } from './DFlowFunction.view';
2
- import { DFlowDataTypeReactiveService } from '../data-type/DFlowDataType.service';
2
+ import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
3
3
  import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
4
4
  export declare const useInputType: (type: DataTypeIdentifier, func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
@@ -0,0 +1,8 @@
1
+ import { resolveGenericKeys as o, replaceGenericKeysInType as s } from "../../utils/generics.js";
2
+ const y = (e, r, n, p) => {
3
+ const c = o(r, n, p);
4
+ return s(e, c);
5
+ };
6
+ export {
7
+ y as useInputType
8
+ };
@@ -1,4 +1,4 @@
1
1
  import { FunctionDefinitionView } from './DFlowFunction.view';
2
- import { DFlowDataTypeReactiveService } from '../data-type/DFlowDataType.service';
2
+ import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
3
3
  import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
4
- export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService?: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
4
+ export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
@@ -0,0 +1,9 @@
1
+ import { resolveGenericKeys as t, replaceGenericKeysInType as y } from "../../utils/generics.js";
2
+ const s = (e, r, n) => {
3
+ if (!e?.returnType) return null;
4
+ const p = t(e, r, n);
5
+ return y(e.returnType, p);
6
+ };
7
+ export {
8
+ s as useReturnType
9
+ };
@@ -0,0 +1,11 @@
1
+ import { ReactiveArrayService } from '../../utils';
2
+ import { FunctionDefinitionView } from './DFlowFunction.view';
3
+ import { FunctionDefinition, Namespace, NamespaceProject, Runtime } from '@code0-tech/sagittarius-graphql-types';
4
+ export type DFlowFunctionDependencies = {
5
+ namespaceId: Namespace['id'];
6
+ projectId: NamespaceProject['id'];
7
+ runtimeId: Runtime['id'];
8
+ };
9
+ export declare abstract class DFlowFunctionReactiveService extends ReactiveArrayService<FunctionDefinitionView, DFlowFunctionDependencies> {
10
+ getById(id: FunctionDefinition['id'], dependencies?: DFlowFunctionDependencies): FunctionDefinitionView | undefined;
11
+ }
@@ -0,0 +1,12 @@
1
+ import "../../utils/contextStore.js";
2
+ import "react";
3
+ import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
4
+ import "merge-props";
5
+ class p extends t {
6
+ getById(e, i) {
7
+ return this.values(i).find((r) => r.id === e);
8
+ }
9
+ }
10
+ export {
11
+ p as DFlowFunctionReactiveService
12
+ };
@@ -1,17 +1,25 @@
1
- import { DataTypeIdentifier, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars, TranslationConnection } from '@code0-tech/sagittarius-graphql-types';
1
+ import { DataTypeIdentifier, DataTypeIdentifierConnection, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
2
2
  export declare class FunctionDefinitionView {
3
+ /** Name of the function */
4
+ private readonly _aliases?;
3
5
  /** Time when this FunctionDefinition was created */
4
6
  private readonly _createdAt?;
7
+ /** All data type identifiers used within this Node Function */
8
+ private readonly _dataTypeIdentifiers?;
5
9
  /** Deprecation message of the function */
6
10
  private readonly _deprecationMessages?;
7
11
  /** Description of the function */
8
12
  private readonly _descriptions?;
13
+ /** Display message of the function */
14
+ private readonly _displayMessages?;
9
15
  /** Documentation of the function */
10
16
  private readonly _documentations?;
11
17
  /** Generic keys of the function */
12
18
  private readonly _genericKeys?;
13
19
  /** Global ID of this FunctionDefinition */
14
20
  private readonly _id?;
21
+ /** Identifier of the function */
22
+ private readonly _identifier?;
15
23
  /** Name of the function */
16
24
  private readonly _names?;
17
25
  /** Parameters of the function */
@@ -25,13 +33,17 @@ export declare class FunctionDefinitionView {
25
33
  /** Time when this FunctionDefinition was last updated */
26
34
  private readonly _updatedAt?;
27
35
  constructor(object: FunctionDefinition);
36
+ get aliases(): Maybe<Array<Translation>> | undefined;
28
37
  get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
29
- get deprecationMessages(): Maybe<TranslationConnection> | undefined;
30
- get descriptions(): Maybe<TranslationConnection> | undefined;
31
- get documentations(): Maybe<TranslationConnection> | undefined;
38
+ get dataTypeIdentifiers(): Maybe<DataTypeIdentifierConnection> | undefined;
39
+ get deprecationMessages(): Maybe<Array<Translation>> | undefined;
40
+ get descriptions(): Maybe<Array<Translation>> | undefined;
41
+ get displayMessages(): Maybe<Array<Translation>> | undefined;
42
+ get documentations(): Maybe<Array<Translation>> | undefined;
32
43
  get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
33
44
  get id(): Maybe<Scalars["FunctionDefinitionID"]["output"]> | undefined;
34
- get names(): Maybe<TranslationConnection> | undefined;
45
+ get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
46
+ get names(): Maybe<Array<Translation>> | undefined;
35
47
  get parameterDefinitions(): Maybe<ParameterDefinitionView[]> | undefined;
36
48
  get returnType(): Maybe<DataTypeIdentifier> | undefined;
37
49
  get runtimeFunctionDefinition(): Maybe<RuntimeFunctionDefinition> | undefined;
@@ -50,17 +62,20 @@ export declare class ParameterDefinitionView {
50
62
  private readonly _documentations?;
51
63
  /** Global ID of this ParameterDefinition */
52
64
  private readonly _id?;
65
+ /** Identifier of the parameter */
66
+ private readonly _identifier?;
53
67
  /** Name of the parameter */
54
68
  private readonly _names?;
55
69
  /** Time when this ParameterDefinition was last updated */
56
70
  private readonly _updatedAt?;
57
- constructor(object: ParameterDefinition);
71
+ constructor(object: ParameterDefinition, dataTypeIdentifiers: DataTypeIdentifier[]);
58
72
  get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
59
73
  get dataTypeIdentifier(): Maybe<DataTypeIdentifier> | undefined;
60
- get descriptions(): Maybe<TranslationConnection> | undefined;
61
- get documentations(): Maybe<TranslationConnection> | undefined;
74
+ get descriptions(): Maybe<Array<Translation>> | undefined;
75
+ get documentations(): Maybe<Array<Translation>> | undefined;
62
76
  get id(): Maybe<Scalars["ParameterDefinitionID"]["output"]> | undefined;
63
- get names(): Maybe<TranslationConnection> | undefined;
77
+ get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
78
+ get names(): Maybe<Array<Translation>> | undefined;
64
79
  get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
65
80
  json(): ParameterDefinition;
66
81
  }
@@ -0,0 +1,139 @@
1
+ import { resolveDataTypeIdentifiers as d, attachDataTypeIdentifiers as n } from "../d-flow/DFlow.util.js";
2
+ function t(e, i, s) {
3
+ return (i = a(i)) in e ? Object.defineProperty(e, i, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = s, e;
4
+ }
5
+ function a(e) {
6
+ var i = o(e, "string");
7
+ return typeof i == "symbol" ? i : i + "";
8
+ }
9
+ function o(e, i) {
10
+ if (typeof e != "object" || !e) return e;
11
+ var s = e[Symbol.toPrimitive];
12
+ if (s !== void 0) {
13
+ var r = s.call(e, i);
14
+ if (typeof r != "object") return r;
15
+ throw new TypeError("@@toPrimitive must return a primitive value.");
16
+ }
17
+ return (i === "string" ? String : Number)(e);
18
+ }
19
+ class u {
20
+ constructor(i) {
21
+ t(this, "_aliases", void 0), t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifiers", void 0), t(this, "_deprecationMessages", void 0), t(this, "_descriptions", void 0), t(this, "_displayMessages", void 0), t(this, "_documentations", void 0), t(this, "_genericKeys", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_parameterDefinitions", void 0), t(this, "_returnType", void 0), t(this, "_runtimeFunctionDefinition", void 0), t(this, "_throwsError", void 0), t(this, "_updatedAt", void 0);
22
+ const s = d(i.dataTypeIdentifiers?.nodes ?? []);
23
+ this._aliases = i.aliases, this._createdAt = i.createdAt, this._dataTypeIdentifiers = i.dataTypeIdentifiers, this._deprecationMessages = i.deprecationMessages, this._descriptions = i.descriptions, this._displayMessages = i.displayMessages, this._documentations = i.documentations, this._genericKeys = i.genericKeys, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._parameterDefinitions = i.parameterDefinitions?.nodes?.map((r) => new h(r, s)) ?? void 0, this._returnType = n(s, i.returnType), this._runtimeFunctionDefinition = i.runtimeFunctionDefinition, this._throwsError = i.throwsError, this._updatedAt = i.updatedAt;
24
+ }
25
+ get aliases() {
26
+ return this._aliases;
27
+ }
28
+ get createdAt() {
29
+ return this._createdAt;
30
+ }
31
+ get dataTypeIdentifiers() {
32
+ return this._dataTypeIdentifiers;
33
+ }
34
+ get deprecationMessages() {
35
+ return this._deprecationMessages;
36
+ }
37
+ get descriptions() {
38
+ return this._descriptions;
39
+ }
40
+ get displayMessages() {
41
+ return this._displayMessages;
42
+ }
43
+ get documentations() {
44
+ return this._documentations;
45
+ }
46
+ get genericKeys() {
47
+ return this._genericKeys;
48
+ }
49
+ get id() {
50
+ return this._id;
51
+ }
52
+ get identifier() {
53
+ return this._identifier;
54
+ }
55
+ get names() {
56
+ return this._names;
57
+ }
58
+ get parameterDefinitions() {
59
+ return this._parameterDefinitions;
60
+ }
61
+ get returnType() {
62
+ return this._returnType;
63
+ }
64
+ get runtimeFunctionDefinition() {
65
+ return this._runtimeFunctionDefinition;
66
+ }
67
+ get throwsError() {
68
+ return this._throwsError;
69
+ }
70
+ get updatedAt() {
71
+ return this._updatedAt;
72
+ }
73
+ json() {
74
+ return {
75
+ aliases: this._aliases,
76
+ createdAt: this._createdAt,
77
+ deprecationMessages: this._deprecationMessages,
78
+ displayMessages: this._displayMessages,
79
+ descriptions: this._descriptions,
80
+ documentations: this._documentations,
81
+ genericKeys: this._genericKeys,
82
+ id: this._id,
83
+ identifier: this._identifier,
84
+ names: this._names,
85
+ parameterDefinitions: this._parameterDefinitions ? {
86
+ nodes: this._parameterDefinitions.map((i) => i.json())
87
+ } : void 0,
88
+ returnType: this._returnType,
89
+ runtimeFunctionDefinition: this._runtimeFunctionDefinition,
90
+ throwsError: this._throwsError,
91
+ updatedAt: this._updatedAt,
92
+ dataTypeIdentifiers: this._dataTypeIdentifiers
93
+ };
94
+ }
95
+ }
96
+ class h {
97
+ constructor(i, s) {
98
+ t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifier", void 0), t(this, "_descriptions", void 0), t(this, "_documentations", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_updatedAt", void 0), this._createdAt = i.createdAt, this._dataTypeIdentifier = n(s, i.dataTypeIdentifier), this._descriptions = i.descriptions, this._documentations = i.documentations, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._updatedAt = i.updatedAt;
99
+ }
100
+ get createdAt() {
101
+ return this._createdAt;
102
+ }
103
+ get dataTypeIdentifier() {
104
+ return this._dataTypeIdentifier;
105
+ }
106
+ get descriptions() {
107
+ return this._descriptions;
108
+ }
109
+ get documentations() {
110
+ return this._documentations;
111
+ }
112
+ get id() {
113
+ return this._id;
114
+ }
115
+ get identifier() {
116
+ return this._identifier;
117
+ }
118
+ get names() {
119
+ return this._names;
120
+ }
121
+ get updatedAt() {
122
+ return this._updatedAt;
123
+ }
124
+ json() {
125
+ return {
126
+ createdAt: this._createdAt,
127
+ dataTypeIdentifier: this._dataTypeIdentifier,
128
+ descriptions: this._descriptions,
129
+ documentations: this._documentations,
130
+ id: this._id,
131
+ names: this._names,
132
+ updatedAt: this._updatedAt
133
+ };
134
+ }
135
+ }
136
+ export {
137
+ u as FunctionDefinitionView,
138
+ h as ParameterDefinitionView
139
+ };
@@ -1,12 +1,12 @@
1
- import { Code0Component } from '../../../utils/types';
1
+ import { Code0Component } from '../../utils';
2
2
  import { Node, NodeProps } from '@xyflow/react';
3
- import { NodeFunctionView } from '../DFlow.view';
4
3
  import { default as React } from 'react';
5
- import { Scalars } from '@code0-tech/sagittarius-graphql-types';
4
+ import { NodeFunction, Scalars } from '@code0-tech/sagittarius-graphql-types';
6
5
  export interface DFlowFunctionDefaultCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
7
- instance: NodeFunctionView;
6
+ nodeId: NodeFunction['id'];
8
7
  flowId: Scalars["FlowID"]["output"];
9
8
  isParameter: boolean;
9
+ linkingId?: string;
10
10
  depth: number;
11
11
  scope: number[];
12
12
  index: number;
@@ -0,0 +1,117 @@
1
+ import { jsxs as m, jsx as t, Fragment as E } from "react/jsx-runtime";
2
+ import { useService as v, useStore as w } from "../../utils/contextStore.js";
3
+ import { underlineBySeverity as H } from "../../utils/inspection.js";
4
+ import c, { memo as X } from "react";
5
+ import "merge-props";
6
+ import { useStore as h, useReactFlow as Y, Handle as g, Position as f } from "@xyflow/react";
7
+ import { Card as q } from "../card/Card.js";
8
+ import '../../assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css';/* empty css */
9
+ import { Flex as G } from "../flex/Flex.js";
10
+ import { IconNote as F } from "@tabler/icons-react";
11
+ import { Text as y } from "../text/Text.js";
12
+ import { DFlowFunctionReactiveService as D } from "./DFlowFunction.service.js";
13
+ import { useNodeValidation as J } from "../d-flow-validation/DNodeValidation.hook.js";
14
+ import "../d-flow/DFlow.js";
15
+ import { DFlowReactiveService as T } from "../d-flow/DFlow.service.js";
16
+ import { hashToColor as B } from "../d-flow/DFlow.util.js";
17
+ import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
18
+ import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
19
+ import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
20
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
21
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
22
+ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
23
+ import { FileTabsService as N } from "../file-tabs/FileTabs.service.js";
24
+ import { DFlowTabDefault as K } from "../d-flow-file/DFlowTabDefault.js";
25
+ import { Badge as O } from "../badge/Badge.js";
26
+ import { DFlowInputLiteralBadge as Q } from "../d-flow-input/DFlowInputLiteralBadge.js";
27
+ import { DFlowInputReferenceBadge as U } from "../d-flow-input/DFlowInputReferenceBadge.js";
28
+ import { DFlowInputNodeBadge as Z } from "../d-flow-input/DFlowInputNodeBadge.js";
29
+ const Be = X((d) => {
30
+ const {
31
+ data: e,
32
+ id: p,
33
+ width: C = 0,
34
+ height: M = 0
35
+ } = d, R = h((o) => o.width), z = h((o) => o.height), P = Y(), u = v(N), I = w(N), V = v(T), b = w(T), k = v(D), S = w(D), r = c.useMemo(() => V.getNodeById(e.flowId, e.nodeId), [b, e]), l = c.useMemo(() => r ? k.getById(r.functionDefinition?.id) : void 0, [S, e, r]), $ = J(e.nodeId, e.flowId), x = c.useMemo(() => I.find((o) => o.active)?.id, [I, u]), A = h((o) => {
36
+ const i = o.nodes.filter((n) => n.parentId === d.parentId);
37
+ let a;
38
+ return i.forEach((n) => {
39
+ const s = n.data?.index ?? 1 / 0, _ = a?.data?.index ?? 1 / 0;
40
+ (!a || s < _) && (a = n);
41
+ }), a;
42
+ }), L = (o) => o.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((i) => i.startsWith("${") ? [i.slice(2, -1)] : i.split(/(\s*,\s*)/).filter(Boolean).flatMap((a) => a.trim() === "," ? [","] : a.trim() ? [a.trim()] : [])), W = c.useMemo(() => L(l?.displayMessages[0]?.content ?? "").map((o) => {
43
+ const i = r?.parameters?.nodes?.find((s) => l?.parameterDefinitions?.find((j) => j.id == s?.id)?.identifier == o), a = $?.filter((s) => s.parameterId === i?.id), n = a?.length ? H[a[0].type] : {};
44
+ if (i) {
45
+ switch (i?.value?.__typename) {
46
+ case "LiteralValue":
47
+ return /* @__PURE__ */ t("div", { style: {
48
+ ...n,
49
+ display: "inline-block"
50
+ }, children: /* @__PURE__ */ t(Q, { value: i.value }) });
51
+ case "ReferenceValue":
52
+ return /* @__PURE__ */ t("div", { style: {
53
+ ...n,
54
+ display: "inline-block"
55
+ }, children: /* @__PURE__ */ t(U, { flowId: d.data.flowId, value: i.value }) });
56
+ case "NodeFunctionIdWrapper":
57
+ return /* @__PURE__ */ m("div", { style: {
58
+ ...n,
59
+ display: "inline-block"
60
+ }, children: [
61
+ /* @__PURE__ */ t(Z, { value: i.value, flowId: d.data.flowId }),
62
+ /* @__PURE__ */ t(g, { type: "target", position: f.Right, id: `param-${i?.id}`, isConnectable: !1, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, i?.id)
63
+ ] });
64
+ }
65
+ return /* @__PURE__ */ t(O, { style: {
66
+ verticalAlign: "middle"
67
+ }, border: !0, children: /* @__PURE__ */ t(y, { size: "sm", children: o }) });
68
+ }
69
+ return " " + String(o) + " ";
70
+ }), [b, S, e, l]);
71
+ return c.useEffect(() => {
72
+ r?.id && u.registerTab({
73
+ id: r.id,
74
+ active: !1,
75
+ closeable: !0,
76
+ children: /* @__PURE__ */ m(E, { children: [
77
+ /* @__PURE__ */ t(F, { color: B(e.nodeId), size: 12 }),
78
+ /* @__PURE__ */ t(y, { size: "sm", children: l?.names[0]?.content })
79
+ ] }),
80
+ content: /* @__PURE__ */ t(K, { flowId: d.data.flowId, node: r })
81
+ });
82
+ }, [r?.id, l, e]), /* @__PURE__ */ m(q, { "data-flow-refernce": p, paddingSize: "xs", py: e.isParameter ? "0.35" : void 0, outline: A.id === p, borderColor: x == r?.id ? "info" : void 0, className: x == r?.id ? "d-flow-viewport-default-card--active" : void 0, color: "primary", onClick: () => {
83
+ P.setViewport({
84
+ x: R / 2 + d.positionAbsoluteX * -1 - C / 2,
85
+ y: z / 2 + d.positionAbsoluteY * -1 - M / 2,
86
+ zoom: 1
87
+ }, {
88
+ duration: 250
89
+ }), u.activateTab(r?.id);
90
+ }, style: {
91
+ position: "relative"
92
+ }, children: [
93
+ /* @__PURE__ */ t(g, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
94
+ ...e.isParameter ? {
95
+ right: "2px"
96
+ } : {
97
+ top: "2px"
98
+ }
99
+ }, position: e.isParameter ? f.Right : f.Top }),
100
+ /* @__PURE__ */ t(g, { isConnectable: !1, type: "source", style: {
101
+ ...e.isParameter ? {
102
+ left: "2px"
103
+ } : {
104
+ bottom: "2px"
105
+ }
106
+ }, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: e.isParameter ? f.Left : f.Bottom }),
107
+ /* @__PURE__ */ m(G, { align: "center", style: {
108
+ gap: "0.7rem"
109
+ }, children: [
110
+ /* @__PURE__ */ t(F, { color: B(e.nodeId), size: 16 }),
111
+ /* @__PURE__ */ t(y, { size: "md", children: W })
112
+ ] })
113
+ ] }, p);
114
+ });
115
+ export {
116
+ Be as DFlowFunctionDefaultCard
117
+ };
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { Node, NodeProps } from '@xyflow/react';
3
+ import { Code0Component } from '../../utils';
4
+ export interface DFlowFunctionGroupCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
5
+ isParameter: boolean;
6
+ linkingId: string;
7
+ flowId: string;
8
+ depth: number;
9
+ scope: number[];
10
+ color?: string;
11
+ }
12
+ export type DFlowFunctionGroupCardProps = NodeProps<Node<DFlowFunctionGroupCardDataProps>>;
13
+ export declare const DFlowFunctionGroupCard: React.FC<DFlowFunctionGroupCardProps>;