@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/components/avatar/Avatar.js +6 -7
  2. package/dist/components/data-table/DataTableFilterInput.js +5 -3
  3. package/dist/components/editor/Editor.js +29 -30
  4. package/dist/components/form/InputSuggestion.js +29 -29
  5. package/dist/components/form/useForm.d.ts +3 -3
  6. package/dist/components/form/useForm.js +16 -16
  7. package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
  8. package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
  9. package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
  10. package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
  11. package/dist/components/menu/Menu.js +8 -8
  12. package/dist/components/resizable/Resizable.d.ts +12 -0
  13. package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
  14. package/dist/components/tab/Tab.js +4 -4
  15. package/dist/components/toast/Toast.js +1 -1
  16. package/dist/index.d.ts +0 -20
  17. package/dist/index.js +152 -273
  18. package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
  19. package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
  20. package/dist/node_modules/prettier/standalone.js +1657 -1440
  21. package/package.json +29 -29
  22. package/dist/assets/components/d-flow/DFlow.style.css +0 -1
  23. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
  24. package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
  25. package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
  26. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
  27. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  28. package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
  29. package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
  30. package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
  31. package/dist/components/d-application/DApplication.service.d.ts +0 -9
  32. package/dist/components/d-application/DApplication.service.js +0 -10
  33. package/dist/components/d-flow/DFlow.d.ts +0 -9
  34. package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
  35. package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
  36. package/dist/components/d-flow/DFlow.js +0 -484
  37. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
  38. package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
  39. package/dist/components/d-flow/DFlow.service.d.ts +0 -21
  40. package/dist/components/d-flow/DFlow.service.js +0 -148
  41. package/dist/components/d-flow/DFlow.util.d.ts +0 -4
  42. package/dist/components/d-flow/DFlow.util.js +0 -63
  43. package/dist/components/d-flow/DFlow.view.d.ts +0 -4
  44. package/dist/components/d-flow/DFlow.view.js +0 -1
  45. package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
  46. package/dist/components/d-flow/DFlowEdge.js +0 -69
  47. package/dist/components/d-flow/index.d.ts +0 -4
  48. package/dist/components/d-flow/index.js +0 -10
  49. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
  50. package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
  51. package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
  52. package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
  53. package/dist/components/d-flow-data-type/index.d.ts +0 -2
  54. package/dist/components/d-flow-data-type/index.js +0 -6
  55. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
  56. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
  57. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
  58. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
  59. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
  60. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
  61. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
  62. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
  63. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
  64. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
  65. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
  66. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
  67. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
  68. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
  69. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
  70. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
  71. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
  72. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
  73. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
  74. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
  75. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
  76. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
  77. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
  78. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
  79. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
  80. package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
  81. package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
  82. package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
  83. package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
  84. package/dist/components/d-flow-file/DFlowTabs.js +0 -84
  85. package/dist/components/d-flow-file/index.d.ts +0 -1
  86. package/dist/components/d-flow-file/index.js +0 -4
  87. package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
  88. package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
  89. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
  90. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
  91. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
  92. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
  93. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
  94. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
  95. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
  96. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
  97. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
  98. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
  99. package/dist/components/d-flow-folder/index.d.ts +0 -4
  100. package/dist/components/d-flow-folder/index.js +0 -13
  101. package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
  102. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
  103. package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
  104. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
  105. package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
  106. package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
  107. package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
  108. package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
  109. package/dist/components/d-flow-function/index.d.ts +0 -2
  110. package/dist/components/d-flow-function/index.js +0 -7
  111. package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
  112. package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
  113. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
  114. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
  115. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
  116. package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
  117. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
  118. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
  119. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
  120. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
  121. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
  122. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
  123. package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
  124. package/dist/components/d-flow-node/DFlowNode.js +0 -1
  125. package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
  126. package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
  127. package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
  128. package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
  129. package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
  130. package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
  131. package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
  132. package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
  133. package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
  134. package/dist/components/d-flow-panel/DFlowExport.js +0 -33
  135. package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
  136. package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
  137. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
  138. package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
  139. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
  140. package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
  141. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
  142. package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
  143. package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
  144. package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
  145. package/dist/components/d-flow-panel/index.d.ts +0 -5
  146. package/dist/components/d-flow-panel/index.js +0 -12
  147. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
  148. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
  149. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
  150. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
  151. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
  152. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
  153. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
  154. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
  155. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
  156. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
  157. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
  158. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
  159. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
  160. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
  161. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
  162. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
  163. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
  164. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
  165. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
  166. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
  167. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
  168. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
  169. package/dist/components/d-flow-suggestion/index.d.ts +0 -1
  170. package/dist/components/d-flow-suggestion/index.js +0 -4
  171. package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
  172. package/dist/components/d-flow-type/DFlowType.service.js +0 -13
  173. package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
  174. package/dist/components/d-flow-type/DFlowType.view.js +0 -93
  175. package/dist/components/d-flow-type/index.d.ts +0 -2
  176. package/dist/components/d-flow-type/index.js +0 -6
  177. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
  178. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
  179. package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
  180. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
  181. package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
  182. package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
  183. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
  184. package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
  185. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
  186. package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
  187. package/dist/components/d-flow-validation/index.d.ts +0 -2
  188. package/dist/components/d-flow-validation/index.js +0 -6
  189. package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
  190. package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
  191. package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
  192. package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
  193. package/dist/components/d-license/index.d.ts +0 -2
  194. package/dist/components/d-license/index.js +0 -6
  195. package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
  196. package/dist/components/d-member/DNamespaceMember.service.js +0 -18
  197. package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
  198. package/dist/components/d-member/DNamespaceMember.view.js +0 -62
  199. package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
  200. package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
  201. package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
  202. package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
  203. package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
  204. package/dist/components/d-member/DNamespaceMemberList.js +0 -24
  205. package/dist/components/d-member/index.d.ts +0 -4
  206. package/dist/components/d-member/index.js +0 -10
  207. package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
  208. package/dist/components/d-namespace/DNamespace.service.js +0 -13
  209. package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
  210. package/dist/components/d-namespace/DNamespace.view.js +0 -65
  211. package/dist/components/d-namespace/index.d.ts +0 -2
  212. package/dist/components/d-namespace/index.js +0 -6
  213. package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
  214. package/dist/components/d-organization/DOrganization.service.js +0 -13
  215. package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
  216. package/dist/components/d-organization/DOrganization.view.js +0 -55
  217. package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
  218. package/dist/components/d-organization/DOrganizationCard.js +0 -16
  219. package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
  220. package/dist/components/d-organization/DOrganizationList.js +0 -24
  221. package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
  222. package/dist/components/d-organization/DOrganizationMenu.js +0 -18
  223. package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
  224. package/dist/components/d-organization/DOrganizatonContent.js +0 -102
  225. package/dist/components/d-organization/index.d.ts +0 -5
  226. package/dist/components/d-organization/index.js +0 -40
  227. package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
  228. package/dist/components/d-project/DNamespaceProject.service.js +0 -13
  229. package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
  230. package/dist/components/d-project/DNamespaceProject.view.js +0 -78
  231. package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
  232. package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
  233. package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
  234. package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
  235. package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
  236. package/dist/components/d-project/DNamespaceProjectList.js +0 -26
  237. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
  238. package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
  239. package/dist/components/d-project/index.d.ts +0 -5
  240. package/dist/components/d-project/index.js +0 -27
  241. package/dist/components/d-resizable/DResizable.d.ts +0 -12
  242. package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
  243. package/dist/components/d-role/DNamespaceRole.service.js +0 -13
  244. package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
  245. package/dist/components/d-role/DNamespaceRole.view.js +0 -61
  246. package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
  247. package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
  248. package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
  249. package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
  250. package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
  251. package/dist/components/d-role/DNamespaceRoleList.js +0 -25
  252. package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
  253. package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
  254. package/dist/components/d-role/index.d.ts +0 -4
  255. package/dist/components/d-role/index.js +0 -10
  256. package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
  257. package/dist/components/d-runtime/DRuntime.service.js +0 -9
  258. package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
  259. package/dist/components/d-runtime/DRuntime.view.js +0 -76
  260. package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
  261. package/dist/components/d-runtime/DRuntimeCard.js +0 -18
  262. package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
  263. package/dist/components/d-runtime/DRuntimeContent.js +0 -46
  264. package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
  265. package/dist/components/d-runtime/DRuntimeList.js +0 -29
  266. package/dist/components/d-runtime/index.d.ts +0 -4
  267. package/dist/components/d-runtime/index.js +0 -10
  268. package/dist/components/d-user/DUser.service.d.ts +0 -20
  269. package/dist/components/d-user/DUser.service.js +0 -18
  270. package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
  271. package/dist/components/d-user/DUser.session.hook.js +0 -16
  272. package/dist/components/d-user/DUser.view.d.ts +0 -55
  273. package/dist/components/d-user/DUser.view.js +0 -103
  274. package/dist/components/d-user/DUserCard.d.ts +0 -8
  275. package/dist/components/d-user/DUserCard.js +0 -15
  276. package/dist/components/d-user/DUserContent.d.ts +0 -8
  277. package/dist/components/d-user/DUserContent.js +0 -52
  278. package/dist/components/d-user/DUserInput.d.ts +0 -7
  279. package/dist/components/d-user/DUserInput.js +0 -101
  280. package/dist/components/d-user/DUserList.d.ts +0 -9
  281. package/dist/components/d-user/DUserList.js +0 -23
  282. package/dist/components/d-user/DUserMenu.d.ts +0 -8
  283. package/dist/components/d-user/DUserMenu.js +0 -30
  284. package/dist/components/d-user/index.d.ts +0 -7
  285. package/dist/components/d-user/index.js +0 -27
  286. package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
  287. package/dist/utils/generics.d.ts +0 -21
  288. package/dist/utils/generics.js +0 -385
  289. /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
  290. /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
  291. /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
