From 4143e0d98f22e857150a5e521a55109103de2996 Mon Sep 17 00:00:00 2001 From: GowthamKumarMSF4219 Date: Fri, 6 Dec 2024 15:51:41 +0530 Subject: [PATCH] Feature(403006): Resturcturing code --- .../workflow-diagram.component.html | 899 ++++++++++-------- .../workflow-diagram.component.ts | 17 +- src/app/data/sample-workflow-data.json | 2 +- src/app/models/enum.ts | 2 +- 4 files changed, 499 insertions(+), 421 deletions(-) diff --git a/src/app/components/workflow-diagram/workflow-diagram.component.html b/src/app/components/workflow-diagram/workflow-diagram.component.html index 307119e..4375602 100644 --- a/src/app/components/workflow-diagram/workflow-diagram.component.html +++ b/src/app/components/workflow-diagram/workflow-diagram.component.html @@ -1,460 +1,527 @@
- -
+ +
- - - - - + +
-
- - - - +
+ + + + + - - -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
- - -
- -
- - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
+ + + @switch (data.addInfo.chatWorkflowBlockId){ + @case(chatWorkflowBlockTypeEnum.GetPickerInput){ + @switch (data.addInfo.chatWorkflowEditorTypeId){ + @case (chatWorkflowEditorTypeEnum.Boolean){ + +
+
+
+
+ } + @case (chatWorkflowEditorTypeEnum.Buttons){ + +
+
+ +
+
+ } + @case (chatWorkflowEditorTypeEnum.DropDown){ + +
+ + +
+ } + @case(chatWorkflowEditorTypeEnum.MultiSelect){ + +
+ + +
+ } + @case(chatWorkflowEditorTypeEnum.List){ + +
+ +
+ } + } + } + @case(chatWorkflowBlockTypeEnum.GetTextInput){ + @switch (data.addInfo.chatWorkflowEditorTypeId){ + @case(chatWorkflowEditorTypeEnum.Text){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.TextArea){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.Date){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.DateTime){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.Number){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.Decimal){ + +
+ +
+ } + @case(chatWorkflowEditorTypeEnum.Regex){ + +
+ +
+ } + } + } + }
- +
-