@code0-tech/pictor 0.0.0-mvp.rc.1

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 (301) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +0 -0
  3. package/dist/DFlowDataType.service-B7xAjgiJ.js +793 -0
  4. package/dist/assets/Avatar.css +1 -0
  5. package/dist/assets/Badge.css +1 -0
  6. package/dist/assets/Breadcrumb.css +1 -0
  7. package/dist/assets/Button.css +1 -0
  8. package/dist/assets/ButtonGroup.css +1 -0
  9. package/dist/assets/Card.css +1 -0
  10. package/dist/assets/Col.css +1 -0
  11. package/dist/assets/Command.css +1 -0
  12. package/dist/assets/Container.css +1 -0
  13. package/dist/assets/DFlow.css +1 -0
  14. package/dist/assets/DFlowFolder.css +1 -0
  15. package/dist/assets/DFlowFunctionDefaultCard.css +1 -0
  16. package/dist/assets/DFlowInputDataType.css +1 -0
  17. package/dist/assets/DFlowMiniMap.css +1 -0
  18. package/dist/assets/DFlowSuggestionSearchInput.css +1 -0
  19. package/dist/assets/DFlowValidation.css +1 -0
  20. package/dist/assets/DFullScreen.css +1 -0
  21. package/dist/assets/DLayout.css +1 -0
  22. package/dist/assets/DResizable.css +1 -0
  23. package/dist/assets/Dialog.css +1 -0
  24. package/dist/assets/FileTabs.css +1 -0
  25. package/dist/assets/Flex.css +1 -0
  26. package/dist/assets/Input.css +1 -0
  27. package/dist/assets/Menu.css +1 -0
  28. package/dist/assets/Quote.css +1 -0
  29. package/dist/assets/Row.css +1 -0
  30. package/dist/assets/ScrollArea.css +1 -0
  31. package/dist/assets/SegmentedControl.css +1 -0
  32. package/dist/assets/Text.css +1 -0
  33. package/dist/assets/Tooltip.css +1 -0
  34. package/dist/compiler-runtime-Cu50tn6L.js +54 -0
  35. package/dist/components/avatar/Avatar.d.ts +8 -0
  36. package/dist/components/avatar/Avatar.js +55 -0
  37. package/dist/components/badge/Badge.d.ts +7 -0
  38. package/dist/components/badge/Badge.js +22 -0
  39. package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
  40. package/dist/components/breadcrumb/Breadcrumb.js +31 -0
  41. package/dist/components/button/Button.d.ts +10 -0
  42. package/dist/components/button/Button.js +28 -0
  43. package/dist/components/button-group/ButtonGroup.d.ts +7 -0
  44. package/dist/components/button-group/ButtonGroup.js +26 -0
  45. package/dist/components/card/Card.d.ts +14 -0
  46. package/dist/components/card/Card.js +39 -0
  47. package/dist/components/card/CardSection.d.ts +9 -0
  48. package/dist/components/card/CardSection.js +22 -0
  49. package/dist/components/col/Col.d.ts +13 -0
  50. package/dist/components/col/Col.js +26 -0
  51. package/dist/components/command/Command.d.ts +30 -0
  52. package/dist/components/command/Command.js +102 -0
  53. package/dist/components/container/Container.d.ts +6 -0
  54. package/dist/components/container/Container.js +20 -0
  55. package/dist/components/d-flow/DFlow.d.ts +5 -0
  56. package/dist/components/d-flow/DFlow.edges.hook.d.ts +4 -0
  57. package/dist/components/d-flow/DFlow.edges.hook.js +145 -0
  58. package/dist/components/d-flow/DFlow.js +373 -0
  59. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +3 -0
  60. package/dist/components/d-flow/DFlow.nodes.hook.js +140 -0
  61. package/dist/components/d-flow/DFlow.service.d.ts +10 -0
  62. package/dist/components/d-flow/DFlow.service.js +11 -0
  63. package/dist/components/d-flow/DFlow.view.d.ts +109 -0
  64. package/dist/components/d-flow/DFlow.view.js +209 -0
  65. package/dist/components/d-flow/control/DFlowControl.d.ts +2 -0
  66. package/dist/components/d-flow/control/DFlowControl.js +77 -0
  67. package/dist/components/d-flow/control/index.d.ts +1 -0
  68. package/dist/components/d-flow/control/index.js +4 -0
  69. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +10 -0
  70. package/dist/components/d-flow/data-type/DFlowDataType.service.js +7 -0
  71. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +2 -0
  72. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +18 -0
  73. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +4 -0
  74. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +6 -0
  75. package/dist/components/d-flow/data-type/DFlowDataType.view.d.ts +32 -0
  76. package/dist/components/d-flow/data-type/DFlowDataType.view.js +65 -0
  77. package/dist/components/d-flow/data-type/index.d.ts +2 -0
  78. package/dist/components/d-flow/data-type/index.js +6 -0
  79. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +6 -0
  80. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +6 -0
  81. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +6 -0
  82. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +6 -0
  83. package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +7 -0
  84. package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.js +214 -0
  85. package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +4 -0
  86. package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.js +214 -0
  87. package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.d.ts +9 -0
  88. package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +217 -0
  89. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.d.ts +4 -0
  90. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.js +214 -0
  91. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +6 -0
  92. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +7 -0
  93. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.d.ts +8 -0
  94. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.js +10 -0
  95. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.d.ts +3 -0
  96. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +8 -0
  97. package/dist/components/d-flow/edge/DFlowEdge.d.ts +10 -0
  98. package/dist/components/d-flow/edge/DFlowEdge.js +48 -0
  99. package/dist/components/d-flow/folder/DFlowFolder.d.ts +19 -0
  100. package/dist/components/d-flow/folder/DFlowFolder.js +118 -0
  101. package/dist/components/d-flow/folder/index.d.ts +1 -0
  102. package/dist/components/d-flow/folder/index.js +6 -0
  103. package/dist/components/d-flow/function/DFlowFunction.input.hook.d.ts +4 -0
  104. package/dist/components/d-flow/function/DFlowFunction.input.hook.js +9 -0
  105. package/dist/components/d-flow/function/DFlowFunction.return.hook.d.ts +4 -0
  106. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +11 -0
  107. package/dist/components/d-flow/function/DFlowFunction.service.d.ts +6 -0
  108. package/dist/components/d-flow/function/DFlowFunction.service.js +9 -0
  109. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +10 -0
  110. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +75 -0
  111. package/dist/components/d-flow/function/DFlowFunction.view.d.ts +66 -0
  112. package/dist/components/d-flow/function/DFlowFunction.view.js +117 -0
  113. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.d.ts +15 -0
  114. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +158 -0
  115. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +5 -0
  116. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +55 -0
  117. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.d.ts +11 -0
  118. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +26 -0
  119. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.d.ts +9 -0
  120. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +97 -0
  121. package/dist/components/d-flow/function/index.d.ts +2 -0
  122. package/dist/components/d-flow/function/index.js +7 -0
  123. package/dist/components/d-flow/index.d.ts +13 -0
  124. package/dist/components/d-flow/index.js +46 -0
  125. package/dist/components/d-flow/input/DFlowInputDataType.d.ts +8 -0
  126. package/dist/components/d-flow/input/DFlowInputDataType.js +422 -0
  127. package/dist/components/d-flow/minimap/DFlowMiniMap.d.ts +2 -0
  128. package/dist/components/d-flow/minimap/DFlowMiniMap.js +21 -0
  129. package/dist/components/d-flow/minimap/index.d.ts +1 -0
  130. package/dist/components/d-flow/minimap/index.js +4 -0
  131. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +33 -0
  132. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +151 -0
  133. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +5 -0
  134. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +18 -0
  135. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +21 -0
  136. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +25 -0
  137. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.d.ts +8 -0
  138. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +67 -0
  139. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.d.ts +3 -0
  140. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.js +42 -0
  141. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.d.ts +2 -0
  142. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +69 -0
  143. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.d.ts +6 -0
  144. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +21 -0
  145. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.d.ts +7 -0
  146. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +21 -0
  147. package/dist/components/d-flow/suggestion/index.d.ts +2 -0
  148. package/dist/components/d-flow/suggestion/index.js +7 -0
  149. package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +11 -0
  150. package/dist/components/d-flow/tab/DFlowTabDefault.js +97 -0
  151. package/dist/components/d-flow/tab/DFlowTabTrigger.d.ts +6 -0
  152. package/dist/components/d-flow/tab/DFlowTabTrigger.js +51 -0
  153. package/dist/components/d-flow/tab/DFlowTabs.d.ts +2 -0
  154. package/dist/components/d-flow/tab/DFlowTabs.js +105 -0
  155. package/dist/components/d-flow/type/DFlowType.service.d.ts +6 -0
  156. package/dist/components/d-flow/type/DFlowType.service.js +9 -0
  157. package/dist/components/d-flow/type/DFlowType.view.d.ts +35 -0
  158. package/dist/components/d-flow/type/DFlowType.view.js +69 -0
  159. package/dist/components/d-flow/type/index.d.ts +2 -0
  160. package/dist/components/d-flow/type/index.js +6 -0
  161. package/dist/components/d-flow/validation/DFlowValidation.d.ts +6 -0
  162. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +3 -0
  163. package/dist/components/d-flow/validation/DFlowValidation.hook.js +10 -0
  164. package/dist/components/d-flow/validation/DFlowValidation.js +59 -0
  165. package/dist/components/d-flow/validation/index.d.ts +2 -0
  166. package/dist/components/d-flow/validation/index.js +6 -0
  167. package/dist/components/d-fullscreen/DFullScreen.d.ts +7 -0
  168. package/dist/components/d-fullscreen/DFullScreen.js +20 -0
  169. package/dist/components/d-layout/DLayout.d.ts +10 -0
  170. package/dist/components/d-layout/DLayout.js +51 -0
  171. package/dist/components/d-namespace/DNamespace.service.d.ts +6 -0
  172. package/dist/components/d-namespace/DNamespace.service.js +11 -0
  173. package/dist/components/d-namespace/DNamespace.view.d.ts +32 -0
  174. package/dist/components/d-namespace/DNamespace.view.js +65 -0
  175. package/dist/components/d-namespace/index.d.ts +12 -0
  176. package/dist/components/d-namespace/index.js +35 -0
  177. package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +8 -0
  178. package/dist/components/d-namespace/license/DNamespaceLicense.service.js +11 -0
  179. package/dist/components/d-namespace/license/DNamespaceLicense.view.d.ts +26 -0
  180. package/dist/components/d-namespace/license/DNamespaceLicense.view.js +57 -0
  181. package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +9 -0
  182. package/dist/components/d-namespace/member/DNamespaceMember.service.js +11 -0
  183. package/dist/components/d-namespace/member/DNamespaceMember.view.d.ts +26 -0
  184. package/dist/components/d-namespace/member/DNamespaceMember.view.js +57 -0
  185. package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +9 -0
  186. package/dist/components/d-namespace/project/DNamespaceProject.service.js +11 -0
  187. package/dist/components/d-namespace/project/DNamespaceProject.view.d.ts +35 -0
  188. package/dist/components/d-namespace/project/DNamespaceProject.view.js +69 -0
  189. package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +9 -0
  190. package/dist/components/d-namespace/project/DNamespaceProjectCard.js +57 -0
  191. package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +9 -0
  192. package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +18 -0
  193. package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +10 -0
  194. package/dist/components/d-namespace/role/DNamespaceRole.service.js +11 -0
  195. package/dist/components/d-namespace/role/DNamespaceRole.view.d.ts +26 -0
  196. package/dist/components/d-namespace/role/DNamespaceRole.view.js +57 -0
  197. package/dist/components/d-organization/DOrganization.service.d.ts +8 -0
  198. package/dist/components/d-organization/DOrganization.service.js +11 -0
  199. package/dist/components/d-organization/DOrganization.view.d.ts +20 -0
  200. package/dist/components/d-organization/DOrganization.view.js +52 -0
  201. package/dist/components/d-organization/DOrganizationCard.d.ts +10 -0
  202. package/dist/components/d-organization/DOrganizationCard.js +63 -0
  203. package/dist/components/d-organization/DOrganizationMenu.d.ts +9 -0
  204. package/dist/components/d-organization/DOrganizationMenu.js +18 -0
  205. package/dist/components/d-organization/index.d.ts +4 -0
  206. package/dist/components/d-organization/index.js +19 -0
  207. package/dist/components/d-resizable/DResizable.d.ts +10 -0
  208. package/dist/components/d-resizable/DResizable.js +31 -0
  209. package/dist/components/d-runtime/DRuntime.service.d.ts +9 -0
  210. package/dist/components/d-runtime/DRuntime.service.js +11 -0
  211. package/dist/components/d-runtime/DRuntime.view.d.ts +38 -0
  212. package/dist/components/d-runtime/DRuntime.view.js +73 -0
  213. package/dist/components/d-runtime/index.d.ts +2 -0
  214. package/dist/components/d-runtime/index.js +6 -0
  215. package/dist/components/d-user/DUser.service.d.ts +21 -0
  216. package/dist/components/d-user/DUser.service.js +17 -0
  217. package/dist/components/d-user/DUser.view.d.ts +52 -0
  218. package/dist/components/d-user/DUser.view.js +100 -0
  219. package/dist/components/d-user/DUserMenu.d.ts +8 -0
  220. package/dist/components/d-user/DUserMenu.js +28 -0
  221. package/dist/components/d-user/index.d.ts +3 -0
  222. package/dist/components/d-user/index.js +17 -0
  223. package/dist/components/dialog/Dialog.d.ts +28 -0
  224. package/dist/components/dialog/Dialog.js +98 -0
  225. package/dist/components/file-tabs/FileTabs.d.ts +17 -0
  226. package/dist/components/file-tabs/FileTabs.js +70 -0
  227. package/dist/components/file-tabs/FileTabs.service.d.ts +13 -0
  228. package/dist/components/file-tabs/FileTabs.service.js +47 -0
  229. package/dist/components/file-tabs/FileTabs.view.d.ts +9 -0
  230. package/dist/components/file-tabs/FileTabs.view.js +1 -0
  231. package/dist/components/flex/Flex.d.ts +7 -0
  232. package/dist/components/flex/Flex.js +21 -0
  233. package/dist/components/form/CheckboxInput.d.ts +5 -0
  234. package/dist/components/form/CheckboxInput.js +67 -0
  235. package/dist/components/form/EmailInput.d.ts +8 -0
  236. package/dist/components/form/EmailInput.js +20 -0
  237. package/dist/components/form/Input.d.ts +22 -0
  238. package/dist/components/form/Input.js +153 -0
  239. package/dist/components/form/InputDescription.d.ts +5 -0
  240. package/dist/components/form/InputDescription.js +12 -0
  241. package/dist/components/form/InputLabel.d.ts +5 -0
  242. package/dist/components/form/InputLabel.js +12 -0
  243. package/dist/components/form/InputMessage.d.ts +5 -0
  244. package/dist/components/form/InputMessage.js +18 -0
  245. package/dist/components/form/InputSuggestion.d.ts +19 -0
  246. package/dist/components/form/InputSuggestion.js +102 -0
  247. package/dist/components/form/NumberInput.d.ts +6 -0
  248. package/dist/components/form/NumberInput.js +20 -0
  249. package/dist/components/form/PasswordInput.d.ts +8 -0
  250. package/dist/components/form/PasswordInput.js +18 -0
  251. package/dist/components/form/PinInput.d.ts +11 -0
  252. package/dist/components/form/PinInput.js +66 -0
  253. package/dist/components/form/RadioGroup.d.ts +5 -0
  254. package/dist/components/form/RadioGroup.js +48 -0
  255. package/dist/components/form/RadioInput.d.ts +7 -0
  256. package/dist/components/form/RadioInput.js +27 -0
  257. package/dist/components/form/SwitchInput.d.ts +6 -0
  258. package/dist/components/form/SwitchInput.js +19 -0
  259. package/dist/components/form/TextInput.d.ts +7 -0
  260. package/dist/components/form/TextInput.js +19 -0
  261. package/dist/components/form/index.d.ts +15 -0
  262. package/dist/components/form/index.js +37 -0
  263. package/dist/components/form/useForm.d.ts +25 -0
  264. package/dist/components/form/useForm.js +57 -0
  265. package/dist/components/menu/Menu.d.ts +27 -0
  266. package/dist/components/menu/Menu.js +104 -0
  267. package/dist/components/quote/Quote.d.ts +10 -0
  268. package/dist/components/quote/Quote.js +48 -0
  269. package/dist/components/row/Row.d.ts +6 -0
  270. package/dist/components/row/Row.js +20 -0
  271. package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
  272. package/dist/components/scroll-area/ScrollArea.js +42 -0
  273. package/dist/components/segmented-control/SegmentedControl.d.ts +8 -0
  274. package/dist/components/segmented-control/SegmentedControl.js +23 -0
  275. package/dist/components/text/Text.d.ts +8 -0
  276. package/dist/components/text/Text.js +23 -0
  277. package/dist/components/tooltip/Tooltip.d.ts +13 -0
  278. package/dist/components/tooltip/Tooltip.js +47 -0
  279. package/dist/index.d.ts +28 -0
  280. package/dist/index.js +223 -0
  281. package/dist/utils/arrayService.d.ts +10 -0
  282. package/dist/utils/arrayService.js +1 -0
  283. package/dist/utils/contextStore.d.ts +62 -0
  284. package/dist/utils/contextStore.js +60 -0
  285. package/dist/utils/generics.d.ts +17 -0
  286. package/dist/utils/generics.js +311 -0
  287. package/dist/utils/index.d.ts +8 -0
  288. package/dist/utils/index.js +28 -0
  289. package/dist/utils/inspection.d.ts +13 -0
  290. package/dist/utils/inspection.js +4 -0
  291. package/dist/utils/nonReactiveArrayService.d.ts +19 -0
  292. package/dist/utils/nonReactiveArrayService.js +54 -0
  293. package/dist/utils/objectStore.d.ts +12 -0
  294. package/dist/utils/objectStore.js +34 -0
  295. package/dist/utils/reactiveArrayService.d.ts +22 -0
  296. package/dist/utils/reactiveArrayService.js +81 -0
  297. package/dist/utils/types.d.ts +57 -0
  298. package/dist/utils/types.js +4 -0
  299. package/dist/utils/utils.d.ts +68 -0
  300. package/dist/utils/utils.js +216 -0
  301. package/package.json +125 -0
