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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/components/avatar/Avatar.js +6 -7
  2. package/dist/components/data-table/DataTableFilterInput.js +5 -3
  3. package/dist/components/editor/Editor.js +29 -30
  4. package/dist/components/form/InputSuggestion.js +29 -29
  5. package/dist/components/form/useForm.d.ts +3 -3
  6. package/dist/components/form/useForm.js +16 -16
  7. package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
  8. package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
  9. package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
  10. package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
  11. package/dist/components/menu/Menu.js +8 -8
  12. package/dist/components/resizable/Resizable.d.ts +12 -0
  13. package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
  14. package/dist/components/tab/Tab.js +4 -4
  15. package/dist/components/toast/Toast.js +1 -1
  16. package/dist/index.d.ts +0 -20
  17. package/dist/index.js +152 -273
  18. package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
  19. package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
  20. package/dist/node_modules/prettier/standalone.js +1657 -1440
  21. package/package.json +29 -29
  22. package/dist/assets/components/d-flow/DFlow.style.css +0 -1
  23. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
  24. package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
  25. package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
  26. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
  27. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  28. package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
  29. package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
  30. package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
  31. package/dist/components/d-application/DApplication.service.d.ts +0 -9
  32. package/dist/components/d-application/DApplication.service.js +0 -10
  33. package/dist/components/d-flow/DFlow.d.ts +0 -9
  34. package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
  35. package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
  36. package/dist/components/d-flow/DFlow.js +0 -484
  37. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
  38. package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
  39. package/dist/components/d-flow/DFlow.service.d.ts +0 -21
  40. package/dist/components/d-flow/DFlow.service.js +0 -148
  41. package/dist/components/d-flow/DFlow.util.d.ts +0 -4
  42. package/dist/components/d-flow/DFlow.util.js +0 -63
  43. package/dist/components/d-flow/DFlow.view.d.ts +0 -4
  44. package/dist/components/d-flow/DFlow.view.js +0 -1
  45. package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
  46. package/dist/components/d-flow/DFlowEdge.js +0 -69
  47. package/dist/components/d-flow/index.d.ts +0 -4
  48. package/dist/components/d-flow/index.js +0 -10
  49. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
  50. package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
  51. package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
  52. package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
  53. package/dist/components/d-flow-data-type/index.d.ts +0 -2
  54. package/dist/components/d-flow-data-type/index.js +0 -6
  55. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
  56. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
  57. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
  58. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
  59. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
  60. package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
  61. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
  62. package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
  63. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
  64. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
  65. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
  66. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
  67. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
  68. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
  69. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
  70. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
  71. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
  72. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
  73. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
  74. package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
  75. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
  76. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
  77. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
  78. package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
  79. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
  80. package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
  81. package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
  82. package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
  83. package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
  84. package/dist/components/d-flow-file/DFlowTabs.js +0 -84
  85. package/dist/components/d-flow-file/index.d.ts +0 -1
  86. package/dist/components/d-flow-file/index.js +0 -4
  87. package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
  88. package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
  89. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
  90. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
  91. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
  92. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
  93. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
  94. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
  95. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
  96. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
  97. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
  98. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
  99. package/dist/components/d-flow-folder/index.d.ts +0 -4
  100. package/dist/components/d-flow-folder/index.js +0 -13
  101. package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
  102. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
  103. package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
  104. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
  105. package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
  106. package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
  107. package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
  108. package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
  109. package/dist/components/d-flow-function/index.d.ts +0 -2
  110. package/dist/components/d-flow-function/index.js +0 -7
  111. package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
  112. package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
  113. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
  114. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
  115. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
  116. package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
  117. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
  118. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
  119. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
  120. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
  121. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
  122. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
  123. package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
  124. package/dist/components/d-flow-node/DFlowNode.js +0 -1
  125. package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
  126. package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
  127. package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
  128. package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
  129. package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
  130. package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
  131. package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
  132. package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
  133. package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
  134. package/dist/components/d-flow-panel/DFlowExport.js +0 -33
  135. package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
  136. package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
  137. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
  138. package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
  139. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
  140. package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
  141. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
  142. package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
  143. package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
  144. package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
  145. package/dist/components/d-flow-panel/index.d.ts +0 -5
  146. package/dist/components/d-flow-panel/index.js +0 -12
  147. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
  148. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
  149. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
  150. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
  151. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
  152. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
  153. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
  154. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
  155. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
  156. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
  157. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
  158. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
  159. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
  160. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
  161. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
  162. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
  163. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
  164. package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
  165. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
  166. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
  167. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
  168. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
  169. package/dist/components/d-flow-suggestion/index.d.ts +0 -1
  170. package/dist/components/d-flow-suggestion/index.js +0 -4
  171. package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
  172. package/dist/components/d-flow-type/DFlowType.service.js +0 -13
  173. package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
  174. package/dist/components/d-flow-type/DFlowType.view.js +0 -93
  175. package/dist/components/d-flow-type/index.d.ts +0 -2
  176. package/dist/components/d-flow-type/index.js +0 -6
  177. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
  178. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
  179. package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
  180. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
  181. package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
  182. package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
  183. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
  184. package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
  185. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
  186. package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
  187. package/dist/components/d-flow-validation/index.d.ts +0 -2
  188. package/dist/components/d-flow-validation/index.js +0 -6
  189. package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
  190. package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
  191. package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
  192. package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
  193. package/dist/components/d-license/index.d.ts +0 -2
  194. package/dist/components/d-license/index.js +0 -6
  195. package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
  196. package/dist/components/d-member/DNamespaceMember.service.js +0 -18
  197. package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
  198. package/dist/components/d-member/DNamespaceMember.view.js +0 -62
  199. package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
  200. package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
  201. package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
  202. package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
  203. package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
  204. package/dist/components/d-member/DNamespaceMemberList.js +0 -24
  205. package/dist/components/d-member/index.d.ts +0 -4
  206. package/dist/components/d-member/index.js +0 -10
  207. package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
  208. package/dist/components/d-namespace/DNamespace.service.js +0 -13
  209. package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
  210. package/dist/components/d-namespace/DNamespace.view.js +0 -65
  211. package/dist/components/d-namespace/index.d.ts +0 -2
  212. package/dist/components/d-namespace/index.js +0 -6
  213. package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
  214. package/dist/components/d-organization/DOrganization.service.js +0 -13
  215. package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
  216. package/dist/components/d-organization/DOrganization.view.js +0 -55
  217. package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
  218. package/dist/components/d-organization/DOrganizationCard.js +0 -16
  219. package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
  220. package/dist/components/d-organization/DOrganizationList.js +0 -24
  221. package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
  222. package/dist/components/d-organization/DOrganizationMenu.js +0 -18
  223. package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
  224. package/dist/components/d-organization/DOrganizatonContent.js +0 -102
  225. package/dist/components/d-organization/index.d.ts +0 -5
  226. package/dist/components/d-organization/index.js +0 -40
  227. package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
  228. package/dist/components/d-project/DNamespaceProject.service.js +0 -13
  229. package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
  230. package/dist/components/d-project/DNamespaceProject.view.js +0 -78
  231. package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
  232. package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
  233. package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
  234. package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
  235. package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
  236. package/dist/components/d-project/DNamespaceProjectList.js +0 -26
  237. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
  238. package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
  239. package/dist/components/d-project/index.d.ts +0 -5
  240. package/dist/components/d-project/index.js +0 -27
  241. package/dist/components/d-resizable/DResizable.d.ts +0 -12
  242. package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
  243. package/dist/components/d-role/DNamespaceRole.service.js +0 -13
  244. package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
  245. package/dist/components/d-role/DNamespaceRole.view.js +0 -61
  246. package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
  247. package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
  248. package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
  249. package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
  250. package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
  251. package/dist/components/d-role/DNamespaceRoleList.js +0 -25
  252. package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
  253. package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
  254. package/dist/components/d-role/index.d.ts +0 -4
  255. package/dist/components/d-role/index.js +0 -10
  256. package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
  257. package/dist/components/d-runtime/DRuntime.service.js +0 -9
  258. package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
  259. package/dist/components/d-runtime/DRuntime.view.js +0 -76
  260. package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
  261. package/dist/components/d-runtime/DRuntimeCard.js +0 -18
  262. package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
  263. package/dist/components/d-runtime/DRuntimeContent.js +0 -46
  264. package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
  265. package/dist/components/d-runtime/DRuntimeList.js +0 -29
  266. package/dist/components/d-runtime/index.d.ts +0 -4
  267. package/dist/components/d-runtime/index.js +0 -10
  268. package/dist/components/d-user/DUser.service.d.ts +0 -20
  269. package/dist/components/d-user/DUser.service.js +0 -18
  270. package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
  271. package/dist/components/d-user/DUser.session.hook.js +0 -16
  272. package/dist/components/d-user/DUser.view.d.ts +0 -55
  273. package/dist/components/d-user/DUser.view.js +0 -103
  274. package/dist/components/d-user/DUserCard.d.ts +0 -8
  275. package/dist/components/d-user/DUserCard.js +0 -15
  276. package/dist/components/d-user/DUserContent.d.ts +0 -8
  277. package/dist/components/d-user/DUserContent.js +0 -52
  278. package/dist/components/d-user/DUserInput.d.ts +0 -7
  279. package/dist/components/d-user/DUserInput.js +0 -101
  280. package/dist/components/d-user/DUserList.d.ts +0 -9
  281. package/dist/components/d-user/DUserList.js +0 -23
  282. package/dist/components/d-user/DUserMenu.d.ts +0 -8
  283. package/dist/components/d-user/DUserMenu.js +0 -30
  284. package/dist/components/d-user/index.d.ts +0 -7
  285. package/dist/components/d-user/index.js +0 -27
  286. package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
  287. package/dist/utils/generics.d.ts +0 -21
  288. package/dist/utils/generics.js +0 -385
  289. /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
  290. /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
  291. /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
