From e9597b7c6997a74b5f89ae052c9d0a5ce020c9e9 Mon Sep 17 00:00:00 2001 From: GowthamKumarMSF4219 Date: Fri, 3 Jan 2025 10:47:00 +0530 Subject: [PATCH 1/2] Feature(402675):Branching on Picker Input --- src/app/app.component.ts | 2 +- .../workflow-diagram.component.html | 34 +++- .../workflow-diagram.component.ts | 53 ++++-- .../workflow-sidebar.component.html | 47 ++++- .../workflow-sidebar.component.scss | 6 + .../workflow-sidebar.component.ts | 163 ++++++++++++++---- src/app/data/list-data.ts | 19 +- src/app/models/appModel.ts | 9 +- src/app/services/workflow.service.ts | 8 +- 9 files changed, 274 insertions(+), 67 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6d4b862..7e3a116 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -10,5 +10,5 @@ import { WorkflowDiagramComponent } from './components/workflow-diagram/workflow }) export class AppComponent { -public workflowID: number = 7; +public workflowID: number = 8; } \ No newline at end of file diff --git a/src/app/components/workflow-diagram/workflow-diagram.component.html b/src/app/components/workflow-diagram/workflow-diagram.component.html index 546a5e6..16fc05d 100644 --- a/src/app/components/workflow-diagram/workflow-diagram.component.html +++ b/src/app/components/workflow-diagram/workflow-diagram.component.html @@ -19,7 +19,7 @@
@@ -137,13 +137,43 @@ } } } + @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){ + + + + } + } + } }
- +