@@ -0,0 +1,422 @@
1
+ import { jsxs as R, jsx as c, Fragment as q } from "react/jsx-runtime";
2
+ import { c as Me } from "../../../compiler-runtime-Cu50tn6L.js";
3
+ import y from "react";
4
+ import { DataTypeRulesVariant as S, DataTypeVariant as de } from "@code0-tech/sagittarius-graphql-types";
5
+ import { InputMessage as ke } from "../../form/InputMessage.js";
6
+ import { TextInput as z } from "../../form/TextInput.js";
7
+ import { Button as oe } from "../../button/Button.js";
8
+ import { IconSettings as ge, IconTrash as Ee } from "@tabler/icons-react";
9
+ import { Text as w } from "../../text/Text.js";
10
+ import { Flex as X } from "../../flex/Flex.js";
11
+ import { Badge as Ve } from "../../badge/Badge.js";
12
+ import { InputLabel as Oe } from "../../form/InputLabel.js";
13
+ import { useSuggestions as Be } from "../suggestion/DFlowSuggestion.hook.js";
14
+ import { DFlowSuggestionMenuFooter as he } from "../suggestion/DFlowSuggestionMenuFooter.js";
15
+ import { toInputSuggestions as Ke } from "../suggestion/DFlowSuggestionMenu.util.js";
16
+ import { DFlowSuggestionType as we } from "../suggestion/DFlowSuggestion.view.js";
17
+ import { Menu as Ae, MenuTrigger as Fe, MenuPortal as Ge } from "../../menu/Menu.js";
18
+ import { InputSuggestionMenuContent as xe, InputSuggestionMenuContentItems as ze } from "../../form/InputSuggestion.js";
19
+ import '../../../assets/DFlowInputDataType.css';const Ce = /* @__PURE__ */ new Set([S.ItemOfCollection, S.Regex, S.NumberRange]), Ie = "__blockingSignature", Je = [S.ContainsKey, S.ContainsType, S.ItemOfCollection, S.NumberRange, S.Regex], ue = (n) => {
20
+ const {
21
+ formValidation: e,
22
+ initialValue: t,
23
+ onDataTypeChange: p = () => {
24
+ },
25
+ blockingDataType: a
26
+ } = n, m = y.useMemo(() => Ne(t, a), [t, a]), [s, u] = y.useState(m), T = y.useMemo(() => J(s), [s]), l = y.useMemo(() => J(a), [a]), B = y.useMemo(() => new Map((_(s) ? s.genericMappers ?? [] : []).map((r) => [r.target ?? "", r])), [s]), I = y.useMemo(() => l?.rules?.nodes?.filter(Boolean), [l]), N = y.useCallback((r) => {
27
+ u((o) => {
28
+ if (!o) return o;
29
+ const i = W(o);
30
+ return r(i), p(i), $e(o, i), i;
31
+ });
32
+ }, []), D = y.useCallback((r, o, i) => {
33
+ N((b) => {
34
+ const h = J(b);
35
+ if (!h) return;
36
+ const M = ae(h), v = M[r];
37
+ if (!v) return;
38
+ const f = be(v, l);
39
+ if (f && !i?.allowBlocked) return;
40
+ const g = o(W(v));
41
+ g !== void 0 && (f && (ce(g, f), se(g, f)), M[r] = g);
42
+ });
43
+ }, [l, N]), K = y.useCallback((r) => {
44
+ N((o) => {
45
+ const i = J(o);
46
+ if (!i) return;
47
+ const b = ae(i), h = b[r];
48
+ h && (He(h, l) || b.splice(r, 1));
49
+ });
50
+ }, [l, N]), d = y.useCallback((r, o) => {
51
+ D(r, (i) => (!("dataTypeIdentifier" in i?.config) || !i?.config?.dataTypeIdentifier || (P(o) ? (i.config.dataTypeIdentifier.dataType = o, delete i.config.dataTypeIdentifier.genericType) : _(o) && (i.config.dataTypeIdentifier.genericType = o, delete i.config.dataTypeIdentifier.dataType)), i), {
52
+ allowBlocked: !0
53
+ });
54
+ }, [D]), V = y.useCallback((r, o, i) => {
55
+ N((b) => {
56
+ if (!_(b)) return;
57
+ const h = b.genericMappers ?? [], M = h.findIndex((g) => g.target === r);
58
+ if (M === -1) return;
59
+ const v = h[M], f = v?.sourceDataTypeIdentifiers ?? [];
60
+ f[o] && (P(i) ? (f[o].dataType = i, delete f[o].genericType) : _(i) && (f[o].genericType = i, delete f[o].dataType), v.sourceDataTypeIdentifiers = f, b.genericMappers = [...h], b.genericMappers[M] = v);
61
+ });
62
+ }, [N]);
63
+ return /* @__PURE__ */ R("div", { children: [
64
+ /* @__PURE__ */ R("div", { className: "d-flow-viewport-data-type-input", children: [
65
+ T?.rules?.nodes?.map((r, o) => {
66
+ if (!r) return null;
67
+ const i = I?.find((f) => fe(r, f)), b = r?.variant === "PARENT_TYPE", h = r?.config, M = (h?.dataTypeIdentifier?.dataType?.rules?.nodes?.length ?? 0) > 0 || (h?.dataTypeIdentifier?.genericType?.dataType?.rules?.nodes?.length ?? 0) > 0;
68
+ return !b || M ? /* @__PURE__ */ c(_e, { rule: r, blockingRule: i, genericMap: B, onRemove: () => K(o), onConfigChange: (f) => D(o, (g) => (g.config = f, g)), onHeaderKeyChange: (f) => D(o, (g) => (g.config || (g.config = {}), g.config.key = f || null, g)), onHeaderDataTypeChange: (f) => D(o, (g) => {
69
+ g.config || (g.config = {}), "dataTypeIdentifier" in g.config || (g.config.dataTypeIdentifier = {});
70
+ const k = g.config.dataTypeIdentifier;
71
+ return f ? (P(f) ? (k.dataType = f, delete k.genericType) : _(f) && (k.genericType = f, delete k.dataType), g) : (delete k?.dataType, delete k?.genericType, g);
72
+ }), onNestedChange: (f) => d(o, f), onGenericMapperChange: V }, `${r.variant}-${o}`) : null;
73
+ }),
74
+ /* @__PURE__ */ R(Ae, { children: [
75
+ /* @__PURE__ */ c(Fe, { asChild: !0, children: /* @__PURE__ */ R(oe, { color: "primary", children: [
76
+ /* @__PURE__ */ c(ge, { size: 16 }),
77
+ " Add new rule"
78
+ ] }) }),
79
+ /* @__PURE__ */ c(Ge, { children: /* @__PURE__ */ R(xe, { children: [
80
+ /* @__PURE__ */ c(ze, { onSuggestionSelect: (r) => {
81
+ N((o) => {
82
+ "rules" in o ? o?.rules?.nodes?.push(r.value) : "dataType" in o?.genericType && o?.genericType?.dataType?.rules?.nodes?.push(r.value);
83
+ });
84
+ }, suggestions: Je.filter((r) => T?.variant == de.Object ? r == S.ContainsKey : T?.variant == de.Array ? r == S.ContainsType : !(r == S.ContainsType || r == S.ContainsKey)).map((r) => ({
85
+ children: /* @__PURE__ */ R(q, { children: [
86
+ /* @__PURE__ */ c(ge, { size: 16 }),
87
+ /* @__PURE__ */ c(w, { children: r })
88
+ ] }),
89
+ value: {
90
+ variant: r,
91
+ config: {
92
+ __typename: `DataTypeRules${r[0]}Config`,
93
+ ...r === S.NumberRange ? {
94
+ from: void 0,
95
+ to: void 0,
96
+ steps: void 0
97
+ } : {},
98
+ ...r === S.Regex ? {
99
+ pattern: void 0
100
+ } : {},
101
+ ...r === S.ItemOfCollection ? {
102
+ items: void 0
103
+ } : {}
104
+ }
105
+ }
106
+ })) }),
107
+ /* @__PURE__ */ c(he, {})
108
+ ] }) })
109
+ ] })
110
+ ] }),
111
+ !e?.valid && e?.notValidMessage && /* @__PURE__ */ c(ke, { children: e.notValidMessage })
112
+ ] });
113
+ }, _e = (n) => {
114
+ const e = Me.c(56), {
115
+ rule: t,
116
+ blockingRule: p,
117
+ genericMap: a,
118
+ onRemove: m,
119
+ onConfigChange: s,
120
+ onHeaderKeyChange: u,
121
+ onHeaderDataTypeChange: T,
122
+ onNestedChange: l,
123
+ onGenericMapperChange: B
124
+ } = n, I = t?.config?.dataTypeIdentifier ?? void 0, N = !!I?.genericKey, [D, K] = y.useState(!1), d = !!p, V = t.variant, r = V ? !Ce.has(V) : !1;
125
+ let o;
126
+ e[0] !== t.config ? (o = () => ye(t?.config), e[0] = t.config, e[1] = o) : o = e[1];
127
+ const [i, b] = y.useState(o);
128
+ let h;
129
+ e[2] !== t.config ? (h = () => {
130
+ b(ye(t?.config));
131
+ }, e[2] = t.config, e[3] = h) : h = e[3];
132
+ let M;
133
+ e[4] !== t ? (M = [t], e[4] = t, e[5] = M) : M = e[5], y.useEffect(h, M);
134
+ let v;
135
+ e: {
136
+ if (!r) {
137
+ v = void 0;
138
+ break e;
139
+ }
140
+ if (!I) {
141
+ v = void 0;
142
+ break e;
143
+ }
144
+ if (I.genericKey) {
145
+ let C;
146
+ e[6] !== a || e[7] !== I.genericKey ? (C = a.get(I.genericKey), e[6] = a, e[7] = I.genericKey, e[8] = C) : C = e[8];
147
+ const O = C?.sourceDataTypeIdentifiers?.[0];
148
+ v = O?.dataType?.name?.nodes?.[0]?.content ?? O?.genericType?.dataType?.name?.nodes?.[0]?.content;
149
+ break e;
150
+ }
151
+ v = I.dataType?.name?.nodes?.[0]?.content ?? I.genericType?.dataType?.name?.nodes?.[0]?.content;
152
+ }
153
+ const f = v;
154
+ let g;
155
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (g = (C) => {
156
+ const E = C.target.value;
157
+ b(E);
158
+ }, e[9] = g) : g = e[9];
159
+ const k = g;
160
+ let $;
161
+ e[10] !== i || e[11] !== d || e[12] !== s || e[13] !== t.config || e[14] !== V ? ($ = (C) => {
162
+ if (d)
163
+ return;
164
+ const E = C?.target?.name, O = Pe(i, t.config, {
165
+ variant: V,
166
+ numberRangeKey: E
167
+ });
168
+ O && s(O);
169
+ }, e[10] = i, e[11] = d, e[12] = s, e[13] = t.config, e[14] = V, e[15] = $) : $ = e[15];
170
+ const A = $;
171
+ let H;
172
+ e[16] !== t ? (H = Te(t), e[16] = t, e[17] = H) : H = e[17];
173
+ const F = H;
174
+ let j;
175
+ e[18] !== p ? (j = Te(p), e[18] = p, e[19] = j) : j = e[19];
176
+ const Q = j;
177
+ let Y;
178
+ e[20] !== f || e[21] !== a || e[22] !== N || e[23] !== I || e[24] !== d || e[25] !== D || e[26] !== Q || e[27] !== F || e[28] !== B || e[29] !== T || e[30] !== u || e[31] !== l || e[32] !== m || e[33] !== t ? (Y = () => {
179
+ if (!F && !N)
180
+ return null;
181
+ const C = /* @__PURE__ */ c(pe, { rule: t, genericMap: a, isBlocked: d, dataTypeLabel: f, onClick: () => K(je), onRemove: d ? void 0 : m, onKeyChange: d ? void 0 : u, onDataTypeChange: d ? void 0 : T });
182
+ if (F)
183
+ return /* @__PURE__ */ R(q, { children: [
184
+ C,
185
+ D ? /* @__PURE__ */ c(ue, { initialValue: F, blockingDataType: Q, onDataTypeChange: l }) : null
186
+ ] });
187
+ if (I?.genericKey) {
188
+ const E = a.get(I.genericKey);
189
+ return /* @__PURE__ */ R(q, { children: [
190
+ C,
191
+ D ? E?.sourceDataTypeIdentifiers?.map((O, le) => {
192
+ const ie = O?.dataType ?? O?.genericType;
193
+ if (!ie)
194
+ return null;
195
+ const ve = d ? ie : void 0, re = I.genericKey;
196
+ return re ? /* @__PURE__ */ c(ue, { initialValue: ie, blockingDataType: ve, onDataTypeChange: (De) => B(re, le, De) }, `${re}-${le}`) : null;
197
+ }) : null
198
+ ] });
199
+ }
200
+ return null;
201
+ }, e[20] = f, e[21] = a, e[22] = N, e[23] = I, e[24] = d, e[25] = D, e[26] = Q, e[27] = F, e[28] = B, e[29] = T, e[30] = u, e[31] = l, e[32] = m, e[33] = t, e[34] = Y) : Y = e[34];
202
+ const Z = Y;
203
+ if (r && (F || N)) {
204
+ let C;
205
+ e[35] !== Z ? (C = Z(), e[35] = Z, e[36] = C) : C = e[36];
206
+ let E;
207
+ return e[37] !== C ? (E = /* @__PURE__ */ c("div", { className: "d-flow-viewport-data-type-input__rule", children: C }), e[37] = C, e[38] = E) : E = e[38], E;
208
+ }
209
+ let L;
210
+ e[39] === Symbol.for("react.memo_cache_sentinel") ? (L = {
211
+ flex: 1
212
+ }, e[39] = L) : L = e[39];
213
+ const ee = d ? void 0 : m, ne = d ? void 0 : u, te = d ? void 0 : T;
214
+ let G;
215
+ e[40] !== f || e[41] !== a || e[42] !== d || e[43] !== t || e[44] !== ee || e[45] !== ne || e[46] !== te ? (G = /* @__PURE__ */ c(pe, { rule: t, genericMap: a, isBlocked: d, dataTypeLabel: f, onRemove: ee, onKeyChange: ne, onDataTypeChange: te }), e[40] = f, e[41] = a, e[42] = d, e[43] = t, e[44] = ee, e[45] = ne, e[46] = te, e[47] = G) : G = e[47];
216
+ let x;
217
+ e[48] !== i || e[49] !== A || e[50] !== d || e[51] !== t.variant ? (x = t.variant === "REGEX" || t.variant === "ITEM_OF_COLLECTION" ? /* @__PURE__ */ c(z, { clearable: !0, left: /* @__PURE__ */ c(w, { size: "sm", children: t.variant === "REGEX" ? "Pattern" : "Items" }), leftType: "icon", defaultValue: i, onChange: k, onBlur: A, w: "100%", disabled: d }) : t.variant === "NUMBER_RANGE" ? /* @__PURE__ */ R(q, { children: [
218
+ /* @__PURE__ */ c(z, { clearable: !0, defaultValue: i?.from?.toString() ?? "", onChange: k, onBlur: A, w: "100%", left: /* @__PURE__ */ c(w, { size: "sm", children: "From" }), leftType: "icon", disabled: d, name: "from" }),
219
+ /* @__PURE__ */ c(z, { clearable: !0, defaultValue: i?.steps?.toString() ?? "", onChange: k, onBlur: A, left: /* @__PURE__ */ c(w, { size: "sm", children: "Steps" }), leftType: "icon", w: "100%", disabled: d, name: "steps" }),
220
+ /* @__PURE__ */ c(z, { clearable: !0, left: /* @__PURE__ */ c(w, { size: "sm", children: "To" }), leftType: "icon", defaultValue: i?.to?.toString() ?? "", onChange: k, onBlur: A, w: "100%", disabled: d, name: "to" })
221
+ ] }) : null, e[48] = i, e[49] = A, e[50] = d, e[51] = t.variant, e[52] = x) : x = e[52];
222
+ let U;
223
+ return e[53] !== G || e[54] !== x ? (U = /* @__PURE__ */ c("div", { className: "d-flow-viewport-data-type-input__rule", children: /* @__PURE__ */ R("div", { style: L, children: [
224
+ G,
225
+ x
226
+ ] }) }), e[53] = G, e[54] = x, e[55] = U) : U = e[55], U;
227
+ }, pe = ({
228
+ rule: n,
229
+ dataTypeLabel: e,
230
+ onClick: t,
231
+ onRemove: p,
232
+ isBlocked: a,
233
+ onKeyChange: m,
234
+ onDataTypeChange: s,
235
+ genericMap: u
236
+ }) => {
237
+ const T = n.variant, l = T ? !Ce.has(T) : !1, B = l ? Be({
238
+ dataType: {
239
+ id: "gid://sagittarius/DataType/878634678"
240
+ }
241
+ }, [], "", 0, [0], 1, [we.DATA_TYPE]) : [], I = n?.config?.dataTypeIdentifier?.dataType?.rules?.nodes?.length ?? n?.config?.dataTypeIdentifier?.genericType?.dataType?.rules?.nodes?.length ?? u.get(n?.config?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers?.map((i) => i?.dataType?.rules?.nodes?.length ?? i.genericType?.dataType?.rules?.nodes?.length) ?? 0, [N, D] = y.useState(() => "key" in (n?.config ?? {}) ? n?.config?.key ?? "" : ""), [K, d] = y.useState(() => e ?? "");
242
+ y.useEffect(() => {
243
+ D("key" in (n?.config ?? {}) ? n?.config?.key ?? "" : "");
244
+ }, [n]), y.useEffect(() => {
245
+ d(e ?? "");
246
+ }, [e]);
247
+ const V = y.useCallback(() => {
248
+ !m || a || m(N);
249
+ }, [a, N, m]), r = y.useCallback(() => {
250
+ !s || a || K.trim() === "" && s(void 0);
251
+ }, [K, a, s]), o = y.useCallback((i) => {
252
+ if (!s || a) return;
253
+ const b = i.value;
254
+ if (!b) return;
255
+ s(b);
256
+ const h = i?.ref?.displayText?.join(" ") ?? e ?? "";
257
+ d(h);
258
+ }, [e, a, s]);
259
+ return /* @__PURE__ */ R("div", { children: [
260
+ /* @__PURE__ */ R(X, { justify: "space-between", children: [
261
+ /* @__PURE__ */ c(Ve, { color: "info", children: n?.variant }),
262
+ p ? /* @__PURE__ */ c(oe, { color: "error", onClick: p, children: /* @__PURE__ */ c(Ee, { size: 16 }) }) : null
263
+ ] }),
264
+ /* @__PURE__ */ R(X, { mt: 0.7, style: {
265
+ flexDirection: "column",
266
+ gap: ".7rem"
267
+ }, children: [
268
+ l ? /* @__PURE__ */ R(X, { align: "center", style: {
269
+ gap: ".7rem"
270
+ }, children: [
271
+ n.variant === "CONTAINS_KEY" ? /* @__PURE__ */ c(z, { left: /* @__PURE__ */ c(w, { size: "sm", children: "Key" }), leftType: "icon", disabled: a, defaultValue: N, onChange: (i) => "value" in i.target && D(i.target.value), onBlur: V }) : null,
272
+ /* @__PURE__ */ c(z, { left: /* @__PURE__ */ c(w, { size: "sm", children: "DataType" }), leftType: "icon", disabled: a, suggestionsFooter: /* @__PURE__ */ c(he, {}), suggestions: Ke(B), value: K, onChange: (i) => "value" in i.target && d(i.target.value), onBlur: r, onSuggestionSelect: o })
273
+ ] }) : null,
274
+ n.variant != "REGEX" && n.variant != "ITEM_OF_COLLECTION" && n.variant != "NUMBER_RANGE" ? /* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ R(X, { align: "center", style: {
275
+ gap: ".7rem"
276
+ }, children: [
277
+ "+",
278
+ I,
279
+ " rules included",
280
+ /* @__PURE__ */ c(oe, { color: "primary", onClick: t, children: "Show/Hide Rules" })
281
+ ] }) }) : null
282
+ ] })
283
+ ] });
284
+ }, ye = (n) => n ? "pattern" in n || n?.__typename === "DataTypeRulesRegexConfig" ? n?.pattern ?? "" : "items" in n || n?.__typename === "DataTypeRulesItemOfCollectionConfig" ? JSON.stringify(n.items) : n : "", Pe = (n, e, t) => {
285
+ const {
286
+ variant: p,
287
+ numberRangeKey: a
288
+ } = t ?? {}, m = p === S.NumberRange, s = e ?? void 0;
289
+ if (m) {
290
+ const u = {
291
+ __typename: "DataTypeRulesNumberRangeConfig",
292
+ ...s
293
+ };
294
+ if (typeof n != "string")
295
+ return {
296
+ ...u,
297
+ ...n
298
+ };
299
+ if (!a)
300
+ return u;
301
+ const T = {
302
+ ...u
303
+ };
304
+ switch (a) {
305
+ case "from":
306
+ T.from = (() => {
307
+ if (n.trim() === "") return;
308
+ const l = Number(n);
309
+ return Number.isFinite(l) ? l : u.from;
310
+ })();
311
+ break;
312
+ case "steps":
313
+ T.steps = (() => {
314
+ if (n.trim() === "") return;
315
+ const l = Number(n);
316
+ return Number.isFinite(l) ? l : u.steps;
317
+ })();
318
+ break;
319
+ case "to":
320
+ T.to = (() => {
321
+ if (n.trim() === "") return;
322
+ const l = Number(n);
323
+ return Number.isFinite(l) ? l : u.to;
324
+ })();
325
+ break;
326
+ }
327
+ return T;
328
+ }
329
+ if (!s) {
330
+ if (typeof n != "string")
331
+ return n;
332
+ try {
333
+ return JSON.parse(n);
334
+ } catch {
335
+ return;
336
+ }
337
+ }
338
+ if (typeof n != "string")
339
+ return n;
340
+ if (s.__typename === "DataTypeRulesRegexConfig" || "pattern" in s)
341
+ return {
342
+ ...s,
343
+ pattern: n
344
+ };
345
+ if (s.__typename === "DataTypeRulesItemOfCollectionConfig" || "items" in s)
346
+ try {
347
+ return {
348
+ ...s,
349
+ items: JSON.parse(n)
350
+ };
351
+ } catch {
352
+ return s;
353
+ }
354
+ try {
355
+ return JSON.parse(n);
356
+ } catch {
357
+ return s;
358
+ }
359
+ }, W = (n) => n == null ? n : JSON.parse(JSON.stringify(n)), me = (n) => {
360
+ if (n)
361
+ return JSON.stringify(n);
362
+ }, Te = (n) => {
363
+ if (n?.config?.dataTypeIdentifier)
364
+ return n?.config?.dataTypeIdentifier?.dataType ?? n?.config?.dataTypeIdentifier?.genericType ?? void 0;
365
+ }, $e = (n, e) => me(n) === me(e), He = (n, e) => !n || !e?.rules?.nodes || !Se(n) ? !1 : !!be(n, e), be = (n, e) => !n || !e?.rules?.nodes ? void 0 : e.rules.nodes?.filter(Boolean).find((p) => fe(n, p)), P = (n) => n != null && n.rules !== void 0, _ = (n) => n != null && typeof n == "object" && "genericMappers" in n, J = (n) => {
366
+ if (n)
367
+ return P(n) ? n : n.dataType ?? void 0;
368
+ }, ae = (n) => (n.rules ? n.rules.nodes || (n.rules.nodes = []) : n.rules = {
369
+ nodes: []
370
+ }, n.rules.nodes), Ne = (n, e) => {
371
+ if (!n && !e) return;
372
+ const t = W(n ?? e), p = J(t), a = J(e);
373
+ if (!p || !a)
374
+ return t;
375
+ const m = ae(p);
376
+ return a.rules?.nodes?.filter(Boolean)?.forEach((u) => {
377
+ if (!u) return;
378
+ const T = m.findIndex((l) => fe(l, u));
379
+ if (T === -1) {
380
+ const l = W(u);
381
+ ce(l, u), m.push(l), se(l, u);
382
+ } else {
383
+ const l = m[T];
384
+ ce(l, u), se(l, u);
385
+ }
386
+ }), t;
387
+ }, se = (n, e) => {
388
+ const t = n?.config?.dataTypeIdentifier, p = e?.config?.dataTypeIdentifier;
389
+ if (!t || !p) return;
390
+ const a = t.dataType ?? t.genericType, m = p.dataType ?? p.genericType;
391
+ if (!a || !m) return;
392
+ const s = Ne(a, m);
393
+ s && (P(s) ? t.dataType = s : t.genericType = s);
394
+ }, fe = (n, e) => {
395
+ if (!n || !e) return !1;
396
+ const t = Se(n), p = Re(e);
397
+ return t && p ? t === p : n.id && e.id ? n.id === e.id : JSON.stringify({
398
+ variant: n.variant,
399
+ config: n.config
400
+ }) === JSON.stringify({
401
+ variant: e.variant,
402
+ config: e.config
403
+ });
404
+ }, Se = (n) => {
405
+ if (n)
406
+ return n?.[Ie];
407
+ }, Re = (n) => {
408
+ if (n)
409
+ return n.id ? `id:${n.id}` : `config:${JSON.stringify({
410
+ variant: n.variant,
411
+ config: n.config
412
+ })}`;
413
+ }, ce = (n, e) => {
414
+ const t = Re(e);
415
+ t && (n[Ie] = t);
416
+ };
417
+ function je(n) {
418
+ return !n;
419
+ }
420
+ export {
421
+ ue as DFlowInputDataType
422
+ };
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const DFlowMiniMap: React.FC;
@@ -0,0 +1,21 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { c as m } from "../../../compiler-runtime-Cu50tn6L.js";
3
+ import { useNodes as h, MiniMap as s } from "@xyflow/react";
4
+ import { FLOW_EDGE_RAINBOW as d } from "../DFlow.edges.hook.js";
5
+ import '../../../assets/DFlowMiniMap.css';const w = (c) => {
6
+ const e = m.c(2), o = h();
7
+ let i;
8
+ return e[0] !== o ? (i = /* @__PURE__ */ l(s, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
9
+ const r = o.find((n) => n.id === t.id);
10
+ if (!r || r.type == "suggestion")
11
+ return null;
12
+ if (r.type == "group") {
13
+ const n = r.data?.depth ?? 0, a = d[n % d.length];
14
+ 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 });
15
+ }
16
+ 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 });
17
+ } }), e[0] = o, e[1] = i) : i = e[1], i;
18
+ };
19
+ export {
20
+ w as DFlowMiniMap
21
+ };
@@ -0,0 +1 @@
1
+ export * from './DFlowMiniMap';
@@ -0,0 +1,4 @@
1
+ import { DFlowMiniMap as p } from "./DFlowMiniMap.js";
2
+ export {
3
+ p as DFlowMiniMap
4
+ };
@@ -0,0 +1,33 @@
1
+ import { DFlowSuggestion, DFlowSuggestionType } from './DFlowSuggestion.view';
2
+ import { DataTypeIdentifier, Flow, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
3
+ export declare const useSuggestions: (type: DataTypeIdentifier | undefined, genericKeys: string[] | undefined, flowId: Flow["id"], depth?: number, scope?: number[], node?: number, suggestionTypes?: DFlowSuggestionType[]) => DFlowSuggestion[];
4
+ /**
5
+ * React hook that produces a stable MD5 hash for a given Type, deeply resolving:
6
+ * - All type aliases (via DFlowDataTypeReactiveService) at any level of nesting
7
+ * - All occurrences of any provided generic_keys (can be any string) as "GENERIC"
8
+ * - All generic_mapper/type fields, rules/config.type fields, and parent fields, recursively
9
+ * - All object keys sorted for stable, order-independent hashing
10
+ *
11
+ * This ensures semantically equivalent types—regardless of alias, generic key naming, or structural nesting—
12
+ * always produce the same hash, making this suitable for caching, deduplication, and fast comparison.
13
+ *
14
+ * @param type The Type to hash (either a string or a GenericType object)
15
+ * @param generic_keys (optional) Array of string keys that should be normalized as generics (can be any string)
16
+ * @returns MD5 hash string if type/service available, otherwise undefined
17
+ */
18
+ export declare const useTypeHash: (type: DataTypeIdentifier, generic_keys?: string[]) => string | undefined;
19
+ /**
20
+ * Walks the flow starting at its startingNode (depth-first, left-to-right) and collects
21
+ * all RefObjects (variables/outputs) with contextual metadata:
22
+ * - depth: nesting level (root 0; +1 per NODE-parameter sub-block)
23
+ * - scope: PATH of scope ids as number[], e.g. [0], [0,1], [0,2], [0,2,3] ...
24
+ * (root is [0]; each NODE-parameter group appends a new unique id)
25
+ * - node: GLOBAL visit index across the entire flow (1-based, strictly increasing)
26
+ *
27
+ * Notes:
28
+ * - A NODE-typed parameter opens a new group/lane: depth+1 and scopePath+[newId].
29
+ * - Functions passed as non-NODE parameters are traversed in the SAME depth/scopePath.
30
+ * - The `node` id is incremented globally for every visited node and shared by all
31
+ * RefObjects (inputs from rules and the return value) produced by that node.
32
+ */
33
+ export declare const useRefObjects: (flowId: Flow["id"]) => Array<ReferenceValue>;
@@ -0,0 +1,151 @@
1
+ import { c as J } from "../../../compiler-runtime-Cu50tn6L.js";
2
+ import { useService as I } from "../../../utils/contextStore.js";
3
+ import { DFlowReactiveSuggestionService as G } from "./DFlowSuggestion.service.js";
4
+ import { D as b } from "../../../DFlowDataType.service-B7xAjgiJ.js";
5
+ import { md5 as H } from "js-md5";
6
+ import { DFlowSuggestionType as f, DFlowSuggestion as h } from "./DFlowSuggestion.view.js";
7
+ import { DFlowFunctionReactiveService as L } from "../function/DFlowFunction.service.js";
8
+ import { replaceGenericsAndSortType as R, resolveType as O, isMatchingType as x } from "../../../utils/generics.js";
9
+ import { NodeFunctionView as E } from "../DFlow.view.js";
10
+ import { DFlowReactiveService as $ } from "../DFlow.service.js";
11
+ import { useReturnType as M } from "../function/DFlowFunction.return.hook.js";
12
+ import { useInputType as Y } from "../function/DFlowFunction.input.hook.js";
13
+ import { DataTypeRulesVariant as _, DataTypeVariant as w } from "@code0-tech/sagittarius-graphql-types";
14
+ const se = (i, p, s, g = 0, u = [0], T = 1, v = [f.REF_OBJECT, f.VALUE, f.FUNCTION, f.FUNCTION_COMBINATION, f.DATA_TYPE]) => {
15
+ const m = I(G), y = I(b), A = I($), F = I(L), N = A.getById(s), l = i ? y?.getDataType(i) : void 0;
16
+ if (!m || !y) return [];
17
+ const o = i ? K(i) : void 0, r = i ? R(O(i, y), p) : void 0, a = [];
18
+ return m.getSuggestionsByHash(o || "").length <= 0 && (o && l && v.includes(f.VALUE) && l.rules?.nodes?.forEach((n) => {
19
+ if (n?.variant === _.ItemOfCollection)
20
+ n.config.items?.forEach((e) => {
21
+ const t = new h(o, [], {
22
+ __typename: "LiteralValue",
23
+ value: e
24
+ }, f.VALUE, [e.toString()]);
25
+ m.add(t), a.push(t);
26
+ });
27
+ else if (n?.variant === _.NumberRange) {
28
+ const e = n.config, t = new h(o, [], {
29
+ __typename: "LiteralValue",
30
+ value: e.from
31
+ }, f.VALUE, [e.from?.toString() ?? ""]);
32
+ m.add(t), a.push(t);
33
+ }
34
+ }), o && l && l.variant === w.DataType && v.includes(f.DATA_TYPE) && y.values().forEach((n) => {
35
+ const e = new h(o, [], n.json, f.DATA_TYPE, [n.name?.nodes[0]?.content]);
36
+ m.add(e), a.push(e);
37
+ }), v.includes(f.FUNCTION_COMBINATION) && F.values().filter((e) => {
38
+ if (!i || !r || !o) return !0;
39
+ if (e.runtimeFunctionDefinition?.identifier == "RETURN" && i) return !1;
40
+ if (l?.variant === w.Node) return !0;
41
+ if (!e.returnType || !e.genericKeys) return !1;
42
+ const t = R(O(e.returnType, y), e.genericKeys);
43
+ return x(r, t);
44
+ }).sort((e, t) => {
45
+ const [c, d, B] = e.runtimeFunctionDefinition.identifier.split("::"), [S, V, D] = t.runtimeFunctionDefinition.identifier.split("::"), U = c.localeCompare(S);
46
+ if (U !== 0) return U;
47
+ const j = d.localeCompare(V);
48
+ return j !== 0 ? j : B.localeCompare(D);
49
+ }).forEach((e) => {
50
+ const t = {
51
+ __typename: "NodeFunction",
52
+ //TODO: generate unique id
53
+ id: `gid://sagittarius/NodeFunction/${(N?.nodes?.length ?? 0) + 1}`,
54
+ functionDefinition: {
55
+ id: e.id,
56
+ runtimeFunctionDefinition: e.runtimeFunctionDefinition
57
+ },
58
+ parameters: {
59
+ nodes: e.parameterDefinitions?.map((d) => ({
60
+ id: d.id,
61
+ runtimeParameter: {
62
+ id: d.id
63
+ }
64
+ })) ?? []
65
+ }
66
+ }, c = new h(o || "", [], t, f.FUNCTION, [e.names?.nodes[0]?.content]);
67
+ a.push(c);
68
+ })), v.includes(f.REF_OBJECT) && (i ? P(s) : []).forEach((e) => {
69
+ if ((e?.node ?? 0) >= T || (e?.depth ?? 0) > g || (e?.scope ?? []).some((d) => !u.includes(d)) || !r) return;
70
+ const t = R(O(e.dataTypeIdentifier, y), []);
71
+ if (!x(r, t)) return;
72
+ const c = new h(o || "", [], e, f.REF_OBJECT, [`${e.depth}-${e.scope}-${e.node || ""}`]);
73
+ a.push(c);
74
+ }), [...a, ...m.getSuggestionsByHash(o || "")].sort();
75
+ }, K = (i, p) => {
76
+ const s = J.c(4), g = I(b);
77
+ if (!i || !g)
78
+ return;
79
+ let u;
80
+ if (s[0] !== g || s[1] !== p || s[2] !== i) {
81
+ const T = O(i, g), v = R(T, p), m = JSON.stringify(v);
82
+ u = H(m), s[0] = g, s[1] = p, s[2] = i, s[3] = u;
83
+ } else
84
+ u = s[3];
85
+ return u;
86
+ }, P = (i) => {
87
+ const p = I(b), s = I($), g = I(L), u = [];
88
+ if (!p || !s || !g) return u;
89
+ const T = s.values().find((N) => N.id === i);
90
+ if (!T?.startingNodeId) return u;
91
+ let v = 0;
92
+ const m = () => ++v;
93
+ let y = 0;
94
+ const A = () => ++y, F = (N, l, o) => {
95
+ if (!N) return;
96
+ let r = N;
97
+ for (; r; ) {
98
+ const a = g.getById(r.functionDefinition?.id);
99
+ if (!a) break;
100
+ const C = A();
101
+ if (r.parameters && a.parameterDefinitions)
102
+ for (const n of a.parameterDefinitions) {
103
+ const e = p.getDataType(n.dataTypeIdentifier);
104
+ if (!e || e.variant === w.Node) continue;
105
+ const t = e.rules?.nodes?.filter((c) => c?.variant === _.InputType) ?? [];
106
+ if (t.length) {
107
+ const d = r.parameters.find((S) => S.id === n.id)?.value, B = d !== void 0 ? d instanceof E ? [d.json()] : [d] : [];
108
+ for (const S of t) {
109
+ const V = S?.config, D = Y(V.dataTypeIdentifier, a, B, p);
110
+ D && u.push({
111
+ __typename: "ReferenceValue",
112
+ dataTypeIdentifier: D,
113
+ depth: l,
114
+ scope: o,
115
+ node: C
116
+ });
117
+ }
118
+ }
119
+ }
120
+ {
121
+ const n = r.parameters?.map((t) => t.value).filter((t) => t !== void 0) ?? [], e = M(a, n.map((t) => t instanceof E ? t.json() : t), p);
122
+ e && u.push({
123
+ __typename: "ReferenceValue",
124
+ dataTypeIdentifier: e,
125
+ depth: l,
126
+ scope: o,
127
+ node: C
128
+ });
129
+ }
130
+ if (r.parameters && a.parameterDefinitions)
131
+ for (const n of a.parameterDefinitions)
132
+ if (p.getDataType(n.dataTypeIdentifier)?.variant === w.Node) {
133
+ const t = r.parameters.find((c) => c.id === n.id);
134
+ if (t?.value && t.value instanceof E) {
135
+ const c = t.value, d = [...o, m()];
136
+ F(c, l + 1, d);
137
+ }
138
+ } else {
139
+ const t = r.parameters.find((c) => c.id === n.id);
140
+ t?.value && t.value instanceof E && F(t.value, l, o);
141
+ }
142
+ r = T.getNodeById(r.nextNodeId);
143
+ }
144
+ };
145
+ return F(T.getNodeById(T.startingNodeId), 0, [0]), u;
146
+ };
147
+ export {
148
+ P as useRefObjects,
149
+ se as useSuggestions,
150
+ K as useTypeHash
151
+ };
@@ -0,0 +1,5 @@
1
+ import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
2
+ import { DFlowSuggestion } from './DFlowSuggestion.view';
3
+ export declare abstract class DFlowReactiveSuggestionService extends ReactiveArrayService<DFlowSuggestion> {
4
+ getSuggestionsByHash(hash: string): DFlowSuggestion[];
5
+ }
@@ -0,0 +1,18 @@
1
+ import { ReactiveArrayService as s } from "../../../utils/reactiveArrayService.js";
2
+ class l extends s {
3
+ //get all suggestions with matching hash
4
+ getSuggestionsByHash(a) {
5
+ const t = /* @__PURE__ */ new Set();
6
+ return this.values().filter((e) => e.hash === a).filter((e) => {
7
+ const r = JSON.stringify({
8
+ path: e.path,
9
+ value: e.value,
10
+ type: e.type
11
+ });
12
+ return t.has(r) ? !1 : (t.add(r), !0);
13
+ });
14
+ }
15
+ }
16
+ export {
17
+ l as DFlowReactiveSuggestionService
18
+ };