@code0-tech/pictor 0.0.0-mvp.25 → 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 (286) 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/DNamespaceMemberContent.js +140 -92
  123. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  124. package/dist/components/d-organization/DOrganizationList.js +7 -7
  125. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  126. package/dist/components/d-organization/DOrganizatonContent.js +29 -29
  127. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  128. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  129. package/dist/components/d-project/DNamespaceProjectMenu.js +51 -22
  130. package/dist/components/d-project/index.js +10 -9
  131. package/dist/components/d-resizable/DResizable.js +18 -17
  132. package/dist/components/d-role/DNamespaceRoleContent.js +11 -11
  133. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  134. package/dist/components/d-runtime/DRuntimeContent.js +10 -10
  135. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  136. package/dist/components/d-user/DUser.session.hook.js +2 -2
  137. package/dist/components/d-user/DUserContent.js +19 -19
  138. package/dist/components/d-user/DUserInput.js +9 -9
  139. package/dist/components/d-user/DUserList.js +9 -9
  140. package/dist/components/file-tabs/FileTabs.js +2 -2
  141. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  142. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  143. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  144. package/dist/components/form/CheckboxInput.js +4 -4
  145. package/dist/components/form/EmailInput.js +12 -12
  146. package/dist/components/form/Input.js +220 -206
  147. package/dist/components/form/Input.selection.hook.js +9 -9
  148. package/dist/components/form/Input.syntax.hook.js +7 -7
  149. package/dist/components/form/NumberInput.js +9 -9
  150. package/dist/components/form/PasswordInput.js +6 -6
  151. package/dist/components/form/SwitchInput.js +7 -7
  152. package/dist/components/form/TextInput.js +10 -10
  153. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  154. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  155. package/dist/index.d.ts +8 -0
  156. package/dist/index.js +117 -117
  157. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  158. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  159. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  160. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  161. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  162. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  163. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  164. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  165. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  166. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  167. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  168. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  169. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  170. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  171. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  172. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  173. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  174. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  175. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  176. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  177. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  178. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  179. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  180. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  181. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  182. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  183. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  184. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  185. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  186. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  187. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  188. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  192. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  193. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  194. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  195. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  196. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  197. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  198. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  199. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  200. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  201. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  202. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  203. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  204. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  205. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  206. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  207. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  208. package/dist/utils/generics.d.ts +5 -6
  209. package/dist/utils/generics.js +2 -2
  210. package/dist/utils/objectStore.js +15 -15
  211. package/dist/utils/reactiveArrayService.js +5 -5
  212. package/package.json +7 -4
  213. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  214. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  215. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  216. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  217. package/dist/components/d-flow/DFlow.view.js +0 -248
  218. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  219. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  220. package/dist/components/d-flow/control/index.d.ts +0 -1
  221. package/dist/components/d-flow/control/index.js +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  223. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  224. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  225. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  226. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  227. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  228. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  229. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  230. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  231. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  232. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  233. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  234. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  235. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  236. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  237. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  238. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  239. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  240. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  241. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  242. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  243. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  244. package/dist/components/d-flow/minimap/index.js +0 -4
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  246. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  247. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  248. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  249. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  250. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  251. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  252. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  253. package/dist/components/d-flow/suggestion/index.js +0 -7
  254. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  255. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  256. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  257. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  258. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  259. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  260. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  261. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  262. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  263. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  271. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  272. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  273. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  274. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  275. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  276. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  277. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  278. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  279. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  280. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  281. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  282. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  283. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  284. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  285. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  286. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -1,9 +0,0 @@