@@ -1,59 +0,0 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import r from "react";
3
- import { Dialog as f, DialogPortal as D, DialogOverlay as g, DialogContent as x, DialogClose as m } from "../dialog/Dialog.js";
4
- import { DFlowFolderItemPathInput as w } from "./DFlowFolderItemPathInput.js";
5
- import { Flex as y } from "../flex/Flex.js";
6
- import { Button as l } from "../button/Button.js";
7
- import "../../_virtual/compiler-runtime.js";
8
- import "@radix-ui/react-checkbox";
9
- import "merge-props";
10
- import "js-md5";
11
- import "@tabler/icons-react";
12
- import '../../assets/components/form/Input.style.css';/* empty css */
13
- import "../form/EmailInput.js";
14
- import "../form/Input.js";
15
- import "../form/InputSuggestion.js";
16
- import "../form/NumberInput.js";
17
- import "../form/PasswordInput.js";
18
- import "@radix-ui/react-one-time-password-field";
19
- import "@radix-ui/react-radio-group";
20
- import "../form/SwitchInput.js";
21
- import "../form/TextInput.js";
22
- import { useForm as C } from "../form/useForm.js";
23
- const K = (e) => {
24
- const {
25
- open: a
26
- } = e, [c, h] = r.useState(a), u = r.useMemo(() => ({
27
- path: e.contextData.name
28
- }), []);
29
- r.useEffect(() => {
30
- h(a);
31
- }, [a]);
32
- const [p, s] = C({
33
- initialValues: u,
34
- validate: {
35
- path: (o) => null
36
- },
37
- onSubmit: (o) => {
38
- e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "folder" && e.contextData.flow.forEach((n) => {
39
- const d = n.name?.replace(e.contextData.name, o.path) ?? n.name;
40
- e.onRename?.(n, d);
41
- });
42
- }
43
- });
44
- return /* @__PURE__ */ t(f, { open: c, onOpenChange: (o) => {
45
- e.onOpenChange?.(o);
46
- }, children: /* @__PURE__ */ i(D, { children: [
47
- /* @__PURE__ */ t(g, {}),
48
- /* @__PURE__ */ i(x, { autoFocus: !0, showCloseButton: !0, title: e.contextData.type == "item" ? "Rename flow" : "Rename folder", children: [
49
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(w, { description: "You can choose a new name here and only use alphanumeric names.", title: e.contextData.type == "item" ? "Name of the flow" : "Name of the folder", ...p.getInputProps("path") }) }),
50
- /* @__PURE__ */ i(y, { justify: "space-between", align: "center", children: [
51
- /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "secondary", children: "No, go back!" }) }),
52
- /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "success", onClick: s, children: "Yes, save!" }) })
53
- ] })
54
- ] })
55
- ] }) });
56
- };
57
- export {
58
- K as DFlowFolderRenameDialog
59
- };
@@ -1,4 +0,0 @@
1
- export * from './DFlowFolder';
2
- export * from './DFlowFolderDeleteDialog';
3
- export * from './DFlowFolderCreateDialog';
4
- export * from './DFlowFolderRenameDialog';
@@ -1,13 +0,0 @@
1
- import { DFlowFolder as r, DFlowFolderGroup as l, DFlowFolderItem as F, truncateText as t } from "./DFlowFolder.js";
2
- import { DFlowFolderDeleteDialog as a } from "./DFlowFolderDeleteDialog.js";
3
- import { DFlowFolderCreateDialog as m } from "./DFlowFolderCreateDialog.js";
4
- import { DFlowFolderRenameDialog as p } from "./DFlowFolderRenameDialog.js";
5
- export {
6
- r as DFlowFolder,
7
- m as DFlowFolderCreateDialog,
8
- a as DFlowFolderDeleteDialog,
9
- l as DFlowFolderGroup,
10
- F as DFlowFolderItem,
11
- p as DFlowFolderRenameDialog,
12
- t as truncateText
13
- };
@@ -1,5 +0,0 @@
1
- import { FunctionDefinitionView } from './DFlowFunction.view';
2
- import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
3
- import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
4
- import { DFlowFunctionReactiveService } from './DFlowFunction.service';
5
- export declare const useInputType: (type: DataTypeIdentifier, func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, functionService: DFlowFunctionReactiveService) => DataTypeIdentifier | null;
@@ -1,8 +0,0 @@
1
- import { resolveGenericKeys as s, replaceGenericKeysInType as t } from "../../utils/generics.js";
2
- const i = (e, r, n, p, c) => {
3
- const o = s(r, n, p, c);
4
- return t(e, o);
5
- };
6
- export {
7
- i as useInputType
8
- };
@@ -1,5 +0,0 @@
1
- import { FunctionDefinitionView } from './DFlowFunction.view';
2
- import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
3
- import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
4
- import { DFlowFunctionReactiveService } from './DFlowFunction.service';
5
- export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, functionService: DFlowFunctionReactiveService) => DataTypeIdentifier | null;
@@ -1,9 +0,0 @@
1
- import { resolveGenericKeys as y, replaceGenericKeysInType as o } from "../../utils/generics.js";
2
- const i = (e, r, n, p) => {
3
- if (!e?.returnType) return null;
4
- const t = y(e, r, n, p);
5
- return o(e.returnType, t);
6
- };
7
- export {
8
- i as useReturnType
9
- };
@@ -1,11 +0,0 @@
1
- import { ReactiveArrayService } from '../../utils';
2
- import { FunctionDefinitionView } from './DFlowFunction.view';
3
- import { FunctionDefinition, Namespace, NamespaceProject, Runtime } from '@code0-tech/sagittarius-graphql-types';
4
- export type DFlowFunctionDependencies = {
5
- namespaceId: Namespace['id'];
6
- projectId: NamespaceProject['id'];
7
- runtimeId: Runtime['id'];
8
- };
9
- export declare abstract class DFlowFunctionReactiveService extends ReactiveArrayService<FunctionDefinitionView, DFlowFunctionDependencies> {
10
- getById(id: FunctionDefinition['id'], dependencies?: DFlowFunctionDependencies): FunctionDefinitionView | undefined;
11
- }
@@ -1,13 +0,0 @@
1
- import "../../utils/contextStore.js";
2
- import "react";
3
- import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
4
- import "merge-props";
5
- import "js-md5";
6
- class s extends t {
7
- getById(e, i) {
8
- return this.values(i).find((r) => r.id === e);
9
- }
10
- }
11
- export {
12
- s as DFlowFunctionReactiveService
13
- };
@@ -1,81 +0,0 @@
1
- import { DataTypeIdentifier, DataTypeIdentifierConnection, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
2
- export declare class FunctionDefinitionView {
3
- /** Name of the function */
4
- private readonly _aliases?;
5
- /** Time when this FunctionDefinition was created */
6
- private readonly _createdAt?;
7
- /** All data type identifiers used within this Node Function */
8
- private readonly _dataTypeIdentifiers?;
9
- /** Deprecation message of the function */
10
- private readonly _deprecationMessages?;
11
- /** Description of the function */
12
- private readonly _descriptions?;
13
- /** Display message of the function */
14
- private readonly _displayMessages?;
15
- /** Documentation of the function */
16
- private readonly _documentations?;
17
- /** Generic keys of the function */
18
- private readonly _genericKeys?;
19
- /** Global ID of this FunctionDefinition */
20
- private readonly _id?;
21
- /** Identifier of the function */
22
- private readonly _identifier?;
23
- /** Name of the function */
24
- private readonly _names?;
25
- /** Parameters of the function */
26
- private readonly _parameterDefinitions?;
27
- /** Return type of the function */
28
- private readonly _returnType?;
29
- /** Runtime function definition */
30
- private readonly _runtimeFunctionDefinition?;
31
- /** Indicates if the function can throw an error */
32
- private readonly _throwsError?;
33
- /** Time when this FunctionDefinition was last updated */
34
- private readonly _updatedAt?;
35
- constructor(object: FunctionDefinition);
36
- get aliases(): Maybe<Array<Translation>> | undefined;
37
- get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
38
- get dataTypeIdentifiers(): Maybe<DataTypeIdentifierConnection> | undefined;
39
- get deprecationMessages(): Maybe<Array<Translation>> | undefined;
40
- get descriptions(): Maybe<Array<Translation>> | undefined;
41
- get displayMessages(): Maybe<Array<Translation>> | undefined;
42
- get documentations(): Maybe<Array<Translation>> | undefined;
43
- get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
44
- get id(): Maybe<Scalars["FunctionDefinitionID"]["output"]> | undefined;
45
- get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
46
- get names(): Maybe<Array<Translation>> | undefined;
47
- get parameterDefinitions(): Maybe<ParameterDefinitionView[]> | undefined;
48
- get returnType(): Maybe<DataTypeIdentifier> | undefined;
49
- get runtimeFunctionDefinition(): Maybe<RuntimeFunctionDefinition> | undefined;
50
- get throwsError(): Maybe<Scalars["Boolean"]["output"]> | undefined;
51
- get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
52
- json(): FunctionDefinition;
53
- }
54
- export declare class ParameterDefinitionView {
55
- /** Time when this ParameterDefinition was created */
56
- private readonly _createdAt?;
57
- /** Data type of the parameter */
58
- private readonly _dataTypeIdentifier?;
59
- /** Description of the parameter */
60
- private readonly _descriptions?;
61
- /** Documentation of the parameter */
62
- private readonly _documentations?;
63
- /** Global ID of this ParameterDefinition */
64
- private readonly _id?;
65
- /** Identifier of the parameter */
66
- private readonly _identifier?;
67
- /** Name of the parameter */
68
- private readonly _names?;
69
- /** Time when this ParameterDefinition was last updated */
70
- private readonly _updatedAt?;
71
- constructor(object: ParameterDefinition, dataTypeIdentifiers: DataTypeIdentifier[]);
72
- get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
73
- get dataTypeIdentifier(): Maybe<DataTypeIdentifier> | undefined;
74
- get descriptions(): Maybe<Array<Translation>> | undefined;
75
- get documentations(): Maybe<Array<Translation>> | undefined;
76
- get id(): Maybe<Scalars["ParameterDefinitionID"]["output"]> | undefined;
77
- get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
78
- get names(): Maybe<Array<Translation>> | undefined;
79
- get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
80
- json(): ParameterDefinition;
81
- }
@@ -1,139 +0,0 @@
1
- import { resolveDataTypeIdentifiers as d, attachDataTypeIdentifiers as n } from "../d-flow/DFlow.util.js";
2
- function t(e, i, s) {
3
- return (i = a(i)) in e ? Object.defineProperty(e, i, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = s, e;
4
- }
5
- function a(e) {
6
- var i = o(e, "string");
7
- return typeof i == "symbol" ? i : i + "";
8
- }
9
- function o(e, i) {
10
- if (typeof e != "object" || !e) return e;
11
- var s = e[Symbol.toPrimitive];
12
- if (s !== void 0) {
13
- var r = s.call(e, i);
14
- if (typeof r != "object") return r;
15
- throw new TypeError("@@toPrimitive must return a primitive value.");
16
- }
17
- return (i === "string" ? String : Number)(e);
18
- }
19
- class u {
20
- constructor(i) {
21
- t(this, "_aliases", void 0), t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifiers", void 0), t(this, "_deprecationMessages", void 0), t(this, "_descriptions", void 0), t(this, "_displayMessages", void 0), t(this, "_documentations", void 0), t(this, "_genericKeys", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_parameterDefinitions", void 0), t(this, "_returnType", void 0), t(this, "_runtimeFunctionDefinition", void 0), t(this, "_throwsError", void 0), t(this, "_updatedAt", void 0);
22
- const s = d(i.dataTypeIdentifiers?.nodes ?? []);
23
- this._aliases = i.aliases, this._createdAt = i.createdAt, this._dataTypeIdentifiers = i.dataTypeIdentifiers, this._deprecationMessages = i.deprecationMessages, this._descriptions = i.descriptions, this._displayMessages = i.displayMessages, this._documentations = i.documentations, this._genericKeys = i.genericKeys, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._parameterDefinitions = i.parameterDefinitions?.nodes?.map((r) => new h(r, s)) ?? void 0, this._returnType = n(s, i.returnType), this._runtimeFunctionDefinition = i.runtimeFunctionDefinition, this._throwsError = i.throwsError, this._updatedAt = i.updatedAt;
24
- }
25
- get aliases() {
26
- return this._aliases;
27
- }
28
- get createdAt() {
29
- return this._createdAt;
30
- }
31
- get dataTypeIdentifiers() {
32
- return this._dataTypeIdentifiers;
33
- }
34
- get deprecationMessages() {
35
- return this._deprecationMessages;
36
- }
37
- get descriptions() {
38
- return this._descriptions;
39
- }
40
- get displayMessages() {
41
- return this._displayMessages;
42
- }
43
- get documentations() {
44
- return this._documentations;
45
- }
46
- get genericKeys() {
47
- return this._genericKeys;
48
- }
49
- get id() {
50
- return this._id;
51
- }
52
- get identifier() {
53
- return this._identifier;
54
- }
55
- get names() {
56
- return this._names;
57
- }
58
- get parameterDefinitions() {
59
- return this._parameterDefinitions;
60
- }
61
- get returnType() {
62
- return this._returnType;
63
- }
64
- get runtimeFunctionDefinition() {
65
- return this._runtimeFunctionDefinition;
66
- }
67
- get throwsError() {
68
- return this._throwsError;
69
- }
70
- get updatedAt() {
71
- return this._updatedAt;
72
- }
73
- json() {
74
- return {
75
- aliases: this._aliases,
76
- createdAt: this._createdAt,
77
- deprecationMessages: this._deprecationMessages,
78
- displayMessages: this._displayMessages,
79
- descriptions: this._descriptions,
80
- documentations: this._documentations,
81
- genericKeys: this._genericKeys,
82
- id: this._id,
83
- identifier: this._identifier,
84
- names: this._names,
85
- parameterDefinitions: this._parameterDefinitions ? {
86
- nodes: this._parameterDefinitions.map((i) => i.json())
87
- } : void 0,
88
- returnType: this._returnType,
89
- runtimeFunctionDefinition: this._runtimeFunctionDefinition,
90
- throwsError: this._throwsError,
91
- updatedAt: this._updatedAt,
92
- dataTypeIdentifiers: this._dataTypeIdentifiers
93
- };
94
- }
95
- }
96
- class h {
97
- constructor(i, s) {
98
- t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifier", void 0), t(this, "_descriptions", void 0), t(this, "_documentations", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_updatedAt", void 0), this._createdAt = i.createdAt, this._dataTypeIdentifier = n(s, i.dataTypeIdentifier), this._descriptions = i.descriptions, this._documentations = i.documentations, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._updatedAt = i.updatedAt;
99
- }
100
- get createdAt() {
101
- return this._createdAt;
102
- }
103
- get dataTypeIdentifier() {
104
- return this._dataTypeIdentifier;
105
- }
106
- get descriptions() {
107
- return this._descriptions;
108
- }
109
- get documentations() {
110
- return this._documentations;
111
- }
112
- get id() {
113
- return this._id;
114
- }
115
- get identifier() {
116
- return this._identifier;
117
- }
118
- get names() {
119
- return this._names;
120
- }
121
- get updatedAt() {
122
- return this._updatedAt;
123
- }
124
- json() {
125
- return {
126
- createdAt: this._createdAt,
127
- dataTypeIdentifier: this._dataTypeIdentifier,
128
- descriptions: this._descriptions,
129
- documentations: this._documentations,
130
- id: this._id,
131
- names: this._names,
132
- updatedAt: this._updatedAt
133
- };
134
- }
135
- }
136
- export {
137
- u as FunctionDefinitionView,
138
- h as ParameterDefinitionView
139
- };
@@ -1,2 +0,0 @@
1
- export * from './DFlowFunction.service';
2
- export * from './DFlowFunction.view';
@@ -1,7 +0,0 @@
1
- import { DFlowFunctionReactiveService as o } from "./DFlowFunction.service.js";
2
- import { FunctionDefinitionView as t, ParameterDefinitionView as r } from "./DFlowFunction.view.js";
3
- export {
4
- o as DFlowFunctionReactiveService,
5
- t as FunctionDefinitionView,
6
- r as ParameterDefinitionView
7
- };
@@ -1,15 +0,0 @@
1
- import { ValidationProps } from '../form';
2
- import { DataTypeIdentifier, DataTypeRule, Maybe } from '@code0-tech/sagittarius-graphql-types';
3
- import { default as React } from 'react';
4
- export interface DFlowInputDataTypeProps extends ValidationProps<DataTypeIdentifier> {
5
- onChange?: (value: DataTypeIdentifier | null) => void;
6
- description?: string;
7
- label?: string;
8
- }
9
- export interface DFlowInputDataTypeRuleTreeProps {
10
- dataTypeIdentifier: DataTypeIdentifier;
11
- parentRule?: Maybe<DataTypeRule>;
12
- isRoot?: boolean;
13
- }
14
- export declare const DFlowInputDataType: React.FC<DFlowInputDataTypeProps>;
15
- export declare const DFlowInputDataTypeRuleTree: React.FC<DFlowInputDataTypeRuleTreeProps>;
@@ -1,131 +0,0 @@
1
- import { jsxs as a, jsx as e, Fragment as F } from "react/jsx-runtime";
2
- import "../../_virtual/compiler-runtime.js";
3
- import m from "react";
4
- import "@radix-ui/react-checkbox";
5
- import { InputLabel as O } from "../form/InputLabel.js";
6
- import { InputDescription as _ } from "../form/InputDescription.js";
7
- import "merge-props";
8
- import "js-md5";
9
- import { IconEdit as Y } from "@tabler/icons-react";
10
- import '../../assets/components/d-flow-input/DFlowInputDataType.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
11
- import "../form/EmailInput.js";
12
- import "../form/Input.js";
13
- import "../form/InputSuggestion.js";
14
- import "../form/NumberInput.js";
15
- import "../form/PasswordInput.js";
16
- import "@radix-ui/react-one-time-password-field";
17
- import "@radix-ui/react-radio-group";
18
- import "../form/SwitchInput.js";
19
- import "../form/TextInput.js";
20
- import { Card as K } from "../card/Card.js";
21
- import { Flex as u } from "../flex/Flex.js";
22
- import { Text as c } from "../text/Text.js";
23
- import { Badge as C } from "../badge/Badge.js";
24
- import { Button as V } from "../button/Button.js";
25
- import j from "../card/CardSection.js";
26
- /* empty css */
27
- import { hashToColor as B } from "../d-flow/DFlow.util.js";
28
- import { useService as P, useStore as R } from "../../utils/contextStore.js";
29
- import { DFlowDataTypeReactiveService as I } from "../d-flow-data-type/DFlowDataType.service.js";
30
- import { DFlowInputDataTypeEditDialog as W } from "./DFlowInputDataTypeEditDialog.js";
31
- const Ie = (f) => {
32
- const {
33
- initialValue: i,
34
- defaultValue: o,
35
- value: p,
36
- label: s,
37
- description: D
38
- } = f, r = p ?? i ?? o ?? null, h = P(I), g = R(I), [E, d] = m.useState(!1), t = m.useMemo(() => h.getDataType(r), [g, r]);
39
- return /* @__PURE__ */ a("div", { children: [
40
- /* @__PURE__ */ e(W, { dataTypeIdentifier: r, open: E, onDataTypeChange: f.onChange, onOpenChange: (n) => d(n) }),
41
- /* @__PURE__ */ e(O, { children: s }),
42
- /* @__PURE__ */ e(_, { children: D }),
43
- /* @__PURE__ */ a(K, { color: "secondary", paddingSize: "xs", children: [
44
- /* @__PURE__ */ a(u, { style: {
45
- gap: ".7rem"
46
- }, align: "center", justify: "space-between", children: [
47
- /* @__PURE__ */ e(u, { style: {
48
- gap: ".35rem"
49
- }, align: "center", children: /* @__PURE__ */ e(c, { children: t?.name?.[0].content ?? "Unnamed Data Type" }) }),
50
- /* @__PURE__ */ e(u, { style: {
51
- gap: ".35rem"
52
- }, align: "center", children: /* @__PURE__ */ e(V, { paddingSize: "xxs", variant: "filled", color: "tertiary", onClick: () => d(!0), children: /* @__PURE__ */ e(Y, { size: 13 }) }) })
53
- ] }),
54
- /* @__PURE__ */ e(K, { paddingSize: "xs", mt: 0.7, mb: -0.55, mx: -0.55, children: /* @__PURE__ */ e(S, { dataTypeIdentifier: r }) })
55
- ] })
56
- ] });
57
- }, S = (f) => {
58
- const {
59
- dataTypeIdentifier: i,
60
- parentRule: o,
61
- isRoot: p = !o
62
- } = f, s = P(I), D = R(I), r = m.useMemo(() => {
63
- const t = i.genericType?.genericMappers ?? [];
64
- return new Map(t.map((n) => [n.target, n]));
65
- }, [i]), h = m.useMemo(() => i.genericKey ? r.get(i.genericKey)?.sourceDataTypeIdentifiers?.map((n) => s.getDataType(n)) ?? [] : [s.getDataType(i)], [D, i, r]), g = m.useCallback((t) => t ? t.genericKey ? r.get(t.genericKey)?.sourceDataTypeIdentifiers?.[0] ?? null : t : null, [r]), d = m.useMemo(() => h.flatMap((t, n) => {
66
- const N = t?.rules?.nodes ?? [];
67
- return N.length ? N.map((l, k) => {
68
- const x = `${n}-${k}`, w = l?.config?.dataTypeIdentifier, y = g(w);
69
- if (l?.variant === "PARENT_TYPE" && y)
70
- return /* @__PURE__ */ e(S, { dataTypeIdentifier: y, parentRule: l, isRoot: p }, x);
71
- if (!y) return null;
72
- const b = s.getDataType(y), M = b?.variant === "PRIMITIVE", A = b?.name?.[0]?.content;
73
- let T = null;
74
- if (l?.variant === "CONTAINS_KEY") {
75
- const v = l?.config;
76
- T = /* @__PURE__ */ a(u, { align: "center", style: {
77
- gap: ".35rem",
78
- textWrap: "nowrap"
79
- }, className: "rule", children: [
80
- /* @__PURE__ */ e(C, { border: !0, color: "tertiary", style: {
81
- verticalAlign: "middle"
82
- }, children: /* @__PURE__ */ e(c, { size: "xs", style: {
83
- color: "inherit"
84
- }, children: v?.key }) }),
85
- /* @__PURE__ */ a(c, { hierarchy: "tertiary", children: [
86
- o?.variant === "CONTAINS_KEY" ? "is a field inside" : "is a field",
87
- M ? " of type" : ""
88
- ] }),
89
- M && /* @__PURE__ */ e(C, { border: !0, color: B(A ?? ""), style: {
90
- verticalAlign: "middle"
91
- }, children: /* @__PURE__ */ e(c, { size: "xs", style: {
92
- color: "inherit"
93
- }, children: A }) })
94
- ] });
95
- } else if (l?.variant === "CONTAINS_TYPE") {
96
- const v = o?.config?.key;
97
- T = /* @__PURE__ */ a(u, { align: "center", style: {
98
- gap: ".35rem",
99
- textWrap: "nowrap"
100
- }, className: "rule", children: [
101
- /* @__PURE__ */ e(c, { children: "Inside" }),
102
- v && /* @__PURE__ */ e(C, { border: !0, color: "tertiary", style: {
103
- verticalAlign: "middle"
104
- }, children: /* @__PURE__ */ e(c, { size: "xs", style: {
105
- color: "inherit"
106
- }, children: v }) }),
107
- /* @__PURE__ */ e(c, { hierarchy: "tertiary", ml: -0.35, children: ", each entity has" })
108
- ] });
109
- }
110
- const z = /* @__PURE__ */ e(S, { dataTypeIdentifier: y, parentRule: l });
111
- return p ? /* @__PURE__ */ a(j, { border: !0, children: [
112
- " ",
113
- T,
114
- " ",
115
- z,
116
- " "
117
- ] }, x) : /* @__PURE__ */ a("li", { children: [
118
- " ",
119
- T,
120
- " ",
121
- z,
122
- " "
123
- ] }, x);
124
- }) : [];
125
- }), [h, p, g, s, o]).filter(Boolean);
126
- return d.length === 0 ? null : p || o?.variant === "PARENT_TYPE" ? /* @__PURE__ */ e(F, { children: d }) : /* @__PURE__ */ e("ul", { children: d });
127
- };
128
- export {
129
- Ie as DFlowInputDataType,
130
- S as DFlowInputDataTypeRuleTree
131
- };
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
3
- export interface DFlowInputDataTypeEditDialogProps {
4
- dataTypeIdentifier: DataTypeIdentifier;
5
- open?: boolean;
6
- onOpenChange?: (open: boolean) => void;
7
- onDataTypeChange?: (dataTypeIdentifier: DataTypeIdentifier) => void;
8
- }
9
- export declare const DFlowInputDataTypeEditDialog: React.FC<DFlowInputDataTypeEditDialogProps>;
@@ -1,102 +0,0 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import a from "react";
3
- import { Dialog as F, DialogPortal as B, DialogOverlay as O, DialogContent as P, DialogTitle as V, DialogClose as E } from "../dialog/Dialog.js";
4
- import { DLayout as N } from "../d-layout/DLayout.js";
5
- import { Flex as _ } from "../flex/Flex.js";
6
- import { Text as j } from "../text/Text.js";
7
- import { DResizablePanelGroup as A, DResizablePanel as u, DResizableHandle as L } from "../d-resizable/DResizable.js";
8
- import { Editor as M } from "../editor/Editor.js";
9
- import { DFlowInputDataTypeRuleTree as G } from "./DFlowInputDataType.js";
10
- import { useService as H, useStore as k } from "../../utils/contextStore.js";
11
- import "merge-props";
12
- import "js-md5";
13
- import { DFlowDataTypeReactiveService as y } from "../d-flow-data-type/DFlowDataType.service.js";
14
- import { hashToColor as s } from "../d-flow/DFlow.util.js";
15
- import { ScrollArea as U, ScrollAreaViewport as X, ScrollAreaScrollbar as f, ScrollAreaThumb as h } from "../scroll-area/ScrollArea.js";
16
- import { Spacing as g } from "../spacing/Spacing.js";
17
- import { Badge as c } from "../badge/Badge.js";
18
- import { syntaxTree as T } from "@codemirror/language";
19
- import { Button as q } from "../button/Button.js";
20
- import { IconX as J } from "@tabler/icons-react";
21
- const ye = (i) => {
22
- const {
23
- open: l,
24
- onOpenChange: D,
25
- onDataTypeChange: b
26
- } = i, p = H(y), m = k(y), [S, v] = a.useState(l), [n, d] = a.useState(i.dataTypeIdentifier);
27
- a.useEffect(() => {
28
- v(l), d(i.dataTypeIdentifier);
29
- }, [l]);
30
- const w = a.useMemo(() => p.getValueFromType(n), [m]), x = a.useMemo(() => p.getDataType(n), [m, n]), I = (t) => {
31
- const r = t.matchBefore(/\w*/);
32
- if (!r || r.from === r.to && !t.explicit)
33
- return null;
34
- const z = T(t.state).resolveInner(t.pos, -1), R = T(t.state).resolveInner(t.pos, 0);
35
- return z.name === "Property" || R.name === "Property" ? {
36
- from: r.from,
37
- options: [{
38
- label: "Text",
39
- type: "type",
40
- apply: '"Text"'
41
- }, {
42
- label: "Boolean",
43
- type: "type",
44
- apply: "true"
45
- }, {
46
- label: "Number",
47
- type: "type",
48
- apply: "1"
49
- }]
50
- } : null;
51
- }, C = {
52
- bool: ({
53
- content: t
54
- }) => /* @__PURE__ */ e(c, { color: s("Boolean"), border: !0, children: "Boolean" }),
55
- string: ({
56
- content: t
57
- }) => /* @__PURE__ */ e(c, { color: s("Text"), border: !0, children: "Text" }, "Text"),
58
- number: ({
59
- content: t
60
- }) => /* @__PURE__ */ e(c, { color: s("Number"), border: !0, children: "Number" }, "Number")
61
- };
62
- return /* @__PURE__ */ e(F, { open: S, onOpenChange: (t) => D?.(t), children: /* @__PURE__ */ o(B, { children: [
63
- /* @__PURE__ */ e(O, {}),
64
- /* @__PURE__ */ o(P, { "aria-describedby": "DFlowInputDataTypeEditDialog", onPointerDownOutside: (t) => {
65
- const r = t.target;
66
- (r.closest("[data-slot=resizable-handle]") || r.closest("[data-slot=resizable-panel]")) && t.preventDefault();
67
- }, w: "75%", h: "75%", style: {
68
- padding: "2px"
69
- }, children: [
70
- /* @__PURE__ */ e(V, {}),
71
- /* @__PURE__ */ e(N, { layoutGap: 0, showLayoutSplitter: !1, topContent: /* @__PURE__ */ o(_, { style: {
72
- gap: ".7rem"
73
- }, p: 0.7, justify: "space-between", align: "center", children: [
74
- /* @__PURE__ */ e(j, { children: x?.name?.[0].content ?? "Unnamed Data Type" }),
75
- /* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(q, { variant: "filled", color: "tertiary", paddingSize: "xxs", children: /* @__PURE__ */ e(J, { size: 13 }) }) })
76
- ] }), children: /* @__PURE__ */ o(A, { style: {
77
- borderRadius: "1rem"
78
- }, children: [
79
- /* @__PURE__ */ e(u, { color: "primary", children: /* @__PURE__ */ o(U, { h: "100%", w: "100%", type: "scroll", children: [
80
- /* @__PURE__ */ o(X, { px: 1, children: [
81
- /* @__PURE__ */ e(g, { spacing: "md" }),
82
- /* @__PURE__ */ e(G, { dataTypeIdentifier: n }),
83
- /* @__PURE__ */ e(g, { spacing: "md" })
84
- ] }),
85
- /* @__PURE__ */ e(f, { orientation: "vertical", children: /* @__PURE__ */ e(h, {}) }),
86
- /* @__PURE__ */ e(f, { orientation: "horizontal", children: /* @__PURE__ */ e(h, {}) })
87
- ] }) }),
88
- /* @__PURE__ */ e(L, {}),
89
- /* @__PURE__ */ e(u, { color: "primary", children: /* @__PURE__ */ e(M, { suggestions: I, tokenHighlights: C, language: "json", initialValue: w?.value, onChange: (t) => {
90
- const r = p.getTypeFromValue({
91
- __typename: "LiteralValue",
92
- value: t
93
- });
94
- b?.(r), d(r);
95
- } }) })
96
- ] }) })
97
- ] })
98
- ] }) });
99
- };
100
- export {
101
- ye as DFlowInputDataTypeEditDialog
102
- };
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TextInputProps } from '../form';
3
- import { Flow, NodeFunction, NodeParameter } from '@code0-tech/sagittarius-graphql-types';
4
- export interface DFlowInputDefaultProps extends TextInputProps {
5
- flowId: Flow['id'];
6
- nodeId: NodeFunction['id'];
7
- parameterId: NodeParameter['id'];
8
- }
9
- export declare const splitTextAndObjects: (input: string) => (string | Record<string, any>)[];
10
- export declare const DFlowInputDefault: React.FC<DFlowInputDefaultProps>;