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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/assets/components/badge/Badge.style.css +1 -1
  2. package/dist/assets/components/button/Button.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  4. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  5. package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
  6. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  7. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  8. package/dist/assets/components/d-layout/DLayout.style.css +1 -1
  9. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  10. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
  11. package/dist/assets/components/form/Input.style.css +1 -1
  12. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
  13. package/dist/components/avatar/Avatar.js +7 -7
  14. package/dist/components/badge/Badge.d.ts +1 -1
  15. package/dist/components/badge/Badge.js +57 -17
  16. package/dist/components/breadcrumb/Breadcrumb.js +5 -5
  17. package/dist/components/button/Button.js +8 -8
  18. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  19. package/dist/components/context-menu/ContextMenu.js +191 -0
  20. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  21. package/dist/components/d-application/DApplication.service.js +9 -0
  22. package/dist/components/d-flow/DFlow.d.ts +5 -3
  23. package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
  24. package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
  25. package/dist/components/d-flow/DFlow.js +214 -199
  26. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
  27. package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
  28. package/dist/components/d-flow/DFlow.service.d.ts +12 -7
  29. package/dist/components/d-flow/DFlow.service.js +117 -7
  30. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  31. package/dist/components/d-flow/DFlowEdge.js +69 -0
  32. package/dist/components/d-flow/index.d.ts +1 -10
  33. package/dist/components/d-flow/index.js +9 -44
  34. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
  35. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
  36. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
  37. package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
  38. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  39. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
  40. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  41. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
  42. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  43. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  44. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  45. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  46. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  47. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
  48. package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
  49. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  50. package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
  51. package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
  52. package/dist/components/d-flow-file/DFlowTabs.js +128 -0
  53. package/dist/components/d-flow-file/index.d.ts +1 -0
  54. package/dist/components/d-flow-file/index.js +4 -0
  55. package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
  56. package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
  57. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  58. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
  59. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  60. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  61. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  62. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
  63. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
  64. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  65. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  66. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
  67. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  68. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  69. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
  70. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  71. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
  72. package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
  73. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  74. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
  75. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  76. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  77. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  78. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
  79. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  80. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
  81. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  82. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
  83. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  84. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  85. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  86. package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
  87. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  88. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  89. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  90. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  91. package/dist/components/d-flow-panel/index.d.ts +5 -0
  92. package/dist/components/d-flow-panel/index.js +12 -0
  93. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
  94. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
  95. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  96. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  97. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
  98. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  99. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
  100. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  101. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  102. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  103. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  104. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  105. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  106. package/dist/components/d-flow-suggestion/index.js +4 -0
  107. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
  108. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  109. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
  110. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
  111. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  112. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  113. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  114. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  115. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  116. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  117. package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
  118. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  119. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  120. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  121. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  122. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  123. package/dist/components/d-organization/DOrganizationList.js +7 -7
  124. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  125. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  126. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  127. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  128. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  129. package/dist/components/d-resizable/DResizable.js +18 -17
  130. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  131. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  132. package/dist/components/d-user/DUser.session.hook.js +2 -2
  133. package/dist/components/d-user/DUserContent.js +13 -13
  134. package/dist/components/d-user/DUserInput.js +9 -9
  135. package/dist/components/d-user/DUserList.js +9 -9
  136. package/dist/components/file-tabs/FileTabs.js +2 -2
  137. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  138. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  139. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  140. package/dist/components/form/CheckboxInput.js +4 -4
  141. package/dist/components/form/EmailInput.js +12 -12
  142. package/dist/components/form/Input.js +220 -206
  143. package/dist/components/form/Input.selection.hook.js +9 -9
  144. package/dist/components/form/Input.syntax.hook.js +7 -7
  145. package/dist/components/form/NumberInput.js +9 -9
  146. package/dist/components/form/PasswordInput.js +6 -6
  147. package/dist/components/form/SwitchInput.js +7 -7
  148. package/dist/components/form/TextInput.js +10 -10
  149. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  150. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  151. package/dist/index.d.ts +8 -0
  152. package/dist/index.js +117 -117
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  155. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  157. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  158. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  159. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  160. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  161. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  162. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  163. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  164. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  165. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  166. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  167. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  168. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  169. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  170. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  171. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  172. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  173. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  174. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  175. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  176. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  177. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  178. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  179. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  180. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  181. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  182. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  183. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  184. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  192. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  193. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  194. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  195. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  196. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  197. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  198. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  199. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  200. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  201. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  202. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  203. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  204. package/dist/utils/generics.d.ts +5 -6
  205. package/dist/utils/generics.js +2 -2
  206. package/dist/utils/objectStore.js +15 -15
  207. package/dist/utils/reactiveArrayService.js +5 -5
  208. package/package.json +7 -4
  209. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  210. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  211. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  212. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  213. package/dist/components/d-flow/DFlow.view.js +0 -248
  214. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  215. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  216. package/dist/components/d-flow/control/index.d.ts +0 -1
  217. package/dist/components/d-flow/control/index.js +0 -4
  218. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  219. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  220. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  221. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  223. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  224. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  225. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  226. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  227. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  228. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  229. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  230. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  231. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  232. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  233. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  234. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  235. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  236. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  237. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  238. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  239. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  240. package/dist/components/d-flow/minimap/index.js +0 -4
  241. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  242. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  243. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  244. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  246. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  247. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  248. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  249. package/dist/components/d-flow/suggestion/index.js +0 -7
  250. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  251. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  252. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  253. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  254. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  255. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  256. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  257. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  258. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  259. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  260. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  261. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  262. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  263. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  271. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  272. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  273. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  274. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  275. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  276. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  277. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  278. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  279. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  280. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  281. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  282. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -0,0 +1,75 @@