1
- import { ReactiveArrayService as r } from "../../../utils/reactiveArrayService.js";
2
- class a extends r {
3
- getById(e) {
4
- return this.values().find((i) => i.id === e);
5
- }
6
- }
7
- export {
8
- a as DFlowFunctionReactiveService
9
- };
@@ -1,10 +0,0 @@
1
- import { FunctionDefinitionView } from './DFlowFunction.view';
2
- import { DFlowDataTypeReactiveService } from '../data-type/DFlowDataType.service';
3
- import { ValidationResult } from '../../../utils/inspection';
4
- import { NodeParameterValue, Scalars } from '@code0-tech/sagittarius-graphql-types';
5
- /**
6
- * Validates function parameter values against a function definition, resolving all generics.
7
- * For each parameter, determines if the provided value is a valid match for the parameter's (possibly generic) type.
8
- * Returns an array of ValidationResults (errors for each parameter, null entry for valid).
9
- */
10
- export declare const useFunctionValidation: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, flowId: Scalars["FlowID"]["output"]) => ValidationResult[] | null;
@@ -1,74 +0,0 @@
1
- import { DataTypeView as m } from "../data-type/DFlowDataType.view.js";
2
- import { InspectionSeverity as G } from "../../../utils/inspection.js";
3
- import { resolveGenericKeys as N, replaceGenericKeysInDataTypeObject as g, replaceGenericKeysInType as D } from "../../../utils/generics.js";
4
- import { useReturnType as I } from "./DFlowFunction.return.hook.js";
5
- import { useService as V } from "../../../utils/contextStore.js";
6
- import { DFlowFunctionReactiveService as E } from "./DFlowFunction.service.js";
7
- import { useValidateDataType as T } from "../data-type/DFlowDataType.validation.type.js";
8
- import { useValidateValue as l } from "../data-type/DFlowDataType.validation.value.js";
9
- import { DFlowReactiveService as M } from "../DFlow.service.js";
10
- const q = (f, d, a, h) => {
11
- const R = V(E), y = V(M).getById(h), u = N(f, d, a, y), w = f.parameterDefinitions ?? [], v = f.genericKeys ?? [], r = [];
12
- return w.forEach((s, F) => {
13
- const n = d[F];
14
- if (!n) return;
15
- const p = s.dataTypeIdentifier, e = a.getDataType(p), _ = n.__typename === "NodeFunction" && e?.variant != "NODE" ? I(R.getById(n.functionDefinition?.id), n.parameters?.nodes?.map((o) => o?.value)) : a.getTypeFromValue(n, y), t = a.getDataType(_), K = e && p?.genericType || p?.genericKey && v.includes(p.genericKey);
16
- let i = !0;
17
- if (K) {
18
- if (_?.genericType && e) {
19
- if (n.__typename === "ReferenceValue" || n.__typename === "NodeFunction") {
20
- const o = new m(g(e.json, u)), j = new m(g(t?.json, u));
21
- i = T(o, j), i || r.push(c(s.id, e, t));
22
- } else {
23
- const o = D(p, u);
24
- i = l(n, e, y, o?.genericType?.genericMappers), i || r.push(c(s.id, e, t));
25
- }
26
- return;
27
- }
28
- if (p?.genericKey && v.includes(p?.genericKey)) {
29
- if (n.__typename != "ReferenceValue") {
30
- const o = D(p, u);
31
- i = l(n, a.getDataType(o), y, o.genericType?.genericMappers), i || r.push(c(s.id, e, t));
32
- }
33
- return;
34
- }
35
- if (t && e && t.json && e.json) {
36
- if (n.__typename === "ReferenceValue" || n.__typename === "NodeFunction") {
37
- const o = new m(g(e.json, u));
38
- i = T(o, t), i || r.push(c(s.id, e, t));
39
- } else {
40
- const o = D(p, u);
41
- i = l(n, a.getDataType(o), y, o.genericType?.genericMappers), i || r.push(c(s.id, e, t));
42
- }
43
- return;
44
- }
45
- }
46
- if (e) {
47
- if (_?.genericType && e) {
48
- if (n.__typename === "ReferenceValue" || n.__typename === "NodeFunction") {
49
- const o = new m(g(t?.json, u));
50
- i = T(e, o), i || r.push(c(s.id, e, t));
51
- } else
52
- i = l(n, e), i || r.push(c(s.id, e, t));
53
- return;
54
- }
55
- if (t) {
56
- (n.__typename === "ReferenceValue" || n.__typename === "NodeFunction") && e.variant !== "NODE" ? (i = T(e, t), i || r.push(c(s.id, e, t))) : (i = l(n, e), i || r.push(c(s.id, e, t)));
57
- return;
58
- }
59
- }
60
- r.push(c(s.id, e, t));
61
- }), r.length > 0 ? r : null;
62
- }, c = (f, d, a) => ({
63
- parameterId: f,
64
- type: G.ERROR,
65
- message: {
66
- nodes: [{
67
- code: "en-US",
68
- content: `Argument of type ${a?.name?.nodes[0]?.content} is not assignable to parameter of type ${d?.name?.nodes[0]?.content}`
69
- }]
70
- }
71
- });
72
- export {
73
- q as useFunctionValidation
74
- };
@@ -1,117 +0,0 @@
1
- function i(e, t, r) {
2
- return (t = s(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3
- }
4
- function s(e) {
5
- var t = d(e, "string");
6
- return typeof t == "symbol" ? t : t + "";
7
- }
8
- function d(e, t) {
9
- if (typeof e != "object" || !e) return e;
10
- var r = e[Symbol.toPrimitive];
11
- if (r !== void 0) {
12
- var n = r.call(e, t);
13
- if (typeof n != "object") return n;
14
- throw new TypeError("@@toPrimitive must return a primitive value.");
15
- }
16
- return (t === "string" ? String : Number)(e);
17
- }
18
- class a {
19
- constructor(t) {
20
- i(this, "_createdAt", void 0), i(this, "_deprecationMessages", void 0), i(this, "_descriptions", void 0), i(this, "_documentations", void 0), i(this, "_genericKeys", void 0), i(this, "_id", void 0), i(this, "_names", void 0), i(this, "_parameterDefinitions", void 0), i(this, "_returnType", void 0), i(this, "_runtimeFunctionDefinition", void 0), i(this, "_throwsError", void 0), i(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._deprecationMessages = t.deprecationMessages, this._descriptions = t.descriptions, this._documentations = t.documentations, this._genericKeys = t.genericKeys, this._id = t.id, this._names = t.names, this._parameterDefinitions = t.parameterDefinitions?.nodes?.map((r) => new o(r)) ?? void 0, this._returnType = t.returnType, this._runtimeFunctionDefinition = t.runtimeFunctionDefinition, this._throwsError = t.throwsError, this._updatedAt = t.updatedAt;
21
- }
22
- get createdAt() {
23
- return this._createdAt;
24
- }
25
- get deprecationMessages() {
26
- return this._deprecationMessages;
27
- }
28
- get descriptions() {
29
- return this._descriptions;
30
- }
31
- get documentations() {
32
- return this._documentations;
33
- }
34
- get genericKeys() {
35
- return this._genericKeys;
36
- }
37
- get id() {
38
- return this._id;
39
- }
40
- get names() {
41
- return this._names;
42
- }
43
- get parameterDefinitions() {
44
- return this._parameterDefinitions;
45
- }
46
- get returnType() {
47
- return this._returnType;
48
- }
49
- get runtimeFunctionDefinition() {
50
- return this._runtimeFunctionDefinition;
51
- }
52
- get throwsError() {
53
- return this._throwsError;
54
- }
55
- get updatedAt() {
56
- return this._updatedAt;
57
- }
58
- json() {
59
- return {
60
- createdAt: this._createdAt,
61
- deprecationMessages: this._deprecationMessages,
62
- descriptions: this._descriptions,
63
- documentations: this._documentations,
64
- genericKeys: this._genericKeys,
65
- id: this._id,
66
- names: this._names,
67
- parameterDefinitions: this._parameterDefinitions ? {
68
- nodes: this._parameterDefinitions.map((t) => t.json())
69
- } : void 0,
70
- returnType: this._returnType,
71
- runtimeFunctionDefinition: this._runtimeFunctionDefinition,
72
- throwsError: this._throwsError,
73
- updatedAt: this._updatedAt
74
- };
75
- }
76
- }
77
- class o {
78
- constructor(t) {
79
- i(this, "_createdAt", void 0), i(this, "_dataTypeIdentifier", void 0), i(this, "_descriptions", void 0), i(this, "_documentations", void 0), i(this, "_id", void 0), i(this, "_names", void 0), i(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._dataTypeIdentifier = t.dataTypeIdentifier, this._descriptions = t.descriptions, this._documentations = t.documentations, this._id = t.id, this._names = t.names, this._updatedAt = t.updatedAt;
80
- }
81
- get createdAt() {
82
- return this._createdAt;
83
- }
84
- get dataTypeIdentifier() {
85
- return this._dataTypeIdentifier;
86
- }
87
- get descriptions() {
88
- return this._descriptions;
89
- }
90
- get documentations() {
91
- return this._documentations;
92
- }
93
- get id() {
94
- return this._id;
95
- }
96
- get names() {
97
- return this._names;
98
- }
99
- get updatedAt() {
100
- return this._updatedAt;
101
- }
102
- json() {
103
- return {
104
- createdAt: this._createdAt,
105
- dataTypeIdentifier: this._dataTypeIdentifier,
106
- descriptions: this._descriptions,
107
- documentations: this._documentations,
108
- id: this._id,
109
- names: this._names,
110
- updatedAt: this._updatedAt
111
- };
112
- }
113
- }
114
- export {
115
- a as FunctionDefinitionView,
116
- o as ParameterDefinitionView
117
- };
@@ -1,158 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { useStore as h, useReactFlow as j, useStoreApi as B, Handle as I, Position as u } from "@xyflow/react";
3
- import { NodeFunctionView as b } from "../DFlow.view.js";
4
- import { memo as G } from "react";
5
- import { Card as H } from "../../card/Card.js";
6
- import '../../../assets/components/d-flow/function/DFlowFunctionDefaultCard.style.css';/* empty css */
7
- import C from "../../card/CardSection.js";
8
- import { Flex as s } from "../../flex/Flex.js";
9
- import { IconFileLambdaFilled as V, IconDots as W, IconTrash as k, IconCopy as $, IconChevronDown as X, IconExclamationCircle as Y, IconAlertTriangle as q, IconMessageExclamation as J, IconArrowRightCircle as K } from "@tabler/icons-react";
10
- import { Text as D } from "../../text/Text.js";
11
- import { Button as R } from "../../button/Button.js";
12
- import { Menu as Q, MenuTrigger as U, MenuPortal as Z, MenuContent as ee, MenuLabel as te, MenuItem as T } from "../../menu/Menu.js";
13
- import { Badge as x } from "../../badge/Badge.js";
14
- import { useService as g } from "../../../utils/contextStore.js";
15
- import { DFlowFunctionReactiveService as ie } from "./DFlowFunction.service.js";
16
- import { useFunctionValidation as ne } from "./DFlowFunction.vaildation.hook.js";
17
- import { DFlowDataTypeReactiveService as oe } from "../data-type/DFlowDataType.service.js";
18
- import { InspectionSeverity as c } from "../../../utils/inspection.js";
19
- import { DFlowReactiveService as re } from "../DFlow.service.js";
20
- import { DFlowSuggestionMenu as ae } from "../suggestion/DFlowSuggestionMenu.js";
21
- import { useSuggestions as le } from "../suggestion/DFlowSuggestion.hook.js";
22
- import { FileTabsService as de } from "../../file-tabs/FileTabs.service.js";
23
- import { DFlowTabDefault as se } from "../tab/DFlowTabDefault.js";
24
- const Me = G((d) => {
25
- const {
26
- data: i,
27
- id: m
28
- } = d, N = h((e) => e.width), A = h((e) => e.height), F = j(), z = B(), v = g(de), S = g(re), _ = g(ie), w = g(oe), f = _.getById(i.instance.functionDefinition?.id), r = ne(f, i.instance.parameters.map((e) => e.value instanceof b ? e.value.json() : e.value), w, d.data.flowId), M = h((e) => e.edges), E = d.width ?? 0, P = d.height ?? 0;
29
- i.instance.parameters?.forEach((e) => {
30
- const a = f?.parameterDefinitions.find((n) => n.id == e?.id);
31
- e.validationResults = r ? r.filter((n) => n.parameterId === a?.id) : [];
32
- });
33
- function L(e) {
34
- return M.some((a) => a.target === m && a.targetHandle === `param-${e}`);
35
- }
36
- const O = h((e) => {
37
- const a = e.nodes.filter((l) => l.parentId === d.parentId);
38
- let n;
39
- return a.forEach((l) => {
40
- const y = l.data?.index ?? 1 / 0, p = n?.data?.index ?? 1 / 0;
41
- (!n || y < p) && (n = l);
42
- }), n;
43
- });
44
- return /* @__PURE__ */ o(H, { paddingSize: "xs", outline: O.id === m, borderColor: v.getActiveTab()?.id == m ? "info" : void 0, className: v.getActiveTab()?.id == m ? "d-flow-viewport-default-card--active" : void 0, color: (r?.filter((e) => e.type === c.ERROR)?.length ?? 0) > 0 ? "error" : "primary", onClick: () => {
45
- F.setViewport({
46
- x: N / 2 + d.positionAbsoluteX * -1 - E / 2,
47
- y: A / 2 + d.positionAbsoluteY * -1 - P / 2,
48
- zoom: 1
49
- }, {
50
- duration: 250
51
- }), v.add({
52
- id: m,
53
- active: !0,
54
- closeable: !0,
55
- children: /* @__PURE__ */ t(D, { size: "md", children: f?.names?.nodes[0]?.content }),
56
- content: /* @__PURE__ */ t(se, { flowId: d.data.flowId, depthLevel: i.depth, scopeLevel: i.scope, nodeLevel: i.index, functionInstance: i.instance })
57
- });
58
- }, style: {
59
- position: "relative"
60
- }, children: [
61
- /* @__PURE__ */ t(C, { border: !0, children: /* @__PURE__ */ o(s, { align: "center", justify: "space-between", style: {
62
- gap: "1.3rem"
63
- }, children: [
64
- /* @__PURE__ */ o(s, { align: "center", style: {
65
- gap: "0.7rem"
66
- }, children: [
67
- /* @__PURE__ */ t(V, { size: 16 }),
68
- /* @__PURE__ */ t(D, { size: "md", children: f?.names?.nodes[0]?.content })
69
- ] }),
70
- /* @__PURE__ */ o(s, { align: "center", style: {
71
- gap: "0.7rem"
72
- }, children: [
73
- /* @__PURE__ */ o(Q, { onOpenChange: (e) => {
74
- setTimeout(() => {
75
- z.setState({
76
- nodesDraggable: !e,
77
- nodesConnectable: !e,
78
- elementsSelectable: !e
79
- });
80
- }, 250);
81
- }, children: [
82
- /* @__PURE__ */ t(U, { asChild: !0, children: /* @__PURE__ */ t(R, { p: "0", variant: "none", children: /* @__PURE__ */ t(W, { size: 16 }) }) }),
83
- /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ o(ee, { children: [
84
- /* @__PURE__ */ t(te, { children: "Actions" }),
85
- /* @__PURE__ */ o(T, { onClick: () => {
86
- i.instance.deleteNextNode(), S.update();
87
- }, children: [
88
- /* @__PURE__ */ t(k, { size: 16 }),
89
- " Delete node"
90
- ] }),
91
- /* @__PURE__ */ o(T, { disabled: !0, children: [
92
- /* @__PURE__ */ t($, { size: 16 }),
93
- " Copy node"
94
- ] })
95
- ] }) })
96
- ] }),
97
- /* @__PURE__ */ t(R, { p: "0", variant: "none", disabled: !0, children: /* @__PURE__ */ t(X, { size: 16 }) })
98
- ] })
99
- ] }) }),
100
- /* @__PURE__ */ t(I, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
101
- ...i.isParameter ? {
102
- right: "2px"
103
- } : {
104
- top: "2px"
105
- }
106
- }, position: i.isParameter ? u.Right : u.Top }),
107
- (r?.length ?? 0) > 0 ? /* @__PURE__ */ t("div", { className: "d-flow-viewport-default-card__inspection", children: /* @__PURE__ */ o(s, { style: {
108
- gap: "0.35rem"
109
- }, children: [
110
- (r?.filter((e) => e.type === c.ERROR)?.length ?? 0) > 0 ? /* @__PURE__ */ t(x, { color: "error", children: /* @__PURE__ */ o(s, { align: "center", style: {
111
- gap: "0.35rem"
112
- }, children: [
113
- /* @__PURE__ */ t(Y, { size: 12 }),
114
- r?.filter((e) => e.type === c.ERROR)?.length
115
- ] }) }) : null,
116
- (r?.filter((e) => e.type === c.WARNING)?.length ?? 0) > 0 ? /* @__PURE__ */ t(x, { color: "warning", children: /* @__PURE__ */ o(s, { align: "center", style: {
117
- gap: "0.35rem"
118
- }, children: [
119
- /* @__PURE__ */ t(q, { size: 12 }),
120
- r?.filter((e) => e.type === c.WARNING)?.length
121
- ] }) }) : null,
122
- (r?.filter((e) => e.type === c.GRAMMAR)?.length ?? 0) > 0 ? /* @__PURE__ */ t(x, { children: /* @__PURE__ */ o(s, { align: "center", style: {
123
- gap: "0.35rem"
124
- }, children: [
125
- /* @__PURE__ */ t(J, { size: 12 }),
126
- r?.filter((e) => e.type === c.GRAMMAR)?.length
127
- ] }) }) : null
128
- ] }) }) : null,
129
- i.instance.parameters?.some((e) => {
130
- const a = f?.parameterDefinitions.find((l) => l.id == e.id), n = w.getDataType(a?.dataTypeIdentifier)?.variant === "NODE";
131
- return e.value instanceof b && !n || !e.value;
132
- }) ? /* @__PURE__ */ t(C, { border: !0, children: i.instance.parameters?.map((e, a) => {
133
- const n = f?.parameterDefinitions.find((p) => p.id == e.id), l = w.getDataType(n?.dataTypeIdentifier)?.variant === "NODE", y = le(n?.dataTypeIdentifier ?? void 0, [], d.data.flowId, i.depth, i.scope, i.index);
134
- return e.value instanceof b && !l || !e.value ? /* @__PURE__ */ o(s, { pos: "relative", justify: "space-between", align: "center", children: [
135
- /* @__PURE__ */ t(D, { size: "xs", hierarchy: "tertiary", children: n?.names?.nodes[0]?.content ?? e.id }),
136
- e.value ? null : /* @__PURE__ */ t(ae, { onSuggestionSelect: (p) => {
137
- e.value = p.value, S.update();
138
- }, suggestions: y, triggerContent: /* @__PURE__ */ t(R, { p: "0", variant: "none", children: /* @__PURE__ */ t(K, { size: 16 }) }) }),
139
- /* @__PURE__ */ t(I, { type: "target", position: u.Right, style: {
140
- position: "absolute",
141
- transform: l ? "translate(-50%, -50%)" : "translate(50%, -50%)",
142
- top: "50%",
143
- right: l ? "50%" : "0"
144
- }, id: `param-${e.id}`, isConnectable: !1, hidden: !L(e.id), className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, e.id)
145
- ] }, a) : null;
146
- }) }) : null,
147
- /* @__PURE__ */ t(I, { isConnectable: !1, type: "source", style: {
148
- ...i.isParameter ? {
149
- left: "2px"
150
- } : {
151
- bottom: "2px"
152
- }
153
- }, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: i.isParameter ? u.Left : u.Bottom })
154
- ] });
155
- });
156
- export {
157
- Me as DFlowFunctionDefaultCard
158
- };
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- import { NodeProps } from '@xyflow/react';
3
- export interface DFlowFunctionGroupCardProps extends NodeProps {
4
- }
5
- export declare const DFlowFunctionGroupCard: React.FC<DFlowFunctionGroupCardProps>;
@@ -1,55 +0,0 @@
1
- import { jsx as w, jsxs as C } from "react/jsx-runtime";
2
- import { c as E } from "../../../_virtual/compiler-runtime.js";
3
- import { memo as F } from "react";
4
- import { useStore as N, Handle as g, Position as x } from "@xyflow/react";
5
- import { FLOW_EDGE_RAINBOW as b } from "../DFlow.edges.hook.js";
6
- import { Card as j } from "../../card/Card.js";
7
- const R = F((h) => {
8
- const t = E.c(15), {
9
- data: e,
10
- id: c
11
- } = h, m = e?.depth ?? 0, o = b[m % b.length];
12
- let f;
13
- t[0] !== c ? (f = (I) => {
14
- const y = I.nodes.filter((d) => d.parentId === c);
15
- let i;
16
- if (y.forEach((d) => {
17
- const v = d.data?.index ?? 1 / 0, $ = i?.data?.index ?? 1 / 0;
18
- (!i || v < $) && (i = d);
19
- }), i) {
20
- const d = i.measured.width ?? 0;
21
- return i.position.x + d / 2;
22
- }
23
- }, t[0] = c, t[1] = f) : f = t[1];
24
- const s = N(f);
25
- let l;
26
- t[2] !== o ? (l = _(o, 0.025), t[2] = o, t[3] = l) : l = t[3];
27
- const u = "2px dashed " + _(o, 0.125);
28
- let r;
29
- t[4] !== l || t[5] !== u ? (r = {
30
- background: l,
31
- boxShadow: "none",
32
- border: u
33
- }, t[4] = l, t[5] = u, t[6] = r) : r = t[6];
34
- let n;
35
- t[7] !== s ? (n = /* @__PURE__ */ w(g, { type: "target", position: x.Top, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", isConnectable: !1, draggable: !1, style: {
36
- top: "2px",
37
- left: s
38
- } }), t[7] = s, t[8] = n) : n = t[8];
39
- let a;
40
- t[9] !== s ? (a = /* @__PURE__ */ w(g, { type: "source", position: x.Bottom, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", isConnectable: !1, draggable: !1, style: {
41
- bottom: "2px",
42
- left: s
43
- } }), t[9] = s, t[10] = a) : a = t[10];
44
- let p;
45
- return t[11] !== r || t[12] !== n || t[13] !== a ? (p = /* @__PURE__ */ C(j, { w: "100%", h: "100%", style: r, children: [
46
- n,
47
- a
48
- ] }), t[11] = r, t[12] = n, t[13] = a, t[14] = p) : p = t[14], p;
49
- }), _ = (h, t) => {
50
- const e = h.replace("#", ""), c = parseInt(e.length === 3 ? e[0] + e[0] : e.slice(0, 2), 16), m = parseInt(e.length === 3 ? e[1] + e[1] : e.slice(2, 4), 16), o = parseInt(e.length === 3 ? e[2] + e[2] : e.slice(4, 6), 16);
51
- return `rgba(${c}, ${m}, ${o}, ${t})`;
52
- };
53
- export {
54
- R as DFlowFunctionGroupCard
55
- };
@@ -1,26 +0,0 @@
1
- import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
- import { Handle as s, Position as l } from "@xyflow/react";
3
- import { memo as m } from "react";
4
- import { Button as c } from "../../button/Button.js";
5
- import { IconPlus as f } from "@tabler/icons-react";
6
- import { useSuggestions as u } from "../suggestion/DFlowSuggestion.hook.js";
7
- import { NodeFunctionView as g } from "../DFlow.view.js";
8
- import { useService as p } from "../../../utils/contextStore.js";
9
- import { DFlowReactiveService as w } from "../DFlow.service.js";
10
- import { DFlowSuggestionMenu as v } from "../suggestion/DFlowSuggestionMenu.js";
11
- const b = m((o) => {
12
- const r = u(void 0, [], o.data.flowId, 0, [0], 0), i = p(w), t = i.getById(o.data.flowId);
13
- return /* @__PURE__ */ n(v, { onSuggestionSelect: (a) => {
14
- const e = new g(a.value);
15
- o.data.parentFunction ? o.data.parentFunction.nextNodeId = e.id : t && (t.startingNodeId = e.id), t?.addNode(e), i.update();
16
- }, suggestions: r, triggerContent: /* @__PURE__ */ d(c, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
17
- /* @__PURE__ */ n(s, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
18
- top: "2px"
19
- }, position: l.Top }),
20
- /* @__PURE__ */ n(f, { size: 16 }),
21
- "Add next"
22
- ] }) });
23
- });
24
- export {
25
- b as DFlowFunctionSuggestionCard
26
- };
@@ -1,93 +0,0 @@
1
- import { jsx as o, jsxs as _ } from "react/jsx-runtime";
2
- import { c as j } from "../../../_virtual/compiler-runtime.js";
3
- import { memo as X } from "react";
4
- import { useReactFlow as Y, useStore as D, Handle as k, Position as H } from "@xyflow/react";
5
- import { Text as I } from "../../text/Text.js";
6
- import { useService as R } from "../../../utils/contextStore.js";
7
- import { FileTabsService as N } from "../../file-tabs/FileTabs.service.js";
8
- import { Card as E } from "../../card/Card.js";
9
- import { Flex as v } from "../../flex/Flex.js";
10
- import { IconBolt as P, IconChevronDown as V } from "@tabler/icons-react";
11
- import { Button as W } from "../../button/Button.js";
12
- import { DFlowTabTrigger as $ } from "../tab/DFlowTabTrigger.js";
13
- import { DFlowTypeReactiveService as q } from "../type/DFlowType.service.js";
14
- import { Badge as G } from "../../badge/Badge.js";
15
- const se = X((t) => {
16
- const e = j.c(31), {
17
- data: i,
18
- id: s
19
- } = t, a = R(N), S = Y(), x = R(q);
20
- let m;
21
- e[0] !== i.instance.type?.id || e[1] !== x ? (m = x.getById(i.instance.type?.id), e[0] = i.instance.type?.id, e[1] = x, e[2] = m) : m = e[2];
22
- const c = m, T = t.width ?? 0, A = t.height ?? 0, z = D(J), F = D(K);
23
- let d, f;
24
- e[3] === Symbol.for("react.memo_cache_sentinel") ? (d = {
25
- flexDirection: "column",
26
- gap: "0.35rem"
27
- }, f = /* @__PURE__ */ o(G, { color: "primary", children: "START" }), e[3] = d, e[4] = f) : (d = e[3], f = e[4]);
28
- const B = a.getActiveTab()?.id == s ? "d-flow-viewport-default-card--active" : void 0;
29
- let n;
30
- e[5] !== i.instance || e[6] !== c?.names?.nodes || e[7] !== a || e[8] !== S || e[9] !== A || e[10] !== s || e[11] !== t.positionAbsoluteX || e[12] !== t.positionAbsoluteY || e[13] !== F || e[14] !== z || e[15] !== T ? (n = () => {
31
- S.setViewport({
32
- x: z / 2 + t.positionAbsoluteX * -1 - T / 2,
33
- y: F / 2 + t.positionAbsoluteY * -1 - A / 2,
34
- zoom: 1
35
- }, {
36
- duration: 250
37
- }), a.add({
38
- id: s,
39
- active: !0,
40
- closeable: !0,
41
- children: /* @__PURE__ */ o(I, { size: "md", children: c?.names?.nodes[0]?.content }),
42
- content: /* @__PURE__ */ o($, { instance: i.instance })
43
- });
44
- }, e[5] = i.instance, e[6] = c?.names?.nodes, e[7] = a, e[8] = S, e[9] = A, e[10] = s, e[11] = t.positionAbsoluteX, e[12] = t.positionAbsoluteY, e[13] = F, e[14] = z, e[15] = T, e[16] = n) : n = e[16];
45
- let p;
46
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (p = {
47
- gap: "1.3rem"
48
- }, e[17] = p) : p = e[17];
49
- let h;
50
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (h = {
51
- gap: "0.7rem"
52
- }, e[18] = h) : h = e[18];
53
- let u;
54
- e[19] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ o(P, { size: 16 }), e[19] = u) : u = e[19];
55
- const C = c?.names?.nodes[0]?.content ?? c?.id;
56
- let l;
57
- e[20] !== C ? (l = /* @__PURE__ */ _(v, { style: h, align: "center", children: [
58
- u,
59
- /* @__PURE__ */ o(I, { display: "block", size: "md", children: C })
60
- ] }), e[20] = C, e[21] = l) : l = e[21];
61
- let b;
62
- e[22] === Symbol.for("react.memo_cache_sentinel") ? (b = {
63
- gap: "0.7rem"
64
- }, e[22] = b) : b = e[22];
65
- let y;
66
- e[23] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ o(v, { align: "center", style: b, children: /* @__PURE__ */ o(W, { p: "0", paddingSize: "xxs", variant: "none", disabled: !0, children: /* @__PURE__ */ o(V, { size: 16 }) }) }), e[23] = y) : y = e[23];
67
- let r;
68
- e[24] !== l ? (r = /* @__PURE__ */ _(v, { style: p, align: "center", justify: "space-between", children: [
69
- l,
70
- y
71
- ] }), e[24] = l, e[25] = r) : r = e[25];
72
- let g;
73
- e[26] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(k, { isConnectable: !1, type: "source", style: {
74
- bottom: "2px"
75
- }, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: H.Bottom }), e[26] = g) : g = e[26];
76
- let w;
77
- return e[27] !== r || e[28] !== B || e[29] !== n ? (w = /* @__PURE__ */ _(v, { align: "center", style: d, children: [
78
- f,
79
- /* @__PURE__ */ _(E, { variant: "normal", color: "success", paddingSize: "xs", className: B, onClick: n, children: [
80
- r,
81
- g
82
- ] })
83
- ] }), e[27] = r, e[28] = B, e[29] = n, e[30] = w) : w = e[30], w;
84
- });
85
- function J(t) {
86
- return t.width;
87
- }
88
- function K(t) {
89
- return t.height;
90
- }
91
- export {
92
- se as DFlowFunctionTriggerCard
93
- };
@@ -1,22 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { c as d } from "../../../_virtual/compiler-runtime.js";
3
- import { useNodes as h, MiniMap as s } from "@xyflow/react";
4
- import { FLOW_EDGE_RAINBOW as m } from "../DFlow.edges.hook.js";
5
- import '../../../assets/components/d-flow/minimap/DFlowMiniMap.style.css';/* empty css */
6
- const w = (c) => {
7
- const e = d.c(2), o = h();
8
- let i;
9
- return e[0] !== o ? (i = /* @__PURE__ */ l(s, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
10
- const r = o.find((n) => n.id === t.id);
11
- if (!r || r.type == "suggestion")
12
- return null;
13
- if (r.type == "group") {
14
- const n = r.data?.depth ?? 0, a = m[n % m.length];
15
- return /* @__PURE__ */ l("rect", { width: t.width, height: t.height, rx: 50, ry: 50, fill: a, fillOpacity: 0.05, stroke: a, strokeWidth: 2, "stroke-dasharray": "20", className: "d-flow-viewport-mini-map__group", x: t.x, y: t.y });
16
- }
17
- return /* @__PURE__ */ l("rect", { width: t.width, height: t.height, x: t.x, rx: 25, ry: 25, fill: "rgb(28.2, 25.5, 43.5)", y: t.y });
18
- } }), e[0] = o, e[1] = i) : i = e[1], i;
19
- };
20
- export {
21
- w as DFlowMiniMap
22
- };
@@ -1 +0,0 @@
1
- export * from './DFlowMiniMap';
@@ -1,4 +0,0 @@
1
- import { DFlowMiniMap as p } from "./DFlowMiniMap.js";
2
- export {
3
- p as DFlowMiniMap
4
- };