From 4daa2bd3b38618a9cec9259acbdcfc2c20d9bd31 Mon Sep 17 00:00:00 2001 From: VijayalakshmiSF4471 <164475295+VijayalakshmirSF4471@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:26:54 +0530 Subject: [PATCH] feature(402683): customer block node customization --- .../workflow-diagram.component.html | 609 +++++++++++------- .../workflow-diagram.component.ts | 468 +++++++++----- src/app/data/list-data.ts | 2 + 3 files changed, 665 insertions(+), 414 deletions(-) diff --git a/src/app/components/workflow-diagram/workflow-diagram.component.html b/src/app/components/workflow-diagram/workflow-diagram.component.html index 2b39273..1da0bed 100644 --- a/src/app/components/workflow-diagram/workflow-diagram.component.html +++ b/src/app/components/workflow-diagram/workflow-diagram.component.html @@ -7,9 +7,9 @@ - +
@@ -32,102 +32,128 @@ - @switch (data.addInfo.chatWorkflowBlockId){ + @switch (data.addInfo[0].chatWorkflowBlockId){ @case(chatWorkflowBlockTypeEnum.GetPickerInput){ - @switch (data.addInfo.chatWorkflowEditorTypeId){ + @switch (data.addInfo[0].chatWorkflowEditorTypeId){ @case (chatWorkflowEditorTypeEnum.Boolean){ -
+
} @case (chatWorkflowEditorTypeEnum.Buttons){ -
-
+
+
} @case (chatWorkflowEditorTypeEnum.DropDown){ -
- +
+
} @case(chatWorkflowEditorTypeEnum.MultiSelect){ -
- +
+
} @case(chatWorkflowEditorTypeEnum.List){ -
-
+
} } } @case(chatWorkflowBlockTypeEnum.GetTextInput){ - @switch (data.addInfo.chatWorkflowEditorTypeId){ + @switch (data.addInfo[0].chatWorkflowEditorTypeId){ @case(chatWorkflowEditorTypeEnum.Text){ -
- +
+
} @case(chatWorkflowEditorTypeEnum.TextArea){ -
- +
+
} @case(chatWorkflowEditorTypeEnum.Date){ -
- +
+
} @case(chatWorkflowEditorTypeEnum.DateTime){ -
- +
} @case(chatWorkflowEditorTypeEnum.Number){ -
- +
} @case(chatWorkflowEditorTypeEnum.Decimal){ -
- +
} @case(chatWorkflowEditorTypeEnum.Regex){ -
- +
+
} } } + @case(chatWorkflowBlockTypeEnum.SendTextMessage){ + +
+
+ } + @case(chatWorkflowBlockTypeEnum.GetCustomerDetails){ + + +
+ @switch (info.chatWorkflowEditorTypeId){ + @case(chatWorkflowEditorTypeEnum.Email){ + + + } + @case(chatWorkflowEditorTypeEnum.PhoneNumber){ + + + } + @case(chatWorkflowEditorTypeEnum.Name){ + + + } + } +
+
+ } }
@@ -145,380 +171,485 @@
{{sidebarHeader}}
- @switch(nodeEditType){ - @case(chatWorkflowEditorTypeEnum.Boolean){ -
- - + @switch(nodeBlockType){ + @case(chatWorkflowBlockTypeEnum.GetPickerInput){ + @switch(nodeEditType){ + @case(chatWorkflowEditorTypeEnum.Boolean){
+ + +
+
-
- } - @case(chatWorkflowEditorTypeEnum.Buttons){ -
- - -
+ } + @case(chatWorkflowEditorTypeEnum.Buttons){ +
+ + +
- - + +
-
- -
+
+ +
- +
- +
- +
+
-
- } - @case(chatWorkflowEditorTypeEnum.DropDown){ -
-