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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/assets/components/badge/Badge.style.css +1 -1
  2. package/dist/assets/components/button/Button.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  4. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  5. package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
  6. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  7. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  8. package/dist/assets/components/d-layout/DLayout.style.css +1 -1
  9. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  10. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
  11. package/dist/assets/components/form/Input.style.css +1 -1
  12. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
  13. package/dist/components/avatar/Avatar.js +7 -7
  14. package/dist/components/badge/Badge.d.ts +1 -1
  15. package/dist/components/badge/Badge.js +57 -17
  16. package/dist/components/breadcrumb/Breadcrumb.js +5 -5
  17. package/dist/components/button/Button.js +8 -8
  18. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  19. package/dist/components/context-menu/ContextMenu.js +191 -0
  20. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  21. package/dist/components/d-application/DApplication.service.js +9 -0
  22. package/dist/components/d-flow/DFlow.d.ts +5 -3
  23. package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
  24. package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
  25. package/dist/components/d-flow/DFlow.js +214 -199
  26. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
  27. package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
  28. package/dist/components/d-flow/DFlow.service.d.ts +12 -7
  29. package/dist/components/d-flow/DFlow.service.js +117 -7
  30. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  31. package/dist/components/d-flow/DFlowEdge.js +69 -0
  32. package/dist/components/d-flow/index.d.ts +1 -10
  33. package/dist/components/d-flow/index.js +9 -44
  34. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
  35. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
  36. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
  37. package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
  38. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  39. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
  40. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  41. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
  42. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  43. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  44. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  45. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  46. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  47. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
  48. package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
  49. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  50. package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
  51. package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
  52. package/dist/components/d-flow-file/DFlowTabs.js +128 -0
  53. package/dist/components/d-flow-file/index.d.ts +1 -0
  54. package/dist/components/d-flow-file/index.js +4 -0
  55. package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
  56. package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
  57. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  58. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
  59. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  60. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  61. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  62. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
  63. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
  64. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  65. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  66. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
  67. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  68. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  69. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
  70. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  71. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
  72. package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
  73. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  74. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
  75. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  76. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  77. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  78. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
  79. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  80. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
  81. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  82. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
  83. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  84. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  85. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  86. package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
  87. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  88. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  89. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  90. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  91. package/dist/components/d-flow-panel/index.d.ts +5 -0
  92. package/dist/components/d-flow-panel/index.js +12 -0
  93. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
  94. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
  95. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  96. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  97. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
  98. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  99. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
  100. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  101. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  102. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  103. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  104. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  105. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  106. package/dist/components/d-flow-suggestion/index.js +4 -0
  107. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
  108. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  109. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
  110. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
  111. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  112. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  113. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  114. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  115. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  116. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  117. package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
  118. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  119. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  120. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  121. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  122. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  123. package/dist/components/d-organization/DOrganizationList.js +7 -7
  124. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  125. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  126. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  127. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  128. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  129. package/dist/components/d-resizable/DResizable.js +18 -17
  130. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  131. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  132. package/dist/components/d-user/DUser.session.hook.js +2 -2
  133. package/dist/components/d-user/DUserContent.js +13 -13
  134. package/dist/components/d-user/DUserInput.js +9 -9
  135. package/dist/components/d-user/DUserList.js +9 -9
  136. package/dist/components/file-tabs/FileTabs.js +2 -2
  137. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  138. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  139. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  140. package/dist/components/form/CheckboxInput.js +4 -4
  141. package/dist/components/form/EmailInput.js +12 -12
  142. package/dist/components/form/Input.js +220 -206
  143. package/dist/components/form/Input.selection.hook.js +9 -9
  144. package/dist/components/form/Input.syntax.hook.js +7 -7
  145. package/dist/components/form/NumberInput.js +9 -9
  146. package/dist/components/form/PasswordInput.js +6 -6
  147. package/dist/components/form/SwitchInput.js +7 -7
  148. package/dist/components/form/TextInput.js +10 -10
  149. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  150. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  151. package/dist/index.d.ts +8 -0
  152. package/dist/index.js +117 -117
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  155. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  157. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  158. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  159. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  160. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  161. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  162. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  163. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  164. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  165. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  166. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  167. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  168. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  169. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  170. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  171. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  172. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  173. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  174. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  175. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  176. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  177. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  178. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  179. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  180. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  181. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  182. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  183. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  184. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  192. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  193. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  194. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  195. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  196. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  197. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  198. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  199. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  200. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  201. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  202. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  203. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  204. package/dist/utils/generics.d.ts +5 -6
  205. package/dist/utils/generics.js +2 -2
  206. package/dist/utils/objectStore.js +15 -15
  207. package/dist/utils/reactiveArrayService.js +5 -5
  208. package/package.json +7 -4
  209. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  210. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  211. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  212. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  213. package/dist/components/d-flow/DFlow.view.js +0 -248
  214. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  215. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  216. package/dist/components/d-flow/control/index.d.ts +0 -1
  217. package/dist/components/d-flow/control/index.js +0 -4
  218. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  219. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  220. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  221. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  223. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  224. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  225. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  226. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  227. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  228. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  229. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  230. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  231. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  232. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  233. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  234. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  235. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  236. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  237. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  238. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  239. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  240. package/dist/components/d-flow/minimap/index.js +0 -4
  241. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  242. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  243. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  244. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  246. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  247. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  248. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  249. package/dist/components/d-flow/suggestion/index.js +0 -7
  250. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  251. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  252. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  253. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  254. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  255. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  256. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  257. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  258. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  259. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  260. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  261. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  262. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  263. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  271. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  272. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  273. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  274. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  275. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  276. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  277. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  278. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  279. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  280. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  281. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  282. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c as m } from "../../../_virtual/compiler-runtime.js";