1
+ import { jsxs as S, jsx as p } from "react/jsx-runtime";
2
+ import T from "react";
3
+ import { useService as m } from "../../utils/contextStore.js";
4
+ import "merge-props";
5
+ import "../d-flow/DFlow.js";
6
+ import { DFlowReactiveService as w } from "../d-flow/DFlow.service.js";
7
+ import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
8
+ import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
9
+ import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
10
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
11
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
12
+ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
13
+ import "js-md5";
14
+ import "../../_virtual/compiler-runtime.js";
15
+ import "@radix-ui/react-checkbox";
16
+ import "@tabler/icons-react";
17
+ import '../../assets/components/form/Input.style.css';/* empty css */
18
+ import "../form/EmailInput.js";
19
+ import "../form/Input.js";
20
+ import "../form/InputSuggestion.js";
21
+ import "../form/NumberInput.js";
22
+ import "../form/PasswordInput.js";
23
+ import "@radix-ui/react-one-time-password-field";
24
+ import "@radix-ui/react-radio-group";
25
+ import "../form/SwitchInput.js";
26
+ import { TextInput as V } from "../form/TextInput.js";
27
+ import { Flex as b } from "../flex/Flex.js";
28
+ import { DFlowTypeReactiveService as F } from "../d-flow-type/DFlowType.service.js";
29
+ import { useSuggestions as x } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
30
+ import { DFlowSuggestionMenuFooter as I } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
31
+ import { toInputSuggestions as h } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
32
+ import { DFlowInputDataType as D } from "../d-flow-input/DFlowInputDataType.js";
33
+ const pt = (s) => {
34
+ const {
35
+ instance: o
36
+ } = s, c = m(F), l = m(w), [, f] = T.useTransition(), r = c.getById(o.type?.id), u = {};
37
+ return r?.flowTypeSettings?.forEach((i) => {
38
+ u[i.identifier] = x({
39
+ dataType: i.dataType
40
+ }, [], o.id, 0, [0], 0);
41
+ }), /* @__PURE__ */ S(b, { style: {
42
+ gap: ".7rem",
43
+ flexDirection: "column"
44
+ }, children: [
45
+ r?.inputType ? /* @__PURE__ */ p(D, { onDataTypeChange: (i) => {
46
+ o.inputType = i, l.update();
47
+ }, initialValue: o.inputType || r.inputType, blockingDataType: r.inputType }) : null,
48
+ r?.flowTypeSettings?.map((i) => {
49
+ const t = o.settings?.nodes?.find((e) => e?.flowSettingIdentifier == i.identifier), g = i.names?.nodes[0]?.content ?? "", y = i?.descriptions?.nodes[0]?.content ?? "", d = u[i.identifier];
50
+ if (!t) return null;
51
+ const v = (t.value?.__typename === "LiteralValue", typeof t?.value == "object" ? JSON.stringify(t?.value) : t?.value), n = (e) => {
52
+ f(async () => {
53
+ e.__typename == "LiteralValue" ? await l.setSettingValue(s.instance.id, t.id, e.value) : await l.setSettingValue(s.instance.id, t.id, e);
54
+ });
55
+ };
56
+ return /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(V, { title: g, description: y, clearable: !0, defaultValue: v, onClear: (e) => {
57
+ try {
58
+ const a = JSON.parse(e.target.value);
59
+ if (a.__typename == "LiteralValue") {
60
+ n(a.value);
61
+ return;
62
+ }
63
+ n(a);
64
+ } catch {
65
+ n(e.target.value);
66
+ }
67
+ }, onSuggestionSelect: (e) => {
68
+ n(e.value);
69
+ }, suggestionsFooter: /* @__PURE__ */ p(I, {}), suggestions: h(d) }, JSON.stringify(t.value)) });
70
+ })
71
+ ] });
72
+ };
73
+ export {
74
+ pt as DFlowTabTrigger
75
+ };
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
+ export interface DFlowTabsProps {
4
+ flowId: Flow['id'];
5
+ }
6
+ export declare const DFlowTabs: React.FC<DFlowTabsProps>;
@@ -0,0 +1,128 @@
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import { useService as u, useStore as g } from "../../utils/contextStore.js";
3
+ import n from "react";
4
+ import "merge-props";
5
+ import { FileTabsService as S } from "../file-tabs/FileTabs.service.js";
6
+ import { FileTabs as V, FileTabsContent as E, FileTabsList as G, FileTabsTrigger as U } from "../file-tabs/FileTabs.js";
7
+ import { Menu as x, MenuTrigger as w, MenuPortal as C, MenuContent as M, MenuLabel as m, MenuItem as c, MenuSeparator as v } from "../menu/Menu.js";
8
+ import { Button as z } from "../button/Button.js";
9
+ import { IconPlus as H, IconArrowUp as I, IconArrowDown as F, IconCornerDownLeft as L, IconDotsVertical as J } from "@tabler/icons-react";
10
+ import { DLayout as K } from "../d-layout/DLayout.js";
11
+ import { ButtonGroup as Q } from "../button-group/ButtonGroup.js";
12
+ import "../d-flow/DFlow.js";
13
+ import { DFlowReactiveService as A } from "../d-flow/DFlow.service.js";
14
+ import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
15
+ import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
16
+ import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
17
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
18
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
19
+ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
20
+ import "js-md5";
21
+ import { DFlowTypeReactiveService as B } from "../d-flow-type/DFlowType.service.js";
22
+ import { Card as D } from "../card/Card.js";
23
+ import { Flex as l } from "../flex/Flex.js";
24
+ import { Badge as a } from "../badge/Badge.js";
25
+ import { Spacing as W } from "../spacing/Spacing.js";
26
+ const Se = (k) => {
27
+ const {
28
+ flowId: R
29
+ } = k, t = u(S), o = g(S), $ = u(A), q = g(A), N = u(B), O = g(B), h = n.useId(), b = n.useMemo(() => $.getById(R), [q]), p = n.useMemo(() => N.getById(b?.type?.id), [O, b]), T = n.useMemo(() => o.find((r) => r.active)?.id ?? t.getActiveTab()?.id, [o, t]), d = n.useMemo(() => {
30
+ if (p?.id)
31
+ return o.find((r) => r.id === p.id);
32
+ }, [o, p]), y = n.useMemo(() => o.filter((r) => r.show), [o, d]), j = n.useMemo(() => o.filter((r) => !r.show && r.id !== d?.id), [o, d]);
33
+ return n.useEffect(() => {
34
+ setTimeout(() => {
35
+ const s = document.querySelector('[data-id="' + h + '"]').querySelector(".file-tabs__list-content"), f = s.querySelector('[data-value="' + t.getActiveTab()?.id + '"]');
36
+ if (s && f) {
37
+ const P = f.offsetLeft + f.offsetWidth / 2 - s.offsetWidth / 2;
38
+ s.scrollLeft = 0, s.scrollBy({
39
+ left: P,
40
+ behavior: "smooth"
41
+ });
42
+ }
43
+ }, 0);
44
+ }, [T, h]), /* @__PURE__ */ e(V, { "data-id": h, value: T, onValueChange: (r) => {
45
+ t.activateTab(r), t.update();
46
+ }, children: /* @__PURE__ */ e(K, { topContent: /* @__PURE__ */ e(G, { controls: /* @__PURE__ */ i(Q, { children: [
47
+ /* @__PURE__ */ i(x, { children: [
48
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(z, { variant: "none", paddingSize: "xxs", color: "primary", children: /* @__PURE__ */ e(H, { size: 12 }) }) }),
49
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ i(M, { align: "start", sideOffset: 8, color: "secondary", children: [
50
+ /* @__PURE__ */ i(D, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
51
+ borderWidth: "2px"
52
+ }, children: [
53
+ /* @__PURE__ */ e(m, { children: "Starting Node" }),
54
+ d && /* @__PURE__ */ e(c, { onSelect: () => t.activateTab(d.id), children: d.children }),
55
+ /* @__PURE__ */ e(v, {}),
56
+ /* @__PURE__ */ e(m, { children: "Opened Nodes" }),
57
+ y.map((r) => /* @__PURE__ */ e(c, { onSelect: () => {
58
+ t.activateTab(r.id);
59
+ }, children: r.children }, `menu-${r.id}`)),
60
+ /* @__PURE__ */ e(v, {}),
61
+ /* @__PURE__ */ e(m, { children: "Available Node" }),
62
+ j.map((r) => /* @__PURE__ */ e(c, { onSelect: () => {
63
+ t.activateTab(r.id);
64
+ }, children: r.children }, `menu-${r.id}`))
65
+ ] }),
66
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ i(l, { style: {
67
+ gap: ".35rem"
68
+ }, children: [
69
+ /* @__PURE__ */ i(l, { align: "center", style: {
70
+ gap: "0.35rem"
71
+ }, children: [
72
+ /* @__PURE__ */ i(l, { children: [
73
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(I, { size: 12 }) }),
74
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(F, { size: 12 }) })
75
+ ] }),
76
+ "move"
77
+ ] }),
78
+ /* @__PURE__ */ e(W, { spacing: "xxs" }),
79
+ /* @__PURE__ */ i(l, { align: "center", style: {
80
+ gap: ".35rem"
81
+ }, children: [
82
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(L, { size: 12 }) }),
83
+ "select"
84
+ ] })
85
+ ] }) })
86
+ ] }) })
87
+ ] }),
88
+ /* @__PURE__ */ i(x, { children: [
89
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(z, { variant: "none", paddingSize: "xxs", color: "primary", children: /* @__PURE__ */ e(J, { size: 12 }) }) }),
90
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ i(M, { align: "end", sideOffset: 8, color: "secondary", children: [
91
+ /* @__PURE__ */ i(D, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
92
+ borderWidth: "2px"
93
+ }, children: [
94
+ /* @__PURE__ */ e(c, { onClick: () => t.clearAll(), children: "Close all tabs" }),
95
+ /* @__PURE__ */ e(c, { onClick: () => t.clearWithoutActive(), children: "Close other tabs" }),
96
+ /* @__PURE__ */ e(v, {}),
97
+ /* @__PURE__ */ e(c, { onClick: () => t.clearLeft(), children: "Close all tabs to left" }),
98
+ /* @__PURE__ */ e(c, { onClick: () => t.clearRight(), children: "Close all tabs to right" })
99
+ ] }),
100
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ i(l, { style: {
101
+ gap: ".35rem"
102
+ }, children: [
103
+ /* @__PURE__ */ i(l, { align: "center", style: {
104
+ gap: "0.35rem"
105
+ }, children: [
106
+ /* @__PURE__ */ i(l, { children: [
107
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(I, { size: 12 }) }),
108
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(F, { size: 12 }) })
109
+ ] }),
110
+ "move"
111
+ ] }),
112
+ /* @__PURE__ */ e(W, { spacing: "xxs" }),
113
+ /* @__PURE__ */ i(l, { align: "center", style: {
114
+ gap: ".35rem"
115
+ }, children: [
116
+ /* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(L, { size: 12 }) }),
117
+ "select"
118
+ ] })
119
+ ] }) })
120
+ ] }) })
121
+ ] })
122
+ ] }), children: y.map((r, s) => r.show && /* @__PURE__ */ e(U, { closable: r.closeable, value: r.id, onClose: () => {
123
+ t.removeTabById(r.id);
124
+ }, children: r.children }, `trigger-${r.id}`)) }), children: o.map((r) => /* @__PURE__ */ e(E, { value: r.id, children: r.content }, `content-${r.id}`)) }) });
125
+ };
126
+ export {
127
+ Se as DFlowTabs
128
+ };
@@ -0,0 +1 @@
1
+ export * from './DFlowTabs';
@@ -0,0 +1,4 @@
1
+ import { DFlowTabs as a } from "./DFlowTabs.js";
2
+ export {
3
+ a as DFlowTabs
4
+ };
@@ -1,18 +1,24 @@
1
1
  import { default as React } from 'react';
