@solidxai/core-ui 0.1.13 → 0.1.14-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/dist/components/common/SolidPopupContainer.d.ts.map +1 -1
  2. package/dist/components/common/SolidPopupContainer.js +68 -5
  3. package/dist/components/common/SolidPopupContainer.js.map +1 -1
  4. package/dist/components/common/SolidPopupContainer.tsx +50 -4
  5. package/dist/components/core/card/SolidCardView.d.ts.map +1 -1
  6. package/dist/components/core/card/SolidCardView.js +12 -5
  7. package/dist/components/core/card/SolidCardView.js.map +1 -1
  8. package/dist/components/core/card/SolidCardView.tsx +15 -21
  9. package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
  10. package/dist/components/core/card/SolidCardViewConfigure.js +1 -1
  11. package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
  12. package/dist/components/core/card/SolidCardViewConfigure.tsx +3 -1
  13. package/dist/components/core/chatter/useChatterMentions.js +11 -12
  14. package/dist/components/core/chatter/useChatterMentions.js.map +1 -1
  15. package/dist/components/core/chatter/useChatterMentions.ts +6 -6
  16. package/dist/components/core/common/globalSearchPersistence.d.ts +0 -1
  17. package/dist/components/core/common/globalSearchPersistence.d.ts.map +1 -1
  18. package/dist/components/core/common/globalSearchPersistence.js +4 -6
  19. package/dist/components/core/common/globalSearchPersistence.js.map +1 -1
  20. package/dist/components/core/common/globalSearchPersistence.ts +4 -4
  21. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts +2 -0
  22. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts.map +1 -0
  23. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js +4 -0
  24. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js.map +1 -0
  25. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.ts +3 -0
  26. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts +8 -0
  27. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts.map +1 -0
  28. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js +9 -0
  29. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js.map +1 -0
  30. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.ts +17 -0
  31. package/dist/components/core/form/SolidFormActionHeader.d.ts +1 -1
  32. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  33. package/dist/components/core/form/SolidFormActionHeader.js +20 -11
  34. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  35. package/dist/components/core/form/SolidFormActionHeader.tsx +90 -30
  36. package/dist/components/core/form/SolidFormView.d.ts +1 -0
  37. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  38. package/dist/components/core/form/SolidFormView.js +75 -25
  39. package/dist/components/core/form/SolidFormView.js.map +1 -1
  40. package/dist/components/core/form/SolidFormView.tsx +78 -11
  41. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts +1 -0
  42. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  43. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +13 -9
  44. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  45. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +17 -6
  46. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +1 -0
  47. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  48. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +1 -0
  49. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  50. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +2 -0
  51. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +1 -0
  52. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  53. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +13 -13
  54. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  55. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +16 -11
  56. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.d.ts.map +1 -1
  57. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +2 -1
  58. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +1 -1
  59. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +2 -1
  60. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  61. package/dist/components/core/kanban/SolidKanbanView.js +13 -7
  62. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  63. package/dist/components/core/kanban/SolidKanbanView.tsx +16 -15
  64. package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
  65. package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
  66. package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
  67. package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +3 -1
  68. package/dist/components/core/list/SolidCustomListColumn.d.ts +8 -0
  69. package/dist/components/core/list/SolidCustomListColumn.d.ts.map +1 -0
  70. package/dist/components/core/list/SolidCustomListColumn.js +47 -0
  71. package/dist/components/core/list/SolidCustomListColumn.js.map +1 -0
  72. package/dist/components/core/list/SolidCustomListColumn.tsx +57 -0
  73. package/dist/components/core/list/SolidCustomListViewColumn.d.ts +2 -1
  74. package/dist/components/core/list/SolidCustomListViewColumn.d.ts.map +1 -1
  75. package/dist/components/core/list/SolidCustomListViewColumn.js +3 -2
  76. package/dist/components/core/list/SolidCustomListViewColumn.js.map +1 -1
  77. package/dist/components/core/list/SolidCustomListViewColumn.tsx +4 -1
  78. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  79. package/dist/components/core/list/SolidListView.js +85 -83
  80. package/dist/components/core/list/SolidListView.js.map +1 -1
  81. package/dist/components/core/list/SolidListView.tsx +33 -40
  82. package/dist/components/core/list/SolidListViewColumn.d.ts +3 -1
  83. package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
  84. package/dist/components/core/list/SolidListViewColumn.js +81 -42
  85. package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
  86. package/dist/components/core/list/SolidListViewColumn.tsx +93 -44
  87. package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
  88. package/dist/components/core/list/SolidListViewConfigure.js +2 -2
  89. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  90. package/dist/components/core/list/SolidListViewConfigure.tsx +4 -2
  91. package/dist/components/core/list/SolidTableRowCell.js +1 -1
  92. package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
  93. package/dist/components/core/list/SolidTableRowCell.tsx +1 -1
  94. package/dist/components/core/list/columns/SolidDateColumn.d.ts +1 -1
  95. package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -1
  96. package/dist/components/core/list/columns/SolidDateColumn.js +4 -5
  97. package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
  98. package/dist/components/core/list/columns/SolidDateColumn.tsx +6 -3
  99. package/dist/components/core/list/columns/SolidDatetimeColumn.js +3 -3
  100. package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
  101. package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +1 -2
  102. package/dist/components/core/list/columns/SolidIntColumn.js +3 -3
  103. package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
  104. package/dist/components/core/list/columns/SolidIntColumn.tsx +1 -1
  105. package/dist/components/core/list/columns/SolidShortTextColumn.js +5 -5
  106. package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
  107. package/dist/components/core/list/columns/SolidShortTextColumn.tsx +2 -2
  108. package/dist/components/core/list/widgets/PillWidget.d.ts +3 -0
  109. package/dist/components/core/list/widgets/PillWidget.d.ts.map +1 -0
  110. package/dist/components/core/list/widgets/PillWidget.js +95 -0
  111. package/dist/components/core/list/widgets/PillWidget.js.map +1 -0
  112. package/dist/components/core/list/widgets/PillWidget.tsx +127 -0
  113. package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
  114. package/dist/components/core/tree/SolidTreeView.js +60 -50
  115. package/dist/components/core/tree/SolidTreeView.js.map +1 -1
  116. package/dist/components/core/tree/SolidTreeView.tsx +19 -22
  117. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts +2 -1
  118. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
  119. package/dist/components/shad-cn-ui/SolidCodeEditor.js +2 -2
  120. package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
  121. package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +3 -0
  122. package/dist/components/shad-cn-ui/SolidDialog.js +1 -1
  123. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  124. package/dist/components/shad-cn-ui/SolidDialog.tsx +1 -1
  125. package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts +3 -1
  126. package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts.map +1 -1
  127. package/dist/components/shad-cn-ui/SolidDropdownMenu.js +3 -3
  128. package/dist/components/shad-cn-ui/SolidDropdownMenu.js.map +1 -1
  129. package/dist/components/shad-cn-ui/SolidDropdownMenu.tsx +12 -6
  130. package/dist/components/shad-cn-ui/SolidIcon.d.ts +2 -1
  131. package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -1
  132. package/dist/components/shad-cn-ui/SolidIcon.js +2 -1
  133. package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -1
  134. package/dist/components/shad-cn-ui/SolidIcon.tsx +2 -0
  135. package/dist/components/workflow/WorkflowFlowCanvas.css +470 -0
  136. package/dist/components/workflow/WorkflowFlowCanvas.d.ts +42 -0
  137. package/dist/components/workflow/WorkflowFlowCanvas.d.ts.map +1 -0
  138. package/dist/components/workflow/WorkflowFlowCanvas.js +923 -0
  139. package/dist/components/workflow/WorkflowFlowCanvas.js.map +1 -0
  140. package/dist/components/workflow/WorkflowFlowCanvas.tsx +1640 -0
  141. package/dist/components/workflow/WorkflowNodeDocsPanel.css +247 -0
  142. package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts +22 -0
  143. package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts.map +1 -0
  144. package/dist/components/workflow/WorkflowNodeDocsPanel.js +97 -0
  145. package/dist/components/workflow/WorkflowNodeDocsPanel.js.map +1 -0
  146. package/dist/components/workflow/WorkflowNodeDocsPanel.tsx +363 -0
  147. package/dist/components/workflow/WorkflowNodeSchemaEditor.css +999 -0
  148. package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts +74 -0
  149. package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts.map +1 -0
  150. package/dist/components/workflow/WorkflowNodeSchemaEditor.js +1745 -0
  151. package/dist/components/workflow/WorkflowNodeSchemaEditor.js.map +1 -0
  152. package/dist/components/workflow/WorkflowNodeSchemaEditor.tsx +3363 -0
  153. package/dist/helpers/modulePackageResumeState.d.ts +6 -0
  154. package/dist/helpers/modulePackageResumeState.d.ts.map +1 -0
  155. package/dist/helpers/modulePackageResumeState.js +46 -0
  156. package/dist/helpers/modulePackageResumeState.js.map +1 -0
  157. package/dist/helpers/modulePackageResumeState.ts +57 -0
  158. package/dist/helpers/registry.d.ts.map +1 -1
  159. package/dist/helpers/registry.js +3 -0
  160. package/dist/helpers/registry.js.map +1 -1
  161. package/dist/helpers/registry.ts +4 -0
  162. package/dist/index.d.ts +7 -0
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +6 -0
  165. package/dist/index.js.map +1 -1
  166. package/dist/index.ts +38 -0
  167. package/dist/redux/api/solidChatterMessageApi.d.ts +2 -1
  168. package/dist/redux/api/solidChatterMessageApi.d.ts.map +1 -1
  169. package/dist/redux/api/solidChatterMessageApi.js +6 -1
  170. package/dist/redux/api/solidChatterMessageApi.js.map +1 -1
  171. package/dist/redux/api/solidChatterMessageApi.ts +6 -1
  172. package/dist/redux/api/workflowDefinitionEditorApi.d.ts +17 -0
  173. package/dist/redux/api/workflowDefinitionEditorApi.d.ts.map +1 -0
  174. package/dist/redux/api/workflowDefinitionEditorApi.js +38 -0
  175. package/dist/redux/api/workflowDefinitionEditorApi.js.map +1 -0
  176. package/dist/redux/api/workflowDefinitionEditorApi.ts +40 -0
  177. package/dist/redux/api/workflowNodeApi.d.ts +6 -0
  178. package/dist/redux/api/workflowNodeApi.d.ts.map +1 -0
  179. package/dist/redux/api/workflowNodeApi.js +14 -0
  180. package/dist/redux/api/workflowNodeApi.js.map +1 -0
  181. package/dist/redux/api/workflowNodeApi.ts +18 -0
  182. package/dist/redux/features/popupSlice.d.ts +17 -2
  183. package/dist/redux/features/popupSlice.d.ts.map +1 -1
  184. package/dist/redux/features/popupSlice.js.map +1 -1
  185. package/dist/redux/features/popupSlice.ts +19 -3
  186. package/dist/redux/store/defaultStoreConfig.d.ts +14 -0
  187. package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
  188. package/dist/redux/store/defaultStoreConfig.js +4 -0
  189. package/dist/redux/store/defaultStoreConfig.js.map +1 -1
  190. package/dist/redux/store/defaultStoreConfig.ts +4 -0
  191. package/dist/redux/store/solidEntityApiPool.d.ts.map +1 -1
  192. package/dist/redux/store/solidEntityApiPool.js +1 -0
  193. package/dist/redux/store/solidEntityApiPool.js.map +1 -1
  194. package/dist/redux/store/solidEntityApiPool.ts +1 -0
  195. package/dist/resources/shadcn-base.css +70 -16
  196. package/dist/resources/solid-custom.css +13 -14
  197. package/dist/resources/solid-tailwind-generated.css +1 -1
  198. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.css +3194 -0
  199. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts +3 -0
  200. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts.map +1 -0
  201. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +3428 -0
  202. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +1 -0
  203. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +6322 -0
  204. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.css +217 -0
  205. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts +3 -0
  206. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts.map +1 -0
  207. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js +268 -0
  208. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js.map +1 -0
  209. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.tsx +510 -0
  210. package/dist/routes/pages/admin/core/WorkflowExecutionDetailPage.d.ts +3 -0
  211. package/dist/routes/pages/admin/core/WorkflowExecutionDetailPage.d.ts.map +1 -0
  212. package/dist/routes/pages/admin/core/WorkflowExecutionDetailPage.js +618 -0
  213. package/dist/routes/pages/admin/core/WorkflowExecutionDetailPage.js.map +1 -0
  214. package/dist/routes/pages/admin/core/WorkflowExecutionDetailPage.tsx +1322 -0
  215. package/dist/routes/solidRoutes.d.ts.map +1 -1
  216. package/dist/routes/solidRoutes.js +4 -0
  217. package/dist/routes/solidRoutes.js.map +1 -1
  218. package/dist/routes/solidRoutes.tsx +4 -0
  219. package/dist/types/extension-registry.d.ts +4 -0
  220. package/dist/types/extension-registry.d.ts.map +1 -1
  221. package/dist/types/extension-registry.js +5 -1
  222. package/dist/types/extension-registry.js.map +1 -1
  223. package/dist/types/extension-registry.ts +5 -1
  224. package/dist/types/solid-core.d.ts +32 -0
  225. package/dist/types/workflow-node.d.ts +143 -0
  226. package/dist/types/workflow-node.d.ts.map +1 -0
  227. package/dist/types/workflow-node.js +2 -0
  228. package/dist/types/workflow-node.js.map +1 -0
  229. package/dist/types/workflow-node.ts +180 -0
  230. package/package.json +3 -1
  231. package/dist/components/auth/SolidOTPVerify.d.ts +0 -3
  232. package/dist/components/auth/SolidOTPVerify.d.ts.map +0 -1
  233. package/dist/components/auth/SolidOTPVerify.js +0 -67
  234. package/dist/components/auth/SolidOTPVerify.js.map +0 -1
  235. package/dist/components/auth/SolidOTPVerify.tsx +0 -133
  236. package/dist/components/common/AuthBanner.d.ts +0 -3
  237. package/dist/components/common/AuthBanner.d.ts.map +0 -1
  238. package/dist/components/common/AuthBanner.js +0 -15
  239. package/dist/components/common/AuthBanner.js.map +0 -1
  240. package/dist/components/common/AuthBanner.tsx +0 -41
  241. package/dist/components/common/SingleSelectAutoCompleteField.d.ts +0 -2
  242. package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +0 -1
  243. package/dist/components/common/SingleSelectAutoCompleteField.js +0 -92
  244. package/dist/components/common/SingleSelectAutoCompleteField.js.map +0 -1
  245. package/dist/components/common/SingleSelectAutoCompleteField.tsx +0 -73
  246. package/dist/components/common/SolidExportStepper.d.ts +0 -12
  247. package/dist/components/common/SolidExportStepper.d.ts.map +0 -1
  248. package/dist/components/common/SolidExportStepper.js +0 -30
  249. package/dist/components/common/SolidExportStepper.js.map +0 -1
  250. package/dist/components/common/SolidExportStepper.tsx +0 -135
  251. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +0 -2
  252. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +0 -1
  253. package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -50
  254. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
  255. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
  256. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +0 -2
  257. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +0 -1
  258. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +0 -16
  259. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +0 -1
  260. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +0 -29
  261. package/dist/components/core/dashboard/DashboardFilter.d.ts +0 -13
  262. package/dist/components/core/dashboard/DashboardFilter.d.ts.map +0 -1
  263. package/dist/components/core/dashboard/DashboardFilter.js +0 -299
  264. package/dist/components/core/dashboard/DashboardFilter.js.map +0 -1
  265. package/dist/components/core/dashboard/DashboardFilter.tsx +0 -348
  266. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +0 -3
  267. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +0 -1
  268. package/dist/components/core/dashboard/PrimeDataTableWrapper.js +0 -21
  269. package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +0 -1
  270. package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +0 -40
  271. package/dist/components/core/dashboard/SolidDashboard.d.ts +0 -28
  272. package/dist/components/core/dashboard/SolidDashboard.d.ts.map +0 -1
  273. package/dist/components/core/dashboard/SolidDashboard.js +0 -183
  274. package/dist/components/core/dashboard/SolidDashboard.js.map +0 -1
  275. package/dist/components/core/dashboard/SolidDashboard.module.css +0 -83
  276. package/dist/components/core/dashboard/SolidDashboard.tsx +0 -263
  277. package/dist/components/core/dashboard/SolidDashboardBody.d.ts +0 -24
  278. package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +0 -1
  279. package/dist/components/core/dashboard/SolidDashboardBody.js +0 -162
  280. package/dist/components/core/dashboard/SolidDashboardBody.js.map +0 -1
  281. package/dist/components/core/dashboard/SolidDashboardBody.tsx +0 -168
  282. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +0 -2
  283. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +0 -1
  284. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +0 -11
  285. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +0 -1
  286. package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +0 -28
  287. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +0 -3
  288. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +0 -1
  289. package/dist/components/core/dashboard/SolidDashboardHeader.js +0 -6
  290. package/dist/components/core/dashboard/SolidDashboardHeader.js.map +0 -1
  291. package/dist/components/core/dashboard/SolidDashboardHeader.tsx +0 -10
  292. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +0 -2
  293. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +0 -1
  294. package/dist/components/core/dashboard/SolidDashboardLoading.js +0 -10
  295. package/dist/components/core/dashboard/SolidDashboardLoading.js.map +0 -1
  296. package/dist/components/core/dashboard/SolidDashboardLoading.tsx +0 -61
  297. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +0 -3
  298. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +0 -1
  299. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +0 -12
  300. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +0 -1
  301. package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +0 -32
  302. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +0 -2
  303. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +0 -1
  304. package/dist/components/core/dashboard/SolidDashboardRenderError.js +0 -11
  305. package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +0 -1
  306. package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +0 -28
  307. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +0 -19
  308. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +0 -1
  309. package/dist/components/core/dashboard/SolidDashboardVariable.js +0 -171
  310. package/dist/components/core/dashboard/SolidDashboardVariable.js.map +0 -1
  311. package/dist/components/core/dashboard/SolidDashboardVariable.tsx +0 -259
  312. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +0 -9
  313. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +0 -1
  314. package/dist/components/core/dashboard/SolidQuestionRenderer.js +0 -42
  315. package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +0 -1
  316. package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +0 -99
  317. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +0 -9
  318. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +0 -1
  319. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +0 -35
  320. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +0 -1
  321. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +0 -48
  322. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +0 -7
  323. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +0 -1
  324. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +0 -22
  325. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +0 -1
  326. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +0 -51
  327. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +0 -2
  328. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +0 -1
  329. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +0 -4
  330. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +0 -1
  331. package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +0 -25
  332. package/dist/components/core/dashboard/dashboard-utils.d.ts +0 -2
  333. package/dist/components/core/dashboard/dashboard-utils.d.ts.map +0 -1
  334. package/dist/components/core/dashboard/dashboard-utils.js +0 -38
  335. package/dist/components/core/dashboard/dashboard-utils.js.map +0 -1
  336. package/dist/components/core/dashboard/dashboard-utils.ts +0 -39
  337. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +0 -10
  338. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +0 -1
  339. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +0 -16
  340. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +0 -1
  341. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +0 -19
  342. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +0 -8
  343. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +0 -1
  344. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +0 -64
  345. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +0 -1
  346. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +0 -30
  347. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +0 -8
  348. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +0 -1
  349. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +0 -62
  350. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +0 -1
  351. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +0 -29
  352. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +0 -4
  353. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +0 -1
  354. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +0 -23
  355. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +0 -1
  356. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +0 -36
  357. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +0 -3
  358. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +0 -1
  359. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +0 -92
  360. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +0 -1
  361. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +0 -68
  362. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +0 -3
  363. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +0 -1
  364. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +0 -111
  365. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +0 -1
  366. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +0 -122
  367. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +0 -12
  368. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +0 -1
  369. package/dist/components/core/kanban/SolidKanbanViewFields.js +0 -145
  370. package/dist/components/core/kanban/SolidKanbanViewFields.js.map +0 -1
  371. package/dist/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
  372. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +0 -2
  373. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +0 -1
  374. package/dist/components/core/kanban/SolidManyToOneFilterElement.js +0 -87
  375. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +0 -1
  376. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
  377. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +0 -2
  378. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +0 -1
  379. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +0 -73
  380. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +0 -1
  381. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
  382. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +0 -2
  383. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +0 -1
  384. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +0 -20
  385. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +0 -1
  386. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
  387. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +0 -12
  388. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +0 -1
  389. package/dist/components/core/kanban/SolidVarInputsFilterElement.js +0 -81
  390. package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +0 -1
  391. package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
  392. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +0 -4
  393. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +0 -1
  394. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +0 -7
  395. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +0 -1
  396. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
  397. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +0 -4
  398. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +0 -1
  399. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +0 -8
  400. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +0 -1
  401. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -16
  402. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +0 -4
  403. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +0 -1
  404. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +0 -21
  405. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +0 -1
  406. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
  407. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +0 -4
  408. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +0 -1
  409. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +0 -8
  410. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +0 -1
  411. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
  412. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +0 -4
  413. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +0 -1
  414. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +0 -8
  415. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +0 -1
  416. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
  417. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +0 -4
  418. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +0 -1
  419. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +0 -7
  420. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +0 -1
  421. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
  422. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +0 -4
  423. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +0 -1
  424. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +0 -8
  425. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +0 -1
  426. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
  427. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +0 -4
  428. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +0 -1
  429. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +0 -7
  430. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +0 -1
  431. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
  432. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +0 -4
  433. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +0 -1
  434. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +0 -8
  435. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +0 -1
  436. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
  437. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +0 -4
  438. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +0 -1
  439. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +0 -16
  440. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +0 -1
  441. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
  442. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +0 -4
  443. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +0 -1
  444. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +0 -7
  445. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +0 -1
  446. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
  447. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +0 -4
  448. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +0 -1
  449. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +0 -56
  450. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +0 -1
  451. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -140
  452. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +0 -4
  453. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +0 -1
  454. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +0 -42
  455. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +0 -1
  456. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -164
  457. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +0 -4
  458. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +0 -1
  459. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +0 -11
  460. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +0 -1
  461. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
  462. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +0 -4
  463. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +0 -1
  464. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +0 -7
  465. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +0 -1
  466. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
  467. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +0 -4
  468. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +0 -1
  469. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +0 -8
  470. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +0 -1
  471. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -14
  472. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +0 -4
  473. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +0 -1
  474. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +0 -8
  475. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +0 -1
  476. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
  477. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +0 -4
  478. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +0 -1
  479. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +0 -37
  480. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +0 -1
  481. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
  482. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +0 -4
  483. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +0 -1
  484. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +0 -8
  485. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +0 -1
  486. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
  487. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +0 -4
  488. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +0 -1
  489. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +0 -8
  490. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +0 -1
  491. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
  492. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +0 -4
  493. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +0 -1
  494. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +0 -7
  495. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +0 -1
  496. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
  497. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +0 -2
  498. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +0 -1
  499. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +0 -39
  500. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +0 -1
  501. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +0 -40
  502. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +0 -12
  503. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +0 -1
  504. package/dist/components/core/list/SolidVarInputsFilterElement.js +0 -81
  505. package/dist/components/core/list/SolidVarInputsFilterElement.js.map +0 -1
  506. package/dist/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
  507. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +0 -3
  508. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +0 -1
  509. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +0 -87
  510. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +0 -1
  511. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +0 -70
  512. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +0 -3
  513. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +0 -1
  514. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +0 -33
  515. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +0 -1
  516. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +0 -50
  517. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +0 -3
  518. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +0 -1
  519. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +0 -158
  520. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +0 -1
  521. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +0 -185
  522. package/dist/components/layout/DashboardHeader.d.ts +0 -3
  523. package/dist/components/layout/DashboardHeader.d.ts.map +0 -1
  524. package/dist/components/layout/DashboardHeader.js +0 -20
  525. package/dist/components/layout/DashboardHeader.js.map +0 -1
  526. package/dist/components/layout/DashboardHeader.tsx +0 -94
  527. package/dist/helpers/# no such endpoints exist, need to calle +0 -3
  528. package/dist/helpers/ToastContainer.d.ts +0 -4
  529. package/dist/helpers/ToastContainer.d.ts.map +0 -1
  530. package/dist/helpers/ToastContainer.js +0 -49
  531. package/dist/helpers/ToastContainer.js.map +0 -1
  532. package/dist/helpers/ToastContainer.tsx +0 -94
  533. package/dist/helpers/showToast.d.ts +0 -5
  534. package/dist/helpers/showToast.d.ts.map +0 -1
  535. package/dist/helpers/showToast.js +0 -17
  536. package/dist/helpers/showToast.js.map +0 -1
  537. package/dist/helpers/showToast.ts +0 -13
  538. package/dist/helpers/studioSandbox.d.ts +0 -31
  539. package/dist/helpers/studioSandbox.d.ts.map +0 -1
  540. package/dist/helpers/studioSandbox.js +0 -104
  541. package/dist/helpers/studioSandbox.js.map +0 -1
  542. package/dist/helpers/studioSandbox.ts +0 -117
  543. package/dist/nextAuth/authProviders.d.ts +0 -4
  544. package/dist/nextAuth/authProviders.d.ts.map +0 -1
  545. package/dist/nextAuth/authProviders.js +0 -198
  546. package/dist/nextAuth/authProviders.js.map +0 -1
  547. package/dist/nextAuth/authProviders.tsx +0 -232
  548. package/dist/nextAuth/handleLogout.d.ts +0 -2
  549. package/dist/nextAuth/handleLogout.d.ts.map +0 -1
  550. package/dist/nextAuth/handleLogout.js +0 -36
  551. package/dist/nextAuth/handleLogout.js.map +0 -1
  552. package/dist/nextAuth/handleLogout.tsx +0 -39
  553. package/dist/nextAuth/refreshAccessToken.d.ts +0 -2
  554. package/dist/nextAuth/refreshAccessToken.d.ts.map +0 -1
  555. package/dist/nextAuth/refreshAccessToken.js +0 -24
  556. package/dist/nextAuth/refreshAccessToken.js.map +0 -1
  557. package/dist/nextAuth/refreshAccessToken.tsx +0 -28
  558. package/dist/redux/api/dashboardApi.d.ts +0 -23
  559. package/dist/redux/api/dashboardApi.d.ts.map +0 -1
  560. package/dist/redux/api/dashboardApi.js +0 -35
  561. package/dist/redux/api/dashboardApi.js.map +0 -1
  562. package/dist/redux/api/dashboardApi.ts +0 -56
  563. package/dist/redux/api/dashboardLayoutApi.d.ts +0 -24
  564. package/dist/redux/api/dashboardLayoutApi.d.ts.map +0 -1
  565. package/dist/redux/api/dashboardLayoutApi.js +0 -34
  566. package/dist/redux/api/dashboardLayoutApi.js.map +0 -1
  567. package/dist/redux/api/dashboardLayoutApi.ts +0 -55
  568. package/dist/redux/api/dashboardQuestionApi.d.ts +0 -5
  569. package/dist/redux/api/dashboardQuestionApi.d.ts.map +0 -1
  570. package/dist/redux/api/dashboardQuestionApi.js +0 -18
  571. package/dist/redux/api/dashboardQuestionApi.js.map +0 -1
  572. package/dist/redux/api/dashboardQuestionApi.ts +0 -17
  573. package/dist/redux/features/settingsSlice.d.ts +0 -20
  574. package/dist/redux/features/settingsSlice.d.ts.map +0 -1
  575. package/dist/redux/features/settingsSlice.js +0 -39
  576. package/dist/redux/features/settingsSlice.js.map +0 -1
  577. package/dist/redux/features/settingsSlice.ts +0 -60
  578. package/dist/resources/images/Footerbg.png +0 -0
  579. package/dist/resources/images/LoginBanner.png +0 -0
  580. package/dist/resources/images/dashboard/Ellipse 1.svg +0 -10
  581. package/dist/resources/images/dashboard/Rectangle 17.svg +0 -10
  582. package/dist/resources/images/dashboard/Rectangle 25.svg +0 -11
  583. package/dist/resources/images/dashboard/image 5.svg +0 -9
  584. package/dist/resources/images/loginhero.png +0 -0
  585. package/dist/resources/images/logo.png +0 -0
  586. package/dist/resources/images/radix-logo-white.png +0 -0
  587. package/dist/resources/images/radix-logo.png +0 -0
  588. package/dist/resources/images/signupBanner.png +0 -0