2
+ import { c as m } from "../../_virtual/compiler-runtime.js";
3
3
  import { DFlowSuggestionSearchInput as i } from "./DFlowSuggestionSearchInput.js";
4
4
  import { IconSearch as s } from "@tabler/icons-react";
5
5
  const p = (c) => {
@@ -1,4 +1,4 @@
1
- import { InputProps } from '../../form';
1
+ import { InputProps } from '../form';
2
2
  import { default as React } from 'react';
3
3
  interface DFlowSuggestionSearchInputProps extends Omit<InputProps<string | null>, "wrapperComponent" | "type"> {
4
4
  clearable?: boolean;
@@ -0,0 +1,35 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "../../_virtual/compiler-runtime.js";
3
+ import i from "react";
4
+ import "@radix-ui/react-checkbox";
5
+ import "merge-props";
6
+ import { IconX as s } from "@tabler/icons-react";
7
+ import '../../assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
8
+ import "../form/EmailInput.js";
9
+ import { Input as c } from "../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 { Button as l } from "../button/Button.js";
18
+ /* empty css */
19
+ import { setElementKey as u } from "../form/Input.utils.js";
20
+ const D = i.forwardRef((e, t) => {
21
+ t = t || i.useRef(null);
22
+ const {
23
+ clearable: m = !1,
24
+ right: p,
25
+ ...n
26
+ } = e, a = () => {
27
+ t.current && u(t.current, "value", "", "change");
28
+ }, r = [p];
29
+ return m && r.push(/* @__PURE__ */ o(l, { variant: "none", onClick: a, children: /* @__PURE__ */ o(s, { size: 13 }) })), /* @__PURE__ */ o(c, { wrapperComponent: {
30
+ className: "d-flow-suggestion-search-input"
31
+ }, right: r, type: "text", ref: t, ...n });
32
+ });
33
+ export {
34
+ D as DFlowSuggestionSearchInput
35
+ };
@@ -0,0 +1 @@
1
+ export * from './DFlowSuggestion.view';
@@ -0,0 +1,4 @@
1
+ import { DFlowSuggestionType as g } from "./DFlowSuggestion.view.js";
2
+ export {
3
+ g as DFlowSuggestionType
4
+ };
@@ -1,4 +1,4 @@
1
- import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
1
+ import { ReactiveArrayService } from '../../utils';
2
2
  import { FlowTypeView } from './DFlowType.view';
3
3
  import { FlowType } from '@code0-tech/sagittarius-graphql-types';
4
4
  export declare abstract class DFlowTypeReactiveService extends ReactiveArrayService<FlowTypeView> {
@@ -0,0 +1,12 @@
1
+ import "../../utils/contextStore.js";
2
+ import "react";
3
+ import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
4
+ import "merge-props";
5
+ class m extends i {
6
+ getById(e) {
7
+ return this.values().find((r) => r.id === e);
8
+ }
9
+ }
10
+ export {
11
+ m as DFlowTypeReactiveService
12
+ };
@@ -1,9 +1,13 @@
1
1
  import { DataType, FlowType, FlowTypeSetting, Maybe, Scalars, TranslationConnection } from '@code0-tech/sagittarius-graphql-types';
2
2
  export declare class FlowTypeView {
3
+ /** Name of the function */
4
+ private readonly _aliases?;
3
5
  /** Time when this FlowType was created */
4
6
  private readonly _createdAt?;
5
7
  /** Descriptions of the flow type */
6
8
  private readonly _descriptions?;
9
+ /** Display message of the function */
10
+ private readonly _displayMessages?;
7
11
  /** Editable status of the flow type */
8
12
  private readonly _editable?;
9
13
  /** Flow type settings of the flow type */
@@ -21,8 +25,10 @@ export declare class FlowTypeView {
21
25
  /** Time when this FlowType was last updated */
22
26
  private readonly _updatedAt?;
23
27
  constructor(flowType: FlowType);
28
+ get aliases(): Maybe<TranslationConnection> | undefined;
24
29
  get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
25
30
  get descriptions(): Maybe<TranslationConnection> | undefined;
31
+ get displayMessages(): Maybe<TranslationConnection> | undefined;
26
32
  get editable(): Maybe<Scalars["Boolean"]["output"]> | undefined;
27
33
  get flowTypeSettings(): Maybe<Array<FlowTypeSetting>> | undefined;
28
34
  get id(): Maybe<Scalars["FlowTypeID"]["output"]> | undefined;
@@ -1,23 +1,26 @@
1
- function i(e, t, r) {
2
- return (t = s(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1
+ function i(e, t, s) {
2
+ return (t = n(t)) in e ? Object.defineProperty(e, t, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = s, e;
3
3
  }
4
- function s(e) {
4
+ function n(e) {
5
5
  var t = d(e, "string");
6
6
  return typeof t == "symbol" ? t : t + "";
7
7
  }
8
8
  function d(e, t) {
9
9
  if (typeof e != "object" || !e) return e;
10
- var r = e[Symbol.toPrimitive];
11
- if (r !== void 0) {
12
- var n = r.call(e, t);
13
- if (typeof n != "object") return n;
10
+ var s = e[Symbol.toPrimitive];
11
+ if (s !== void 0) {
12
+ var r = s.call(e, t);
13
+ if (typeof r != "object") return r;
14
14
  throw new TypeError("@@toPrimitive must return a primitive value.");
15
15
  }
16
16
  return (t === "string" ? String : Number)(e);
17
17
  }
18
- class u {
18
+ class a {
19
19
  constructor(t) {
20
- i(this, "_createdAt", void 0), i(this, "_descriptions", void 0), i(this, "_editable", void 0), i(this, "_flowTypeSettings", void 0), i(this, "_id", void 0), i(this, "_identifier", void 0), i(this, "_inputType", void 0), i(this, "_names", void 0), i(this, "_returnType", void 0), i(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._descriptions = t.descriptions, this._editable = t.editable, this._flowTypeSettings = t.flowTypeSettings, this._id = t.id, this._identifier = t.identifier, this._inputType = t.inputType, this._names = t.names, this._returnType = t.returnType, this._updatedAt = t.updatedAt;
20
+ i(this, "_aliases", void 0), i(this, "_createdAt", void 0), i(this, "_descriptions", void 0), i(this, "_displayMessages", void 0), i(this, "_editable", void 0), i(this, "_flowTypeSettings", void 0), i(this, "_id", void 0), i(this, "_identifier", void 0), i(this, "_inputType", void 0), i(this, "_names", void 0), i(this, "_returnType", void 0), i(this, "_updatedAt", void 0), this._aliases = t.aliases, this._createdAt = t.createdAt, this._descriptions = t.descriptions, this._displayMessages = t.displayMessages, this._editable = t.editable, this._flowTypeSettings = t.flowTypeSettings, this._id = t.id, this._identifier = t.identifier, this._inputType = t.inputType, this._names = t.names, this._returnType = t.returnType, this._updatedAt = t.updatedAt;
21
+ }
22
+ get aliases() {
23
+ return this._aliases;
21
24
  }
22
25
  get createdAt() {
23
26
  return this._createdAt;
@@ -25,6 +28,9 @@ class u {
25
28
  get descriptions() {
26
29
  return this._descriptions;
27
30
  }
31
+ get displayMessages() {
32
+ return this._displayMessages;
33
+ }
28
34
  get editable() {
29
35
  return this._editable;
30
36
  }
@@ -65,5 +71,5 @@ class u {
65
71
  }
66
72
  }
67
73
  export {
68
- u as FlowTypeView
74
+ a as FlowTypeView
69
75
  };
@@ -0,0 +1,2 @@
1
+ import { DataTypeView } from '../d-flow-data-type';
2
+ export declare const useDataTypeValidation: (firstDataType: DataTypeView, secondDataType: DataTypeView) => boolean;
@@ -0,0 +1,18 @@
1
+ const g = ["id", "__typename", "createdAt", "updatedAt", "aliases", "displayMessages", "name", "runtime"], h = (l, u) => {
2
+ if (l.variant !== u.variant) return !1;
3
+ const c = (e) => e !== null && typeof e == "object", i = (e, r) => {
4
+ if (e === r) return !0;
5
+ const a = Array.isArray(e), y = Array.isArray(r);
6
+ if (a || y)
7
+ return !a || !y || e.length !== r.length ? !1 : e.every((s, f) => i(s, r[f]));
8
+ if (c(e) && c(r)) {
9
+ const s = Object.keys(e), f = Object.keys(r);
10
+ return s.length !== f.length ? !1 : s.every((o) => g.includes(o) ? !0 : i(e[o], r[o]));
11
+ }
12
+ return !1;
13
+ }, t = l.rules?.nodes ?? [], n = u.rules?.nodes ?? [];
14
+ return !t.length && !n.length ? !0 : !t.length || !n.length || t.length !== n.length ? !1 : t.every((e, r) => i(e, n[r]));
15
+ };
16
+ export {
17
+ h as useDataTypeValidation
18
+ };
@@ -0,0 +1,3 @@
1
+ import { ValidationResult } from '../../utils';
2
+ import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
+ export declare const useFlowValidation: (flowId: Flow["id"]) => ValidationResult[];
@@ -0,0 +1,22 @@
1
+ import { c as m } from "../../_virtual/compiler-runtime.js";
2
+ import { useService as p, useStore as c } from "../../utils/contextStore.js";
3
+ import "react";
4
+ import "merge-props";
5
+ import "../d-flow/DFlow.js";
6
+ import { DFlowReactiveService as i } 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
+ const _ = (r) => {
15
+ const t = m.c(1), e = p(i);
16
+ c(i), e.getById(r);
17
+ let o;
18
+ return t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[0] = o) : o = t[0], o;
19
+ };
20
+ export {
21
+ _ as useFlowValidation
22
+ };
@@ -0,0 +1,66 @@
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { c as s } from "../../_virtual/compiler-runtime.js";
3
+ import { Panel as f } from "@xyflow/react";
4
+ import { Flex as m } from "../flex/Flex.js";
5
+ import "../../utils/contextStore.js";
6
+ import { InspectionSeverity as l } from "../../utils/inspection.js";
7
+ import "react";
8
+ import "merge-props";
9
+ import { Badge as p } from "../badge/Badge.js";
10
+ import { IconExclamationCircle as u, IconAlertTriangle as d, IconMessageExclamation as g } from "@tabler/icons-react";
11
+ import '../../assets/components/d-flow-validation/DFlowValidation.style.css';/* empty css */
12
+ import { Text as h } from "../text/Text.js";
13
+ import { useFlowValidation as R } from "./DFlowValidation.hook.js";
14
+ const B = (e) => {
15
+ const n = s.c(4), {
16
+ flowId: a
17
+ } = e, t = R(a);
18
+ let i;
19
+ n[0] !== t ? (i = (t?.length ?? 0) > 0 ? /* @__PURE__ */ r("div", { className: "d-flow-viewport-validations", children: /* @__PURE__ */ c(m, { align: "center", style: {
20
+ gap: "0.7rem"
21
+ }, children: [
22
+ (t?.filter(y)?.length ?? 0) > 0 ? /* @__PURE__ */ r(p, { border: !0, color: "error", children: /* @__PURE__ */ c(m, { align: "center", style: {
23
+ gap: "0.35rem"
24
+ }, children: [
25
+ /* @__PURE__ */ r(u, { size: 16 }),
26
+ /* @__PURE__ */ r(h, { style: {
27
+ color: "inherit"
28
+ }, children: t?.filter(x)?.length })
29
+ ] }) }) : null,
30
+ (t?.filter(A)?.length ?? 0) > 0 ? /* @__PURE__ */ r(p, { border: !0, color: "warning", children: /* @__PURE__ */ c(m, { align: "center", style: {
31
+ gap: "0.35rem"
32
+ }, children: [
33
+ /* @__PURE__ */ r(d, { size: 16 }),
34
+ t?.filter(I)?.length
35
+ ] }) }) : null,
36
+ (t?.filter(w)?.length ?? 0) > 0 ? /* @__PURE__ */ r(p, { border: !0, children: /* @__PURE__ */ c(m, { align: "center", style: {
37
+ gap: "0.35rem"
38
+ }, children: [
39
+ /* @__PURE__ */ r(g, { size: 16 }),
40
+ t?.filter(_)?.length
41
+ ] }) }) : null
42
+ ] }) }) : null, n[0] = t, n[1] = i) : i = n[1];
43
+ let o;
44
+ return n[2] !== i ? (o = /* @__PURE__ */ r(f, { position: "top-right", children: i }), n[2] = i, n[3] = o) : o = n[3], o;
45
+ };
46
+ function y(e) {
47
+ return e.type === l.ERROR;
48
+ }
49
+ function x(e) {
50
+ return e.type === l.ERROR;
51
+ }
52
+ function A(e) {
53
+ return e.type === l.WARNING;
54
+ }
55
+ function I(e) {
56
+ return e.type === l.WARNING;
57
+ }
58
+ function w(e) {
59
+ return e.type === l.GRAMMAR;
60
+ }
61
+ function _(e) {
62
+ return e.type === l.GRAMMAR;
63
+ }
64
+ export {
65
+ B as DFlowValidation
66
+ };
@@ -0,0 +1,3 @@
1
+ import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
2
+ import { ValidationResult } from '../../utils';
3
+ export declare const useNodeValidation: (nodeId: NodeFunction["id"], flowId: Flow["id"]) => ValidationResult[] | null;
@@ -0,0 +1,62 @@
1
+ import S from "react";
2
+ import { DFlowDataTypeReactiveService as h } from "../d-flow-data-type/DFlowDataType.service.js";
3
+ import { DataTypeView as $ } from "../d-flow-data-type/DFlowDataType.view.js";
4
+ import { useService as R, useStore as _ } from "../../utils/contextStore.js";
5
+ import { InspectionSeverity as k } from "../../utils/inspection.js";
6
+ import "merge-props";
7
+ import { resolveGenericKeys as A, replaceGenericKeysInType as C, replaceGenericKeysInDataTypeObject as U } from "../../utils/generics.js";
8
+ import { useReturnType as q } from "../d-flow-function/DFlowFunction.return.hook.js";
9
+ import { DFlowFunctionReactiveService as B } from "../d-flow-function/DFlowFunction.service.js";
10
+ import { useDataTypeValidation as G } from "./DDataTypeValidation.hook.js";
11
+ import { useValueValidation as O } from "./DValueValidation.hook.js";
12
+ import "../d-flow/DFlow.js";
13
+ import { DFlowReactiveService as w } from "../d-flow/DFlow.service.js";
14
+ import "js-md5";
15
+ const x = (e) => e.__typename === "ReferenceValue" || e.__typename === "NodeFunctionIdWrapper", z = (e) => e.__typename === "NodeFunctionIdWrapper", E = (e, r) => new $(U(e.json, r)), M = (e, r, m) => ({
16
+ parameterId: e,
17
+ type: k.ERROR,
18
+ message: {
19
+ nodes: [{
20
+ code: "en-US",
21
+ content: `Argument of type ${m?.name?.nodes[0]?.content} is not assignable to parameter of type ${r?.name?.nodes[0]?.content}`
22
+ }]
23
+ }
24
+ }), se = (e, r) => {
25
+ const m = R(B), b = _(B), l = R(w), V = _(w), t = R(h), N = _(h), s = l.getById(r), v = l.getNodeById(r, e), f = v?.parameters?.nodes?.map((n) => n?.value) ?? [], u = m.getById(v?.functionDefinition?.id), g = u?.parameterDefinitions ?? [], F = u?.genericKeys ?? [], T = S.useMemo(() => A(u, f, t, s), [u, f, t, N, s, V]), K = S.useCallback((n, a) => {
26
+ if (z(n) && a?.variant !== "NODE") {
27
+ const p = l.getNodeById(r, n.id), i = m.getById(p?.functionDefinition?.id), c = p?.parameters?.nodes?.map((o) => o?.value) ?? [];
28
+ return q(i, c, t);
29
+ }
30
+ return t.getTypeFromValue(n, s);
31
+ }, [t, s, r, l, m]);
32
+ return S.useMemo(() => {
33
+ const n = [];
34
+ for (let a = 0; a < g.length; a++) {
35
+ const p = g[a], i = f[a];
36
+ if (!i) continue;
37
+ const c = p.dataTypeIdentifier, o = t.getDataType(c), W = K(i, o), y = t.getDataType(W);
38
+ if (!o || !y) {
39
+ n.push(M(p.id, o, y));
40
+ continue;
41
+ }
42
+ const j = !!c?.genericType || !!c?.genericKey && F.includes(c.genericKey);
43
+ let d = !0;
44
+ if (j) {
45
+ const I = E(o, T);
46
+ if (x(i)) {
47
+ const D = E(y, T);
48
+ d = G(I, D);
49
+ } else {
50
+ const D = C(c, T);
51
+ d = O(i, I, t, s, D?.genericType?.genericMappers);
52
+ }
53
+ } else
54
+ x(i) && o.variant !== "NODE" ? d = G(o, y) : d = O(i, o, t, s);
55
+ d || n.push(M(p.id, o, y));
56
+ }
57
+ return n.length > 0 ? n : null;
58
+ }, [s, v, f, u, g, F, T, K, e, r, b, V, N, t]);
59
+ };
60
+ export {
61
+ se as useNodeValidation
62
+ };
@@ -0,0 +1,3 @@
1
+ import { Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
2
+ import { DataTypeView, DFlowDataTypeReactiveService } from '../d-flow-data-type';
3
+ export declare const useValueValidation: (value: NodeParameterValue, dataType: DataTypeView, dataTypeService: DFlowDataTypeReactiveService, flow?: Flow, generics?: GenericMapper[]) => boolean;
@@ -0,0 +1,8 @@
1
+ import { RuleMap as a } from "../d-flow-data-type/rules/DFlowDataTypeRules.js";
2
+ const s = (e, n, r, i, o) => {
3
+ const f = new Map(o?.map((t) => [t.target, t]));
4
+ return n.rules?.nodes?.every((t) => !t || !t.variant || !t.config ? !1 : a.get(t.variant) ? a.get(t.variant)?.validate(e, t.config, f, r, i) : !0) ?? !0;
5
+ };
6
+ export {
7
+ s as useValueValidation
8
+ };
@@ -1,6 +1,6 @@
1
- import { useDFlowValidations as i } from "./DFlowValidation.hook.js";
1
+ import { useFlowValidation as i } from "./DFlowValidation.hook.js";
2
2
  import { DFlowValidation as r } from "./DFlowValidation.js";
3
3
  export {
4
4
  r as DFlowValidation,
5
- i as useDFlowValidations
5
+ i as useFlowValidation
6
6
  };
@@ -3,7 +3,7 @@ import { c as f } from "../../_virtual/compiler-runtime.js";
3
3
  import l from "react";
4
4
  import { mergeCode0Props as m } from "../../utils/utils.js";
5
5
  import '../../assets/components/d-fullscreen/DFullScreen.style.css';/* empty css */
6
- const y = (i) => {
6
+ const _ = (i) => {
7
7
  const e = f.c(7), t = l.useRef(null);
8
8
  let r, o;
9
9
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
@@ -22,5 +22,5 @@ const y = (i) => {
22
22
  return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
23
23
  };
24
24
  export {
25
- y as DFullScreen
25
+ _ as DFullScreen
26
26
  };
@@ -6,18 +6,18 @@ import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service
6
6
  import { Card as v } from "../card/Card.js";
7
7
  import S from "../card/CardSection.js";
8
8
  import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
9
- const g = (m) => {
9
+ const _ = (m) => {
10
10
  const {
11
11
  namespaceId: o,
12
12
  filter: i = () => !0,
13
13
  onRemove: s,
14
14
  onAssignRole: c,
15
- ...n
16
- } = m, a = u(t), p = l(t), d = f.useMemo(() => a.values({
15
+ ...a
16
+ } = m, n = u(t), p = l(t), d = f.useMemo(() => n.values({
17
17
  namespaceId: o
18
18
  }), [p, o]);
19
- return /* @__PURE__ */ r(v, { ...n, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
19
+ return /* @__PURE__ */ r(v, { ...a, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
20
20
  };
21
21
  export {
22
- g as DNamespaceMemberList
22
+ _ as DNamespaceMemberList
23
23
  };
@@ -1,23 +1,23 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import d from "react";
2
+ import p from "react";
3
3
  import { Card as u } from "../card/Card.js";
4
- import { useService as S, useStore as l } from "../../utils/contextStore.js";
4
+ import { useService as l, useStore as S } from "../../utils/contextStore.js";
5
5
  import "merge-props";
6
6
  import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
7
7
  import v from "../card/CardSection.js";
8
8
  import { DOrganizationContent as g } from "./DOrganizatonContent.js";
9
- const b = (i) => {
10
- const n = S(e), m = l(e), a = d.useMemo(() => n.values(), [m]), {
9
+ const _ = (i) => {
10
+ const n = l(e), m = S(e), a = p.useMemo(() => n.values(), [m]), {
11
11
  filter: c = () => !0,
12
12
  onLeave: s,
13
13
  onSetting: f,
14
14
  onSelect: t,
15
- ...p
15
+ ...d
16
16
  } = i;
17
- return /* @__PURE__ */ o(u, { ...p, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
17
+ return /* @__PURE__ */ o(u, { ...d, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
18
18
  t && t(r);
19
19
  }, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: f, organizationId: r?.id }) }, r.id)) });
20
20
  };
21
21
  export {
22
- b as DOrganizationList
22
+ _ as DOrganizationList
23
23
  };
@@ -1,16 +1,16 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import s from "react";
3
- import { Menu as u, MenuTrigger as d, MenuPortal as l, MenuContent as g, MenuItem as f } from "../menu/Menu.js";
2
+ import u from "react";
3
+ import { Menu as d, MenuTrigger as s, MenuPortal as l, MenuContent as f, MenuItem as g } from "../menu/Menu.js";
4
4
  import { Button as h } from "../button/Button.js";
5
5
  import { DOrganizationReactiveService as i } from "./DOrganization.service.js";
6
6
  import { useService as o } from "../../utils/contextStore.js";
7
7
  const x = (n) => {
8
8
  const r = o(i), a = o(i), c = r.getById(n.organizationId);
9
- return s.useMemo(() => /* @__PURE__ */ m(u, { ...n, children: [
10
- /* @__PURE__ */ e(d, { asChild: !0, children: /* @__PURE__ */ e(h, { variant: "none", style: {
9
+ return u.useMemo(() => /* @__PURE__ */ m(d, { ...n, children: [
10
+ /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(h, { variant: "none", style: {
11
11
  background: "transparent"
12
12
  }, children: c?.name }) }),
13
- /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(g, { side: "bottom", align: "start", sideOffset: 0, children: r.values().map((t) => /* @__PURE__ */ e(f, { onSelect: () => n.onOrganizationSelect(t.id), children: t.name }, t.id)) }) })
13
+ /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(f, { side: "bottom", align: "start", sideOffset: 0, children: r.values().map((t) => /* @__PURE__ */ e(g, { onSelect: () => n.onOrganizationSelect(t.id), children: t.name }, t.id)) }) })
14
14
  ] }), [a]);
15
15
  };
16
16
  export {
@@ -1,20 +1,20 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import n from "react";
3
3
  import { useStore as c, useService as s } from "../../utils/contextStore.js";
4
4
  import "merge-props";
5
- import { Text as m } from "../text/Text.js";
5
+ import { Text as a } from "../text/Text.js";
6
6
  import { DOrganizationReactiveService as v } from "./DOrganization.service.js";
7
7
  import { IconFolders as k, IconUsers as L, IconServer as N, IconEdit as w, IconLogout as F } from "@tabler/icons-react";
8
- import { Flex as t } from "../flex/Flex.js";
8
+ import { Flex as i } from "../flex/Flex.js";
9
9
  import { Button as S } from "../button/Button.js";
10
10
  import { Spacing as P } from "../spacing/Spacing.js";
11
- import { Avatar as E } from "../avatar/Avatar.js";
11
+ import { Avatar as _ } from "../avatar/Avatar.js";
12
12
  import { DUserReactiveService as b } from "../d-user/DUser.service.js";
13
13
  import "../../_virtual/compiler-runtime.js";
14
14
  import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/tooltip/Tooltip.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
15
15
  import "@radix-ui/react-dropdown-menu";
16
16
  /* empty css */
17
- import { useUserSession as T } from "../d-user/DUser.session.hook.js";
17
+ import { useUserSession as E } from "../d-user/DUser.session.hook.js";
18
18
  import { Badge as d } from "../badge/Badge.js";
19
19
  import "@radix-ui/react-checkbox";
20
20
  /* empty css */
@@ -35,59 +35,59 @@ import "@radix-ui/react-dialog";
35
35
  /* empty css */
36
36
  const Ie = (I) => {
37
37
  const {
38
- organizationId: a,
38
+ organizationId: m,
39
39
  onLeave: M = () => {
40
40
  },
41
41
  onSetting: j = () => {
42
42
  }
43
- } = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u = T(), p = n.useMemo(() => U.getById(u?.user?.id), [O, u]), r = n.useMemo(() => a ? C.getById(a) : null, [B, a]), o = n.useMemo(() => r ? $.getById(r.namespace?.id) : null, [D, r]), g = n.useMemo(() => o && p ? R.getByNamespaceIdAndUserId(o.id, p.id) : null, [A, o, p]), h = o?.projects?.count, y = o?.members?.count, f = o?.runtimes?.count;
44
- return /* @__PURE__ */ i(t, { align: "center", style: {
43
+ } = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u = E(), p = n.useMemo(() => U.getById(u?.user?.id), [O, u]), r = n.useMemo(() => m ? C.getById(m) : null, [B, m]), o = n.useMemo(() => r ? $.getById(r.namespace?.id) : null, [D, r]), g = n.useMemo(() => o && p ? R.getByNamespaceIdAndUserId(o.id, p.id) : null, [A, o, p]), h = o?.projects?.count, f = o?.members?.count, y = o?.runtimes?.count;
44
+ return /* @__PURE__ */ t(i, { align: "center", style: {
45
45
  gap: "1.3rem"
46
46
  }, justify: "space-between", children: [
47
- /* @__PURE__ */ i(t, { align: "center", style: {
47
+ /* @__PURE__ */ t(i, { align: "center", style: {
48
48
  gap: "1.3rem"
49
49
  }, children: [
50
- /* @__PURE__ */ e(E, { bg: "transparent", identifier: r?.name ?? "" }),
51
- /* @__PURE__ */ i(t, { style: {
50
+ /* @__PURE__ */ e(_, { bg: "transparent", identifier: r?.name ?? "" }),
51
+ /* @__PURE__ */ t(i, { style: {
52
52
  flexDirection: "column"
53
53
  }, children: [
54
- /* @__PURE__ */ e(m, { size: "lg", hierarchy: "primary", display: "block", children: r?.name }),
54
+ /* @__PURE__ */ e(a, { size: "lg", hierarchy: "primary", display: "block", children: r?.name }),
55
55
  /* @__PURE__ */ e(P, { spacing: "xxs" }),
56
- /* @__PURE__ */ i(t, { align: "center", style: {
56
+ /* @__PURE__ */ t(i, { align: "center", style: {
57
57
  gap: "0.35rem",
58
58
  flexWrap: "wrap"
59
59
  }, children: [
60
- /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
60
+ /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
61
61
  gap: "0.35rem"
62
62
  }, children: [
63
63
  /* @__PURE__ */ e(k, { size: 16 }),
64
- /* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${h ?? 0} project${(h ?? 0) !== 1 ? "s" : ""}` })
64
+ /* @__PURE__ */ e(a, { size: "xs", hierarchy: "tertiary", children: `${h ?? 0} project${(h ?? 0) !== 1 ? "s" : ""}` })
65
65
  ] }) }),
66
- /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
66
+ /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
67
67
  gap: "0.35rem"
68
68
  }, children: [
69
69
  /* @__PURE__ */ e(L, { size: 16 }),
70
- /* @__PURE__ */ i(m, { size: "xs", hierarchy: "tertiary", children: [
70
+ /* @__PURE__ */ t(a, { size: "xs", hierarchy: "tertiary", children: [
71
71
  " ",
72
- `${y ?? 0} member${(y ?? 0) !== 1 ? "s" : ""}`
72
+ `${f ?? 0} member${(f ?? 0) !== 1 ? "s" : ""}`
73
73
  ] })
74
74
  ] }) }),
75
- /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
75
+ /* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
76
76
  gap: "0.35rem"
77
77
  }, children: [
78
78
  /* @__PURE__ */ e(N, { size: 16 }),
79
- /* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${f ?? 0} runtime${(f ?? 0) !== 1 ? "s" : ""}` })
79
+ /* @__PURE__ */ e(a, { size: "xs", hierarchy: "tertiary", children: `${y ?? 0} runtime${(y ?? 0) !== 1 ? "s" : ""}` })
80
80
  ] }) })
81
81
  ] })
82
82
  ] })
83
83
  ] }),
84
- /* @__PURE__ */ i(t, { align: "center", style: {
84
+ /* @__PURE__ */ t(i, { align: "center", style: {
85
85
  gap: "0.7rem"
86
86
  }, children: [
87
87
  r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(S, { variant: "filled", color: "secondary", onClick: (l) => {
88
88
  l.stopPropagation(), j(r);
89
89
  }, children: /* @__PURE__ */ e(w, { size: 16 }) }) : null,
90
- g && g.userAbilities?.deleteMember ? /* @__PURE__ */ i(S, { variant: "filled", color: "error", onClick: (l) => {
90
+ g && g.userAbilities?.deleteMember ? /* @__PURE__ */ t(S, { variant: "filled", color: "error", onClick: (l) => {
91
91
  l.stopPropagation(), r && M(r);
92
92
  }, children: [
93
93
  /* @__PURE__ */ e(F, { size: 16 }),
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { useService as a } from "../../utils/contextStore.js";
2
+ import { useService as m } from "../../utils/contextStore.js";
3
3
  import p from "react";
4
4
  import "merge-props";
5
5
  import { Flex as t } from "../flex/Flex.js";
@@ -12,13 +12,13 @@ import { DRuntimeReactiveService as b } from "../d-runtime/DRuntime.service.js";
12
12
  import "../../_virtual/compiler-runtime.js";
13
13
  import '../../assets/components/card/Card.style.css';/* empty css */
14
14
  import { Button as S } from "../button/Button.js";
15
- const T = (d) => {
15
+ const G = (d) => {
16
16
  const {
17
17
  projectId: s,
18
18
  onSetting: u = () => {
19
19
  },
20
20
  minimized: o = !1
21
- } = d, l = a(y), h = o ? null : a(b), r = p.useMemo(() => l.getById(s), [l, s]), m = o ? null : p.useMemo(() => r ? h.getById(r.primaryRuntime?.id) : null, [r]);
21
+ } = d, l = m(y), h = o ? null : m(b), r = p.useMemo(() => l.getById(s), [l, s]), a = o ? null : p.useMemo(() => r ? h.getById(r.primaryRuntime?.id) : null, [r]);
22
22
  return /* @__PURE__ */ i(t, { align: "center", style: {
23
23
  gap: "1.3rem"
24
24
  }, justify: "space-between", children: [
@@ -54,9 +54,9 @@ const T = (d) => {
54
54
  /* @__PURE__ */ e(v, { size: 16 }),
55
55
  /* @__PURE__ */ e(n, { size: "xs", children: r?.runtimes?.count ?? 0 })
56
56
  ] }),
57
- m && /* @__PURE__ */ i(c, { border: !0, children: [
57
+ a && /* @__PURE__ */ i(c, { border: !0, children: [
58
58
  /* @__PURE__ */ e(z, { size: 16 }),
59
- /* @__PURE__ */ e(n, { size: "xs", children: m.name })
59
+ /* @__PURE__ */ e(n, { size: "xs", children: a.name })
60
60
  ] })
61
61
  ] })
62
62
  ] }),
@@ -67,5 +67,5 @@ const T = (d) => {
67
67
  ] });
68
68
  };
69
69
  export {
70
- T as DNamespaceProjectContent
70
+ G as DNamespaceProjectContent
71
71
  };