@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.27

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 (282) hide show
  1. package/dist/assets/components/badge/Badge.style.css +1 -1
  2. package/dist/assets/components/button/Button.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  4. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  5. package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
  6. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  7. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  8. package/dist/assets/components/d-layout/DLayout.style.css +1 -1
  9. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  10. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
  11. package/dist/assets/components/form/Input.style.css +1 -1
  12. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
  13. package/dist/components/avatar/Avatar.js +7 -7
  14. package/dist/components/badge/Badge.d.ts +1 -1
  15. package/dist/components/badge/Badge.js +57 -17
  16. package/dist/components/breadcrumb/Breadcrumb.js +5 -5
  17. package/dist/components/button/Button.js +8 -8
  18. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  19. package/dist/components/context-menu/ContextMenu.js +191 -0
  20. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  21. package/dist/components/d-application/DApplication.service.js +9 -0
  22. package/dist/components/d-flow/DFlow.d.ts +5 -3
  23. package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
  24. package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
  25. package/dist/components/d-flow/DFlow.js +214 -199
  26. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
  27. package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
  28. package/dist/components/d-flow/DFlow.service.d.ts +12 -7
  29. package/dist/components/d-flow/DFlow.service.js +117 -7
  30. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  31. package/dist/components/d-flow/DFlowEdge.js +69 -0
  32. package/dist/components/d-flow/index.d.ts +1 -10
  33. package/dist/components/d-flow/index.js +9 -44
  34. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
  35. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
  36. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
  37. package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
  38. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  39. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
  40. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  41. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
  42. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  43. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  44. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  45. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  46. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  47. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
  48. package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
  49. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  50. package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
  51. package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
  52. package/dist/components/d-flow-file/DFlowTabs.js +128 -0
  53. package/dist/components/d-flow-file/index.d.ts +1 -0
  54. package/dist/components/d-flow-file/index.js +4 -0
  55. package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
  56. package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
  57. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  58. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
  59. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  60. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  61. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  62. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
  63. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
  64. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  65. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  66. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
  67. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  68. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  69. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
  70. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  71. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
  72. package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
  73. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  74. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
  75. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  76. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  77. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  78. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
  79. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  80. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
  81. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  82. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
  83. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  84. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  85. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  86. package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
  87. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  88. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  89. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  90. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  91. package/dist/components/d-flow-panel/index.d.ts +5 -0
  92. package/dist/components/d-flow-panel/index.js +12 -0
  93. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
  94. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
  95. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  96. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  97. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
  98. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  99. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
  100. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  101. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  102. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  103. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  104. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  105. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  106. package/dist/components/d-flow-suggestion/index.js +4 -0
  107. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
  108. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  109. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
  110. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
  111. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  112. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  113. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  114. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  115. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  116. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  117. package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
  118. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  119. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  120. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  121. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  122. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  123. package/dist/components/d-organization/DOrganizationList.js +7 -7
  124. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  125. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  126. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  127. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  128. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  129. package/dist/components/d-resizable/DResizable.js +18 -17
  130. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  131. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  132. package/dist/components/d-user/DUser.session.hook.js +2 -2
  133. package/dist/components/d-user/DUserContent.js +13 -13
  134. package/dist/components/d-user/DUserInput.js +9 -9
  135. package/dist/components/d-user/DUserList.js +9 -9
  136. package/dist/components/file-tabs/FileTabs.js +2 -2
  137. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  138. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  139. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  140. package/dist/components/form/CheckboxInput.js +4 -4
  141. package/dist/components/form/EmailInput.js +12 -12
  142. package/dist/components/form/Input.js +220 -206
  143. package/dist/components/form/Input.selection.hook.js +9 -9
  144. package/dist/components/form/Input.syntax.hook.js +7 -7
  145. package/dist/components/form/NumberInput.js +9 -9
  146. package/dist/components/form/PasswordInput.js +6 -6
  147. package/dist/components/form/SwitchInput.js +7 -7
  148. package/dist/components/form/TextInput.js +10 -10
  149. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  150. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  151. package/dist/index.d.ts +8 -0
  152. package/dist/index.js +117 -117
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  155. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  157. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  158. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  159. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  160. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  161. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  162. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  163. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  164. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  165. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  166. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  167. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  168. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  169. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  170. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  171. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  172. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  173. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  174. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  175. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  176. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  177. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  178. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  179. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  180. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  181. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  182. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  183. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  184. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  192. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  193. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  194. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  195. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  196. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  197. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  198. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  199. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  200. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  201. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  202. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  203. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  204. package/dist/utils/generics.d.ts +5 -6
  205. package/dist/utils/generics.js +2 -2
  206. package/dist/utils/objectStore.js +15 -15
  207. package/dist/utils/reactiveArrayService.js +5 -5
  208. package/package.json +7 -4
  209. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  210. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  211. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  212. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  213. package/dist/components/d-flow/DFlow.view.js +0 -248
  214. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  215. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  216. package/dist/components/d-flow/control/index.d.ts +0 -1
  217. package/dist/components/d-flow/control/index.js +0 -4
  218. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  219. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  220. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  221. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  223. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  224. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  225. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  226. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  227. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  228. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  229. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  230. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  231. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  232. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  233. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  234. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  235. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  236. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  237. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  238. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  239. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  240. package/dist/components/d-flow/minimap/index.js +0 -4
  241. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  242. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  243. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  244. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  246. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  247. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  248. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  249. package/dist/components/d-flow/suggestion/index.js +0 -7
  250. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  251. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  252. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  253. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  254. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  255. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  256. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  257. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  258. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  259. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  260. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  261. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  262. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  263. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  271. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  272. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  273. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  274. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  275. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  276. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  277. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  278. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  279. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  280. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  281. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  282. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -1,139 +1,117 @@