2
- import { Code0Component } from '../../../utils/types';
3
- import { Scalars } from '@code0-tech/sagittarius-graphql-types';
2
+ import { Code0Component } from '../../utils';
3
+ import { Flow, FlowType, Scalars } from '@code0-tech/sagittarius-graphql-types';
4
4
  export interface DFlowFolderProps {
5
- flowId: Scalars["FlowID"]["output"];
5
+ activeFlowId: Scalars["FlowID"]["output"];
6
+ onRename?: (flow: Flow, newName: string) => void;
7
+ onDelete?: (flow: Flow) => void;
8
+ onCreate?: (name: string, type: FlowType['id']) => void;
6
9
  }
7
- export interface DFlowFolderGroupProps extends Omit<Code0Component<HTMLDivElement>, "controls"> {
10
+ export interface DFlowFolderGroupProps extends DFlowFolderProps, Omit<Code0Component<HTMLDivElement>, "controls"> {
8
11
  name: string;
9
12
  children: React.ReactElement<DFlowFolderItemProps> | React.ReactElement<DFlowFolderItemProps>[] | React.ReactElement<DFlowFolderGroupProps> | React.ReactElement<DFlowFolderGroupProps>[];
10
13
  defaultOpen?: boolean;
14
+ flows: Flow[];
11
15
  }
12
- export interface DFlowFolderItemProps extends Code0Component<HTMLDivElement> {
16
+ export interface DFlowFolderItemProps extends DFlowFolderProps, Code0Component<HTMLDivElement> {
13
17
  name: string;
18
+ path: string;
14
19
  icon?: React.ReactNode;
15
20
  active?: boolean;
21
+ flow: Flow;
16
22
  }
17
23
  export declare const DFlowFolder: React.FC<DFlowFolderProps>;
18
24
  export declare const DFlowFolderGroup: React.FC<DFlowFolderGroupProps>;
@@ -0,0 +1,158 @@
1
+ import { jsxs as g, Fragment as j, jsx as n } from "react/jsx-runtime";
2
+ import { c as M } from "../../_virtual/compiler-runtime.js";
3
+ import '../../assets/components/d-flow-folder/DFlowFolder.style.css';/* empty css */
4
+ import C from "react";
5
+ import { useService as k, useStore as B } from "../../utils/contextStore.js";
6
+ import { mergeCode0Props as N } from "../../utils/utils.js";
7
+ import { IconFolderOpen as P, IconFolder as E, IconDots as G, IconChevronDown as V, IconChevronRight as q } from "@tabler/icons-react";
8
+ import "../d-flow/DFlow.js";
9
+ import { DFlowReactiveService as z } from "../d-flow/DFlow.service.js";
10
+ import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
11
+ import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
12
+ import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
13
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
14
+ import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
15
+ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
16
+ import "js-md5";
17
+ import { ScrollArea as H, ScrollAreaViewport as J, ScrollAreaScrollbar as K, ScrollAreaThumb as L } from "../scroll-area/ScrollArea.js";
18
+ import { Flex as $ } from "../flex/Flex.js";
19
+ import { Text as R } from "../text/Text.js";
20
+ import { Button as A } from "../button/Button.js";
21
+ import { DFlowFolderContextMenu as T } from "./DFlowFolderContextMenu.js";
22
+ const _e = (u) => {
23
+ const {
24
+ activeFlowId: e
25
+ } = u, f = k(z), d = B(z), p = (l) => l.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean), h = C.useMemo(() => (f.values?.() ?? []).filter((o) => !!o?.name), [d]), m = C.useMemo(() => {
26
+ const l = h.find((o) => o.id === e);
27
+ return l?.name ? p(l.name) : [];
28
+ }, [h, e]), v = C.useMemo(() => {
29
+ const l = {
30
+ name: "",
31
+ path: "",
32
+ children: {}
33
+ };
34
+ for (const o of h) {
35
+ const s = p(o.name);
36
+ if (s.length === 0) continue;
37
+ let r = l, t = "";
38
+ for (let i = 0; i < s.length; i++) {
39
+ const c = s[i];
40
+ t = t ? `${t}/${c}` : c, i === s.length - 1 ? r.children[c] ? r.children[c].flow = o : r.children[c] = {
41
+ name: c,
42
+ path: t,
43
+ children: {},
44
+ flow: o
45
+ } : (r.children[c] || (r.children[c] = {
46
+ name: c,
47
+ path: t,
48
+ children: {}
49
+ }), r = r.children[c]);
50
+ }
51
+ }
52
+ return l;
53
+ }, [h]), a = C.useCallback((l) => l ? l.split("/").filter(Boolean).every((s, r) => m[r] === s) : !1, [m]), w = C.useCallback((l) => {
54
+ const o = Object.values(l), s = o.filter((t) => !t.flow), r = o.filter((t) => !!t.flow);
55
+ return s.sort((t, i) => t.name.localeCompare(i.name)), r.sort((t, i) => t.name.localeCompare(i.name)), /* @__PURE__ */ g(j, { children: [
56
+ s.map((t) => /* @__PURE__ */ n(Q, { name: t.name, flows: Object.values(t.children).map((i) => i.flow), defaultOpen: a(t.path), ...u, children: w(t.children) }, t.path)),
57
+ r.map((t) => /* @__PURE__ */ n(U, { name: t.name, path: t.path, flow: t.flow, active: t.flow.id === e, "data-flow-id": t.flow.id ?? void 0, ...u }, t.flow.id ?? t.path))
58
+ ] });
59
+ }, [e, a]);
60
+ return /* @__PURE__ */ g(H, { h: "100%", children: [
61
+ /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n("div", { className: "d-folder__root", children: w(v.children) }) }),
62
+ /* @__PURE__ */ n(K, { orientation: "vertical", children: /* @__PURE__ */ n(L, {}) })
63
+ ] });
64
+ }, Q = (u) => {
65
+ const e = M.c(31), {
66
+ name: f,
67
+ flows: d,
68
+ defaultOpen: p,
69
+ children: h,
70
+ ...m
71
+ } = u, v = p === void 0 ? !1 : p, [a, w] = C.useState(v), l = T;
72
+ let o;
73
+ e[0] !== d || e[1] !== f ? (o = {
74
+ name: f,
75
+ flows: d,
76
+ type: "group"
77
+ }, e[0] = d, e[1] = f, e[2] = o) : o = e[2];
78
+ let s;
79
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (s = () => w(W), e[3] = s) : s = e[3];
80
+ const r = N("d-folder", m);
81
+ let t;
82
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (t = {
83
+ gap: "0.35rem"
84
+ }, e[4] = t) : t = e[4];
85
+ let i;
86
+ e[5] !== a ? (i = /* @__PURE__ */ n("span", { className: "d-folder__icon", children: a ? /* @__PURE__ */ n(P, { size: 12 }) : /* @__PURE__ */ n(E, { size: 12 }) }), e[5] = a, e[6] = i) : i = e[6];
87
+ let c;
88
+ e[7] !== f ? (c = /* @__PURE__ */ n(R, { children: f }), e[7] = f, e[8] = c) : c = e[8];
89
+ let _;
90
+ e[9] !== i || e[10] !== c ? (_ = /* @__PURE__ */ g($, { align: "center", style: t, children: [
91
+ i,
92
+ c
93
+ ] }), e[9] = i, e[10] = c, e[11] = _) : _ = e[11];
94
+ let y;
95
+ e[12] === Symbol.for("react.memo_cache_sentinel") ? (y = {
96
+ gap: "0.35rem"
97
+ }, e[12] = y) : y = e[12];
98
+ let D;
99
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ n(A, { p: "0", variant: "none", children: /* @__PURE__ */ n(G, { size: 12 }) }), e[13] = D) : D = e[13];
100
+ let S;
101
+ e[14] !== a ? (S = /* @__PURE__ */ g($, { align: "center", style: y, children: [
102
+ D,
103
+ /* @__PURE__ */ n(A, { p: "0", variant: "none", children: a ? /* @__PURE__ */ n(V, { size: 12 }) : /* @__PURE__ */ n(q, { size: 12 }) })
104
+ ] }), e[14] = a, e[15] = S) : S = e[15];
105
+ let F;
106
+ e[16] !== S || e[17] !== s || e[18] !== r || e[19] !== _ ? (F = /* @__PURE__ */ g("div", { onClick: s, ...r, children: [
107
+ _,
108
+ S
109
+ ] }), e[16] = S, e[17] = s, e[18] = r, e[19] = _, e[20] = F) : F = e[20];
110
+ let b;
111
+ e[21] !== l || e[22] !== m || e[23] !== o || e[24] !== F ? (b = /* @__PURE__ */ n(l, { contextData: o, ...m, children: F }), e[21] = l, e[22] = m, e[23] = o, e[24] = F, e[25] = b) : b = e[25];
112
+ const I = a ? h : null;
113
+ let x;
114
+ e[26] !== I ? (x = /* @__PURE__ */ n("div", { className: "d-folder__content", children: I }), e[26] = I, e[27] = x) : x = e[27];
115
+ let O;
116
+ return e[28] !== b || e[29] !== x ? (O = /* @__PURE__ */ g(j, { children: [
117
+ b,
118
+ x
119
+ ] }), e[28] = b, e[29] = x, e[30] = O) : O = e[30], O;
120
+ }, U = (u) => {
121
+ const e = M.c(23);
122
+ let f, d, p, h, m, v;
123
+ if (e[0] !== u) {
124
+ const {
125
+ name: s,
126
+ path: r,
127
+ flow: t,
128
+ icon: i,
129
+ active: c,
130
+ ..._
131
+ } = u;
132
+ p = s, d = i, f = T, e[7] !== t || e[8] !== r ? (m = {
133
+ name: r,
134
+ flow: t,
135
+ type: "item"
136
+ }, e[7] = t, e[8] = r, e[9] = m) : m = e[9], v = _, h = N(`d-folder__item ${c ? "d-folder__item--active" : ""}`, _), e[0] = u, e[1] = f, e[2] = d, e[3] = p, e[4] = h, e[5] = m, e[6] = v;
137
+ } else
138
+ f = e[1], d = e[2], p = e[3], h = e[4], m = e[5], v = e[6];
139
+ let a;
140
+ e[10] !== d ? (a = d ? /* @__PURE__ */ n("span", { className: "d-folder__item-icon", children: d }) : null, e[10] = d, e[11] = a) : a = e[11];
141
+ let w;
142
+ e[12] !== p ? (w = /* @__PURE__ */ n(R, { children: p }), e[12] = p, e[13] = w) : w = e[13];
143
+ let l;
144
+ e[14] !== h || e[15] !== a || e[16] !== w ? (l = /* @__PURE__ */ g("div", { ...h, children: [
145
+ a,
146
+ w
147
+ ] }), e[14] = h, e[15] = a, e[16] = w, e[17] = l) : l = e[17];
148
+ let o;
149
+ return e[18] !== f || e[19] !== m || e[20] !== v || e[21] !== l ? (o = /* @__PURE__ */ n(f, { contextData: m, ...v, children: l }), e[18] = f, e[19] = m, e[20] = v, e[21] = l, e[22] = o) : o = e[22], o;
150
+ };
151
+ function W(u) {
152
+ return !u;
153
+ }
154
+ export {
155
+ _e as DFlowFolder,
156
+ Q as DFlowFolderGroup,
157
+ U as DFlowFolderItem
158
+ };
@@ -0,0 +1,18 @@
1
+ import { DFlowFolderProps } from './DFlowFolder';
2
+ import { default as React } from 'react';
3
+ import { Flow } from '@code0-tech/sagittarius-graphql-types';
4
+ export interface DFlowFolderContextMenuGroupData {
5
+ name: string;
6
+ flows: Flow[];
7
+ type: "group";
8
+ }
9
+ export interface DFlowFolderContextMenuItemData {
10
+ name: string;
11
+ flow: Flow;
12
+ type: "item";
13
+ }
14
+ export interface DFlowFolderContextMenuProps extends DFlowFolderProps {
15
+ children: React.ReactNode;
16
+ contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
17
+ }
18
+ export declare const DFlowFolderContextMenu: React.FC<DFlowFolderContextMenuProps>;
@@ -0,0 +1,69 @@
1
+ import { jsxs as n, Fragment as v, jsx as e } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { ContextMenu as F, ContextMenuTrigger as M, ContextMenuPortal as O, ContextMenuContent as R, ContextMenuSub as b, ContextMenuSubTrigger as T, ContextMenuSubContent as I, ContextMenuItem as i, ContextMenuSeparator as j } from "../context-menu/ContextMenu.js";
4
+ import { Flex as u } from "../flex/Flex.js";
5
+ import { Text as l } from "../text/Text.js";
6
+ import { IconChevronRight as z, IconEdit as B, IconTrash as k } from "@tabler/icons-react";
7
+ import { Dialog as A, DialogPortal as E, DialogContent as N, DialogClose as m } from "../dialog/Dialog.js";
8
+ import { Badge as P } from "../badge/Badge.js";
9
+ import { Button as s } from "../button/Button.js";
10
+ import { useService as _, useStore as Y } from "../../utils/contextStore.js";
11
+ import "merge-props";
12
+ import { DFlowTypeReactiveService as h } from "../d-flow-type/DFlowType.service.js";
13
+ import { DFlowFolderRenameDialog as q } from "./DFlowFolderRenameDialog.js";
14
+ import { DFlowFolderCreateDialog as G } from "./DFlowFolderCreateDialog.js";
15
+ const ne = (t) => {
16
+ const {
17
+ children: f
18
+ } = t, D = _(h), g = Y(h), C = r.useMemo(() => D.values(), [g]), [x, a] = r.useState(!1), [p, c] = r.useState(!1), [w, d] = r.useState(!1), [y, S] = r.useState(null);
19
+ return /* @__PURE__ */ n(v, { children: [
20
+ /* @__PURE__ */ e(A, { open: x, onOpenChange: (o) => a(o), children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ n(N, { autoFocus: !0, showCloseButton: !0, title: t.contextData.type == "item" ? "Remove flow" : "Remove folder", children: [
21
+ /* @__PURE__ */ n(l, { size: "md", hierarchy: "secondary", children: [
22
+ t.contextData.type == "item" ? "Are you sure you want to remove flow" : "Are you sure you want to remove folder",
23
+ " ",
24
+ " ",
25
+ /* @__PURE__ */ e(P, { color: "info", children: /* @__PURE__ */ e(l, { size: "md", style: {
26
+ color: "inherit"
27
+ }, children: t.contextData.name }) }),
28
+ " ",
29
+ " ",
30
+ t.contextData.type == "group" ? ", all flows and sub-folders inside " : "",
31
+ "from the this project?"
32
+ ] }),
33
+ /* @__PURE__ */ n(u, { justify: "space-between", align: "center", children: [
34
+ /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
35
+ /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "error", onClick: () => {
36
+ t.contextData.type === "item" ? t.onDelete?.(t.contextData.flow) : t.contextData.type === "group" && t.contextData.flows.forEach((o) => {
37
+ t.onDelete?.(o);
38
+ });
39
+ }, children: "Yes, remove!" }) })
40
+ ] })
41
+ ] }) }) }),
42
+ /* @__PURE__ */ e(q, { onOpenChange: (o) => c(o), open: p, ...t }),
43
+ /* @__PURE__ */ e(G, { flowTypeId: y, onOpenChange: (o) => d(o), open: w, ...t }),
44
+ /* @__PURE__ */ n(F, { children: [
45
+ /* @__PURE__ */ e(M, { asChild: !0, children: f }),
46
+ /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(R, { children: /* @__PURE__ */ n(b, { children: [
47
+ /* @__PURE__ */ e(T, { children: /* @__PURE__ */ n(u, { align: "center", justify: "space-between", w: "100%", children: [
48
+ /* @__PURE__ */ e(l, { children: "New flow" }),
49
+ /* @__PURE__ */ e(z, { size: 12 })
50
+ ] }) }),
51
+ /* @__PURE__ */ e(I, { children: C.map((o) => /* @__PURE__ */ e(i, { onSelect: () => {
52
+ S(o.id), d(!0);
53
+ }, children: o.names?.nodes[0]?.content ?? o.id }, o.id)) }),
54
+ /* @__PURE__ */ e(j, {}),
55
+ /* @__PURE__ */ n(i, { onSelect: () => c(!0), children: [
56
+ /* @__PURE__ */ e(B, { size: 12, color: "purple" }),
57
+ /* @__PURE__ */ e(l, { children: "Rename" })
58
+ ] }),
59
+ /* @__PURE__ */ n(i, { onSelect: () => a(!0), children: [
60
+ /* @__PURE__ */ e(k, { size: 12, color: "red" }),
61
+ /* @__PURE__ */ e(l, { children: "Delete" })
62
+ ] })
63
+ ] }) }) })
64
+ ] })
65
+ ] });
66
+ };
67
+ export {
68
+ ne as DFlowFolderContextMenu
69
+ };
@@ -0,0 +1,9 @@
1
+ import { DFlowFolderProps } from './DFlowFolder';
2
+ import { default as React } from 'react';
3
+ import { FlowType } from '@code0-tech/sagittarius-graphql-types';
4
+ export interface DFlowFolderCreateDialogProps extends DFlowFolderProps {
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ flowTypeId: FlowType['id'];
8
+ }
9
+ export declare const DFlowFolderCreateDialog: React.FC<DFlowFolderCreateDialogProps>;
@@ -0,0 +1,76 @@
1
+ import { jsx as o, jsxs as w } from "react/jsx-runtime";
2
+ import { c as O } from "../../_virtual/compiler-runtime.js";
3
+ import y from "react";
4
+ import "@radix-ui/react-checkbox";
5
+ import "merge-props";
6
+ import "@tabler/icons-react";
7
+ import '../../assets/components/form/Input.style.css';/* empty css */
8
+ import "../form/EmailInput.js";
9
+ import "../form/Input.js";
10
+ import "../form/InputSuggestion.js";
11
+ import "../form/NumberInput.js";
12
+ import "../form/PasswordInput.js";
13
+ import "@radix-ui/react-one-time-password-field";
14
+ import "@radix-ui/react-radio-group";
15
+ import "../form/SwitchInput.js";
16
+ import "../form/TextInput.js";
17
+ import { useForm as S } from "../form/useForm.js";
18
+ import { DialogClose as I, DialogPortal as j, DialogContent as v, Dialog as N } from "../dialog/Dialog.js";
19
+ import { Flex as P } from "../flex/Flex.js";
20
+ import { Button as F } from "../button/Button.js";
21
+ import { DFlowFolderItemPathInput as k } from "./DFlowFolderItemPathInput.js";
22
+ const te = (t) => {
23
+ const e = O.c(23), {
24
+ open: m
25
+ } = t, [g, b] = y.useState(m);
26
+ let c;
27
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
28
+ name: ""
29
+ }, e[0] = c) : c = e[0];
30
+ const x = c;
31
+ let s, f;
32
+ e[1] !== m ? (s = () => {
33
+ b(m);
34
+ }, f = [m], e[1] = m, e[2] = s, e[3] = f) : (s = e[2], f = e[3]), y.useEffect(s, f);
35
+ let u;
36
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (u = {
37
+ name: B
38
+ }, e[4] = u) : u = e[4];
39
+ let p;
40
+ e[5] !== t ? (p = {
41
+ initialValues: x,
42
+ validate: u,
43
+ onSubmit: (_) => {
44
+ t.onCreate?.(_.name, t.flowTypeId), t.onOpenChange?.(!1);
45
+ }
46
+ }, e[5] = t, e[6] = p) : p = e[6];
47
+ const [C, D] = S(p);
48
+ let i;
49
+ e[7] !== t ? (i = (_) => {
50
+ t.onOpenChange?.(_);
51
+ }, e[7] = t, e[8] = i) : i = e[8];
52
+ let l;
53
+ e[9] !== C ? (l = C.getInputProps("name"), e[9] = C, e[10] = l) : l = e[10];
54
+ let n;
55
+ e[11] !== l ? (n = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(k, { description: "You can choose a name here and only use alphanumeric names.", title: "Name of the flow", ...l }) }), e[11] = l, e[12] = n) : n = e[12];
56
+ let h;
57
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(I, { asChild: !0, children: /* @__PURE__ */ o(F, { color: "secondary", children: "No, go back!" }) }), e[13] = h) : h = e[13];
58
+ let r;
59
+ e[14] !== D ? (r = /* @__PURE__ */ w(P, { justify: "space-between", align: "center", children: [
60
+ h,
61
+ /* @__PURE__ */ o(F, { color: "success", onClick: D, children: "Yes, create!" })
62
+ ] }), e[14] = D, e[15] = r) : r = e[15];
63
+ let a;
64
+ e[16] !== n || e[17] !== r ? (a = /* @__PURE__ */ o(j, { children: /* @__PURE__ */ w(v, { autoFocus: !0, showCloseButton: !0, title: "Create new flow", children: [
65
+ n,
66
+ r
67
+ ] }) }), e[16] = n, e[17] = r, e[18] = a) : a = e[18];
68
+ let d;
69
+ return e[19] !== g || e[20] !== a || e[21] !== i ? (d = /* @__PURE__ */ o(N, { open: g, onOpenChange: i, children: a }), e[19] = g, e[20] = a, e[21] = i, e[22] = d) : d = e[22], d;
70
+ };
71
+ function B(t) {
72
+ return t ? null : "Name is required";
73
+ }
74
+ export {
75
+ te as DFlowFolderCreateDialog
76
+ };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { TextInputProps } from '../form';
3
+ export interface DFlowFolderItemPathInputProps extends TextInputProps {
4
+ }
5
+ export declare const DFlowFolderItemPathInput: React.FC<DFlowFolderItemPathInputProps>;
@@ -0,0 +1,49 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { c as l } from "../../_virtual/compiler-runtime.js";
3
+ import "react";
4
+ import "@radix-ui/react-checkbox";
5
+ import "merge-props";
6
+ import "@tabler/icons-react";
7
+ import '../../assets/components/form/Input.style.css';/* empty css */
8
+ import "../form/EmailInput.js";
9
+ import "../form/Input.js";
10
+ import "../form/InputSuggestion.js";
11
+ import "../form/NumberInput.js";
12
+ import "../form/PasswordInput.js";
13
+ import "@radix-ui/react-one-time-password-field";
14
+ import "@radix-ui/react-radio-group";
15
+ import "../form/SwitchInput.js";
16
+ import { TextInput as c } from "../form/TextInput.js";
17
+ import { Badge as h } from "../badge/Badge.js";
18
+ const R = (e) => {
19
+ const r = l.c(4);
20
+ let t;
21
+ r[0] !== e ? ({
22
+ ...t
23
+ } = e, r[0] = e, r[1] = t) : t = r[1];
24
+ const o = a;
25
+ let n;
26
+ return r[2] !== t ? (n = /* @__PURE__ */ p(c, { transformSyntax: o, ...t }), r[2] = t, r[3] = n) : n = r[3], n;
27
+ };
28
+ function f(e) {
29
+ const r = [];
30
+ let t = "";
31
+ return e.split("").forEach((o) => o === "/" ? (t && r.push(t), t = "", r.push("/")) : (t = t + o, t)), t && r.push(t), r;
32
+ }
33
+ function a(e, r) {
34
+ const o = f(e ?? "");
35
+ let n = 0;
36
+ return o.map((m, i) => {
37
+ const s = {
38
+ type: o.length - 1 !== i ? "block" : "text",
39
+ start: n,
40
+ end: n + m.length,
41
+ visualLength: o.length - 1 !== i ? 1 : m.length,
42
+ content: o.length - 1 !== i ? /* @__PURE__ */ p(h, { color: m == "/" ? "warning" : "info", children: m }) : m
43
+ };
44
+ return n = n + m.length, [s];
45
+ }).flat();
46
+ }
47
+ export {
48
+ R as DFlowFolderItemPathInput
49
+ };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
3
+ import { DFlowFolderProps } from './DFlowFolder';
4
+ export interface DFlowFolderRenameDialogProps extends DFlowFolderProps {
5
+ contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
6
+ open?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ }
9
+ export declare const DFlowFolderRenameDialog: React.FC<DFlowFolderRenameDialogProps>;