@@ -0,0 +1,1640 @@
1
+ import React from "react";
2
+ import {
3
+ Background,
4
+ BackgroundVariant,
5
+ BaseEdge,
6
+ Controls,
7
+ type EdgeProps,
8
+ type Edge,
9
+ Handle,
10
+ MarkerType,
11
+ type Node,
12
+ Position,
13
+ ReactFlow,
14
+ ReactFlowProvider,
15
+ } from "@xyflow/react";
16
+ import { CircleHelp, Pencil, Plus, Trash2 } from "lucide-react";
17
+ import type {
18
+ WorkflowNodeChildSlotDefinition,
19
+ WorkflowNodeMetadataResponse,
20
+ } from "../../types/workflow-node";
21
+ import { normalizeSolidIconName, SolidIcon } from "../shad-cn-ui";
22
+ import "@xyflow/react/dist/style.css";
23
+ import "./WorkflowFlowCanvas.css";
24
+
25
+ type WorkflowNodeRecord = Record<string, any>;
26
+ type WorkflowTriggerRecord = Record<string, any>;
27
+ type WorkflowSequenceSlotKey = "tasks" | "then" | "else" | "defaults" | "errors";
28
+
29
+ type WorkflowInsertScope =
30
+ | { scope: "root" }
31
+ | {
32
+ scope: "slot";
33
+ parentNodeId: string;
34
+ slotKey: WorkflowSequenceSlotKey;
35
+ }
36
+ | {
37
+ scope: "case";
38
+ parentNodeId: string;
39
+ caseKey: string;
40
+ };
41
+
42
+ export type WorkflowInsertTarget =
43
+ | {
44
+ scope: "root";
45
+ index: number;
46
+ }
47
+ | {
48
+ scope: "slot";
49
+ parentNodeId: string;
50
+ slotKey: WorkflowSequenceSlotKey;
51
+ index: number;
52
+ }
53
+ | {
54
+ scope: "case";
55
+ parentNodeId: string;
56
+ caseKey: string;
57
+ index: number;
58
+ };
59
+
60
+ type WorkflowCanvasNodeData =
61
+ | {
62
+ kind: "group";
63
+ label: string;
64
+ tone?: "control" | "loop" | "trigger";
65
+ workflowNode?: WorkflowNodeRecord;
66
+ nodeType?: WorkflowNodeMetadataResponse;
67
+ onViewDocs?: (nodeId: string) => void;
68
+ }
69
+ | {
70
+ kind: "workflow-node";
71
+ workflowNode: WorkflowNodeRecord;
72
+ nodeType?: WorkflowNodeMetadataResponse;
73
+ selected?: boolean;
74
+ onSelectNode: (nodeId: string) => void;
75
+ onEditNode: (nodeId: string) => void;
76
+ onDeleteNode: (nodeId: string) => void;
77
+ onViewDocs: (nodeId: string) => void;
78
+ }
79
+ | {
80
+ kind: "workflow-trigger";
81
+ trigger: WorkflowTriggerRecord;
82
+ selected?: boolean;
83
+ onSelectTrigger: (triggerId: string) => void;
84
+ onViewDocs: (triggerId: string) => void;
85
+ }
86
+ | {
87
+ kind: "insert";
88
+ enabled?: boolean;
89
+ selectedTypeLabel?: string;
90
+ onInsert: () => void;
91
+ }
92
+ | {
93
+ kind: "junction";
94
+ }
95
+ | {
96
+ kind: "section-label";
97
+ label: string;
98
+ };
99
+
100
+ type WorkflowFlowCanvasProps = {
101
+ definition: {
102
+ nodes: WorkflowNodeRecord[];
103
+ triggers?: WorkflowTriggerRecord[];
104
+ errors?: WorkflowNodeRecord[];
105
+ finally?: WorkflowNodeRecord[];
106
+ };
107
+ nodeTypes: WorkflowNodeMetadataResponse[];
108
+ selectedNodeId?: string;
109
+ selectedTriggerId?: string;
110
+ activePaletteNodeType?: WorkflowNodeMetadataResponse;
111
+ onSelectNode: (nodeId: string) => void;
112
+ onSelectTrigger: (triggerId: string) => void;
113
+ onEditNode: (nodeId: string) => void;
114
+ onDeleteNode: (nodeId: string) => void;
115
+ onViewDocs: (nodeId: string) => void;
116
+ onViewTriggerDocs: (triggerId: string) => void;
117
+ onInsertNode: (target: WorkflowInsertTarget) => void;
118
+ };
119
+
120
+ const DIMENSIONS = {
121
+ workflowWidth: 300,
122
+ workflowHeight: 136,
123
+ triggerWidth: 280,
124
+ triggerHeight: 108,
125
+ triggerGap: 34,
126
+ insertWidth: 40,
127
+ insertHeight: 40,
128
+ junctionWidth: 8,
129
+ junctionHeight: 8,
130
+ sectionLabelWidth: 104,
131
+ sectionLabelHeight: 28,
132
+ groupPaddingX: 36,
133
+ groupPaddingTop: 58,
134
+ groupPaddingBottom: 36,
135
+ loopGroupPaddingX: 70,
136
+ loopGroupPaddingTop: 62,
137
+ loopGroupPaddingBottom: 44,
138
+ sequenceInsertToNodeGap: 88,
139
+ sequenceNodeToInsertGap: 48,
140
+ controlNodeToChildGap: 78,
141
+ controlBranchLabelGap: 42,
142
+ controlBranchGap: 120,
143
+ controlJoinGap: 92,
144
+ groupExteriorEdgeGap: 44,
145
+ };
146
+
147
+ const DEFAULT_WORKFLOW_VIEWPORT = {
148
+ x: 360,
149
+ y: 56,
150
+ zoom: 0.82,
151
+ };
152
+
153
+ type WorkflowLayoutResult = {
154
+ entryIds: string[];
155
+ exitIds: string[];
156
+ endY: number;
157
+ width: number;
158
+ };
159
+
160
+ type GraphBuildContext = {
161
+ backgroundNodes: Node<WorkflowCanvasNodeData>[];
162
+ nodes: Node<WorkflowCanvasNodeData>[];
163
+ edges: Edge[];
164
+ nodeTypeMap: Map<string, WorkflowNodeMetadataResponse>;
165
+ activePaletteNodeType?: WorkflowNodeMetadataResponse;
166
+ selectedNodeId?: string;
167
+ selectedTriggerId?: string;
168
+ onSelectNode: (nodeId: string) => void;
169
+ onSelectTrigger: (triggerId: string) => void;
170
+ onEditNode: (nodeId: string) => void;
171
+ onDeleteNode: (nodeId: string) => void;
172
+ onViewDocs: (nodeId: string) => void;
173
+ onViewTriggerDocs: (triggerId: string) => void;
174
+ onInsertNode: (target: WorkflowInsertTarget) => void;
175
+ };
176
+
177
+ function normalizeChildSlots(
178
+ node: WorkflowNodeRecord,
179
+ nodeType?: WorkflowNodeMetadataResponse,
180
+ ): WorkflowNodeChildSlotDefinition[] {
181
+ const metadataSlots = nodeType?.authoring?.childSlots ?? [];
182
+ const slots: WorkflowNodeChildSlotDefinition[] = metadataSlots.length
183
+ ? [...metadataSlots]
184
+ : [];
185
+
186
+ if (!metadataSlots.length && node.cases && typeof node.cases === "object" && !Array.isArray(node.cases)) {
187
+ slots.push({ key: "cases", label: "Cases", kind: "case-collection" });
188
+ if (Array.isArray(node.defaults)) {
189
+ slots.push({ key: "defaults", label: "Default", kind: "sequence" });
190
+ }
191
+ } else if (Array.isArray(node.then) || Array.isArray(node.else)) {
192
+ slots.push({ key: "then", label: "Then", kind: "sequence" });
193
+ slots.push({ key: "else", label: "Else", kind: "sequence" });
194
+ } else if (Array.isArray(node.tasks)) {
195
+ slots.push({ key: "tasks", label: "Tasks", kind: "sequence" });
196
+ }
197
+ if (Array.isArray(node.errors) && !slots.some((slot) => slot.key === "errors")) {
198
+ slots.push({ key: "errors", label: "Errors", kind: "sequence" });
199
+ }
200
+
201
+ return slots;
202
+ }
203
+
204
+ function isLoopNode(
205
+ workflowNode: WorkflowNodeRecord,
206
+ nodeType?: WorkflowNodeMetadataResponse,
207
+ ) {
208
+ const nodeTypeId = String(workflowNode.type ?? nodeType?.type ?? "").toLowerCase();
209
+ const category = String(nodeType?.category ?? "").toLowerCase();
210
+ const nodeTypeTags = nodeType?.tags;
211
+ const tags = Array.isArray(nodeTypeTags)
212
+ ? nodeTypeTags.map((tag) => String(tag).toLowerCase())
213
+ : [];
214
+
215
+ return (
216
+ nodeTypeId === "foreach" ||
217
+ nodeTypeId === "for.each" ||
218
+ nodeTypeId === "loopuntil" ||
219
+ nodeTypeId === "loop.until" ||
220
+ category.includes("loop") ||
221
+ tags.includes("loop") ||
222
+ tags.includes("iteration")
223
+ );
224
+ }
225
+
226
+ function getLoopConcurrencyBadge(
227
+ workflowNode: WorkflowNodeRecord,
228
+ nodeType?: WorkflowNodeMetadataResponse,
229
+ ) {
230
+ if (!isLoopNode(workflowNode, nodeType)) {
231
+ return undefined;
232
+ }
233
+
234
+ const value = workflowNode.configuration?.concurrencyLimit;
235
+ if (value === undefined || value === null || value === "" || Number(value) === 1) {
236
+ return undefined;
237
+ }
238
+
239
+ if (Number(value) === 0) {
240
+ return {
241
+ label: "unlimited",
242
+ title: "Loop iterations run with unlimited concurrency",
243
+ };
244
+ }
245
+
246
+ const limit = Number(value);
247
+ if (!Number.isFinite(limit) || limit < 0) {
248
+ return undefined;
249
+ }
250
+
251
+ return {
252
+ label: `x${Math.floor(limit)}`,
253
+ title: `Loop iterations run with concurrency limit ${Math.floor(limit)}`,
254
+ };
255
+ }
256
+
257
+ function getSequenceSlotNodes(
258
+ workflowNode: WorkflowNodeRecord,
259
+ slotKey: string,
260
+ ): WorkflowNodeRecord[] {
261
+ if (Array.isArray(workflowNode[slotKey])) {
262
+ return workflowNode[slotKey];
263
+ }
264
+
265
+ if (slotKey === "tasks") {
266
+ return [];
267
+ }
268
+
269
+ return [];
270
+ }
271
+
272
+ function getSwitchCaseEntries(
273
+ workflowNode: WorkflowNodeRecord,
274
+ ): Array<{ key: string; label: string; nodes: WorkflowNodeRecord[]; scope: WorkflowInsertScope }> {
275
+ const cases =
276
+ workflowNode.cases &&
277
+ typeof workflowNode.cases === "object" &&
278
+ !Array.isArray(workflowNode.cases)
279
+ ? workflowNode.cases
280
+ : {};
281
+
282
+ const entries: Array<{
283
+ key: string;
284
+ label: string;
285
+ nodes: WorkflowNodeRecord[];
286
+ scope: WorkflowInsertScope;
287
+ }> = Object.entries(cases).map(([caseKey, nodes]) => ({
288
+ key: `case-${caseKey}`,
289
+ label: caseKey,
290
+ nodes: Array.isArray(nodes) ? nodes : [],
291
+ scope: {
292
+ scope: "case" as const,
293
+ parentNodeId: String(workflowNode.id),
294
+ caseKey,
295
+ },
296
+ }));
297
+
298
+ if (Array.isArray(workflowNode.defaults)) {
299
+ entries.push({
300
+ key: "default",
301
+ label: "Default",
302
+ nodes: workflowNode.defaults,
303
+ scope: {
304
+ scope: "slot" as const,
305
+ parentNodeId: String(workflowNode.id),
306
+ slotKey: "defaults" as const,
307
+ },
308
+ });
309
+ }
310
+
311
+ return entries;
312
+ }
313
+
314
+ function getNodeRect(node: Node<WorkflowCanvasNodeData>) {
315
+ let width = Number(node.style?.width ?? 0);
316
+ let height = Number(node.style?.height ?? 0);
317
+
318
+ if (node.type === "workflow") {
319
+ width = DIMENSIONS.workflowWidth;
320
+ height = DIMENSIONS.workflowHeight;
321
+ } else if (node.type === "trigger") {
322
+ width = DIMENSIONS.triggerWidth;
323
+ height = DIMENSIONS.triggerHeight;
324
+ } else if (node.type === "insert") {
325
+ width = DIMENSIONS.insertWidth;
326
+ height = DIMENSIONS.insertHeight;
327
+ } else if (node.type === "junction") {
328
+ width = DIMENSIONS.junctionWidth;
329
+ height = DIMENSIONS.junctionHeight;
330
+ } else if (node.type === "sectionLabel") {
331
+ width = DIMENSIONS.sectionLabelWidth;
332
+ height = DIMENSIONS.sectionLabelHeight;
333
+ }
334
+
335
+ return {
336
+ left: node.position.x,
337
+ top: node.position.y,
338
+ right: node.position.x + width,
339
+ bottom: node.position.y + height,
340
+ };
341
+ }
342
+
343
+ function createEdge(
344
+ source: string,
345
+ target: string,
346
+ options: {
347
+ marker?: boolean;
348
+ kind?: "default" | "merge" | "split";
349
+ busY?: number;
350
+ splitMode?: "fromJunction";
351
+ } = {},
352
+ ): Edge {
353
+ const edgeKind = options.kind ?? (options.marker === false ? "merge" : "default");
354
+ const data =
355
+ options.busY == null && options.splitMode == null
356
+ ? undefined
357
+ : {
358
+ busY: options.busY,
359
+ splitMode: options.splitMode,
360
+ };
361
+
362
+ return {
363
+ id: `${source}->${target}`,
364
+ source,
365
+ target,
366
+ type:
367
+ edgeKind === "merge"
368
+ ? "workflowMerge"
369
+ : edgeKind === "split"
370
+ ? "workflowSplit"
371
+ : "smoothstep",
372
+ data,
373
+ markerEnd:
374
+ options.marker === false
375
+ ? undefined
376
+ : {
377
+ type: MarkerType.ArrowClosed,
378
+ width: 12,
379
+ height: 12,
380
+ color: "rgba(203, 213, 225, 0.94)",
381
+ },
382
+ style: {
383
+ stroke: "rgba(203, 213, 225, 0.94)",
384
+ strokeWidth: 2,
385
+ strokeDasharray: "6 7",
386
+ },
387
+ animated: true,
388
+ zIndex: 1,
389
+ };
390
+ }
391
+
392
+ function WorkflowMergeEdge({
393
+ id,
394
+ sourceX,
395
+ sourceY,
396
+ targetX,
397
+ targetY,
398
+ style,
399
+ }: EdgeProps) {
400
+ const mergeY = targetY;
401
+ const path = `M ${sourceX} ${sourceY} V ${mergeY} H ${targetX}`;
402
+
403
+ return (
404
+ <BaseEdge
405
+ id={id}
406
+ path={path}
407
+ style={style}
408
+ interactionWidth={18}
409
+ />
410
+ );
411
+ }
412
+
413
+ function WorkflowSplitEdge({
414
+ id,
415
+ sourceX,
416
+ sourceY,
417
+ targetX,
418
+ targetY,
419
+ markerEnd,
420
+ style,
421
+ data,
422
+ }: EdgeProps) {
423
+ if (data?.splitMode === "fromJunction") {
424
+ const path = `M ${sourceX} ${sourceY} H ${targetX} V ${targetY}`;
425
+
426
+ return (
427
+ <BaseEdge
428
+ id={id}
429
+ path={path}
430
+ markerEnd={markerEnd}
431
+ style={style}
432
+ interactionWidth={18}
433
+ />
434
+ );
435
+ }
436
+
437
+ const requestedBusY =
438
+ typeof data?.busY === "number"
439
+ ? data.busY
440
+ : sourceY + Math.max(24, (targetY - sourceY) * 0.42);
441
+ const minBusY = Math.min(sourceY, targetY) + 12;
442
+ const maxBusY = Math.max(sourceY, targetY) - 12;
443
+ const busY =
444
+ maxBusY > minBusY
445
+ ? Math.min(maxBusY, Math.max(minBusY, requestedBusY))
446
+ : (sourceY + targetY) / 2;
447
+ const path = `M ${sourceX} ${sourceY} V ${busY} H ${targetX} V ${targetY}`;
448
+
449
+ return (
450
+ <BaseEdge
451
+ id={id}
452
+ path={path}
453
+ markerEnd={markerEnd}
454
+ style={style}
455
+ interactionWidth={18}
456
+ />
457
+ );
458
+ }
459
+
460
+ function resolveWorkflowNodeIcon(nodeType?: WorkflowNodeMetadataResponse) {
461
+ return normalizeSolidIconName(nodeType?.ui?.icon ?? nodeType?.icon) ?? "si-th-large";
462
+ }
463
+
464
+ function getWorkflowNodeIconStyle(
465
+ nodeType?: WorkflowNodeMetadataResponse,
466
+ ): React.CSSProperties | undefined {
467
+ const backgroundColor = nodeType?.ui?.iconBackgroundColor;
468
+ const color = nodeType?.ui?.iconColor;
469
+ const borderColor = nodeType?.ui?.iconBorderColor;
470
+
471
+ if (!backgroundColor && !color && !borderColor) {
472
+ return undefined;
473
+ }
474
+
475
+ return {
476
+ ...(backgroundColor ? { backgroundColor } : null),
477
+ ...(color ? { color } : null),
478
+ ...(borderColor ? { borderColor } : null),
479
+ };
480
+ }
481
+
482
+ function estimateSequenceWidth(
483
+ sequence: WorkflowNodeRecord[],
484
+ nodeTypeMap: Map<string, WorkflowNodeMetadataResponse>,
485
+ ): number {
486
+ if (!sequence.length) {
487
+ return DIMENSIONS.insertWidth;
488
+ }
489
+
490
+ return sequence.reduce((maxWidth, workflowNode) => {
491
+ const nodeType = nodeTypeMap.get(String(workflowNode.type));
492
+ const nodeWidth = estimateWorkflowNodeWidth(workflowNode, nodeTypeMap, nodeType);
493
+ return Math.max(maxWidth, nodeWidth);
494
+ }, DIMENSIONS.workflowWidth);
495
+ }
496
+
497
+ function estimateWorkflowNodeWidth(
498
+ workflowNode: WorkflowNodeRecord,
499
+ nodeTypeMap: Map<string, WorkflowNodeMetadataResponse>,
500
+ nodeType?: WorkflowNodeMetadataResponse,
501
+ ): number {
502
+ const slotDefinitions = normalizeChildSlots(workflowNode, nodeType);
503
+
504
+ const branchSlots = slotDefinitions.filter(
505
+ (slot) => slot.key === "then" || slot.key === "else",
506
+ );
507
+ if (branchSlots.length >= 2) {
508
+ const branchGap = DIMENSIONS.controlBranchGap;
509
+ const branchWidths = branchSlots.map((slot) =>
510
+ estimateSequenceWidth(
511
+ Array.isArray(workflowNode[slot.key]) ? workflowNode[slot.key] : [],
512
+ nodeTypeMap,
513
+ ),
514
+ );
515
+ const totalBranchWidth =
516
+ branchWidths.reduce((sum, width) => sum + width, 0) +
517
+ branchGap * Math.max(branchWidths.length - 1, 0);
518
+ return Math.max(DIMENSIONS.workflowWidth, totalBranchWidth);
519
+ }
520
+
521
+ if (slotDefinitions.some((slot) => slot.kind === "case-collection")) {
522
+ const caseEntries = getSwitchCaseEntries(workflowNode);
523
+ const branchGap = DIMENSIONS.controlBranchGap;
524
+ const branchWidths = caseEntries.map((entry) =>
525
+ estimateSequenceWidth(entry.nodes, nodeTypeMap),
526
+ );
527
+ const totalBranchWidth =
528
+ branchWidths.reduce((sum, width) => sum + width, 0) +
529
+ branchGap * Math.max(branchWidths.length - 1, 0);
530
+ return Math.max(DIMENSIONS.workflowWidth, totalBranchWidth);
531
+ }
532
+
533
+ if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "sequence") {
534
+ const slot = slotDefinitions[0];
535
+ const slotKey = slot.key as WorkflowSequenceSlotKey;
536
+ const childNodes = getSequenceSlotNodes(workflowNode, slotKey);
537
+ if (slot.layout === "parallel") {
538
+ const childWidths = childNodes.map((childNode: WorkflowNodeRecord) =>
539
+ estimateWorkflowNodeWidth(
540
+ childNode,
541
+ nodeTypeMap,
542
+ nodeTypeMap.get(String(childNode.type)),
543
+ ),
544
+ );
545
+ const totalChildWidth =
546
+ childWidths.reduce((sum, width) => sum + width, 0) +
547
+ DIMENSIONS.controlBranchGap * Math.max(childWidths.length - 1, 0);
548
+ return Math.max(DIMENSIONS.workflowWidth, totalChildWidth);
549
+ }
550
+
551
+ return Math.max(
552
+ DIMENSIONS.workflowWidth,
553
+ estimateSequenceWidth(childNodes, nodeTypeMap),
554
+ );
555
+ }
556
+
557
+ return DIMENSIONS.workflowWidth;
558
+ }
559
+
560
+ function WorkflowCanvasNodeRenderer({ data }: { data: WorkflowCanvasNodeData }) {
561
+ if (data.kind === "group") {
562
+ return (
563
+ <div
564
+ className={`workflow-flow-group-node workflow-flow-group-node--${data.tone ?? "control"}`}
565
+ >
566
+ <div className="workflow-flow-group-node__header">
567
+ <span>{data.label}</span>
568
+ {data.workflowNode ? (
569
+ <button
570
+ type="button"
571
+ className="workflow-flow-help-button nodrag nopan nowheel"
572
+ aria-label={`Open ${data.nodeType?.label ?? data.label} documentation`}
573
+ title="Documentation"
574
+ onPointerDown={(event) => {
575
+ event.stopPropagation();
576
+ }}
577
+ onClick={(event) => {
578
+ event.stopPropagation();
579
+ data.onViewDocs?.(String(data.workflowNode?.id));
580
+ }}
581
+ >
582
+ <CircleHelp size={12} />
583
+ </button>
584
+ ) : null}
585
+ </div>
586
+ </div>
587
+ );
588
+ }
589
+
590
+ if (data.kind === "insert") {
591
+ return (
592
+ <div className="workflow-flow-insert-node">
593
+ <button
594
+ type="button"
595
+ onPointerDown={(event) => {
596
+ event.stopPropagation();
597
+ }}
598
+ onClick={(event) => {
599
+ event.stopPropagation();
600
+ data.onInsert();
601
+ }}
602
+ className="workflow-flow-insert-node__button nodrag nopan nowheel"
603
+ aria-label={
604
+ data.enabled
605
+ ? `Add ${data.selectedTypeLabel ?? "node"}`
606
+ : "Add node"
607
+ }
608
+ title={
609
+ data.enabled
610
+ ? `Add ${data.selectedTypeLabel ?? "node"}`
611
+ : "Add node"
612
+ }
613
+ >
614
+ <Plus size={16} />
615
+ </button>
616
+ <Handle
617
+ type="target"
618
+ position={Position.Top}
619
+ className="workflow-flow-insert-node__handle workflow-flow-insert-node__handle--top"
620
+ isConnectable={false}
621
+ />
622
+ <Handle
623
+ type="source"
624
+ position={Position.Bottom}
625
+ className="workflow-flow-insert-node__handle workflow-flow-insert-node__handle--bottom"
626
+ isConnectable={false}
627
+ />
628
+ </div>
629
+ );
630
+ }
631
+
632
+ if (data.kind === "junction") {
633
+ return (
634
+ <div className="workflow-flow-junction-node">
635
+ <Handle
636
+ type="target"
637
+ position={Position.Top}
638
+ className="workflow-flow-junction-node__handle workflow-flow-junction-node__handle--top"
639
+ isConnectable={false}
640
+ />
641
+ <Handle
642
+ type="source"
643
+ position={Position.Bottom}
644
+ className="workflow-flow-junction-node__handle workflow-flow-junction-node__handle--bottom"
645
+ isConnectable={false}
646
+ />
647
+ </div>
648
+ );
649
+ }
650
+
651
+ if (data.kind === "section-label") {
652
+ return <div className="workflow-flow-section-label">{data.label}</div>;
653
+ }
654
+
655
+ if (data.kind === "workflow-trigger") {
656
+ const triggerTitle = data.trigger.name ?? data.trigger.label ?? data.trigger.id;
657
+
658
+ return (
659
+ <div
660
+ className={`workflow-flow-node-card workflow-flow-node-card--trigger ${data.selected ? "is-selected" : ""}`}
661
+ onClick={() => data.onSelectTrigger(String(data.trigger.id))}
662
+ role="button"
663
+ tabIndex={0}
664
+ onKeyDown={(event) => {
665
+ if (event.key === "Enter" || event.key === " ") {
666
+ event.preventDefault();
667
+ data.onSelectTrigger(String(data.trigger.id));
668
+ }
669
+ }}
670
+ >
671
+ <div className="workflow-flow-node-card__typebar">
672
+ <span>{data.trigger.disabled ? "disabled trigger" : "trigger"}</span>
673
+ <span className="workflow-flow-node-card__quick-actions">
674
+ <button
675
+ type="button"
676
+ className="workflow-flow-icon-button nodrag nopan nowheel"
677
+ aria-label={`Open ${triggerTitle} documentation`}
678
+ title="Documentation"
679
+ onPointerDown={(event) => {
680
+ event.stopPropagation();
681
+ }}
682
+ onClick={(event) => {
683
+ event.stopPropagation();
684
+ data.onViewDocs(String(data.trigger.id));
685
+ }}
686
+ >
687
+ <CircleHelp size={12} />
688
+ </button>
689
+ </span>
690
+ </div>
691
+ <div className="workflow-flow-node-card__body">
692
+ <div className="workflow-flow-node-card__header-main">
693
+ <div className="workflow-flow-node-card__icon-shell">
694
+ <SolidIcon name="si-calendar" size={16} aria-hidden />
695
+ </div>
696
+ <div>
697
+ <div className="workflow-flow-node-card__title" title={String(triggerTitle)}>
698
+ {triggerTitle}
699
+ </div>
700
+ <div className="workflow-flow-node-card__subtitle">
701
+ {data.trigger.type ?? "Trigger"}
702
+ </div>
703
+ </div>
704
+ </div>
705
+ </div>
706
+ {data.trigger.description ? (
707
+ <div className="workflow-flow-node-card__description">
708
+ {data.trigger.description}
709
+ </div>
710
+ ) : null}
711
+ <Handle
712
+ type="target"
713
+ position={Position.Top}
714
+ className="workflow-flow-node-card__handle workflow-flow-node-card__handle--top"
715
+ isConnectable={false}
716
+ />
717
+ <Handle
718
+ type="source"
719
+ position={Position.Bottom}
720
+ className="workflow-flow-node-card__handle workflow-flow-node-card__handle--bottom"
721
+ isConnectable={false}
722
+ />
723
+ </div>
724
+ );
725
+ }
726
+
727
+ const { workflowNode, nodeType, selected } = data;
728
+ const iconName = resolveWorkflowNodeIcon(nodeType);
729
+ const nodeTitle = workflowNode.name ?? workflowNode.id;
730
+ const nodeTypeLabel = nodeType?.label ?? workflowNode.type ?? workflowNode.kind ?? "node";
731
+ const concurrencyBadge = getLoopConcurrencyBadge(workflowNode, nodeType);
732
+
733
+ return (
734
+ <div
735
+ className={`workflow-flow-node-card ${selected ? "is-selected" : ""}`}
736
+ onClick={() => data.onSelectNode(String(workflowNode.id))}
737
+ role="button"
738
+ tabIndex={0}
739
+ onKeyDown={(event) => {
740
+ if (event.key === "Enter" || event.key === " ") {
741
+ event.preventDefault();
742
+ data.onSelectNode(String(workflowNode.id));
743
+ }
744
+ }}
745
+ >
746
+ <div className="workflow-flow-node-card__typebar">
747
+ <span>{nodeTypeLabel}</span>
748
+ <span className="workflow-flow-node-card__quick-actions">
749
+ {concurrencyBadge ? (
750
+ <span
751
+ className="workflow-flow-node-card__badge workflow-flow-node-card__badge--concurrency"
752
+ title={concurrencyBadge.title}
753
+ >
754
+ {concurrencyBadge.label}
755
+ </span>
756
+ ) : null}
757
+ <button
758
+ type="button"
759
+ className="workflow-flow-icon-button nodrag nopan nowheel"
760
+ aria-label={`Edit ${nodeTitle}`}
761
+ title="Edit"
762
+ onPointerDown={(event) => {
763
+ event.stopPropagation();
764
+ }}
765
+ onClick={(event) => {
766
+ event.stopPropagation();
767
+ data.onEditNode(String(workflowNode.id));
768
+ }}
769
+ >
770
+ <Pencil size={12} />
771
+ </button>
772
+ <button
773
+ type="button"
774
+ className="workflow-flow-icon-button workflow-flow-icon-button--danger nodrag nopan nowheel"
775
+ aria-label={`Delete ${nodeTitle}`}
776
+ title="Delete"
777
+ onPointerDown={(event) => {
778
+ event.stopPropagation();
779
+ }}
780
+ onClick={(event) => {
781
+ event.stopPropagation();
782
+ data.onDeleteNode(String(workflowNode.id));
783
+ }}
784
+ >
785
+ <Trash2 size={12} />
786
+ </button>
787
+ <button
788
+ type="button"
789
+ className="workflow-flow-icon-button nodrag nopan nowheel"
790
+ aria-label={`Open ${nodeTypeLabel} documentation`}
791
+ title="Documentation"
792
+ onPointerDown={(event) => {
793
+ event.stopPropagation();
794
+ }}
795
+ onClick={(event) => {
796
+ event.stopPropagation();
797
+ data.onViewDocs(String(workflowNode.id));
798
+ }}
799
+ >
800
+ <CircleHelp size={12} />
801
+ </button>
802
+ </span>
803
+ </div>
804
+ <div className="workflow-flow-node-card__body">
805
+ <div className="workflow-flow-node-card__header-main">
806
+ <div
807
+ className="workflow-flow-node-card__icon-shell"
808
+ style={getWorkflowNodeIconStyle(nodeType)}
809
+ >
810
+ <SolidIcon name={iconName} size={16} aria-hidden />
811
+ </div>
812
+ <div>
813
+ <div className="workflow-flow-node-card__title" title={String(nodeTitle)}>
814
+ {nodeTitle}
815
+ </div>
816
+ </div>
817
+ </div>
818
+ </div>
819
+
820
+ {workflowNode.description ? (
821
+ <div className="workflow-flow-node-card__description">
822
+ {workflowNode.description}
823
+ </div>
824
+ ) : null}
825
+
826
+ <Handle
827
+ type="target"
828
+ position={Position.Top}
829
+ className="workflow-flow-node-card__handle workflow-flow-node-card__handle--top"
830
+ isConnectable={false}
831
+ />
832
+ <Handle
833
+ type="source"
834
+ position={Position.Bottom}
835
+ className="workflow-flow-node-card__handle workflow-flow-node-card__handle--bottom"
836
+ isConnectable={false}
837
+ />
838
+ </div>
839
+ );
840
+ }
841
+
842
+ const canvasNodeTypes: any = {
843
+ group: WorkflowCanvasNodeRenderer,
844
+ workflow: WorkflowCanvasNodeRenderer,
845
+ trigger: WorkflowCanvasNodeRenderer,
846
+ insert: WorkflowCanvasNodeRenderer,
847
+ junction: WorkflowCanvasNodeRenderer,
848
+ sectionLabel: WorkflowCanvasNodeRenderer,
849
+ };
850
+
851
+ const canvasEdgeTypes = {
852
+ workflowMerge: WorkflowMergeEdge,
853
+ workflowSplit: WorkflowSplitEdge,
854
+ };
855
+
856
+ function pushGroupNode(
857
+ ctx: GraphBuildContext,
858
+ id: string,
859
+ label: string,
860
+ tone: "control" | "loop" | "trigger",
861
+ subset: Node<WorkflowCanvasNodeData>[],
862
+ workflowNode?: WorkflowNodeRecord,
863
+ nodeType?: WorkflowNodeMetadataResponse,
864
+ ) {
865
+ if (!subset.length) {
866
+ return undefined;
867
+ }
868
+
869
+ const bounds = subset.reduce(
870
+ (acc, node) => {
871
+ const rect = getNodeRect(node);
872
+ return {
873
+ left: Math.min(acc.left, rect.left),
874
+ top: Math.min(acc.top, rect.top),
875
+ right: Math.max(acc.right, rect.right),
876
+ bottom: Math.max(acc.bottom, rect.bottom),
877
+ };
878
+ },
879
+ {
880
+ left: Number.POSITIVE_INFINITY,
881
+ top: Number.POSITIVE_INFINITY,
882
+ right: Number.NEGATIVE_INFINITY,
883
+ bottom: Number.NEGATIVE_INFINITY,
884
+ },
885
+ );
886
+
887
+ const paddingX =
888
+ tone === "loop" ? DIMENSIONS.loopGroupPaddingX : DIMENSIONS.groupPaddingX;
889
+ const paddingTop =
890
+ tone === "loop" ? DIMENSIONS.loopGroupPaddingTop : DIMENSIONS.groupPaddingTop;
891
+ const paddingBottom =
892
+ tone === "loop" ? DIMENSIONS.loopGroupPaddingBottom : DIMENSIONS.groupPaddingBottom;
893
+
894
+ const groupTop = bounds.top - paddingTop;
895
+ const groupBottom = bounds.bottom + paddingBottom;
896
+
897
+ ctx.backgroundNodes.push({
898
+ id,
899
+ type: "group",
900
+ position: {
901
+ x: bounds.left - paddingX,
902
+ y: groupTop,
903
+ },
904
+ draggable: false,
905
+ selectable: false,
906
+ style: {
907
+ width: bounds.right - bounds.left + paddingX * 2,
908
+ height: bounds.bottom - bounds.top + paddingTop + paddingBottom,
909
+ zIndex: 0,
910
+ },
911
+ data: {
912
+ kind: "group",
913
+ label,
914
+ tone,
915
+ workflowNode,
916
+ nodeType,
917
+ onViewDocs: ctx.onViewDocs,
918
+ },
919
+ });
920
+
921
+ return {
922
+ top: groupTop,
923
+ bottom: groupBottom,
924
+ };
925
+ }
926
+
927
+ function pushInsertNode(
928
+ ctx: GraphBuildContext,
929
+ id: string,
930
+ x: number,
931
+ y: number,
932
+ target: WorkflowInsertTarget,
933
+ ) {
934
+ ctx.nodes.push({
935
+ id,
936
+ type: "insert",
937
+ position: {
938
+ x: x - DIMENSIONS.insertWidth / 2,
939
+ y,
940
+ },
941
+ draggable: false,
942
+ selectable: false,
943
+ style: {
944
+ zIndex: 5,
945
+ },
946
+ data: {
947
+ kind: "insert",
948
+ enabled: true,
949
+ selectedTypeLabel: ctx.activePaletteNodeType?.label,
950
+ onInsert: () => ctx.onInsertNode(target),
951
+ },
952
+ sourcePosition: Position.Bottom,
953
+ targetPosition: Position.Top,
954
+ });
955
+ }
956
+
957
+ function pushJunctionNode(
958
+ ctx: GraphBuildContext,
959
+ id: string,
960
+ x: number,
961
+ y: number,
962
+ ) {
963
+ ctx.nodes.push({
964
+ id,
965
+ type: "junction",
966
+ position: {
967
+ x: x - DIMENSIONS.junctionWidth / 2,
968
+ y: y - DIMENSIONS.junctionHeight / 2,
969
+ },
970
+ draggable: false,
971
+ selectable: false,
972
+ style: {
973
+ zIndex: 2,
974
+ },
975
+ data: {
976
+ kind: "junction",
977
+ },
978
+ sourcePosition: Position.Bottom,
979
+ targetPosition: Position.Top,
980
+ });
981
+ }
982
+
983
+ function pushWorkflowNode(
984
+ ctx: GraphBuildContext,
985
+ workflowNode: WorkflowNodeRecord,
986
+ x: number,
987
+ y: number,
988
+ ) {
989
+ const nodeType = ctx.nodeTypeMap.get(String(workflowNode.type));
990
+ ctx.nodes.push({
991
+ id: String(workflowNode.id),
992
+ type: "workflow",
993
+ position: { x, y },
994
+ draggable: false,
995
+ style: {
996
+ zIndex: 4,
997
+ },
998
+ data: {
999
+ kind: "workflow-node",
1000
+ workflowNode,
1001
+ nodeType,
1002
+ selected: ctx.selectedNodeId === String(workflowNode.id),
1003
+ onSelectNode: ctx.onSelectNode,
1004
+ onEditNode: ctx.onEditNode,
1005
+ onDeleteNode: ctx.onDeleteNode,
1006
+ onViewDocs: ctx.onViewDocs,
1007
+ },
1008
+ sourcePosition: Position.Bottom,
1009
+ targetPosition: Position.Top,
1010
+ });
1011
+ }
1012
+
1013
+ function pushTriggerNode(
1014
+ ctx: GraphBuildContext,
1015
+ trigger: WorkflowTriggerRecord,
1016
+ x: number,
1017
+ y: number,
1018
+ ) {
1019
+ ctx.nodes.push({
1020
+ id: `trigger-${String(trigger.id)}`,
1021
+ type: "trigger",
1022
+ position: { x, y },
1023
+ draggable: false,
1024
+ selectable: false,
1025
+ style: {
1026
+ zIndex: 4,
1027
+ },
1028
+ sourcePosition: Position.Bottom,
1029
+ targetPosition: Position.Top,
1030
+ data: {
1031
+ kind: "workflow-trigger",
1032
+ trigger,
1033
+ selected: ctx.selectedTriggerId === String(trigger.id),
1034
+ onSelectTrigger: ctx.onSelectTrigger,
1035
+ onViewDocs: ctx.onViewTriggerDocs,
1036
+ },
1037
+ });
1038
+ }
1039
+
1040
+ function pushSectionLabelNode(
1041
+ ctx: GraphBuildContext,
1042
+ id: string,
1043
+ x: number,
1044
+ y: number,
1045
+ label: string,
1046
+ ) {
1047
+ ctx.nodes.push({
1048
+ id,
1049
+ type: "sectionLabel",
1050
+ position: { x, y },
1051
+ draggable: false,
1052
+ selectable: false,
1053
+ style: {
1054
+ zIndex: 5,
1055
+ },
1056
+ data: {
1057
+ kind: "section-label",
1058
+ label,
1059
+ },
1060
+ });
1061
+ }
1062
+
1063
+ function buildSequenceGraph(
1064
+ sequence: WorkflowNodeRecord[],
1065
+ ctx: GraphBuildContext,
1066
+ laneX: number,
1067
+ startY: number,
1068
+ scope: WorkflowInsertScope,
1069
+ options: {
1070
+ idSuffix?: string;
1071
+ indexOffset?: number;
1072
+ boundaryInserts?: boolean;
1073
+ } = {},
1074
+ ): WorkflowLayoutResult {
1075
+ let cursorY = startY;
1076
+ let maxWidth = DIMENSIONS.workflowWidth;
1077
+ const indexOffset = options.indexOffset ?? 0;
1078
+ const idSuffix = options.idSuffix ? `-${options.idSuffix}` : "";
1079
+ const boundaryInserts = options.boundaryInserts ?? true;
1080
+
1081
+ const entryIds: string[] = [];
1082
+ let previousExitIds: string[] = [];
1083
+
1084
+ if (boundaryInserts) {
1085
+ const initialInsertId = `insert-${JSON.stringify(scope)}-${indexOffset}${idSuffix}`;
1086
+ pushInsertNode(ctx, initialInsertId, laneX, cursorY, {
1087
+ ...scope,
1088
+ index: indexOffset,
1089
+ } as WorkflowInsertTarget);
1090
+ entryIds.push(initialInsertId);
1091
+ previousExitIds = [initialInsertId];
1092
+ }
1093
+
1094
+ for (let index = 0; index < sequence.length; index += 1) {
1095
+ const workflowNode = sequence[index];
1096
+ const nodeType = ctx.nodeTypeMap.get(String(workflowNode.type));
1097
+ const slotDefinitions = normalizeChildSlots(workflowNode, nodeType);
1098
+ const isControlNode = nodeType?.kind === "control" || slotDefinitions.length > 0;
1099
+ const estimatedNodeWidth = estimateWorkflowNodeWidth(
1100
+ workflowNode,
1101
+ ctx.nodeTypeMap,
1102
+ nodeType,
1103
+ );
1104
+ maxWidth = Math.max(maxWidth, estimatedNodeWidth);
1105
+ const subtreeStartIndex = ctx.nodes.length;
1106
+ const groupTone = isLoopNode(workflowNode, nodeType) ? "loop" : "control";
1107
+ const controlTopPadding =
1108
+ groupTone === "loop" ? DIMENSIONS.loopGroupPaddingTop : DIMENSIONS.groupPaddingTop;
1109
+ const nodeGap = isControlNode
1110
+ ? controlTopPadding + DIMENSIONS.insertHeight + DIMENSIONS.groupExteriorEdgeGap
1111
+ : DIMENSIONS.sequenceInsertToNodeGap;
1112
+
1113
+ cursorY += nodeGap;
1114
+ pushWorkflowNode(
1115
+ ctx,
1116
+ workflowNode,
1117
+ laneX - DIMENSIONS.workflowWidth / 2,
1118
+ cursorY,
1119
+ );
1120
+ if (!entryIds.length) {
1121
+ entryIds.push(String(workflowNode.id));
1122
+ }
1123
+ previousExitIds.forEach((sourceId) => {
1124
+ ctx.edges.push(createEdge(sourceId, String(workflowNode.id)));
1125
+ });
1126
+
1127
+ let deepestY = cursorY;
1128
+ const childStartY =
1129
+ cursorY + DIMENSIONS.workflowHeight + DIMENSIONS.controlNodeToChildGap;
1130
+ let exitIds: string[] = [String(workflowNode.id)];
1131
+ let usesMergeJunction = false;
1132
+
1133
+ const branchSlots = slotDefinitions.filter(
1134
+ (slot) => slot.key === "then" || slot.key === "else",
1135
+ );
1136
+ const caseEntries = slotDefinitions.some((slot) => slot.kind === "case-collection")
1137
+ ? getSwitchCaseEntries(workflowNode)
1138
+ : [];
1139
+
1140
+ if (caseEntries.length > 0) {
1141
+ const branchGap = DIMENSIONS.controlBranchGap;
1142
+ const branchWidths = caseEntries.map((entry) =>
1143
+ estimateSequenceWidth(entry.nodes, ctx.nodeTypeMap),
1144
+ );
1145
+ const totalBranchWidth =
1146
+ branchWidths.reduce((sum, width) => sum + width, 0) +
1147
+ branchGap * Math.max(branchWidths.length - 1, 0);
1148
+ const branchStartX = laneX - totalBranchWidth / 2;
1149
+ const branchLayouts = caseEntries.map((entry, branchIndex) => {
1150
+ const beforeWidth = branchWidths
1151
+ .slice(0, branchIndex)
1152
+ .reduce((sum, width) => sum + width, 0);
1153
+ const branchLaneX =
1154
+ branchStartX +
1155
+ beforeWidth +
1156
+ branchGap * branchIndex +
1157
+ branchWidths[branchIndex] / 2;
1158
+ const labelX = branchLaneX - DIMENSIONS.sectionLabelWidth / 2;
1159
+ const labelY = childStartY - DIMENSIONS.controlBranchLabelGap;
1160
+ pushSectionLabelNode(
1161
+ ctx,
1162
+ `${workflowNode.id}-${entry.key}-label`,
1163
+ labelX,
1164
+ labelY,
1165
+ entry.label,
1166
+ );
1167
+ const childLayout = buildSequenceGraph(
1168
+ entry.nodes,
1169
+ ctx,
1170
+ branchLaneX,
1171
+ childStartY,
1172
+ entry.scope,
1173
+ );
1174
+ childLayout.entryIds.forEach((entryId) => {
1175
+ ctx.edges.push(createEdge(String(workflowNode.id), entryId));
1176
+ });
1177
+ deepestY = Math.max(deepestY, childLayout.endY);
1178
+ maxWidth = Math.max(maxWidth, childLayout.width);
1179
+ return childLayout;
1180
+ });
1181
+
1182
+ const branchExitIds = branchLayouts.flatMap((layout) => layout.exitIds);
1183
+ exitIds = branchExitIds.length ? branchExitIds : [String(workflowNode.id)];
1184
+ } else if (branchSlots.length >= 2) {
1185
+ const branchGap = DIMENSIONS.controlBranchGap;
1186
+ const branchWidths = branchSlots.map((slot) =>
1187
+ estimateSequenceWidth(
1188
+ Array.isArray(workflowNode[slot.key]) ? workflowNode[slot.key] : [],
1189
+ ctx.nodeTypeMap,
1190
+ ),
1191
+ );
1192
+ const totalBranchWidth =
1193
+ branchWidths.reduce((sum, width) => sum + width, 0) +
1194
+ branchGap * Math.max(branchWidths.length - 1, 0);
1195
+ const branchStartX = laneX - totalBranchWidth / 2;
1196
+ const branchLayouts = branchSlots.map((slot, branchIndex) => {
1197
+ const slotKey = slot.key as "then" | "else";
1198
+ const childNodes = Array.isArray(workflowNode[slotKey]) ? workflowNode[slotKey] : [];
1199
+ const beforeWidth = branchWidths
1200
+ .slice(0, branchIndex)
1201
+ .reduce((sum, width) => sum + width, 0);
1202
+ const branchLaneX =
1203
+ branchStartX +
1204
+ beforeWidth +
1205
+ branchGap * branchIndex +
1206
+ branchWidths[branchIndex] / 2;
1207
+ const labelX = branchLaneX - DIMENSIONS.sectionLabelWidth / 2;
1208
+ const labelY = childStartY - DIMENSIONS.controlBranchLabelGap;
1209
+ pushSectionLabelNode(
1210
+ ctx,
1211
+ `${workflowNode.id}-${slotKey}-label`,
1212
+ labelX,
1213
+ labelY,
1214
+ slot.label ?? slotKey,
1215
+ );
1216
+ const childLayout = buildSequenceGraph(
1217
+ childNodes,
1218
+ ctx,
1219
+ branchLaneX,
1220
+ childStartY,
1221
+ {
1222
+ scope: "slot",
1223
+ parentNodeId: String(workflowNode.id),
1224
+ slotKey,
1225
+ },
1226
+ );
1227
+ childLayout.entryIds.forEach((entryId) => {
1228
+ ctx.edges.push(createEdge(String(workflowNode.id), entryId));
1229
+ });
1230
+ deepestY = Math.max(deepestY, childLayout.endY);
1231
+ maxWidth = Math.max(maxWidth, childLayout.width);
1232
+ return childLayout;
1233
+ });
1234
+
1235
+ const branchExitIds = branchLayouts.flatMap((layout) => layout.exitIds);
1236
+ exitIds = branchExitIds.length ? branchExitIds : [String(workflowNode.id)];
1237
+ } else if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "sequence") {
1238
+ const slot = slotDefinitions[0];
1239
+ const slotKey = slot.key as WorkflowSequenceSlotKey;
1240
+ const childNodes = getSequenceSlotNodes(workflowNode, slotKey);
1241
+ if (slot.label && slotKey !== "tasks") {
1242
+ pushSectionLabelNode(
1243
+ ctx,
1244
+ `${workflowNode.id}-${slotKey}-label`,
1245
+ laneX - DIMENSIONS.sectionLabelWidth / 2,
1246
+ childStartY - DIMENSIONS.controlBranchLabelGap,
1247
+ slot.label,
1248
+ );
1249
+ }
1250
+ if (slot.layout === "parallel") {
1251
+ const childWidths = childNodes.map((childNode: WorkflowNodeRecord) =>
1252
+ estimateWorkflowNodeWidth(
1253
+ childNode,
1254
+ ctx.nodeTypeMap,
1255
+ ctx.nodeTypeMap.get(String(childNode.type)),
1256
+ ),
1257
+ );
1258
+ const totalChildWidth =
1259
+ childWidths.reduce((sum, width) => sum + width, 0) +
1260
+ DIMENSIONS.controlBranchGap * Math.max(childWidths.length - 1, 0);
1261
+ const childStartX = laneX - totalChildWidth / 2;
1262
+ const collectionInsertId = `insert-${JSON.stringify({
1263
+ scope: "slot",
1264
+ parentNodeId: String(workflowNode.id),
1265
+ slotKey,
1266
+ })}-${childNodes.length}-${workflowNode.id}-${slotKey}-collection`;
1267
+ const collectionInsertY =
1268
+ cursorY +
1269
+ DIMENSIONS.workflowHeight +
1270
+ Math.round(DIMENSIONS.controlNodeToChildGap * 0.22);
1271
+ pushInsertNode(
1272
+ ctx,
1273
+ collectionInsertId,
1274
+ laneX,
1275
+ collectionInsertY,
1276
+ {
1277
+ scope: "slot",
1278
+ parentNodeId: String(workflowNode.id),
1279
+ slotKey,
1280
+ index: childNodes.length,
1281
+ },
1282
+ );
1283
+ maxWidth = Math.max(maxWidth, totalChildWidth);
1284
+ const splitJunctionY =
1285
+ cursorY +
1286
+ DIMENSIONS.workflowHeight +
1287
+ Math.round(DIMENSIONS.controlNodeToChildGap * 0.78);
1288
+ const splitJunctionId = `${workflowNode.id}-${slotKey}-split`;
1289
+ if (childNodes.length > 1) {
1290
+ pushJunctionNode(ctx, splitJunctionId, laneX, splitJunctionY);
1291
+ ctx.edges.push(createEdge(String(workflowNode.id), collectionInsertId));
1292
+ ctx.edges.push(createEdge(collectionInsertId, splitJunctionId, { marker: false }));
1293
+ deepestY = Math.max(deepestY, splitJunctionY);
1294
+ } else if (childNodes.length === 0) {
1295
+ ctx.edges.push(createEdge(String(workflowNode.id), collectionInsertId));
1296
+ exitIds = [collectionInsertId];
1297
+ deepestY = Math.max(deepestY, collectionInsertY + DIMENSIONS.insertHeight);
1298
+ }
1299
+ const childLayouts = childNodes.map((childNode: WorkflowNodeRecord, childIndex: number) => {
1300
+ const beforeWidth = childWidths
1301
+ .slice(0, childIndex)
1302
+ .reduce((sum, width) => sum + width, 0);
1303
+ const childLaneX =
1304
+ childStartX +
1305
+ beforeWidth +
1306
+ DIMENSIONS.controlBranchGap * childIndex +
1307
+ childWidths[childIndex] / 2;
1308
+ const childLayout = buildSequenceGraph(
1309
+ [childNode],
1310
+ ctx,
1311
+ childLaneX,
1312
+ childStartY,
1313
+ {
1314
+ scope: "slot",
1315
+ parentNodeId: String(workflowNode.id),
1316
+ slotKey,
1317
+ },
1318
+ {
1319
+ idSuffix: `${workflowNode.id}-${slotKey}-${childIndex}`,
1320
+ indexOffset: childIndex,
1321
+ boundaryInserts: false,
1322
+ },
1323
+ );
1324
+ childLayout.entryIds.forEach((entryId) => {
1325
+ if (childNodes.length > 1) {
1326
+ ctx.edges.push(
1327
+ createEdge(splitJunctionId, entryId, {
1328
+ kind: "split",
1329
+ splitMode: "fromJunction",
1330
+ }),
1331
+ );
1332
+ return;
1333
+ }
1334
+
1335
+ ctx.edges.push(createEdge(String(workflowNode.id), collectionInsertId));
1336
+ ctx.edges.push(createEdge(collectionInsertId, entryId));
1337
+ });
1338
+ deepestY = Math.max(deepestY, childLayout.endY);
1339
+ maxWidth = Math.max(maxWidth, childLayout.width);
1340
+ return childLayout;
1341
+ });
1342
+ const childExitIds = childLayouts.flatMap((layout: WorkflowLayoutResult) => layout.exitIds);
1343
+ exitIds = childExitIds.length ? childExitIds : exitIds;
1344
+ } else {
1345
+ const childLayout = buildSequenceGraph(
1346
+ childNodes,
1347
+ ctx,
1348
+ laneX,
1349
+ childStartY,
1350
+ {
1351
+ scope: "slot",
1352
+ parentNodeId: String(workflowNode.id),
1353
+ slotKey,
1354
+ },
1355
+ );
1356
+ childLayout.entryIds.forEach((entryId) => {
1357
+ ctx.edges.push(createEdge(String(workflowNode.id), entryId));
1358
+ });
1359
+ deepestY = Math.max(deepestY, childLayout.endY);
1360
+ maxWidth = Math.max(maxWidth, childLayout.width);
1361
+ exitIds = childLayout.exitIds.length ? childLayout.exitIds : [String(workflowNode.id)];
1362
+ }
1363
+ }
1364
+
1365
+ if (isControlNode && exitIds.length > 1) {
1366
+ const junctionY = Math.max(
1367
+ cursorY + DIMENSIONS.workflowHeight + DIMENSIONS.sequenceNodeToInsertGap,
1368
+ deepestY + DIMENSIONS.controlJoinGap,
1369
+ );
1370
+ const junctionId = `junction-${String(workflowNode.id)}`;
1371
+ pushJunctionNode(ctx, junctionId, laneX, junctionY);
1372
+ exitIds.forEach((sourceId) => {
1373
+ ctx.edges.push(createEdge(sourceId, junctionId, { marker: false }));
1374
+ });
1375
+ exitIds = [junctionId];
1376
+ deepestY = Math.max(deepestY, junctionY);
1377
+ usesMergeJunction = true;
1378
+ }
1379
+
1380
+ const groupBounds = isControlNode
1381
+ ? pushGroupNode(
1382
+ ctx,
1383
+ `group-${String(workflowNode.id)}`,
1384
+ workflowNode.name ?? workflowNode.id,
1385
+ groupTone,
1386
+ ctx.nodes.slice(subtreeStartIndex),
1387
+ workflowNode,
1388
+ nodeType,
1389
+ )
1390
+ : undefined;
1391
+
1392
+ const nextInsertY = usesMergeJunction
1393
+ ? deepestY + DIMENSIONS.sequenceNodeToInsertGap
1394
+ : deepestY + (isControlNode ? DIMENSIONS.sequenceNodeToInsertGap : 0);
1395
+ const afterGroupInsertY =
1396
+ groupBounds == null
1397
+ ? nextInsertY
1398
+ : groupBounds.bottom + DIMENSIONS.groupExteriorEdgeGap;
1399
+ cursorY = Math.max(
1400
+ cursorY + DIMENSIONS.workflowHeight + DIMENSIONS.sequenceNodeToInsertGap,
1401
+ afterGroupInsertY,
1402
+ );
1403
+ if (boundaryInserts) {
1404
+ const afterInsertIndex = indexOffset + index + 1;
1405
+ const afterInsertId = `insert-${JSON.stringify(scope)}-${afterInsertIndex}-${workflowNode.id}${idSuffix}`;
1406
+ pushInsertNode(ctx, afterInsertId, laneX, cursorY, {
1407
+ ...scope,
1408
+ index: afterInsertIndex,
1409
+ } as WorkflowInsertTarget);
1410
+ exitIds.forEach((sourceId) => {
1411
+ ctx.edges.push(createEdge(sourceId, afterInsertId));
1412
+ });
1413
+ previousExitIds = [afterInsertId];
1414
+ } else {
1415
+ previousExitIds = exitIds;
1416
+ }
1417
+ }
1418
+
1419
+ return {
1420
+ entryIds: entryIds.length ? entryIds : previousExitIds,
1421
+ exitIds: previousExitIds,
1422
+ endY: cursorY,
1423
+ width: maxWidth,
1424
+ };
1425
+ }
1426
+
1427
+
1428
+ function buildGraph(
1429
+ definition: {
1430
+ nodes: WorkflowNodeRecord[];
1431
+ triggers?: WorkflowTriggerRecord[];
1432
+ errors?: WorkflowNodeRecord[];
1433
+ finally?: WorkflowNodeRecord[];
1434
+ },
1435
+ nodeTypes: WorkflowNodeMetadataResponse[],
1436
+ props: Omit<WorkflowFlowCanvasProps, "definition" | "nodeTypes">,
1437
+ ) {
1438
+ const ctx: GraphBuildContext = {
1439
+ backgroundNodes: [],
1440
+ nodes: [],
1441
+ edges: [],
1442
+ nodeTypeMap: new Map(nodeTypes.map((item) => [item.type, item])),
1443
+ activePaletteNodeType: props.activePaletteNodeType,
1444
+ selectedNodeId: props.selectedNodeId,
1445
+ selectedTriggerId: props.selectedTriggerId,
1446
+ onSelectNode: props.onSelectNode,
1447
+ onSelectTrigger: props.onSelectTrigger,
1448
+ onEditNode: props.onEditNode,
1449
+ onDeleteNode: props.onDeleteNode,
1450
+ onViewDocs: props.onViewDocs,
1451
+ onViewTriggerDocs: props.onViewTriggerDocs,
1452
+ onInsertNode: props.onInsertNode,
1453
+ };
1454
+
1455
+ const triggers = Array.isArray(definition.triggers) ? definition.triggers : [];
1456
+ const rootLaneX = 80;
1457
+ let startY = 0;
1458
+ let previousTriggerId: string | null = null;
1459
+
1460
+ if (triggers.length) {
1461
+ const triggerStartIndex = ctx.nodes.length;
1462
+ let triggerY = 60;
1463
+ triggers.forEach((trigger) => {
1464
+ const triggerNodeId = `trigger-${String(trigger.id)}`;
1465
+ pushTriggerNode(
1466
+ ctx,
1467
+ trigger,
1468
+ rootLaneX - DIMENSIONS.triggerWidth / 2,
1469
+ triggerY,
1470
+ );
1471
+ if (previousTriggerId) {
1472
+ ctx.edges.push(createEdge(previousTriggerId, triggerNodeId));
1473
+ }
1474
+ previousTriggerId = triggerNodeId;
1475
+ triggerY += DIMENSIONS.triggerHeight + DIMENSIONS.triggerGap;
1476
+ });
1477
+ const triggerGroupBounds = pushGroupNode(
1478
+ ctx,
1479
+ "group-triggers",
1480
+ "Triggers",
1481
+ "trigger",
1482
+ ctx.nodes.slice(triggerStartIndex),
1483
+ );
1484
+ startY =
1485
+ (triggerGroupBounds?.bottom ?? triggerY) + DIMENSIONS.groupExteriorEdgeGap;
1486
+ }
1487
+
1488
+ const layout = buildSequenceGraph(
1489
+ definition.nodes ?? [],
1490
+ ctx,
1491
+ rootLaneX,
1492
+ startY,
1493
+ { scope: "root" },
1494
+ );
1495
+ if (previousTriggerId) {
1496
+ const triggerSourceId = previousTriggerId;
1497
+ layout.entryIds.forEach((entryId) => {
1498
+ ctx.edges.push(createEdge(triggerSourceId, entryId));
1499
+ });
1500
+ }
1501
+
1502
+ const rootErrorNodes = Array.isArray(definition.errors) ? definition.errors : [];
1503
+ const rootFinallyNodes = Array.isArray(definition.finally) ? definition.finally : [];
1504
+ if (rootErrorNodes.length) {
1505
+ const errorStartIndex = ctx.nodes.length;
1506
+ const errorLaneX =
1507
+ rootLaneX +
1508
+ Math.max(layout.width, DIMENSIONS.workflowWidth) +
1509
+ DIMENSIONS.controlBranchGap +
1510
+ DIMENSIONS.workflowWidth;
1511
+ const errorLayout = buildSequenceGraph(
1512
+ rootErrorNodes,
1513
+ ctx,
1514
+ errorLaneX,
1515
+ startY,
1516
+ { scope: "root" },
1517
+ {
1518
+ idSuffix: "global-errors",
1519
+ boundaryInserts: false,
1520
+ },
1521
+ );
1522
+ pushGroupNode(
1523
+ ctx,
1524
+ "group-global-errors",
1525
+ "Global Errors",
1526
+ "control",
1527
+ ctx.nodes.slice(errorStartIndex),
1528
+ );
1529
+ layout.entryIds.forEach((entryId) => {
1530
+ errorLayout.entryIds.forEach((errorEntryId) => {
1531
+ ctx.edges.push(createEdge(entryId, errorEntryId, { kind: "split" }));
1532
+ });
1533
+ });
1534
+ }
1535
+
1536
+ if (rootFinallyNodes.length) {
1537
+ const finallyStartIndex = ctx.nodes.length;
1538
+ const finallyLaneX =
1539
+ rootLaneX -
1540
+ Math.max(DIMENSIONS.workflowWidth, DIMENSIONS.triggerWidth) -
1541
+ DIMENSIONS.controlBranchGap;
1542
+ const finallyLayout = buildSequenceGraph(
1543
+ rootFinallyNodes,
1544
+ ctx,
1545
+ finallyLaneX,
1546
+ startY,
1547
+ { scope: "root" },
1548
+ {
1549
+ idSuffix: "finally",
1550
+ boundaryInserts: false,
1551
+ },
1552
+ );
1553
+ pushGroupNode(
1554
+ ctx,
1555
+ "group-finally",
1556
+ "Finally",
1557
+ "control",
1558
+ ctx.nodes.slice(finallyStartIndex),
1559
+ );
1560
+ layout.exitIds.forEach((exitId) => {
1561
+ finallyLayout.entryIds.forEach((finallyEntryId) => {
1562
+ ctx.edges.push(createEdge(exitId, finallyEntryId, { kind: "split" }));
1563
+ });
1564
+ });
1565
+ }
1566
+
1567
+ return {
1568
+ nodes: [...ctx.backgroundNodes, ...ctx.nodes],
1569
+ edges: ctx.edges,
1570
+ };
1571
+ }
1572
+
1573
+ function WorkflowFlowCanvasInner(props: WorkflowFlowCanvasProps) {
1574
+ const graph = React.useMemo(
1575
+ () =>
1576
+ buildGraph(props.definition, props.nodeTypes, {
1577
+ selectedNodeId: props.selectedNodeId,
1578
+ selectedTriggerId: props.selectedTriggerId,
1579
+ activePaletteNodeType: props.activePaletteNodeType,
1580
+ onSelectNode: props.onSelectNode,
1581
+ onSelectTrigger: props.onSelectTrigger,
1582
+ onEditNode: props.onEditNode,
1583
+ onDeleteNode: props.onDeleteNode,
1584
+ onViewDocs: props.onViewDocs,
1585
+ onViewTriggerDocs: props.onViewTriggerDocs,
1586
+ onInsertNode: props.onInsertNode,
1587
+ }),
1588
+ [
1589
+ props.activePaletteNodeType,
1590
+ props.definition,
1591
+ props.nodeTypes,
1592
+ props.onDeleteNode,
1593
+ props.onEditNode,
1594
+ props.onInsertNode,
1595
+ props.onSelectNode,
1596
+ props.onSelectTrigger,
1597
+ props.onViewDocs,
1598
+ props.onViewTriggerDocs,
1599
+ props.selectedNodeId,
1600
+ props.selectedTriggerId,
1601
+ ],
1602
+ );
1603
+
1604
+ return (
1605
+ <div className="workflow-flow-canvas">
1606
+ <ReactFlow
1607
+ nodes={graph.nodes}
1608
+ edges={graph.edges}
1609
+ nodeTypes={canvasNodeTypes}
1610
+ edgeTypes={canvasEdgeTypes}
1611
+ defaultViewport={DEFAULT_WORKFLOW_VIEWPORT}
1612
+ minZoom={0.25}
1613
+ maxZoom={1.6}
1614
+ proOptions={{ hideAttribution: true }}
1615
+ defaultEdgeOptions={{ zIndex: 1 }}
1616
+ nodesDraggable={false}
1617
+ nodesConnectable={false}
1618
+ elementsSelectable
1619
+ panOnDrag
1620
+ zoomOnDoubleClick={false}
1621
+ >
1622
+ <Controls showInteractive={false} />
1623
+ <Background
1624
+ variant={BackgroundVariant.Dots}
1625
+ gap={18}
1626
+ size={1.45}
1627
+ color="rgba(148, 163, 184, 0.34)"
1628
+ />
1629
+ </ReactFlow>
1630
+ </div>
1631
+ );
1632
+ }
1633
+
1634
+ export function WorkflowFlowCanvas(props: WorkflowFlowCanvasProps) {
1635
+ return (
1636
+ <ReactFlowProvider>
1637
+ <WorkflowFlowCanvasInner {...props} />
1638
+ </ReactFlowProvider>
1639
+ );
1640
+ }