From d5107762228fbe945892506fc66b12b988e7631d Mon Sep 17 00:00:00 2001 From: GowthamKumarMSF4219 Date: Fri, 27 Dec 2024 11:33:16 +0530 Subject: [PATCH] Feature(402675):Added Branching Block --- .../workflow-diagram.component.html | 48 ++++++++---- .../workflow-diagram.component.ts | 56 +++++++++----- .../workflow-sidebar.component.html | 26 +++++++ .../workflow-sidebar.component.ts | 76 ++++++++++++++----- src/app/data/list-data.ts | 19 ++++- src/app/models/appModel.ts | 3 - 6 files changed, 173 insertions(+), 55 deletions(-) diff --git a/src/app/components/workflow-diagram/workflow-diagram.component.html b/src/app/components/workflow-diagram/workflow-diagram.component.html index e0dfbfa..0557596 100644 --- a/src/app/components/workflow-diagram/workflow-diagram.component.html +++ b/src/app/components/workflow-diagram/workflow-diagram.component.html @@ -38,19 +38,8 @@ - @if(data.data.chatWorkflowBlockId !== chatWorkflowBlockTypeEnum.SendTextMessage){ -
- } +
@switch (data.data.chatWorkflowBlockId){ - @case(chatWorkflowBlockTypeEnum.SendTextMessage){ - - -
-
-
Private
-
-
- } @case(chatWorkflowBlockTypeEnum.GetPickerInput){ @switch (data.data.chatWorkflowEditorTypeId){ @case (chatWorkflowEditorTypeEnum.Boolean){ @@ -125,6 +114,39 @@ } } } + @case(chatWorkflowBlockTypeEnum.BranchOnPickerInput){ + @switch (data.data.chatWorkflowEditorTypeId){ + @case (chatWorkflowEditorTypeEnum.ButtonsBranch){ + + @for(option of data.data.fieldOptionDetails; track $index){ +
+ + @if(checkBranchAdd(data.data.branchDetails, option.value)){ + + } +
+ } +
+ } + @case (chatWorkflowEditorTypeEnum.DropdownBranch){ + + + + + } + @case(chatWorkflowEditorTypeEnum.ListBranch){ + + + + } + } + } }
@@ -135,7 +157,7 @@ - +