@@ -1,15 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as l } from "../../_virtual/compiler-runtime.js";
3
- import { useNodes as a, Panel as m, MiniMap as d } from "@xyflow/react";
4
- import '../../assets/components/d-flow-panel/DFlowMiniMap.style.css';/* empty css */
5
- const y = (h) => {
6
- const e = l.c(2), o = a();
7
- let i;
8
- return e[0] !== o ? (i = /* @__PURE__ */ r(m, { position: "bottom-right", children: /* @__PURE__ */ r(d, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
9
- const n = o.find((f) => f.id === t.id);
10
- return !n || n.type == "suggestion" ? null : n.type == "group" ? /* @__PURE__ */ r("rect", { width: t.width, height: t.height, rx: 50, ry: 50, fill: "#ffffff", fillOpacity: 0.05, stroke: "#ffffff", strokeWidth: 2, "stroke-dasharray": "20", className: "d-flow-viewport-mini-map__group", x: t.x, y: t.y }) : /* @__PURE__ */ r("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 });
11
- } }) }), e[0] = o, e[1] = i) : i = e[1], i;
12
- };
13
- export {
14
- y as DFlowMiniMap
15
- };
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
- export interface DFlowPanelControlProps {
4
- flowId: Flow['id'];
5
- }
6
- export declare const DFlowPanelControl: React.FC<DFlowPanelControlProps>;
@@ -1,51 +0,0 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import n from "react";
3
- import { ButtonGroup as y } from "../button-group/ButtonGroup.js";
4
- import { Button as m } from "../button/Button.js";
5
- import { Panel as N } from "@xyflow/react";
6
- import { useService as f, useStore as u } from "../../utils/contextStore.js";
7
- import "merge-props";
8
- import "js-md5";
9
- import { FileTabsService as v } from "../file-tabs/FileTabs.service.js";
10
- import "../d-flow/DFlow.js";
11
- import { DFlowReactiveService as S } from "../d-flow/DFlow.service.js";
12
- import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
13
- import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
14
- import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
15
- import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
16
- import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
17
- import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
18
- import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
19
- import { Tooltip as b, TooltipTrigger as I, TooltipPortal as B, TooltipContent as C } from "../tooltip/Tooltip.js";
20
- import { Text as s } from "../text/Text.js";
21
- import { DFlowSuggestionMenu as k } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
22
- import { useSuggestions as F } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
23
- const Z = (w) => {
24
- const {
25
- flowId: t
26
- } = w, d = f(v), h = u(v), r = f(S), c = u(S), [, l] = n.useTransition(), o = n.useMemo(() => d.values().find((i) => i.active), [h, d]), T = F(t, o?.content?.props?.node?.id), x = n.useCallback(() => {
27
- o && o?.content?.props?.flowId && l(async () => {
28
- r.getLinkedNodesById(t, o?.content?.props?.node.id).forEach((p) => {
29
- p.id && d.deleteById(p.id);
30
- }), await r.deleteNodeById(o?.content?.props?.flowId, o?.content?.props?.node.id);
31
- });
32
- }, [o, r, c]), g = n.useCallback((i) => {
33
- t && i.value.__typename === "NodeFunction" && "node" in o.content?.props ? l(async () => {
34
- await r.addNextNodeById(t, o?.content?.props.node.id ?? void 0, i.value);
35
- }) : l(async () => {
36
- await r.addNextNodeById(t, null, i.value);
37
- });
38
- }, [t, r, c, o]);
39
- return /* @__PURE__ */ e(N, { position: "bottom-center", children: /* @__PURE__ */ a(y, { style: {
40
- textWrap: "nowrap"
41
- }, children: [
42
- /* @__PURE__ */ a(b, { children: [
43
- /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e(m, { disabled: !o || !o?.content?.props.flowId, onClick: x, paddingSize: "xxs", variant: "filled", color: "error", children: /* @__PURE__ */ e(s, { children: "Delete node" }) }) }),
44
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(C, { sideOffset: 8, children: /* @__PURE__ */ e(s, { children: "Select a node to delete it" }) }) })
45
- ] }),
46
- /* @__PURE__ */ e(k, { suggestions: T, onSuggestionSelect: g, triggerContent: /* @__PURE__ */ e(m, { disabled: !o, paddingSize: "xxs", variant: "filled", color: "secondary", children: /* @__PURE__ */ e(s, { children: "Add next node" }) }) })
47
- ] }) });
48
- };
49
- export {
50
- Z as DFlowPanelControl
51
- };
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface DFlowPanelLayoutProps {
3
- }
4
- export declare const DFlowPanelLayout: React.FC<DFlowPanelLayoutProps>;
@@ -1,38 +0,0 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import { c as p } from "../../_virtual/compiler-runtime.js";
3
- import { SegmentedControlItem as s, SegmentedControl as y } from "../segmented-control/SegmentedControl.js";
4
- import { IconLayoutDistributeHorizontal as b, IconLayoutDistributeVertical as _, IconLayout as x } from "@tabler/icons-react";
5
- import { Panel as S } from "@xyflow/react";
6
- import { TooltipTrigger as m, Tooltip as d, TooltipPortal as h, TooltipContent as f } from "../tooltip/Tooltip.js";
7
- import { Text as u } from "../text/Text.js";
8
- const O = (z) => {
9
- const t = p.c(6);
10
- let l;
11
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(s, { value: "horizontal", display: "flex", children: /* @__PURE__ */ e(b, { size: 13 }) }) }), t[0] = l) : l = t[0];
12
- let o;
13
- t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ a(d, { children: [
14
- l,
15
- /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(f, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e(u, { children: "Vertical layout" }) }) })
16
- ] }), t[1] = o) : o = t[1];
17
- let i;
18
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(s, { disabled: !0, value: "vertical", display: "flex", children: /* @__PURE__ */ e(_, { size: 13 }) }) }), t[2] = i) : i = t[2];
19
- let r;
20
- t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(d, { children: [
21
- i,
22
- /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(f, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e(u, { children: "Horizontal layout" }) }) })
23
- ] }), t[3] = r) : r = t[3];
24
- let n;
25
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(s, { disabled: !0, value: "manual", display: "flex", children: /* @__PURE__ */ e(x, { size: 13 }) }) }), t[4] = n) : n = t[4];
26
- let c;
27
- return t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ e(S, { position: "top-center", children: /* @__PURE__ */ a(y, { type: "single", defaultValue: "horizontal", children: [
28
- o,
29
- r,
30
- /* @__PURE__ */ a(d, { children: [
31
- n,
32
- /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(f, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e(u, { children: "Manual layout" }) }) })
33
- ] })
34
- ] }) }), t[5] = c) : c = t[5], c;
35
- };
36
- export {
37
- O as DFlowPanelLayout
38
- };
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const DFlowPanelSize: React.FC;
@@ -1,89 +0,0 @@
1
- import { jsx as o, jsxs as B } from "react/jsx-runtime";
2
- import { c as M } from "../../_virtual/compiler-runtime.js";
3
- import { useViewport as O, useReactFlow as R, Panel as V } from "@xyflow/react";
4
- import { ButtonGroup as D } from "../button-group/ButtonGroup.js";
5
- import { Button as j } from "../button/Button.js";
6
- import { IconPlus as E, IconMinus as G, IconFocusCentered as T } from "@tabler/icons-react";
7
- import { Badge as Z } from "../badge/Badge.js";
8
- import { Flex as $ } from "../flex/Flex.js";
9
- import { Text as q } from "../text/Text.js";
10
- const X = () => {
11
- const e = M.c(39), C = O(), t = R();
12
- let d;
13
- e[0] !== t ? (d = () => {
14
- t.zoomIn();
15
- }, e[0] = t, e[1] = d) : d = e[1];
16
- const F = d;
17
- let p;
18
- e[2] !== t ? (p = () => {
19
- t.zoomOut();
20
- }, e[2] = t, e[3] = p) : p = e[3];
21
- const v = p;
22
- let h;
23
- e[4] !== t ? (h = () => {
24
- t.fitView();
25
- }, e[4] = t, e[5] = h) : h = e[5];
26
- const P = h;
27
- let y;
28
- e[6] !== C.zoom ? (y = () => Math.round(C.zoom * 100), e[6] = C.zoom, e[7] = y) : y = e[7];
29
- const k = y;
30
- let _;
31
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
32
- gap: ".35rem"
33
- }, e[8] = _) : _ = e[8];
34
- let u;
35
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
36
- border: "none"
37
- }, e[9] = u) : u = e[9];
38
- let l;
39
- e[10] !== F ? (l = () => F(), e[10] = F, e[11] = l) : l = e[11];
40
- let z;
41
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ o(E, { size: 13 }), e[12] = z) : z = e[12];
42
- let i;
43
- e[13] !== l ? (i = /* @__PURE__ */ o(j, { style: u, variant: "filled", paddingSize: "xxs", color: "secondary", onClick: l, children: z }), e[13] = l, e[14] = i) : i = e[14];
44
- let b;
45
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
46
- border: "none"
47
- }, e[15] = b) : b = e[15];
48
- let r;
49
- e[16] !== v ? (r = () => v(), e[16] = v, e[17] = r) : r = e[17];
50
- let x;
51
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(G, { size: 13 }), e[18] = x) : x = e[18];
52
- let n;
53
- e[19] !== r ? (n = /* @__PURE__ */ o(j, { style: b, variant: "filled", paddingSize: "xxs", color: "secondary", onClick: r, children: x }), e[19] = r, e[20] = n) : n = e[20];
54
- let S;
55
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
56
- border: "none"
57
- }, e[21] = S) : S = e[21];
58
- let s;
59
- e[22] !== P ? (s = () => P(), e[22] = P, e[23] = s) : s = e[23];
60
- let g;
61
- e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(T, { size: 13 }), e[24] = g) : g = e[24];
62
- let c;
63
- e[25] !== s ? (c = /* @__PURE__ */ o(j, { style: S, variant: "filled", paddingSize: "xxs", color: "secondary", onClick: s, children: g }), e[25] = s, e[26] = c) : c = e[26];
64
- let m;
65
- e[27] !== n || e[28] !== c || e[29] !== i ? (m = /* @__PURE__ */ B(D, { children: [
66
- i,
67
- n,
68
- c
69
- ] }), e[27] = n, e[28] = c, e[29] = i, e[30] = m) : m = e[30];
70
- let w;
71
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
72
- boxShadow: "none"
73
- }, e[31] = w) : w = e[31];
74
- let f;
75
- e[32] !== k ? (f = k(), e[32] = k, e[33] = f) : f = e[33];
76
- let a;
77
- e[34] !== f ? (a = /* @__PURE__ */ o(Z, { color: "primary", style: w, children: /* @__PURE__ */ B(q, { children: [
78
- f,
79
- "%"
80
- ] }) }), e[34] = f, e[35] = a) : a = e[35];
81
- let I;
82
- return e[36] !== m || e[37] !== a ? (I = /* @__PURE__ */ o(V, { position: "bottom-left", children: /* @__PURE__ */ B($, { align: "center", style: _, children: [
83
- m,
84
- a
85
- ] }) }), e[36] = m, e[37] = a, e[38] = I) : I = e[38], I;
86
- };
87
- export {
88
- X as DFlowPanelSize
89
- };
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
- export interface DFlowPanelUpdateProps {
4
- flowId: Flow['id'];
5
- }
6
- export declare const DFlowPanelUpdate: React.FC<DFlowPanelUpdateProps>;
@@ -1,77 +0,0 @@
1
- import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
- import c from "react";
3
- import { IconCloudUpload as M, IconCloudCheck as x } from "@tabler/icons-react";
4
- import { Panel as A } from "@xyflow/react";
5
- import { Tooltip as g, TooltipTrigger as T, TooltipPortal as y, TooltipContent as b, TooltipArrow as D } from "../tooltip/Tooltip.js";
6
- import { Text as v } from "../text/Text.js";
7
- import { useService as S, useStore as I } from "../../utils/contextStore.js";
8
- import "merge-props";
9
- import "js-md5";
10
- import "../d-flow/DFlow.js";
11
- import { DFlowReactiveService as C } from "../d-flow/DFlow.service.js";
12
- import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
13
- import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
14
- import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
15
- import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
16
- import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
17
- import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
18
- import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
19
- import { Badge as j } from "../badge/Badge.js";
20
- import { Button as B } from "../button/Button.js";
21
- const Z = (e) => {
22
- const {
23
- flowId: n
24
- } = e, r = S(C), t = I(C), [s, a] = c.useTransition(), i = c.useMemo(() => r.getById(n), [n, t]), m = c.useMemo(() => !!i?.editedAt && new Date(i?.updatedAt ?? Date.now()).getTime() != new Date(i?.editedAt ?? Date.now()).getTime(), [i, t]), d = c.useMemo(() => U(i?.updatedAt ?? Date.now()), [i, t]), f = c.useCallback(() => {
25
- const p = r.getPayloadById(n);
26
- n && a(async () => {
27
- await r.flowUpdate({
28
- flowInput: p,
29
- flowId: n
30
- });
31
- });
32
- }, [n, r]);
33
- return /* @__PURE__ */ o(A, { position: "top-right", children: m ? /* @__PURE__ */ l(g, { children: [
34
- /* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ o(B, { onClick: f, disabled: s, paddingSize: "xxs", children: s ? "Saving..." : /* @__PURE__ */ o(M, { size: 13 }) }) }),
35
- /* @__PURE__ */ o(y, { children: /* @__PURE__ */ l(b, { side: "bottom", maw: "200px", children: [
36
- /* @__PURE__ */ o(D, {}),
37
- /* @__PURE__ */ o(v, { children: "Changes are also saved automatically within 1 minute" })
38
- ] }) })
39
- ] }) : /* @__PURE__ */ l(g, { children: [
40
- /* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ o(x, { size: 16, color: "#70ffb2" }) }),
41
- /* @__PURE__ */ o(y, { children: /* @__PURE__ */ l(b, { side: "bottom", maw: "200px", children: [
42
- /* @__PURE__ */ o(D, {}),
43
- /* @__PURE__ */ l(v, { children: [
44
- "Last save ",
45
- /* @__PURE__ */ o(j, { border: !0, color: "secondary", children: d }),
46
- ".",
47
- /* @__PURE__ */ o("br", {}),
48
- " Everything is synced."
49
- ] })
50
- ] }) })
51
- ] }) });
52
- }, U = (e) => {
53
- const n = Date.now();
54
- let r;
55
- if (e instanceof Date)
56
- r = e.getTime();
57
- else if (typeof e == "number")
58
- r = e < 1e12 ? e * 1e3 : e;
59
- else {
60
- const h = Number(e);
61
- r = Number.isFinite(h) ? h < 1e12 ? h * 1e3 : h : new Date(e).getTime();
62
- }
63
- if (!Number.isFinite(r)) return "just now";
64
- let t = n - r;
65
- if (t <= 0) return "just now";
66
- const s = 6e4, a = 60 * s, i = 24 * a, m = 365 * i, d = Math.floor(t / m);
67
- t %= m;
68
- const f = Math.floor(t / i);
69
- t %= i;
70
- const p = Math.floor(t / a);
71
- t %= a;
72
- const u = Math.floor(t / s), w = [d && `${d}y`, f && `${f}d`, p && `${p}h`, u && `${u}m`].filter(Boolean);
73
- return w.length ? `${w.join(" ")} ago` : "just now";
74
- };
75
- export {
76
- Z as DFlowPanelUpdate
77
- };
@@ -1,5 +0,0 @@
1
- export * from './DFlowPanelSize';
2
- export * from './DFlowPanelControl';
3
- export * from './DFlowExport';
4
- export * from './DFlowMiniMap';
5
- export * from './DFlowPanelLayout';
@@ -1,12 +0,0 @@
1
- import { DFlowPanelSize as e } from "./DFlowPanelSize.js";
2
- import { DFlowPanelControl as t } from "./DFlowPanelControl.js";
3
- import { DFlowExport as x } from "./DFlowExport.js";
4
- import { DFlowMiniMap as f } from "./DFlowMiniMap.js";
5
- import { DFlowPanelLayout as n } from "./DFlowPanelLayout.js";
6
- export {
7
- x as DFlowExport,
8
- f as DFlowMiniMap,
9
- t as DFlowPanelControl,
10
- n as DFlowPanelLayout,
11
- e as DFlowPanelSize
12
- };
@@ -1,3 +0,0 @@
1
- import { DFlowSuggestion } from './DFlowSuggestion.view';
2
- import { DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
3
- export declare const useDataTypeSuggestions: (dataTypeIdentifier?: DataTypeIdentifier) => DFlowSuggestion[];
@@ -1,34 +0,0 @@
1
- import { c as s } from "../../_virtual/compiler-runtime.js";
2
- import { useService as c, useStore as n } from "../../utils/contextStore.js";
3
- import "react";
4
- import "merge-props";
5
- import "js-md5";
6
- import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
7
- import { DFlowSuggestionType as l } from "./DFlowSuggestion.view.js";
8
- const _ = (t) => {
9
- const e = s.c(3), o = c(p);
10
- n(p);
11
- const m = t ? o?.getDataType(t) : void 0;
12
- let a;
13
- e: {
14
- if (!m || m.variant !== "DATA_TYPE") {
15
- let i;
16
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [], e[0] = i) : i = e[0], a = i;
17
- break e;
18
- }
19
- let r;
20
- e[1] !== o ? (r = o.values().map(u), e[1] = o, e[2] = r) : r = e[2], a = r;
21
- }
22
- return a;
23
- };
24
- function u(t) {
25
- return {
26
- path: [],
27
- type: l.DATA_TYPE,
28
- displayText: [t.name[0]?.content],
29
- value: t.json
30
- };
31
- }
32
- export {
33
- _ as useDataTypeSuggestions
34
- };
@@ -1,3 +0,0 @@
1
- import { DFlowSuggestion } from './DFlowSuggestion.view';
2
- import { DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
3
- export declare const useFunctionSuggestions: (dataTypeIdentifier?: DataTypeIdentifier, genericKeys?: string[]) => DFlowSuggestion[];
@@ -1,50 +0,0 @@
1
- import c from "react";
2
- import { useService as F, useStore as v } from "../../utils/contextStore.js";
3
- import "merge-props";
4
- import "js-md5";
5
- import { DFlowDataTypeReactiveService as d } from "../d-flow-data-type/DFlowDataType.service.js";
6
- import { DFlowSuggestionType as A } from "./DFlowSuggestion.view.js";
7
- import { DFlowFunctionReactiveService as f } from "../d-flow-function/DFlowFunction.service.js";
8
- import { replaceGenericsAndSortType as S, resolveType as y, isMatchingType as M } from "../../utils/generics.js";
9
- const P = (t, m = []) => {
10
- const r = F(d), a = F(f), n = v(d), T = v(f), p = c.useMemo(() => t ? r?.getDataType(t) : void 0, [t, r, n]), i = c.useMemo(() => t ? S(y(t, r), m) : void 0, [t, r, n, m]);
11
- return c.useMemo(() => a.values().filter((e) => {
12
- if (!t || !i) return !0;
13
- if (e.runtimeFunctionDefinition?.identifier == "std::control::return") return !1;
14
- if (p?.variant === "NODE") return !0;
15
- if (!e.returnType || !e.genericKeys) return !1;
16
- const o = S(y(e.returnType, r), e.genericKeys);
17
- return M(i, o);
18
- }).sort((e, o) => {
19
- const [s, u, D] = e.runtimeFunctionDefinition.identifier.split("::"), [C, N, h] = o.runtimeFunctionDefinition.identifier.split("::"), l = s.localeCompare(C);
20
- if (l !== 0) return l;
21
- const g = u.localeCompare(N);
22
- return g !== 0 ? g : D.localeCompare(h);
23
- }).map((e) => {
24
- const o = {
25
- __typename: "NodeFunction",
26
- id: "gid://sagittarius/NodeFunction/1",
27
- functionDefinition: {
28
- id: e.id,
29
- runtimeFunctionDefinition: e.runtimeFunctionDefinition
30
- },
31
- parameters: {
32
- nodes: e.parameterDefinitions?.map((s, u) => ({
33
- id: `gid://sagittarius/NodeParameter/${u}`,
34
- parameterDefinition: {
35
- id: s.id
36
- }
37
- })) ?? []
38
- }
39
- };
40
- return {
41
- path: [],
42
- type: A.FUNCTION,
43
- displayText: [e.names[0]?.content],
44
- value: o
45
- };
46
- }), [p, t, r, a, T, i, n]);
47
- };
48
- export {
49
- P as useFunctionSuggestions
50
- };
@@ -1,3 +0,0 @@
1
- import { DFlowSuggestion } from './DFlowSuggestion.view';
2
- import { DataTypeIdentifier, Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
3
- export declare const useReferenceSuggestions: (flowId: Flow["id"], nodeId?: NodeFunction["id"], dataTypeIdentifier?: DataTypeIdentifier, genericKeys?: string[]) => DFlowSuggestion[];
@@ -1,132 +0,0 @@
1
- import g from "react";
2
- import { useService as I, useStore as N } from "../../utils/contextStore.js";
3
- import "merge-props";
4
- import "js-md5";
5
- import { DFlowDataTypeReactiveService as x } from "../d-flow-data-type/DFlowDataType.service.js";
6
- import { DFlowSuggestionType as A } from "./DFlowSuggestion.view.js";
7
- import { replaceGenericsAndSortType as C, resolveType as P, isMatchingType as V, resolveGenericKeys as Y, targetForGenericKey as k, replaceGenericKeysInType as J } from "../../utils/generics.js";
8
- import { DFlowFunctionReactiveService as O } from "../d-flow-function/DFlowFunction.service.js";
9
- import "../d-flow/DFlow.js";
10
- import { DFlowReactiveService as R } from "../d-flow/DFlow.service.js";
11
- import { useReturnTypes as j } from "../d-flow-node/DFlowNode.return.hook.js";
12
- const re = (n, t, o, u = []) => {
13
- const m = I(x), r = N(x), v = I(R), T = N(R), M = $(n), S = g.useMemo(() => t ? M?.find((i) => i.nodeFunctionId === t) : void 0, [M, t]), B = g.useMemo(() => t ? v.getNodeById(n, t)?.parameters?.nodes?.map((a) => a?.value).filter((a) => a?.__typename === "NodeFunctionIdWrapper") ?? [] : [], [n, t, v, T]), c = g.useMemo(() => o ? C(P(o, m), u) : void 0, [o, m, r, u]), p = U(n), f = j(n);
14
- return g.useMemo(() => {
15
- if (!c || !S) return [];
16
- const {
17
- depth: i,
18
- scope: a,
19
- node: l
20
- } = S;
21
- return p.flatMap((e) => {
22
- if (e.node === null || e.node === void 0) return [];
23
- if (e.depth === null || e.depth === void 0) return [];
24
- if (e.scope === null || e.scope === void 0) return [];
25
- const d = e.parameterIndex !== void 0 && e.inputTypeIndex !== void 0, D = d ? e.scope?.every((s, F) => a?.[F] === s) : !0;
26
- if (d && !D) return [];
27
- if (B.some((s) => s.id === e.nodeFunctionId)) return [];
28
- if (!d && e.node >= l) return [];
29
- if (e.depth > i) return [];
30
- if (e.scope.some((s) => !a.includes(s))) return [];
31
- const h = f.get(e.nodeFunctionId), E = C(P(h, m), []);
32
- return V(c, E) ? [{
33
- path: [],
34
- type: A.REF_OBJECT,
35
- displayText: [`${e.depth}-${e.scope}-${e.node || ""}-${e.referencePath?.map((s) => s.path).join(".") ?? ""}`],
36
- value: e
37
- }] : [];
38
- });
39
- }, [m, S, B, p, c, f]);
40
- }, U = (n) => {
41
- const t = I(x);
42
- N(x);
43
- const o = I(O), u = I(R), m = N(R), r = g.useMemo(() => u.getById(n), [n, m]), v = $(n), T = j(n), M = g.useMemo(() => r?.nodes?.nodes?.map((c) => {
44
- const p = T.get(c?.id), f = v?.find((i) => i.nodeFunctionId === c?.id);
45
- return p && f ? G(f, p, t) : {};
46
- }) ?? [], [r]), S = g.useMemo(() => G({
47
- node: 0,
48
- depth: 0,
49
- nodeFunctionId: "gid://sagittarius/NodeFunction/-1",
50
- scope: [0]
51
- }, {
52
- dataType: r?.inputType
53
- }), [r]);
54
- return [...g.useMemo(() => r?.nodes?.nodes?.length ? r.nodes.nodes.flatMap((c) => {
55
- const p = o.getById(c?.functionDefinition?.id);
56
- if (!p) return [];
57
- const f = c?.parameters?.nodes?.map((i) => i?.value).filter(Boolean) ?? [];
58
- return (p.parameterDefinitions ?? []).flatMap((i, a) => {
59
- const l = i?.dataTypeIdentifier;
60
- if (!l) return [];
61
- const e = t.getDataType(l);
62
- if (!e || e.variant !== "NODE") return [];
63
- const d = c?.parameters?.nodes?.find((y) => y?.parameterDefinition?.id === i?.id);
64
- if (!d?.value || d.value.__typename !== "NodeFunctionIdWrapper") return [];
65
- const D = v?.find((y) => d?.value?.__typename === "NodeFunctionIdWrapper" && y.nodeFunctionId === d.value?.id);
66
- if (!D) return [];
67
- const h = e.rules?.nodes?.filter((y) => y?.variant === "INPUT_TYPES") ?? [], E = Y(p, f, t, o), s = k(p, l), F = new Map([...E].map(([y, b]) => [s.get(y) ?? y, b]));
68
- return h.flatMap((y) => (y?.config?.inputTypes ?? []).flatMap((W, K) => {
69
- const w = J(W.dataTypeIdentifier, F);
70
- return w ? G({
71
- ...D,
72
- nodeFunctionId: c?.id,
73
- parameterIndex: a,
74
- inputTypeIndex: K,
75
- inputTypeIdentifier: W.inputIdentifier
76
- }, w, t) : [];
77
- }));
78
- });
79
- }) : [], [r, v, o, t]), ...S, ...M].flat();
80
- }, G = (n, t, o) => {
81
- const u = o ? o.getDataType(t) : t.dataType ?? t.genericType?.dataType;
82
- return u ? [...u.rules?.nodes?.map((r) => {
83
- if (r?.variant === "CONTAINS_KEY")
84
- return t ? G({
85
- ...n,
86
- referencePath: [...n.referencePath ?? [], {
87
- path: r.config.key
88
- }]
89
- }, r.config.dataTypeIdentifier) : void 0;
90
- }).flat().filter((r) => !!r) ?? [], {
91
- __typename: "ReferenceValue",
92
- nodeFunctionId: n.nodeFunctionId,
93
- ...n
94
- }] : [];
95
- }, $ = (n) => {
96
- const t = I(x), o = I(R), u = I(O), m = N(R), r = N(O), v = N(x), T = g.useMemo(() => o.getById(n), [n, m]);
97
- return g.useMemo(() => {
98
- if (!t || !o || !u || !T?.startingNodeId) return;
99
- let M = 0;
100
- const S = () => ++M;
101
- let B = 0;
102
- const c = () => ++B, p = [], f = (i, a, l) => {
103
- if (!i) return;
104
- let e = i.__typename === "NodeFunctionIdWrapper" ? o.getNodeById(n, i.id) : i;
105
- for (; e; ) {
106
- const d = u.getById(e.functionDefinition?.id);
107
- if (!d) break;
108
- if (e.parameters && d.parameterDefinitions)
109
- for (const h of d.parameterDefinitions) {
110
- const E = t.getDataType(h.dataTypeIdentifier), s = e.parameters?.nodes?.find((F) => F?.parameterDefinition?.id === h.id);
111
- if (E?.variant === "NODE") {
112
- if (s?.value && s.value.__typename === "NodeFunctionIdWrapper") {
113
- const F = [...l, S()];
114
- f(s.value, a + 1, F);
115
- }
116
- } else s?.value && s.value.__typename === "NodeFunctionIdWrapper" && f(s.value, a, l);
117
- }
118
- const D = c();
119
- p.push({
120
- node: D,
121
- depth: a,
122
- scope: l,
123
- nodeFunctionId: e.id
124
- }), e = o.getNodeById(T.id, e.nextNodeId);
125
- }
126
- };
127
- return f(o.getNodeById(T.id, T.startingNodeId), 0, [0]), p;
128
- }, [t, T, n, o, u, v, m, r]) ?? [];
129
- };
130
- export {
131
- re as useReferenceSuggestions
132
- };
@@ -1,3 +0,0 @@
1
- import { DFlowSuggestion } from './DFlowSuggestion.view';
2
- import { Flow, NodeFunction, NodeParameter } from '@code0-tech/sagittarius-graphql-types';
3
- export declare const useSuggestions: (flowId: Flow["id"], nodeId?: NodeFunction["id"], parameterId?: NodeParameter["id"]) => DFlowSuggestion[];
@@ -1,28 +0,0 @@
1
- import { useService as p, useStore as a } from "../../utils/contextStore.js";
2
- import n from "react";
3
- import "merge-props";
4
- import "js-md5";
5
- import { DFlowFunctionReactiveService as g } from "../d-flow-function/DFlowFunction.service.js";
6
- import "../d-flow/DFlow.js";
7
- import { DFlowReactiveService as S } from "../d-flow/DFlow.service.js";
8
- import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
9
- import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
10
- import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
11
- import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
12
- import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
13
- import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
14
- import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
15
- import { useValueSuggestions as l } from "./DFlowValueSuggestions.hook.js";
16
- import { useReferenceSuggestions as B } from "./DFlowReferenceSuggestions.hook.js";
17
- import { useFunctionSuggestions as K } from "./DFlowFunctionSuggestions.hook.js";
18
- import { useDataTypeSuggestions as b } from "./DFlowDataTypeSuggestions.hook.js";
19
- const U = (i, t, s) => {
20
- const D = p(g), d = a(g), v = p(S), y = a(S), e = n.useMemo(() => v.getNodeById(i, t), [i, y, t]), r = n.useMemo(() => e?.functionDefinition?.id ? D.getById(e.functionDefinition.id) : void 0, [d, e?.functionDefinition?.id]), o = n.useMemo(() => r?.parameterDefinitions?.find((M) => {
21
- const R = e?.parameters?.nodes?.find((T) => T?.id === s)?.parameterDefinition?.id;
22
- return M.id === R;
23
- }), [r?.parameterDefinitions, e])?.dataTypeIdentifier, c = r?.genericKeys ?? [], F = l(o), m = b(o), u = B(i, t, o, c), f = K(o, c);
24
- return n.useMemo(() => [...F, ...m, ...u, ...f].sort(), [i, t, s, m, u, f]);
25
- };
26
- export {
27
- U as useSuggestions
28
- };
@@ -1,14 +0,0 @@
1
- import { LiteralValue, NodeFunction, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
2
- export declare enum DFlowSuggestionType {
3
- REF_OBJECT = 0,
4
- VALUE = 1,
5
- FUNCTION = 2,
6
- FUNCTION_COMBINATION = 3,
7
- DATA_TYPE = 4
8
- }
9
- export interface DFlowSuggestion {
10
- displayText: string[];
11
- path: number[];
12
- value: LiteralValue | ReferenceValue | NodeFunction;
13
- type: DFlowSuggestionType;
14
- }
@@ -1,4 +0,0 @@
1
- var O = /* @__PURE__ */ ((N) => (N[N.REF_OBJECT = 0] = "REF_OBJECT", N[N.VALUE = 1] = "VALUE", N[N.FUNCTION = 2] = "FUNCTION", N[N.FUNCTION_COMBINATION = 3] = "FUNCTION_COMBINATION", N[N.DATA_TYPE = 4] = "DATA_TYPE", N))(O || {});
2
- export {
3
- O as DFlowSuggestionType
4
- };
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DFlowSuggestion } from './DFlowSuggestion.view';
3
- export interface DFlowSuggestionMenuProps {
4
- triggerContent: React.ReactNode;
5
- suggestions?: DFlowSuggestion[];
6
- onSuggestionSelect?: (suggestion: DFlowSuggestion) => void;
7
- }
8
- export declare const DFlowSuggestionMenu: React.FC<DFlowSuggestionMenuProps>;