1
- import { useService as F } from "../../utils/contextStore.js";
2
- import { DFlowReactiveService as A } from "./DFlow.service.js";
3
- import { NodeFunctionView as $ } from "./DFlow.view.js";
4
- import { DFlowFunctionReactiveService as M } from "./function/DFlowFunction.service.js";
5
- import { DFlowDataTypeReactiveService as E } from "./data-type/DFlowDataType.service.js";
6
- const R = /* @__PURE__ */ new Map([["std", "default"]]), K = (s, x) => {
7
- if (!x || s.size === 0) return "";
8
- const f = /[:._\-\/\s]+/, d = x.trim().toLowerCase();
9
- let t = null, i = -1 / 0;
10
- for (const [l, v] of s.entries()) {
11
- const n = l.trim().toLowerCase();
12
- if (d === n)
13
- return v;
14
- let a = 0;
15
- if (d.startsWith(n)) {
16
- a = 2e3 + n.length * 2;
17
- const u = d.charAt(n.length);
18
- (u === "" || f.test(u)) && (a += 200);
1
+ import { useService as b, useStore as B } from "../../utils/contextStore.js";
2
+ import w from "react";
3
+ import "merge-props";
4
+ import { DFlowReactiveService as M } from "./DFlow.service.js";
5
+ import { DFlowFunctionReactiveService as C } from "../d-flow-function/DFlowFunction.service.js";
6
+ import { DFlowDataTypeReactiveService as _ } from "../d-flow-data-type/DFlowDataType.service.js";
7
+ import { md5 as H } from "js-md5";
8
+ const J = /* @__PURE__ */ new Map([["std", "default"]]), V = (i, d) => {
9
+ if (!d || i.size === 0) return "";
10
+ const g = /[:._\-\/\s]+/, c = d.trim().toLowerCase();
11
+ let s = null, y = -1 / 0;
12
+ for (const [f, r] of i.entries()) {
13
+ const t = f.trim().toLowerCase();
14
+ if (c === t)
15
+ return r;
16
+ let o = 0;
17
+ if (c.startsWith(t)) {
18
+ o = 2e3 + t.length * 2;
19
+ const l = c.charAt(t.length);
20
+ (l === "" || g.test(l)) && (o += 200);
19
21
  } else {
20
- const u = Math.min(d.length, n.length);
21
- let r = 0;
22
- for (; r < u && d.charCodeAt(r) === n.charCodeAt(r); )
23
- r++;
24
- if (r > 0) {
25
- a = 1e3 + r;
26
- const h = d.charAt(r), I = n.charAt(r);
27
- (h === "" || f.test(h) || I === "" || f.test(I)) && (a += 50);
22
+ const l = Math.min(c.length, t.length);
23
+ let n = 0;
24
+ for (; n < l && c.charCodeAt(n) === t.charCodeAt(n); )
25
+ n++;
26
+ if (n > 0) {
27
+ o = 1e3 + n;
28
+ const h = c.charAt(n), I = t.charAt(n);
29
+ (h === "" || g.test(h) || I === "" || g.test(I)) && (o += 50);
28
30
  }
29
31
  }
30
- a > i ? (i = a, t = l) : (a === i && t !== null && l.length > t.length || a === i && t === null) && (t = l);
32
+ o > y ? (y = o, s = f) : (o === y && s !== null && f.length > s.length || o === y && s === null) && (s = f);
31
33
  }
32
- return t !== null ? s.get(t) : "";
33
- }, q = (s) => {
34
- const x = F(A), f = F(M), d = F(E), t = x.getById(s);
35
- if (!t) return [];
36
- const i = [];
37
- let l = 0;
38
- const v = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = (e, o = v) => (o.has(e) || o.set(e, f.getById(e)), o.get(e)), u = (e, o = n) => (o.has(e) || o.set(e, d.getDataType(e)), o.get(e));
39
- let r = 0;
40
- const h = () => ++r;
41
- let I = 0;
42
- i.push({
43
- id: `${t.id}`,
44
- type: "trigger",
45
- position: {
46
- x: 0,
47
- y: 0
48
- },
49
- draggable: !1,
50
- data: {
51
- instance: t,
52
- flowId: s
53
- }
54
- });
55
- const m = (e, o = !1, B, y = 0, D = [0], c, N = v, S = n) => {
56
- const p = `${e.id}-${l++}`, C = ++I;
57
- i.push({
58
- id: p,
59
- type: K(R, e.functionDefinition?.identifier),
34
+ return s !== null ? i.get(s) : "";
35
+ }, ee = (i) => {
36
+ const d = b(M), g = B(M), c = b(C), s = B(C), y = b(_), f = B(_), r = w.useMemo(() => d.getById(i), [i, g]);
37
+ return w.useMemo(() => {
38
+ if (!r) return [];
39
+ const t = [];
40
+ let o = 0;
41
+ const l = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), h = (e, a = l) => (a.has(e) || a.set(e, c.getById(e)), a.get(e)), I = (e, a = n) => (a.has(e) || a.set(e, y.getDataType(e)), a.get(e));
42
+ let k = 0;
43
+ const A = () => ++k;
44
+ let R = 0;
45
+ t.push({
46
+ id: `${r.id}`,
47
+ type: "trigger",
60
48
  position: {
61
49
  x: 0,
62
50
  y: 0
63
51
  },
64
52
  draggable: !1,
65
- parentId: c,
66
- extent: c ? "parent" : void 0,
67
53
  data: {
68
- instance: e,
69
- isParameter: o,
70
- flowId: s,
71
- linkingId: o ? B : void 0,
72
- scope: D,
73
- // scope is now a PATH (number[])
74
- depth: y,
75
- // structural depth (0 at root, +1 per group)
76
- index: C
77
- // global node level
78
- }
79
- }), !e.nextNodeId && !o && i.push({
80
- id: `${p}-suggestion`,
81
- type: "suggestion",
82
- position: {
83
- x: 0,
84
- y: 0
85
- },
86
- draggable: !1,
87
- extent: c ? "parent" : void 0,
88
- parentId: c,
89
- data: {
90
- flowId: s,
91
- parentFunction: e
54
+ instance: r,
55
+ flowId: i
92
56
  }
93
57
  });
94
- const k = a(e.functionDefinition?.id, N);
95
- e.parameters?.forEach((g) => {
96
- const T = k?.parameterDefinitions.find((b) => b.id == g.runtimeParameter?.id)?.dataTypeIdentifier;
97
- if ((T ? u(T, S) : void 0)?.variant === "NODE") {
98
- if (g.value && g.value instanceof $) {
99
- const b = `${p}-group-${l++}`, w = [...D, h()];
100
- i.push({
101
- id: b,
102
- type: "group",
103
- position: {
104
- x: 0,
105
- y: 0
106
- },
107
- draggable: !1,
108
- parentId: c,
109
- extent: c ? "parent" : void 0,
110
- data: {
111
- isParameter: !0,
112
- linkingId: p,
113
- flowId: s,
114
- depth: y + 1,
115
- scope: w
116
- }
117
- }), m(g.value, !1, void 0, y + 1, w, b, N, S);
58
+ const S = (e, a = !1, E, v = 0, N = [0], p, D = l, x = n) => {
59
+ const m = `${e.id}-${o++}`, W = ++R;
60
+ t.push({
61
+ id: m,
62
+ type: V(J, e.functionDefinition?.identifier),
63
+ position: {
64
+ x: 0,
65
+ y: 0
66
+ },
67
+ draggable: !1,
68
+ parentId: p,
69
+ extent: p ? "parent" : void 0,
70
+ data: {
71
+ nodeId: e.id,
72
+ isParameter: a,
73
+ flowId: i,
74
+ linkingId: a ? E : void 0,
75
+ scope: N,
76
+ // scope is now a PATH (number[])
77
+ depth: v,
78
+ // structural depth (0 at root, +1 per group)
79
+ index: W
80
+ // global node level
118
81
  }
119
- } else g.value && g.value instanceof $ && m(g.value, !0, p, y, D, c, N, S);
120
- }), e.nextNodeId && m(t.getNodeById(e.nextNodeId), !1, void 0, y, D, c, N, S);
121
- };
122
- return t.startingNodeId ? m(t.getNodeById(t.startingNodeId), !1, void 0, 0, [0], void 0, v, n) : i.push({
123
- id: `${t.id}-suggestion`,
124
- type: "suggestion",
125
- position: {
126
- x: 0,
127
- y: 0
128
- },
129
- draggable: !1,
130
- extent: void 0,
131
- data: {
132
- flowId: s,
133
- parentFunction: void 0
134
- }
135
- }), i;
82
+ });
83
+ const K = h(e.functionDefinition?.id, D);
84
+ e.parameters?.nodes?.forEach((u) => {
85
+ const F = K?.parameterDefinitions.find((T) => T.id == u?.runtimeParameter?.id)?.dataTypeIdentifier;
86
+ if ((F ? I(F, x) : void 0)?.variant === "NODE") {
87
+ if (u?.value && u.value.__typename === "NodeFunctionIdWrapper") {
88
+ const T = `${m}-group-${o++}`, $ = [...N, A()], L = H(`${m}-param-${JSON.stringify(u)}`), O = (z) => parseInt(z.slice(0, 8), 16) % 360;
89
+ t.push({
90
+ id: T,
91
+ type: "group",
92
+ position: {
93
+ x: 0,
94
+ y: 0
95
+ },
96
+ draggable: !1,
97
+ parentId: p,
98
+ extent: p ? "parent" : void 0,
99
+ data: {
100
+ isParameter: !0,
101
+ linkingId: m,
102
+ flowId: i,
103
+ depth: v + 1,
104
+ scope: $,
105
+ color: `hsl(${O(L)}, 100%, 72%)`
106
+ }
107
+ }), S(d.getNodeById(i, u.value.id), !1, void 0, v + 1, $, T, D, x);
108
+ }
109
+ } else u?.value && u.value.__typename === "NodeFunctionIdWrapper" && S(d.getNodeById(i, u.value.id), !0, m, v, N, p, D, x);
110
+ }), e.nextNodeId && S(d.getNodeById(r.id, e.nextNodeId), !1, void 0, v, N, p, D, x);
111
+ };
112
+ return r.startingNodeId && S(d.getNodeById(r.id, r.startingNodeId), !1, void 0, 0, [0], void 0, l, n), t;
113
+ }, [r, g, s, f]);
136
114
  };
137
115
  export {
138
- q as useFlowNodes
116
+ ee as useFlowNodes
139
117
  };
@@ -1,10 +1,15 @@
1
- import { FlowView } from './DFlow.view';
2
- import { ReactiveArrayService } from '../../utils/reactiveArrayService';
3
- import { Flow, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
4
- export declare abstract class DFlowReactiveService extends ReactiveArrayService<FlowView> {
5
- getById(id: Flow['id']): FlowView | undefined;
6
- /** Creates a new flow. */
1
+ import { ReactiveArrayService } from '../../utils';
2
+ import { Flow, FlowInput, FlowSetting, LiteralValue, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload, NamespacesProjectsFlowsUpdateInput, NamespacesProjectsFlowsUpdatePayload, NodeFunction, NodeParameter, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
3
+ export declare abstract class DFlowReactiveService extends ReactiveArrayService<Flow> {
4
+ getById(id: Flow['id']): Flow | undefined;
5
+ protected removeParameterNode(flow: Flow, parameter: NodeParameter): void;
6
+ getNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction | undefined;
7
+ getPayloadById(flowId: Flow['id']): FlowInput | undefined;
8
+ deleteNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): Promise<void>;
9
+ addNextNodeById(flowId: Flow['id'], parentNodeId: NodeFunction['id'] | null, nextNode: NodeFunction): Promise<void>;
10
+ setSettingValue(flowId: Flow['id'], settingId: FlowSetting['id'], value: FlowSetting['value']): Promise<void>;
11
+ setParameterValue(flowId: Flow['id'], nodeId: NodeFunction['id'], parameterId: NodeParameter['id'], value?: LiteralValue | ReferenceValue | NodeFunction): Promise<void>;
7
12
  abstract flowCreate(payload: NamespacesProjectsFlowsCreateInput): Promise<NamespacesProjectsFlowsCreatePayload | undefined>;
8
- /** Deletes a namespace project. */
9
13
  abstract flowDelete(payload: NamespacesProjectsFlowsDeleteInput): Promise<NamespacesProjectsFlowsDeletePayload | undefined>;
14
+ abstract flowUpdate(payload: NamespacesProjectsFlowsUpdateInput): Promise<NamespacesProjectsFlowsUpdatePayload | undefined>;
10
15
  }
@@ -1,11 +1,121 @@
1
- import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
2
- class c extends i {
3
- //TODO: inject UI error handler for toasts
4
- //inject: namespaceId and projectId because the runtimes query needs it
5
- getById(e) {
6
- return this.values().find((r) => r.id === e);
1
+ import "../../utils/contextStore.js";
2
+ import "react";
3
+ import { ReactiveArrayService as I } from "../../utils/reactiveArrayService.js";
4
+ import "merge-props";
5
+ class m extends I {
6
+ getById(n) {
7
+ return this.values().find((t) => t.id === n);
8
+ }
9
+ removeParameterNode(n, t) {
10
+ if (t?.value?.__typename === "NodeFunctionIdWrapper") {
11
+ const i = n?.nodes?.nodes?.find((e) => e?.id === t.value?.id);
12
+ if (i) {
13
+ n.nodes.nodes = n.nodes.nodes.filter((d) => d?.id !== t.value?.id);
14
+ let e = i.nextNodeId;
15
+ for (; e; ) {
16
+ const d = n.nodes.nodes.find((o) => o?.id === e);
17
+ d ? (n.nodes.nodes = n.nodes.nodes.filter((o) => o?.id !== e), e = d.nextNodeId) : e = null;
18
+ }
19
+ i.parameters?.nodes?.forEach((d) => {
20
+ this.removeParameterNode(n, d);
21
+ });
22
+ }
23
+ }
24
+ }
25
+ getNodeById(n, t) {
26
+ return this.getById(n)?.nodes?.nodes?.find((i) => i?.id === t);
27
+ }
28
+ getPayloadById(n) {
29
+ const t = this.getById(n), i = (e) => ({
30
+ ...e?.dataType ? {
31
+ dataTypeId: e?.dataType?.id
32
+ } : {},
33
+ ...e?.genericKey ? {
34
+ genericKey: e?.genericKey
35
+ } : {},
36
+ ...e?.genericType ? {
37
+ genericType: {
38
+ dataTypeId: e?.genericType?.dataType?.id,
39
+ genericMappers: e?.genericType?.genericMappers?.map((d) => ({
40
+ target: d.target,
41
+ sourceDataTypeIdentifiers: d.sourceDataTypeIdentifiers?.map(i) ?? []
42
+ })) ?? []
43
+ }
44
+ } : {}
45
+ });
46
+ return {
47
+ name: t?.name,
48
+ type: t?.type?.id,
49
+ settings: t?.settings?.nodes?.map((e) => ({
50
+ flowSettingIdentifier: e?.flowSettingIdentifier,
51
+ value: e?.value
52
+ })),
53
+ nodes: t?.nodes?.nodes?.map((e) => ({
54
+ id: e?.id,
55
+ nextNodeId: e?.nextNodeId,
56
+ parameters: e?.parameters?.nodes?.map((d) => ({
57
+ runtimeParameterDefinitionId: d?.runtimeParameter?.id,
58
+ value: d?.value?.__typename === "NodeFunctionIdWrapper" ? {
59
+ nodeFunctionId: d.value.id
60
+ } : d?.value?.__typename === "LiteralValue" ? {
61
+ literalValue: d.value.value
62
+ } : {
63
+ referenceValue: {
64
+ dataTypeIdentifier: i((d?.value).dataTypeIdentifier),
65
+ depth: (d?.value).depth,
66
+ node: (d?.value).node,
67
+ nodeFunctionId: (d?.value).nodeFunctionId,
68
+ referencePath: (d?.value).referencePath,
69
+ scope: (d?.value).scope
70
+ }
71
+ }
72
+ })) ?? [],
73
+ runtimeFunctionId: e?.functionDefinition?.runtimeFunctionDefinition?.id
74
+ })) ?? [],
75
+ startingNodeId: t?.startingNodeId
76
+ };
77
+ }
78
+ async deleteNodeById(n, t) {
79
+ const i = this.getById(n), e = this.getNodeById(n, t), d = i?.nodes?.nodes?.find((s) => s?.nextNodeId === t), o = this.values().findIndex((s) => s.id === n);
80
+ !i || !e || (i.nodes.nodes = i.nodes.nodes.filter((s) => s?.id !== t), e.parameters?.nodes?.forEach((s) => this.removeParameterNode(i, s)), d ? d.nextNodeId = e.nextNodeId : i.startingNodeId = e.nextNodeId ?? void 0, this.set(o, i));
81
+ }
82
+ async addNextNodeById(n, t, i) {
83
+ const e = this.getById(n), d = this.values().findIndex((u) => u.id === n), o = t ? this.getNodeById(n, t) : void 0;
84
+ if (!e || t && !o) return;
85
+ const r = `gid://sagittarius/NodeFunction/${Math.max(0, ...e.nodes?.nodes?.map((u) => Number(u?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]) + 1}`, a = {
86
+ ...i,
87
+ id: r
88
+ };
89
+ o && o.nextNodeId ? a.nextNodeId = o.nextNodeId : !o && e.startingNodeId && (a.nextNodeId = e.startingNodeId), e.nodes?.nodes?.push(a), o ? o.nextNodeId = a.id : e.startingNodeId = a.id, this.set(d, e);
90
+ }
91
+ async setSettingValue(n, t, i) {
92
+ const e = this.getById(n), d = this.values().findIndex((s) => s.id === n);
93
+ if (!e) return;
94
+ const o = e.settings?.nodes?.find((s) => s?.id === t);
95
+ o && (o.value = i, this.set(d, e));
96
+ }
97
+ async setParameterValue(n, t, i, e) {
98
+ const d = this.getById(n), o = this.values().findIndex((a) => a.id === n);
99
+ if (!d) return;
100
+ const s = this.getNodeById(n, t);
101
+ if (!s) return;
102
+ const r = s.parameters?.nodes?.find((a) => a?.id === i);
103
+ if (r) {
104
+ if (this.removeParameterNode(d, r), e?.__typename === "NodeFunction") {
105
+ const a = Math.max(0, ...d.nodes?.nodes?.map((c) => Number(c?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]), u = {
106
+ ...e,
107
+ id: `gid://sagittarius/NodeFunction/${a + 1}`
108
+ };
109
+ d.nodes?.nodes?.push(u), r.value = {
110
+ id: `gid://sagittarius/NodeFunction/${a + 1}`,
111
+ __typename: "NodeFunctionIdWrapper"
112
+ };
113
+ } else
114
+ r.value = e;
115
+ this.set(o, d);
116
+ }
7
117
  }
8
118
  }
9
119
  export {
10
- c as DFlowReactiveService
120
+ m as DFlowReactiveService
11
121
  };
@@ -1,10 +1,12 @@
1
- import { Code0Component } from '../../../utils/types';
1
+ import { Code0Component } from '../../utils';
2
2
  import { Edge, EdgeProps } from '@xyflow/react';
3
3
  import { default as React } from 'react';
4
+ import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
4
5
  export interface DFlowEdgeDataProps extends Code0Component<HTMLDivElement> {
5
6
  color?: string;
6
- isParameter?: boolean;
7
- isSuggestion?: boolean;
7
+ type: 'parameter' | 'suggestion' | 'group' | 'default';
8
+ parentNodeId?: NodeFunction['id'] | null;
9
+ flowId: Flow['id'];
8
10
  }
9
11
  export type DFlowEdgeProps = EdgeProps<Edge<DFlowEdgeDataProps>>;
10
12
  export declare const DFlowEdge: React.FC<DFlowEdgeProps>;
@@ -0,0 +1,69 @@
1
+ import { jsx as a, jsxs as L, Fragment as U } from "react/jsx-runtime";
2
+ import { c as z } from "../../_virtual/compiler-runtime.js";
3
+ import { Position as P, getSmoothStepPath as D, BaseEdge as G, EdgeLabelRenderer as T } from "@xyflow/react";
4
+ import { memo as W } from "react";
5
+ import { Badge as q } from "../badge/Badge.js";
6
+ const Q = W((E) => {
7
+ const t = z.c(42);
8
+ let n, s, i, d, e, o, r, l;
9
+ if (t[0] !== E) {
10
+ const {
11
+ sourceX: O,
12
+ sourceY: S,
13
+ targetX: j,
14
+ targetY: v,
15
+ id: w,
16
+ data: C,
17
+ label: F,
18
+ style: A,
19
+ ...I
20
+ } = E;
21
+ e = O, o = S, r = j, l = v, s = w, n = C, i = F, d = I, t[0] = E, t[1] = n, t[2] = s, t[3] = i, t[4] = d, t[5] = e, t[6] = o, t[7] = r, t[8] = l;
22
+ } else
23
+ n = t[1], s = t[2], i = t[3], d = t[4], e = t[5], o = t[6], r = t[7], l = t[8];
24
+ const X = n?.type === "parameter" ? P.Left : P.Bottom, Y = n?.type === "parameter" ? P.Right : P.Top;
25
+ let h;
26
+ t[9] !== e || t[10] !== o || t[11] !== X || t[12] !== Y || t[13] !== r || t[14] !== l ? (h = D({
27
+ sourceX: e,
28
+ sourceY: o,
29
+ sourcePosition: X,
30
+ targetX: r,
31
+ targetY: l,
32
+ targetPosition: Y,
33
+ borderRadius: 16,
34
+ stepPosition: 0.5
35
+ }), t[9] = e, t[10] = o, t[11] = X, t[12] = Y, t[13] = r, t[14] = l, t[15] = h) : h = t[15];
36
+ const [$, R, k] = h, x = n?.color ?? "#ffffff", y = `dflow-edge-gradient-${s}`;
37
+ let c, p;
38
+ t[16] !== x ? (c = /* @__PURE__ */ a("stop", { offset: "0", stopColor: x, stopOpacity: 0.75 }), p = /* @__PURE__ */ a("stop", { offset: "1", stopColor: x, stopOpacity: 0.25 }), t[16] = x, t[17] = c, t[18] = p) : (c = t[17], p = t[18]);
39
+ let f;
40
+ t[19] !== y || t[20] !== e || t[21] !== o || t[22] !== c || t[23] !== p || t[24] !== r || t[25] !== l ? (f = /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ L("linearGradient", { id: y, x1: e, y1: o, x2: r, y2: l, gradientUnits: "userSpaceOnUse", children: [
41
+ c,
42
+ p
43
+ ] }) }), t[19] = y, t[20] = e, t[21] = o, t[22] = c, t[23] = p, t[24] = r, t[25] = l, t[26] = f) : f = t[26];
44
+ const B = `url(#${y})`;
45
+ let m;
46
+ t[27] !== B ? (m = {
47
+ stroke: B,
48
+ strokeWidth: "2px",
49
+ strokeLinecap: "round"
50
+ }, t[27] = B, t[28] = m) : m = t[28];
51
+ let g;
52
+ t[29] !== $ || t[30] !== s || t[31] !== d || t[32] !== m ? (g = /* @__PURE__ */ a(G, { id: s, path: $, ...d, style: m }), t[29] = $, t[30] = s, t[31] = d, t[32] = m, t[33] = g) : g = t[33];
53
+ let u;
54
+ t[34] !== i || t[35] !== R || t[36] !== k ? (u = i ? /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a("div", { style: {
55
+ position: "absolute",
56
+ transform: `translate(-50%, -50%) translate(${R}px, ${k}px)`,
57
+ pointerEvents: "all",
58
+ zIndex: 100
59
+ }, children: /* @__PURE__ */ a(q, { color: "primary", border: !0, children: i }) }) }) : null, t[34] = i, t[35] = R, t[36] = k, t[37] = u) : u = t[37];
60
+ let b;
61
+ return t[38] !== f || t[39] !== g || t[40] !== u ? (b = /* @__PURE__ */ L(U, { children: [
62
+ f,
63
+ g,
64
+ u
65
+ ] }), t[38] = f, t[39] = g, t[40] = u, t[41] = b) : b = t[41], b;
66
+ });
67
+ export {
68
+ Q as DFlowEdge
69
+ };
@@ -1,13 +1,4 @@
1
- export * from './DFlow.view';
1
+ export * from './DFlow';
2
2
  export * from './DFlow.service';
3
3
  export * from './DFlow.edges.hook';
4
4
  export * from './DFlow.nodes.hook';
5
- export * from './DFlow';
6
- export * from './control/index';
7
- export * from './data-type/index';
8
- export * from './folder/index';
9
- export * from './function/index';
10
- export * from './minimap/index';
11
- export * from './suggestion/index';
12
- export * from './type/index';
13
- export * from './validation/index';
@@ -1,46 +1,11 @@
1
- import { FlowSettingView as r, FlowView as t, NodeFunctionView as i, NodeParameterView as w } from "./DFlow.view.js";
2
- import { DFlowReactiveService as l } from "./DFlow.service.js";
3
- import { FLOW_EDGE_RAINBOW as m, useFlowEdges as f } from "./DFlow.edges.hook.js";
4
- import { useFlowNodes as a } from "./DFlow.nodes.hook.js";
5
- import { DFlow as x } from "./DFlow.js";
6
- import { DFlowControl as u } from "./control/DFlowControl.js";
7
- import { DFlowDataTypeReactiveService as V } from "./data-type/DFlowDataType.service.js";
8
- import { DataTypeView as s } from "./data-type/DFlowDataType.view.js";
9
- import { DFlowFolder as g, DFlowFolderGroup as R, DFlowFolderItem as y } from "./folder/DFlowFolder.js";
10
- import { DFlowFunctionReactiveService as N } from "./function/DFlowFunction.service.js";
11
- import { FunctionDefinitionView as G, ParameterDefinitionView as I } from "./function/DFlowFunction.view.js";
12
- import { DFlowMiniMap as O } from "./minimap/DFlowMiniMap.js";
13
- import { DFlowReactiveSuggestionService as W } from "./suggestion/DFlowSuggestion.service.js";
14
- import { DFlowSuggestion as A, DFlowSuggestionType as B } from "./suggestion/DFlowSuggestion.view.js";
15
- import { DFlowTypeReactiveService as L } from "./type/DFlowType.service.js";
16
- import { FlowTypeView as h } from "./type/DFlowType.view.js";
17
- import { useDFlowValidations as k } from "./validation/DFlowValidation.hook.js";
18
- import { DFlowValidation as z } from "./validation/DFlowValidation.js";
1
+ import { DFlow as r } from "./DFlow.js";
2
+ import { DFlowReactiveService as F } from "./DFlow.service.js";
3
+ import { FLOW_EDGE_RAINBOW as l, useFlowEdges as m } from "./DFlow.edges.hook.js";
4
+ import { useFlowNodes as s } from "./DFlow.nodes.hook.js";
19
5
  export {
20
- x as DFlow,
21
- u as DFlowControl,
22
- V as DFlowDataTypeReactiveService,
23
- g as DFlowFolder,
24
- R as DFlowFolderGroup,
25
- y as DFlowFolderItem,
26
- N as DFlowFunctionReactiveService,
27
- O as DFlowMiniMap,
28
- l as DFlowReactiveService,
29
- W as DFlowReactiveSuggestionService,
30
- A as DFlowSuggestion,
31
- B as DFlowSuggestionType,
32
- L as DFlowTypeReactiveService,
33
- z as DFlowValidation,
34
- s as DataTypeView,
35
- m as FLOW_EDGE_RAINBOW,
36
- r as FlowSettingView,
37
- h as FlowTypeView,
38
- t as FlowView,
39
- G as FunctionDefinitionView,
40
- i as NodeFunctionView,
41
- w as NodeParameterView,
42
- I as ParameterDefinitionView,
43
- k as useDFlowValidations,
44
- f as useFlowEdges,
45
- a as useFlowNodes
6
+ r as DFlow,
7
+ F as DFlowReactiveService,
8
+ l as FLOW_EDGE_RAINBOW,
9
+ m as useFlowEdges,
10
+ s as useFlowNodes
46
11
  };
@@ -0,0 +1,9 @@
1
+ import { ReactiveArrayService } from '../../utils';
2
+ import { DataTypeView } from './DFlowDataType.view';
3
+ import { DataTypeIdentifier, Flow, Maybe, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
4
+ export declare abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<DataTypeView> {
5
+ getDataType(type: DataTypeIdentifier): DataTypeView | undefined;
6
+ getDataTypeFromValue(value: NodeParameterValue, flow?: Flow): DataTypeView | undefined;
7
+ getTypeFromValue(value: NodeParameterValue, flow?: Flow): Maybe<DataTypeIdentifier> | undefined;
8
+ hasDataTypes(types: DataTypeIdentifier[]): boolean;
9
+ }
@@ -1,8 +1,10 @@
1
- import { ReactiveArrayService as s } from "../../../utils/reactiveArrayService.js";
2
- import { resolveType as y } from "../../../utils/generics.js";
3
- import { useValidateValue as f } from "./DFlowDataType.validation.value.js";
4
- class l extends s {
5
- //TODO: remove string because of sagittarius types update
1
+ import "../../utils/contextStore.js";
2
+ import "react";
3
+ import { ReactiveArrayService as s } from "../../utils/reactiveArrayService.js";
4
+ import "merge-props";
5
+ import { resolveType as y } from "../../utils/generics.js";
6
+ import { useValueValidation as f } from "../d-flow-validation/DValueValidation.hook.js";
7
+ class D extends s {
6
8
  getDataType(e) {
7
9
  if (!e || e.genericKey) return;
8
10
  const i = e.dataType?.identifier ?? e.genericType?.dataType?.identifier, t = e.dataType?.id ?? e.genericType?.dataType?.id;
@@ -32,7 +34,7 @@ class l extends s {
32
34
  }
33
35
  });
34
36
  }
35
- const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "NodeFunction" && (r.variant != "NODE" || !i) ? !1 : f(e, r, i));
37
+ const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "NodeFunctionIdWrapper" && (r.variant != "NODE" || !i) ? !1 : f(e, r, this, i));
36
38
  return t[t.length - 1];
37
39
  }
38
40
  getTypeFromValue(e, i) {
@@ -45,7 +47,7 @@ class l extends s {
45
47
  }
46
48
  };
47
49
  const r = t.genericKeys.map((a) => {
48
- const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((p) => p.dataTypeIdentifier?.genericKey == a));
50
+ const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((T) => T.dataTypeIdentifier?.genericKey == a));
49
51
  return n && n.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY" ? {
50
52
  sourceDataTypeIdentifiers: [this.getTypeFromValue({
51
53
  __typename: "LiteralValue",
@@ -68,7 +70,7 @@ class l extends s {
68
70
  }],
69
71
  target: a
70
72
  } : null;
71
- }).filter((a) => !!a), T = r.length > 0 ? {
73
+ }).filter((a) => !!a), p = r.length > 0 ? {
72
74
  genericType: {
73
75
  dataType: {
74
76
  id: t.id
@@ -80,12 +82,12 @@ class l extends s {
80
82
  id: t.id
81
83
  }
82
84
  };
83
- return y(T, this);
85
+ return y(p, this);
84
86
  }
85
87
  hasDataTypes(e) {
86
88
  return e.every((i) => this.values().find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
87
89
  }
88
90
  }
89
91
  export {
90
- l as DFlowDataTypeReactiveService
92
+ D as DFlowDataTypeReactiveService
91
93
  };