From d4527070fe61a79c8fa7189bdba2a23ffc6b5ba2 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Tue, 17 Oct 2023 18:19:52 +0200 Subject: [PATCH] new UI -> action-reply END --- package.json | 2 +- .../filter/filter.component.html | 6 +- .../filter/filter.component.scss | 114 ++++--- .../select/select.component.html | 22 +- .../select/select.component.scss | 53 +-- .../cds-action-agent-handoff.component.scss | 4 +- .../cds-action-close.component.scss | 4 +- .../cds-action-description.component.html | 4 +- .../cds-action-description.component.scss | 16 +- .../cds-action-email.component.html | 19 ++ .../cds-action-email.component.scss | 317 +----------------- .../cds-action-gpt-task.component.html | 3 + .../cds-action-gpt-task.component.scss | 33 +- .../cds-action-intent.component.scss | 176 +--------- .../base-condition-row.component.html | 2 +- .../base-condition-row.component.scss | 12 +- .../base-filter/base-filter.component.html | 20 +- .../base-filter/base-filter.component.scss | 83 +++-- .../cds-action-json-condition.component.html | 4 +- .../cds-action-json-condition.component.scss | 46 +-- .../variable-list.component.scss | 19 +- .../cds-action-online-agents.component.html | 2 +- .../cds-action-online-agents.component.scss | 2 +- .../cds-action-open-hours.component.html | 2 +- .../cds-action-open-hours.component.scss | 2 +- .../cds-action-replace-bot.component.scss | 48 +-- .../cds-action-reply.component.scss | 14 +- .../cds-action-reply-button.component.html | 34 ++ .../cds-action-reply-button.component.scss | 157 +++++++++ .../cds-action-reply-button.component.spec.ts | 23 ++ .../cds-action-reply-button.component.ts | 32 ++ .../cds-action-reply-frame.component.html | 8 +- .../cds-action-reply-frame.component.scss | 41 ++- .../cds-action-reply-frame.component.ts | 8 +- .../cds-action-reply-gallery.component.html | 51 +-- .../cds-action-reply-gallery.component.scss | 185 +++++----- .../cds-action-reply-gallery.component.ts | 25 +- .../cds-action-reply-image.component.html | 55 ++- .../cds-action-reply-image.component.scss | 192 +++-------- .../cds-action-reply-image.component.ts | 31 +- .../cds-action-reply-redirect.component.html | 26 +- .../cds-action-reply-redirect.component.scss | 66 ++-- .../cds-action-reply-redirect.component.ts | 7 + .../cds-action-reply-text.component.html | 55 ++- .../cds-action-reply-text.component.scss | 222 +++++------- .../cds-action-reply-text.component.ts | 29 +- .../cds-action-reply-tools.component.html | 13 +- .../cds-action-reply-tools.component.scss | 36 +- .../cds-action-wait.component.html | 2 +- .../cds-action-wait.component.scss | 24 +- .../cds-action-web-request-v2.component.html | 8 +- .../cds-action-web-request-v2.component.scss | 12 +- .../cds-action-web-request-v2.component.ts | 17 +- .../list/question/question.component.html | 4 +- .../list/question/question.component.scss | 217 ++---------- .../delay-slider/delay-slider.component.scss | 29 +- .../element-from-url.component.scss | 12 +- .../image-upload/image-upload.component.html | 2 +- .../image-upload/image-upload.component.scss | 17 +- .../textarea/textarea.component.html | 4 +- .../textarea/textarea.component.scss | 65 ++-- .../textarea/textarea.component.ts | 2 +- .../cds-canvas/cds-canvas.component.scss | 5 +- .../cds-intent/cds-intent.component.scss | 6 +- .../cds-intent/cds-intent.component.ts | 1 - .../cds-panel-action-detail.component.scss | 9 +- .../cds-panel-intent-list.component.html | 7 +- .../cds-panel-intent-list.component.scss | 4 + .../cds-dashboard.component.scss | 5 +- .../cds-dashboard/cds-dashboard.component.ts | 7 +- .../cds-header/cds-header.component.html | 2 +- .../cds-header/cds-header.component.scss | 8 +- .../chatbot-design-studio.module.ts | 2 + .../services/intent.service.ts | 48 +-- src/app/models/action-model.ts | 7 +- src/app/services/faq.service.ts | 57 +--- src/assets/images/action-reply-types/file.svg | 4 + .../images/action-reply-types/gallery.svg | 8 + .../images/action-reply-types/image.svg | 7 + .../images/action-reply-types/redirect.svg | 6 + src/assets/images/action-reply-types/text.svg | 4 + .../images/actions_category/integrations.svg | 59 +++- src/assets/images/icons/add_image.svg | 8 +- src/assets/images/icons/if_condition.svg | 20 +- src/assets/sass/cds/_variables.scss | 21 +- src/assets/sass/cds/styles.scss | 47 +-- 86 files changed, 1378 insertions(+), 1714 deletions(-) create mode 100644 src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.html create mode 100644 src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.scss create mode 100644 src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.spec.ts create mode 100644 src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.ts create mode 100644 src/assets/images/action-reply-types/file.svg create mode 100644 src/assets/images/action-reply-types/gallery.svg create mode 100644 src/assets/images/action-reply-types/image.svg create mode 100644 src/assets/images/action-reply-types/redirect.svg create mode 100644 src/assets/images/action-reply-types/text.svg diff --git a/package.json b/package.json index 8b4d8c31..67db0f07 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@angular/platform-browser-dynamic": "^14.2.0", "@angular/router": "^14.2.0", "@ctrl/ngx-emoji-mart": "^7.1.0", - "@ncstate/sat-popover": "^10.3.2", + "@ncstate/sat-popover": "^10.0.0", "@ng-select/ng-select": "^9.0.2", "@ngx-translate/core": "^14.0.0", "@ngx-translate/http-loader": "^7.0.0", diff --git a/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.html b/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.html index 42e0a9dc..67f5c4bd 100644 --- a/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.html +++ b/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.html @@ -1,10 +1,10 @@ -
+
- filter_alt + filter_alt Filter
@@ -18,7 +18,7 @@ (click)="onOpenConditionDetail(i); addConditionFilter.toggle();">
- delete + delete
data_object diff --git a/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.scss b/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.scss index e45b696e..19ea1407 100644 --- a/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.scss +++ b/src/app/chatbot-design-studio/cds-base-element/filter/filter.component.scss @@ -1,5 +1,12 @@ @import "./src/assets/sass/cds/_variables.scss"; +:host{ + --textColor: #{$blu}; + --backGroundColor: #{$blu-light-04}; + --hoverBackgroundColor: #{$blu-light-03}; + + --border-radius-base: 8px +} .previewMode{ .filter-row{ @@ -26,15 +33,10 @@ } } } -.content{ - // background: $action-item-background; - // margin: 0 30px; - // padding: 20px; - border-radius: 4px; -} .filter-row{ display: grid; + width: 100%; // grid-template-columns: minmax(0px, 1fr) 100px; grid-column-gap: 10px; grid-row-gap: 10px; @@ -64,20 +66,20 @@ cursor: pointer; display: flex; justify-content: center; - background: rgb(255, 255, 255); + background: var(--textColor); border-radius: 100%; transition: background-color 0.3s ease 0s; font-size: 12px; span.material-icons{ font-size: 20px; - color: $icon-color; + color: var(--backGroundColor); } &:hover{ - background-color: $icon-color; + background-color: var(--textColor); span.material-icons{ - color: white; + color: var(--backGroundColor); } } } @@ -89,22 +91,40 @@ align-items: center; justify-content: center; gap: 5px; - padding: 0px 9px; height: 26px; - font-size: .9em; - font-weight: 400; - border-radius: 13px; + // padding: 0px 9px; + // font-size: .9em; + // font-weight: 400; + // border-radius: 13px; transition: all 0.3s ease 0s; - background: rgb(104, 106, 211); - color: white; + // background: $background-color; + // color: $text-color; - span.material-icons{ + user-select: none; + box-sizing: border-box; + outline: none; + border: 1px dashed $blu-light-02; + border-radius: $button-border-radius-base; + color: $blu-light-02; + cursor: pointer; + font-size: 0.7em; + font-weight: 400; + line-height: $button-height-base; + // margin: 0px 5px 0; + order: 1; + padding: 0 10px; + transition: all .3s; + min-width: 100px; + text-align: center; + width: fit-content; + + span.material-icons-outlined{ font-size: 20px; - color: white; } &:hover{ - opacity: 0.8; + border-color: var(--textColor); + color: var(--textColor); cursor: pointer; } } @@ -123,18 +143,29 @@ align-items: center; justify-content: center; width: 100%; - font-weight: 600; - // padding: 8px 15px; - // margin: 5px; - // border: 1px solid #c6cdd4; - border-radius: 4px; - color: #c6cdd4; + + user-select: none; + box-sizing: border-box; + outline: none; + border: 1px dashed $blu-light-02; + border-radius: $button-border-radius-base; + color: $blu-light-02; cursor: pointer; + font-size: 0.7em; + font-weight: 400; + line-height: $button-height-base; + // margin: 0px 5px 0; + order: 1; + padding: 0 10px; + transition: all .3s; + min-width: 100px; + text-align: center; + width: fit-content; &:hover{ - // border-color: white; - color: white; + border-color: var(--textColor); + color: var(--textColor); } } @@ -187,18 +218,19 @@ align-items: center; display: flex; position: relative; - border-radius: 4px; - padding: 8px 15px; + border-radius: var(--border-radius-base); + padding: 6px 15px; transition: background-color 0.3s ease 0s, border 0.3s ease 0s, opacity 0.3s ease 0s; cursor: pointer; - background: rgb(245, 245, 245); + background: var(--backGroundColor); border-width: 1px; border-style: solid; - border-color: rgb(245, 245, 245); + border-color: var(--backGroundColor); border-image: initial; + font-size: 12px; &:hover{ - background: #c6cdd4; - border-color: #c6cdd4; + background: var(--hoverBackgroundColor); + border-color: var(--textColor); div.remove{ opacity: 1; } @@ -219,19 +251,17 @@ cursor: pointer; display: flex; justify-content: center; - background: rgb(255, 255, 255); + background: white; border-radius: 100%; transition: background-color 0.3s ease 0s; font-size: 12px; - span.material-icons { + span.material-icons, + span.material-icons-outlined { font-size: 20px; - color: $icon-color; + color: var(--textColor); } &:hover { - background-color: $icon-color; - span.material-icons{ - color: white; - } + background-color: var(--hoverBackgroundColor); } } @@ -239,9 +269,9 @@ -webkit-box-align: center; -webkit-box-pack: center; align-items: center; - color: $icon-color; + color: var(--textColor); display: flex; - font-size: 15px; + // font-size: 12px; justify-content: center; margin-right: 10px; width: 15px; diff --git a/src/app/chatbot-design-studio/cds-base-element/select/select.component.html b/src/app/chatbot-design-studio/cds-base-element/select/select.component.html index d5bf2fed..b0296ea9 100644 --- a/src/app/chatbot-design-studio/cds-base-element/select/select.component.html +++ b/src/app/chatbot-design-studio/cds-base-element/select/select.component.html @@ -17,30 +17,26 @@ (change) = "onChangeActionButton($event)"> -
-
-
- {{item['icon']}} - {{item[bindLabelSelect]}} - {{item[optionalBindAdditionalText]}} -
-
+
+ {{item['icon']}} + {{item[bindLabelSelect]}} + {{item[optionalBindAdditionalText]}}
-
+
-
+
{{item['icon']}} {{item[bindLabelSelect]}} {{item[optionalBindAdditionalText]}}
-
+
{{item[optionalBindDescription]}}
diff --git a/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss b/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss index b4df8984..fb10a9e2 100644 --- a/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss +++ b/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss @@ -1,5 +1,12 @@ @import "./src/assets/sass/cds/_variables.scss"; +.select-itme-wrp{ + width: 100%; + display: flex; + flex-direction: row; + align-items: center; +} + ::ng-deep{ @@ -12,7 +19,7 @@ span.material-icons{ font-size: 20px; padding: 0px 4px; - color: $icon-color; + color: $blu-light-02; &.intent-start{ color: #0aae10; @@ -24,6 +31,8 @@ span.label-select { margin-right: 4px; + color: $blu; + line-height: 17px; } span.label-select-option { @@ -39,21 +48,21 @@ text-overflow: ellipsis; } - &.ng-option-marked { - background-color: rgba(#545454, .23) !important; - } + // &.ng-option-marked { + // // background-color: rgba($blu-light-02, .23) !important; + // } - &.ng-option-selected{ - background-color: rgba(#545454, .43) !important; + // &.ng-option-selected{ + // // background-color: rgba($blu-light-02, .43) !important; - span.label-select-option { - color: #848484; - } + // // span.label-select-option { + // // color: #848484; + // // } - span.description { - color: #848484; - } - } + // // span.description { + // // color: #848484; + // // } + // } &:hover { .icon-container { @@ -75,7 +84,7 @@ span.material-icons{ font-size: 20px; padding: 0px 4px; - color: $icon-color; + color: $blu-light-03; &.intent-start{ color: #0aae10; @@ -88,6 +97,7 @@ span.label-select { margin-right: 4px; + color: $blu } span.label-select-option { @@ -97,21 +107,24 @@ } .ng-clear-wrapper{ - height: 17px; - width: 17px; + height: 14px; + width: 14px; + display: flex; } } .ng-value-container .ng-input{ display: flex; - top: 0px !important; - height: 43px; + // top: 0px !important; + // height: 43px; } .ng-clear-wrapper{ - height: 17px; - width: 17px; + height: 14px; + width: 14px; + display: flex; + } .ng-dropdown-panel .ng-dropdown-footer { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-agent-handoff/cds-action-agent-handoff.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-agent-handoff/cds-action-agent-handoff.component.scss index 873acdf1..5014b5a0 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-agent-handoff/cds-action-agent-handoff.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-agent-handoff/cds-action-agent-handoff.component.scss @@ -10,7 +10,7 @@ .action-description { // padding: 3px 16px 10px 16px; font-size: 12px; - color: $brown-85; + color: $blu; line-height: 1.3; } } @@ -18,6 +18,6 @@ .action-description{ line-height: 35px; font-size: 0.9em; - color: #d6d6d6; + color: $blu; } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-close/cds-action-close.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-close/cds-action-close.component.scss index 65b1e83a..0f11ab60 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-close/cds-action-close.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-close/cds-action-close.component.scss @@ -11,7 +11,7 @@ .action-description { // padding: 3px 16px 10px 16px; font-size: 12px; - color: $brown-85; + color: $blu; line-height: 1.3; } } @@ -19,5 +19,5 @@ .action-description{ line-height: 35px; font-size: 0.9em; - color: #d6d6d6; + color: $blu; } \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.html index 3d67a1bb..969e2eeb 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.html @@ -37,7 +37,7 @@
- +

{{element?.name}}

Beta @@ -47,7 +47,7 @@
- info + info
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss index 165cf3e4..8b13eb1a 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss @@ -7,8 +7,7 @@ width: 100%; justify-content: space-between; gap: 10px; - padding: 30px 20px 20px; - border-bottom: 2px solid $action-item-background; + padding: 10px; } .preview { @@ -20,7 +19,7 @@ } .icon-action { - background: #6c6859 !important; + // background: #6c6859 !important; img { width: 18px; @@ -91,8 +90,7 @@ border-radius: 4px; // margin-right: 6px; // align-self: start; - color: #718497; - opacity: .85; + color: $blu; background: none; display: flex; @@ -111,8 +109,9 @@ white-space: nowrap; text-overflow: ellipsis; font-size: 14px; + font-weight: 500; margin: 0; - color: #fff; + color: $blu; } } @@ -122,12 +121,11 @@ align-items: center; justify-content: flex-start; font-size: 11px; - color: $action-item-color; + color: $blu-light-02; line-height: 1.5; - em { + span { display: flex; - margin-right: 10px; } &:hover { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-email/cds-action-email.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-email/cds-action-email.component.html index b362bbf7..e0ddfcd2 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-email/cds-action-email.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-email/cds-action-email.component.html @@ -93,6 +93,25 @@
+
+
+ +
+
+
@@ -166,6 +168,7 @@
+
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.scss index c740ee71..efc92463 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.scss @@ -624,6 +624,16 @@ div.value-wrp { } } +.gpt-setting-input { + color: black; + text-align: center; + width: 45px; + border: none; + height: 26px; + border-radius: 12px; + background-color: aliceblue; +} + mat-expansion-panel ::ng-deep { background-color: transparent; box-shadow: none; @@ -694,7 +704,6 @@ mat-expansion-panel ::ng-deep { display: flex; justify-content: space-between; align-items: center; - margin-top: 40px; .close-button { cursor: pointer; @@ -785,6 +794,17 @@ mat-expansion-panel ::ng-deep { margin: 0px 0px 0px 6px !important; } +.content#variables { + // position: absolute; + // left: 440px; + // transition: all 0.3s ease-in; +} + +// .content#variables .opened { +// left: 0px; +// } + + .variables-content-header { display: flex; @@ -823,4 +843,15 @@ mat-expansion-panel ::ng-deep { margin-right: 10px; } +} + +.usage-container { + display: flex; + flex-direction: row; + justify-content: space-between; + margin-top: 6px; + padding: 0px 4px; + color: #a6a6a6; + font-size: 11px; + width: 100%; } \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-intent/cds-action-intent.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-intent/cds-action-intent.component.scss index 5f8d145a..e92edeba 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-intent/cds-action-intent.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-intent/cds-action-intent.component.scss @@ -99,192 +99,24 @@ .field-box { display: flex; flex-direction: column; - // width: 70%; - min-width: 90px; - gap: 10px; + // min-width: 90px; + // gap: 10px; } .title-label { - color: white; - font-size: 18px; + color: $blu; + font-size: 16px; margin-bottom: 0px; } -/** TEXT AREA **/ -mat-form-field.mat-focused ::ng-deep { - .mat-form-field-wrapper { - .mat-form-field-flex { - .mat-form-field-infix { - textarea { - border: 1px solid $color-blue-hex!important; - outline: 1px solid $color-blue-hex!important; - transition: border .3s; - } - } - } - } -} -mat-form-field.box-textarea ::ng-deep { - .mat-form-field-wrapper { - padding-bottom:0; - .mat-form-field-flex { - border-radius: 4px 4px 0 0; - //padding: 0 0.75em 0 0.75em; - padding: 0px; - margin: 0; - } - } - .mat-form-field-underline { - display: none; - } -} - -/** box-textarea **/ -.box-textarea { - width: calc(100% - 40px); - textarea { - border-radius: 8px; - background: $color-withe-hex; - border: 1px solid $color-withe-hex; - overflow-x: hidden; - overflow-y: auto; - width: calc(100% - 2.5em); - padding: 20px 20px; - color: $color-text-dark-hex; - font-size: 1.15em; - line-height: 25px; - resize: vertical; - } -} - -/** editor-utils **/ -.editor-utils { - position: relative; - margin: -20px 50px 0px 0px; - float: right; - .num-chars { - background: $color-light-gray-hex; - padding: 0px 8px; - border-radius: 12px; - font-size: 0.8em; - color: $color-text-box-hex; - float: right; - &.error { - background: $color-orange-hex; - } - } - .text-editor-insert-attribute { - float: right; - } - .moji-picker { - float: right; - } -} - /** NG-SELECT **/ .ng-select.ng-select-focused>.ng-select-container { border-color: $color-red-hex; box-shadow: inset 0 1px 1px #00000013,0 0 0 3px #007eff1a; } -/** FORM GROUP **/ -.form-group { - .form-control { - background-size: 0 2px,0% 1px; - } -} -.form-group.is-focused { - .form-control { - background-size: 100% 2px,100% 1px; - } -} -.form-group.is-error { - .form-control { - outline: none; - background-image: linear-gradient($color-red-hex,$color-red-hex),linear-gradient($color-light-gray-hex,$color-light-gray-hex); - background-size: 100% 2px,100% 1px; - box-shadow: none; - transition-duration: .3s; - } - .ng-select { - &.form-control-select ::ng-deep .ng-select-container { - display: flex; - outline: none; - background-image: linear-gradient($color-red-hex,$color-red-hex),linear-gradient($color-light-gray-hex,$color-light-gray-hex); - background-size: 100% 2px,100% 1px; - box-shadow: none; - transition-duration: .3s; - } - } -} -.form-group label.control-label { - top: -35px; - left: 0; - font-size: 0.8em; - line-height: normal; - position: absolute; - pointer-events: none; - transition: .3s ease all; - color: $color-txt-4-hex; -} -.form-group.is-empty label.control-label { - top: -6px; - left: 6px; - font-size: 1em; - line-height: normal; - position: absolute; - color: $color-txt-3-hex; - z-index:1; - pointer-events: none; -} -.form-group.is-focused label.control-label { - top: -35px; - left: 0; - font-size: 0.8em; - line-height: normal; - position: absolute; - pointer-events: none; - transition: .3s ease all; - color: $color-txt-4-hex; -} - -.select-intent-box { - width: 70%; - // min-width: 900px; -} - - - -// .title-label { -// color: white; -// margin-bottom: 0px; -// // margin-left: 30px; -// } - -.title-label { - color: white; - font-size: 18px; - margin-bottom: 0px; - // margin-left: 30px; -} - -.text-action { - color: $icon-color; - margin-right: 10px; - margin-bottom: 0px; -} - -.custom-icon { - color: $icon-color; - margin-right: 6px; -} - -.action-type { - margin-bottom: 0px; - color: white; -} \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.html index f2042968..51c6533b 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.html @@ -32,7 +32,7 @@
Condition
- +
{{item.name}}
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.scss index 7fe7378d..f8fdecab 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.scss @@ -159,6 +159,7 @@ section.header{ span.material-icons{ font-size: 25px; cursor: pointer; + color: $blu; } } @@ -236,15 +237,16 @@ section.condition{ margin: 5px; padding: 10px 15px; transition: all 0.3s ease 0s; - background-color: rgb(240, 244, 247); + background-color: $blu-light-01; + color: $blu; cursor: pointer; &.active, &:hover{ - background: $light-blue; - color: $light-black; + background: $blu; + color: $blu-light-03; img{ - filter: brightness(0) saturate(100%) invert(10%) sepia(5%) saturate(855%) hue-rotate(188deg) brightness(92%) contrast(92%); + filter: brightness(0) saturate(100%) invert(100%) sepia(20%) saturate(7023%) hue-rotate(179deg) brightness(106%) contrast(89%); } } @@ -350,7 +352,7 @@ section.submit{ cds-textarea#operand2 ::ng-deep { display: flex; textarea { - border: 1px solid rgb(118, 118, 118) !important; + // border: 1px solid rgb(118, 118, 118) !important; resize: none !important; padding: 8px 20px !important; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.html index 2317f0e6..329f80ea 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.html @@ -1,15 +1,14 @@
-
-
+
+
- delete + delete
data_object @@ -35,18 +34,19 @@
-
- +
+
- + + diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.scss index c2d98830..a92b544d 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-filter/base-filter.component.scss @@ -2,8 +2,14 @@ :host{ - --content-background: rgb(66, 85, 117); - --icon-color: #{$icon-color}; + --icon-color: #{$blu}; + --textColor: #{$blu}; + --backGroundColor: #{$blu-light-04}; + --hoverBackgroundColor: #{$blu-light-03}; + + --content-background: rgb(244, 246, 251, 0.4); + --border-radius-base: 8px + } .base-filter{ @@ -15,10 +21,13 @@ } } .content{ - background: var(--content-background); - // margin: 0 30px; + background-color: var(--content-background); + border: 1px solid $gray-light-02; padding: 20px; border-radius: 4px; + display: flex; + flex-direction: column; + gap: 10px; } .control-buttons{ @@ -45,20 +54,22 @@ cursor: pointer; display: flex; justify-content: center; - background: rgb(255, 255, 255); + background: white; border-radius: 100%; transition: background-color 0.3s ease 0s; font-size: 12px; - span.material-icons{ + span.material-icons, + span.material-icons-outlined{ font-size: 20px; - color: var(--icon-color); + color: var(--backGroundColor); } &:hover{ - background-color: var(--icon-color); - span.material-icons{ - color: white; + background-color: var(--textColor); + span.material-icons, + span.material-icons-outlined{ + color: var(--backGroundColor); } } } @@ -67,27 +78,40 @@ .basic-filter-wrp{ // background: #fff; // margin: 0 30px; - padding: 20px 0px; + // padding: 20px 0px 0px; grid-row-gap: 15px; border-radius: 4px; display: flex; + justify-content: center; .add-filter-button{ display: flex; align-items: center; justify-content: center; width: 100%; - font-weight: 600; - padding: 8px 15px; - border: 1px solid #c6cdd4; - border-radius: 4px; - color: #c6cdd4; + + user-select: none; + box-sizing: border-box; + outline: none; + border: 1px dashed $blu-light-02; + border-radius: $button-border-radius-base; + color: $blu-light-02; cursor: pointer; + font-size: 0.7em; + font-weight: 400; + line-height: $button-height-base; + // margin: 0px 5px 0; + order: 1; + padding: 0 10px; + transition: all .3s; + min-width: 100px; + text-align: center; + width: fit-content; &:hover{ - border-color: white; - color: white + border-color: var(--textColor); + color: var(--textColor); } } @@ -135,18 +159,18 @@ align-items: center; display: flex; position: relative; - border-radius: 4px; - padding: 8px 15px; + border-radius: var(--border-radius-base); + padding: 4px 15px; transition: background-color 0.3s ease 0s, border 0.3s ease 0s, opacity 0.3s ease 0s; cursor: pointer; - background: rgb(245, 245, 245); + background: var(--backGroundColor); border-width: 1px; border-style: solid; - border-color: rgb(245, 245, 245); + border-color: var(--backGroundColor); border-image: initial; &:hover{ - background: #c6cdd4; - border-color: #c6cdd4; + background: var(--hoverBackgroundColor); + border-color: var(--textColor); div.remove{ opacity: 1; } @@ -167,19 +191,16 @@ cursor: pointer; display: flex; justify-content: center; - background: rgb(255, 255, 255); + background:white; border-radius: 100%; transition: background-color 0.3s ease 0s; font-size: 12px; span.material-icons { font-size: 20px; - color: var(--icon-color); + color: var(--textColor); } &:hover { - background-color: var(--icon-color); - span.material-icons{ - color: white; - } + background-color: var(--hoverBackgroundColor); } } @@ -187,7 +208,7 @@ -webkit-box-align: center; -webkit-box-pack: center; align-items: center; - color: $icon-color; + color: var(--textColor); display: flex; font-size: 15px; justify-content: center; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.html index b99e5bd4..c37d4c39 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.html @@ -40,7 +40,7 @@
-
delete
+
delete
- +
MATCH
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.scss index 4fcad865..5857c009 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.scss @@ -1,5 +1,13 @@ @import "./src/assets/sass/cds/_variables.scss"; +:host{ + --textColor: #{$blu}; + --backGroundColor: #{$blu-light-03}; + --hoverBackgroundColor: #{$blu-light-03}; + + --border-radius-base: 8px +} + .previewContent{ position: relative; display: flex; @@ -111,7 +119,7 @@ margin: 0px 10px; transition: opacity 0.3s ease 0s; span.text{ - color: $icon-color; + color: var(--textColor); font-weight: 600; } } @@ -131,7 +139,7 @@ transition: background-color 0.3s ease 0s; span.material-icons{ - color: $icon-color; + color: var(--textColor); font-size: 20px; transition: color 0.6s ease 0s; } @@ -143,7 +151,7 @@ flex-grow: 1; height: 0px; width: 0px; - border-top: 1px solid rgb(204, 204, 204); + border-top: 1px solid var(--textColor); } &::after{ @@ -152,7 +160,11 @@ flex-grow: 1; height: 0px; width: 0px; - border-top: 1px solid rgb(204, 204, 204); + border-top: 1px solid var(--textColor); + } + + &:hover{ + opacity: 0.8; } } .add-conditions-group { @@ -179,12 +191,10 @@ position: absolute; right: -8px; top: -14px; - + transition: opacity 0.3s ease 0s; opacity: 0; - height: 28px; width: 28px; - -webkit-box-align: center; -webkit-box-pack: center; align-items: center; @@ -192,21 +202,19 @@ cursor: pointer; display: flex; justify-content: center; - background: rgb(255, 255, 255); + background: white; border-radius: 100%; transition: background-color 0.3s ease 0s; font-size: 12px; - span.material-icons{ + span.material-icons, + span.material-icons-outlined{ font-size: 20px; - color: $icon-color; + color: var(--textColor); } - &:hover{ - background-color: $icon-color; - span.material-icons{ - color: white; - } + &:hover { + background-color: var(--hoverBackgroundColor); } } } @@ -228,7 +236,7 @@ .condition-text { font-size: 14px; font-weight: 600; - color: white; + color: $blu;; } @@ -254,15 +262,15 @@ } ::ng-deep .mat-checkbox.mat-accent .mat-checkbox-frame { - border-color: $icon-color!important; + border-color: $blu !important; } // overwrite the checkbox background ::ng-deep .mat-checkbox-checked .mat-checkbox-background, .mat-checkbox-indeterminate .mat-checkbox-background { - background-color: $icon-color!important; + background-color: $blu !important; .mat-checkbox-checkmark { - background: $icon-color!important;; + background: $blu !important;; .mat-checkbox-checkmark-path { stroke: white; stroke-width: 5px; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/variable-list/variable-list.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/variable-list/variable-list.component.scss index 8369e1ca..47e4659b 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/variable-list/variable-list.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/variable-list/variable-list.component.scss @@ -21,7 +21,7 @@ } .material-icons{ - color: $icon-color; + color: $blu-light-02; font-size: 18px; } @@ -52,20 +52,27 @@ display: flex; align-items: center; gap: 10px; - height: 32px; + height: 30px; padding: 0 15px; transition: background-color .2s,opacity .2s; &:hover{ background: #f0f4f7; cursor: pointer; + + .category-row-name { + font-weight: 500; + } + .material-icons { + color: $blu; + } } } .category-row-name{ - color: #444a51; + color: $blu; font-size: 16px; - font-weight: 500; + font-weight: 400; line-height: 20px; margin-right: 20px; margin-bottom: 0px; @@ -128,12 +135,12 @@ justify-content: center; .material-icons{ margin-right: 15px; - color: $icon-color; + color: $blu; font-size: 24px; font-weight: 500; } div { - color: #22272d; + color: $blu; font-size: 16px; font-weight: 600; line-height: 20px; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.html index d5925604..e68b91df 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.html @@ -35,7 +35,7 @@
- +
ONLINE
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.scss index 3a3b8bfc..ac92349b 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.scss @@ -48,7 +48,7 @@ .condition-text { font-size: 14px; font-weight: 600; - color: white; + color: $blu; } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.html index e77029f5..8b882208 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.html @@ -37,7 +37,7 @@
- +
OPEN
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.scss index fa668181..5cfca09f 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.scss @@ -46,7 +46,7 @@ .condition-text { font-size: 14px; font-weight: 600; - color: white; + color: $blu; } .icon-action { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-replace-bot/cds-action-replace-bot.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-replace-bot/cds-action-replace-bot.component.scss index 3624d9a6..8f797471 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-replace-bot/cds-action-replace-bot.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-replace-bot/cds-action-replace-bot.component.scss @@ -6,48 +6,8 @@ margin-right: 30px; } -.action-title { - display: flex; - align-items: center; - //margin-left: 28px; - margin-bottom: 40px; - justify-content: flex-start; -} - -// #text-condition{ -// position: relative; -// top: -4px; -// right: -45px; -// width: 88%; -// display: block; -// } - -.custom-icon { - color: $icon-color; - margin-right: 6px; -} - -.text-action { - color: $icon-color; - margin-right: 10px; +.title-label { + color: $blu; + font-size: 16px; margin-bottom: 0px; -} - -.action-type { - margin-bottom: 0px; - color: white; -} - - -.title-box { - width: 100%; - text-align: center; - color: white; - font-size: 20px; - padding: 0px 20px; - margin-bottom: 40px; -} - -// .select-bot-box { -// width: 100%; -// } \ No newline at end of file +} \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply.component.scss index ef576353..8a280d8d 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply.component.scss @@ -69,15 +69,15 @@ $margin-bottom: 15px; // } ::ng-deep .mat-checkbox.mat-accent .mat-checkbox-frame { - border-color: $icon-color!important; + border-color: $blu !important; } // overwrite the checkbox background ::ng-deep .mat-checkbox-checked .mat-checkbox-background, .mat-checkbox-indeterminate .mat-checkbox-background { - background-color: $icon-color!important; + background-color: $blu !important; .mat-checkbox-checkmark { - background: $icon-color!important;; + background: $blu !important;; .mat-checkbox-checkmark-path { stroke: white; stroke-width: 5px; @@ -94,7 +94,7 @@ $margin-bottom: 15px; .box-up { display: flex; padding: 5px 10px; - background: #dcdcdc; + background: $blu-light-04; position: relative; /* top: 0; */ width: 100%; @@ -109,14 +109,14 @@ $margin-bottom: 15px; // display: flex; margin: 0px 5px; .reply-info{ - color: aliceblue; + color: $blu; padding: 10px; font-size: 14px; text-align: center; - border: 2px solid #0F172A; + border: 1px solid $gray-light-01; border-radius: 10px; margin: 10px; - background: #425575; + background: $blu-light-03; } } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.html new file mode 100644 index 00000000..4ce86910 --- /dev/null +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.html @@ -0,0 +1,34 @@ +
+
+ + + + + + + + + + + + + + + {{button?.value}} +
+
+ +
+ +
+ delete +
+
+
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.scss new file mode 100644 index 00000000..5dfae931 --- /dev/null +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.scss @@ -0,0 +1,157 @@ +@import "./src/assets/sass/cds/_variables.scss"; + + +:host{ + --backgroundColor: #{$color-withe-hex}; + --textColor: #{$blu}; + --hoverBackgroundColor: #{$blu}; + --hoverTextColor: #{$color-withe-hex}; + --buttonFontSize: 0.7em; + --max-width: #{$button-max-width-base}; +} +.previewMode{ + + .content-botton-reply { + height: unset; + } + + .button-reply{ + min-width: $button-min-width-preview; + max-width: $button-max-width-base; + padding: 2px 10px; + // max-width: calc(100% - 20px); + // margin: auto; + // background: transparent; + + // &.connected{ + // background: #ffff; + // border-color: #ffff; + // } + } +} + +.button-reply { + // float: right; + display: flex; + justify-content: center; + position: relative; + min-width: 100px; + text-align: center; + // margin: 0px 5px 0px; //10px 5px 0; + padding: 0px 10px; + user-select: none; + box-sizing: border-box; + outline: none; + background: var(--backgroundColor); + border: 1px solid var(--textColor); + border-radius: $button-border-radius-base; + color: var(--textColor); + cursor: pointer; + font-size: 0.7em; + font-weight: 500; + line-height: $button-height-base; + transition: all .3s; + + .icon-button-action { + position: absolute; + top: -1px; + right: 5px; + svg { + fill: var(--textColor); + } + } + .icon-button-action-self{ + position: absolute; + right: 1px; + svg { + fill: var(--textColor); + } + } + &:focus, + &:hover { + color: var(--hoverTextColor); + background: var(--hoverBackgroundColor); + .icon-button-action, .icon-button-action-self { + svg { + fill: var(--hoverTextColor); + } + } + } +} + + +.button-reply-wrp:hover { + transform: scale(1.05); + .button-controls { + opacity: 1; + } +} + +.button-reply-text { + width: 100%; + height: 100%; + max-width: var(--max-width); + user-select: none; + color: var(--textColor); + cursor: pointer; + font-size: 1em; + font-weight: 500; + line-height: $button-height-base; + text-align: center; + box-sizing: border-box; + margin: 0; + padding: 0; + outline: none; + overflow: hidden!important; + text-overflow: ellipsis; + white-space: nowrap; +} + +.button-in-msg{ + display: flex; + width: 100%; + position: relative; + justify-content: center; +} + +.button-controls { + justify-content: space-between; + display: inline-flex; + position: absolute; + left: 0; + top: -40%; + opacity: 0; + transition: opacity 0.3s ease-in-out; + .buttonsToMove{ + display: inline-flex; + } + .control-button { + cursor: pointer; + background: $blu-light-02; + color: $blu; + transition: color .3s; + height: 20px; + width: 20px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + em { + font-size: 1.15em; + color: $blu; + transition: color .3s; + } + } + .control-button:hover{ + color: var(--backgroundColor); + box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); + em { + opacity: 0.8; + } + &.delete{ + em { + color: $color-red-hex; + } + } + } +} \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.spec.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.spec.ts new file mode 100644 index 00000000..02900903 --- /dev/null +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CdsActionReplyButtonComponent } from './cds-action-reply-button.component'; + +describe('CdsActionReplyButtonComponent', () => { + let component: CdsActionReplyButtonComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ CdsActionReplyButtonComponent ] + }) + .compileComponents(); + + fixture = TestBed.createComponent(CdsActionReplyButtonComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.ts new file mode 100644 index 00000000..b73ae26f --- /dev/null +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-button/cds-action-reply-button.component.ts @@ -0,0 +1,32 @@ +import { Component, Input, OnInit, EventEmitter, Output } from '@angular/core'; +import { TYPE_BUTTON } from '../../../../../../../utils'; + +@Component({ + selector: 'cds-action-reply-button', + templateUrl: './cds-action-reply-button.component.html', + styleUrls: ['./cds-action-reply-button.component.scss'] +}) +export class CdsActionReplyButtonComponent implements OnInit { + + @Input() button: any + @Input() previewMode: boolean = true; + @Output() onButtonControl = new EventEmitter() + + TYPE_BUTTON = TYPE_BUTTON + + constructor() { } + + ngOnInit(): void { + } + + onDeleteButton(){ + this.onButtonControl.emit('delete') + } + onMoveLeftButton(){ + this.onButtonControl.emit('moveLeft') + } + onMoveRightButton(){ + this.onButtonControl.emit('moveRight') + } + +} diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.html index 98e62e6b..3fb3954f 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.html @@ -23,7 +23,13 @@ (clickDelayTime)="onClickDelayTime($event)">
-
+ +
+ filter_alt + Filter +
+
0){ + this.filterConditionExist = true + } } @@ -76,6 +81,7 @@ export class CdsActionReplyFrameComponent implements OnInit { /** onChangeExpression */ onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; + this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.html index df0dd8d6..44b57e38 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.html @@ -23,10 +23,17 @@ (clickDelayTime)="onClickDelayTime($event)">
-
+ +
+ filter_alt + Filter +
+
@@ -196,35 +203,31 @@
-
-
-
- {{button.value}} -
-
- -
- delete -
-
-
+
+ + + + + + - - + -->
-
+
+ Add button
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.scss index 49748681..15a38996 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.scss @@ -3,16 +3,18 @@ :host{ --cardImageHeight: 150px; --cardWidth: 220px; + --border-color: #{$blu-light-01}; + --base-color: #{$blu-light-02}; } .extensions-response { font-size: $font-size-base; position: relative; - width: 100%; + width: calc(100% - 6px); height: auto; - margin: 27px 0px 0px 0px; - padding: 0px 33px; + margin: 27px 0px 5px 0px; + padding: 0px 30px; display: flex; flex-wrap: wrap; row-gap: 5px; @@ -32,6 +34,31 @@ opacity: 0; transition: opacity 0.3s ease-in-out; } + + .add-filter-btn { + display: flex; + align-items: center; + justify-content: center; + gap: 5px; + padding: 0px 9px; + height: 26px; + font-size: .9em; + font-weight: 400; + border-radius: 13px; + transition: all 0.3s ease 0s; + background: $blu; + color: $blu-light-01; + + span.material-icons-outlined{ + font-size: 20px; + color: white; + } + + &:hover{ + opacity: 0.8; + cursor: pointer; + } + } } .extensions-response:hover{ @@ -124,17 +151,6 @@ } - .button-reply{ - min-width: 200px; - padding: 2px 10px; - } - - .content-botton-reply { - position:relative; - height: 26px; - } - - /** BUTTONS **/ .buttons-response { @@ -161,25 +177,17 @@ align-items: flex-end; .button-reply-add{ - color: $color-txt-2-hex; - border-color: $color-txt-2-hex; + color: var(--base-color); + border-color: var(--base-color); } } - .button-reply { - margin: 0px; //10px 5px 0; - border: 1px solid $color-blue-hex; - font-size: 0.7em; - font-weight: 500; - line-height: $button-height-base; - transition: all .3s; - &.custom-placeholder { - margin: 10px 5px; - background: #dfdfdf; - border: dotted 0px #999; - height: $button-height-base; - transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); - } + .custom-placeholder { + margin: 10px 5px; + background: #dfdfdf; + border: dotted 0px #999; + height: $button-height-base; + transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); } .button-controls{ @@ -205,20 +213,20 @@ &.delete{ height: 24px; width: 24px; - background: $color-bck-gray-hex; + background: var(--base-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; em { font-size: 1.15em; - color: $color-withe-hex; + color: $blu; transition: color .3s; } } } .control-button:hover{ - color: $color-withe-hex; + color: var(--base-color); &.delete{ box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); em { @@ -261,9 +269,7 @@ box-sizing: border-box; outline: none; background: $color-withe-hex; - // border: 1px solid $color-blue-hex; border-radius: $button-border-radius-base; - color: $color-blue-hex; cursor: pointer; font-size: 1em; font-weight: 500; @@ -312,7 +318,7 @@ -ms-flex-align: center; align-items: center; justify-content: center; - border-top: 1px solid $icon-color; + border-top: 1px solid var(--base-color); cursor: pointer; display: -webkit-box; display: -ms-flexbox; @@ -372,16 +378,16 @@ flex-direction: row; .gallery-buttons-add-lines{ - border-top: 1px dashed #b4c0c7; - border-bottom: 1px dashed #b4c0c7; - width: 28px; + border-top: 1px dashed var(--base-color); + border-bottom: 1px dashed var(--base-color); + width: 20px; height: 0; } } .gallery-buttons-add-lines{ - border-left: 1px dashed #b4c0c7; - border-right: 1px dashed #b4c0c7; + border-left: 1px dashed var(--base-color); + border-right: 1px dashed var(--base-color); height: 28px; width: 0; } @@ -413,32 +419,26 @@ } - .cds-add-action-btn > span { - font-size: 20px; - color: $icon-color; - top: 0; + .cds-add-action-btn { + background-color: var(--base-color); + color: white; } - .cds-add-action-btn:hover{ - background: $icon-color; - span { - color: white; - } + .cds-add-action-btn:hover, + .action--text:hover{ + opacity: 0.5; } .action--text { position: absolute; top: 0; left: 30px; - color: $icon-color; + color: var(--base-color); font-size: 14px; white-space: nowrap; // z-index: 1; cursor: pointer; } - .action--text:hover { - color: rgba($icon-color, 0.8); - } } @@ -450,11 +450,12 @@ height: 100%; max-width: var(--cardWidth); user-select: none; - color: $color-blue-hex; cursor: pointer; font-size: 1em; font-weight: 500; line-height: $button-height-base; + border: 1px solid var(--border-color); + border-radius: $button-border-radius-base; text-align: center; box-sizing: border-box; margin: 0; @@ -469,7 +470,7 @@ position: relative; -webkit-transition: opacity .3s; transition: opacity .3s; - width: 220px; + width: var(--cardWidth); } @@ -499,37 +500,36 @@ bottom: 0; right: 0; left: 0; - background-color: rgba(#b38d27, 0.5); + background-color: var(--border-color); + display: flex; &:hover{ opacity: 0.5; - .control-button { - &.delete { - // margin-right: -24px; - // margin-top: calc(var(--cardImageHeight)/2); - // margin-right: calc(var(--cardWidth)/2); - opacity: 1; - display: flex; - bottom: 0; - left: 0; - top: 0; - right: 0; - justify-content: center; - align-items: center; - } + .control-button{ + opacity: 1; } } .control-button { - &.delete { - color: $color-withe-hex; + cursor: pointer; + color: $color-bck-gray-hex; + transition: color .3s; + height: 20px; + opacity: 0; + &.delete{ + height: 24px; + width: 24px; + background: var(--base-color); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; position: absolute; - top: 0px; - right: 0px; - margin-right: 0px; - opacity: 0; - cursor: pointer; - transition: all .3s ease-in-out; + em { + font-size: 1.15em; + color: $blu; + transition: color .3s; + } } } @@ -540,13 +540,11 @@ cds-image-upload ::ng-deep { div.dropUploadImage{ min-height: unset !important; + margin: 10px; } div.image{ height: 20px !important; width: 20px !important; - img{ - filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(187deg) brightness(113%) contrast(117%); - } } div.labelDropUploadImage{ font-size: 12px; @@ -571,9 +569,9 @@ cds-image-upload ::ng-deep { user-select: none; box-sizing: border-box; outline: none; - border: 1px dashed $color-withe-hex;; + border: 1px dashed var(--base-color); border-radius: $button-border-radius-base; - color: $color-withe-hex; + color: var(--base-color); cursor: pointer; font-size: 0.7em; font-weight: 400; @@ -604,8 +602,8 @@ cds-image-upload ::ng-deep { } .control-button { cursor: pointer; - background: $color-bck-gray-hex; - color: $color-bck-gray-hex; + background: $blu-light-02; + color: $blu; transition: color .3s; height: 24px; width: 24px; @@ -616,7 +614,7 @@ cds-image-upload ::ng-deep { margin: 0 2px; em { font-size: 1.15em; - color: $color-withe-hex; + color: $blu; transition: color .3s; } } @@ -624,7 +622,7 @@ cds-image-upload ::ng-deep { color: $color-withe-hex; box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); em { - color: $color-red-hex; + opacity: 0.8; } &.delete{ em { @@ -656,7 +654,8 @@ cds-image-upload ::ng-deep { -ms-flex-align: center; align-items: center; justify-content: center; - border-top: 1px solid $icon-color; + border-top: 1px solid var(--border-color); + box-sizing: border-box; cursor: pointer; display: -webkit-box; display: -ms-flexbox; @@ -739,8 +738,10 @@ cds-textarea#description ::ng-deep { // padding: 0px; .mat-form-field-infix { textarea { - border-bottom: 1px solid rgb(242 205 111)!important; - border-top: 1px solid rgb(242 205 111)!important; + border-left: 0px solid white !important; + border-right: 0px solid white !important; + border-bottom: 1px solid var(--base-color) !important; + border-top: 1px solid var(--base-color) !important; // outline: 0px solid rgb(242 205 111) !important; transition: border 0.3s; @@ -751,6 +752,8 @@ cds-textarea#description ::ng-deep { } textarea { + border-left: 0px solid white !important; + border-right: 0px solid white !important; border-bottom: 1px solid white!important; border-top: 1px solid white!important; border-radius: 0px; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts index a52de503..12a53011 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts @@ -35,12 +35,14 @@ export class CdsActionReplyGalleryComponent implements OnInit { delayTime: number; // Filter // canShowFilter: boolean = true; + filterConditionExist: boolean = false; booleanOperators=[ { type: 'AND', operator: 'AND'},{ type: 'OR', operator: 'OR'},] typeActions = TYPE_ACTION; gallery: Array; // Textarea // activateEL: { [key: number]: {title: boolean, description: boolean} } = {}; // Buttons // + TYPE_BUTTON = TYPE_BUTTON; buttons: Array
-
+ +
+ filter_alt + Filter +
+
-
+
-
-
- {{button.value}} -
-
- -
-
- {{button.value}} -
-
- - - -
- delete -
- -
-
+ + + + + + - -
+
+ Add button
\ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.scss index fc8ab537..d03d07be 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.scss @@ -4,10 +4,10 @@ .extensions-response { font-size: $font-size-base; position: relative; - width: 100%; + width: calc(100% - 6px); height: auto; - margin: 27px 0 0 0; - padding: 0px 33px; + margin: 27px 0px 5px 0px; + padding: 0px 30px; display: flex; flex-wrap: wrap; row-gap: 5px; @@ -28,6 +28,31 @@ transition: opacity 0.3s ease-in-out; z-index: 1; } + + .add-filter-btn { + display: flex; + align-items: center; + justify-content: center; + gap: 5px; + padding: 0px 9px; + height: 26px; + font-size: .9em; + font-weight: 400; + border-radius: 13px; + transition: all 0.3s ease 0s; + background: $blu; + color: $blu-light-01; + + span.material-icons-outlined{ + font-size: 20px; + color: white; + } + + &:hover{ + opacity: 0.8; + cursor: pointer; + } + } } .extensions-response:hover{ @@ -107,7 +132,8 @@ line-height: 20px; font-size: .8em; margin: auto; - + white-space: pre-wrap; + &.no-text{ color: rgb(141, 162, 181) } @@ -123,16 +149,11 @@ flex-wrap: nowrap; align-items: flex-end; .button-reply-add{ - color: $color-txt-2-hex; - border-color: $color-txt-2-hex; - // margin-right: 10px; + color: $blu-light-02; + border-color: $blu-light-02; } } - .button-reply{ - min-width: 200px; - padding: 2px 10px; - } } @@ -163,20 +184,20 @@ &.delete{ height: 24px; width: 24px; - background: $color-bck-gray-hex; + background: $blu-light-02; border-radius: 50%; display: flex; align-items: center; justify-content: center; em { font-size: 1.15em; - color: $color-withe-hex; + color: $blu; transition: color .3s; } } } .control-button:hover{ - color: $color-withe-hex; + color: $blu-light-02; &.delete{ box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); em { @@ -197,29 +218,6 @@ cursor: grab; } -.editor-utils { - position: relative; - margin: -20px 50px 0px 0px; - float: right; - .num-chars { - background: $color-light-gray-hex; - padding: 0px 8px; - border-radius: 12px; - font-size: 0.8em; - color: $color-text-box-hex; - float: right; - &.error { - background: $color-orange-hex; - } - } - .text-editor-insert-attribute { - float: right; - } - .moji-picker { - float: right; - } -} - .image-panel { position: absolute; @@ -291,7 +289,7 @@ } .control-button { &.delete { - color: $color-withe-hex; + color: $blu; position: absolute; top: 0px; right: 0px; @@ -312,12 +310,6 @@ } -.content-botton-reply { - position:relative; - height: 26px; -} - - /** BUTTONS **/ .buttons-response { // display: flex; @@ -342,66 +334,22 @@ align-items: baseline; } -.button-reply { - // float: right; - display: flex; - position: relative; - min-width: 100px; - text-align: center; - // margin: 0px 5px 0px; //10px 5px 0; - padding: 0px 10px; - user-select: none; - box-sizing: border-box; - outline: none; - background: $color-withe-hex; - border: 1px solid $color-blue-hex; - border-radius: $button-border-radius-base; - color: $color-blue-hex; - cursor: pointer; - font-size: 0.7em; - font-weight: 500; - line-height: $button-height-base; - transition: all .3s; - &.custom-placeholder { - margin: 10px 5px; - background: #dfdfdf; - border: dotted 0px #999; - height: $button-height-base; - transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); - } -} -.button-reply:hover { - .button-controls { - opacity: 1; - } -} -.button-reply-text { - width: 100%; - height: 100%; - max-width: $button-max-width-base; - user-select: none; - color: $color-blue-hex; - cursor: pointer; - font-size: 1em; - font-weight: 500; - line-height: $button-height-base; - text-align: center; - box-sizing: border-box; - margin: 0; - padding: 0; - outline: none; - overflow: hidden!important; - text-overflow: ellipsis; - white-space: nowrap; +.custom-placeholder { + margin: 10px 5px; + background: #dfdfdf; + border: dotted 0px #999; + height: $button-height-base; + transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); } + .button-reply-add { float: right; user-select: none; box-sizing: border-box; outline: none; - border: 1px dashed $color-withe-hex; + border: 1px dashed $blu-light-02; border-radius: $button-border-radius-base; - color: $color-withe-hex; + color: $blu-light-02; cursor: pointer; font-size: 0.7em; font-weight: 400; @@ -415,60 +363,16 @@ width: fit-content; // margin-right: 10px; } -.button-controls { - justify-content: space-between; - display: inline-flex; - width: 28px; - height: 24px; - position: absolute; - left: 0; - top: -40%; - opacity: 0; - transition: opacity 0.3s ease-in-out; - .buttonsToMove{ - display: inline-flex; - } - .control-button { - cursor: pointer; - background: $color-bck-gray-hex; - color: $color-bck-gray-hex; - transition: color .3s; - height: 24px; - width: 24px; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin: 0 2px; - em { - font-size: 1.15em; - color: $color-withe-hex; - transition: color .3s; - } - } - .control-button:hover{ - color: $color-withe-hex; - box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); - em { - color: $color-red-hex; - } - &.delete{ - em { - color: $color-red-hex; - } - } - } -} /** box-textarea **/ cds-textarea.text-editable-div ::ng-deep{ display: block; margin-left: 30px; - width: calc(100% - 66px); - // margin-left: 20px; + margin-right: 30px; + // width: calc(100% - 66px); textarea { line-height: 20px !important; - width: calc(100% - 20px) !important; + // width: calc(100% - 20px) !important; font-size: 0.9em !important; } } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts index 0e8ed49a..d7e060ac 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts @@ -43,11 +43,12 @@ export class CdsActionReplyImageComponent implements OnInit { //Filter // canShowFilter: boolean = true; + filterConditionExist: boolean = false; booleanOperators=[ { type: 'AND', operator: 'AND'},{ type: 'OR', operator: 'OR'},] // Buttons // buttons: Array
-
+ +
+ filter_alt + Filter +
+
{{ 'url' | translate }}: - +
+ +
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.scss index 407ae507..786b4731 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.scss @@ -4,10 +4,10 @@ .extensions-response { font-size: $font-size-base; position: relative; - width: 100%; + width: calc(100% - 6px); height: auto; - margin: 27px 0px 0px 0px; - padding: 0px 33px; + margin: 27px 0px 5px 0px; + padding: 0px 30px; display: flex; flex-wrap: wrap; row-gap: 5px; @@ -54,7 +54,6 @@ .control-label{ margin: 0px 10px; font-size: 0.8em; - color: $color-bck-gray-hex; } @@ -137,20 +136,20 @@ &.delete{ height: 24px; width: 24px; - background: $color-bck-gray-hex; + background: $blu-light-02; border-radius: 50%; display: flex; align-items: center; justify-content: center; em { font-size: 1.15em; - color: $color-withe-hex; + color: $blu; transition: color .3s; } } } .control-button:hover{ - color: $color-withe-hex; + color: $blu-light-02; &.delete{ box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); em { @@ -172,30 +171,6 @@ cursor: grab; } -/** editor-utils **/ -.editor-utils { - position: relative; - margin: -20px 50px 0px 0px; - float: right; - .num-chars { - // background: $color-light-gray-hex; - padding: 0px 8px; - border-radius: 12px; - font-size: 0.8em; - // color: $color-text-box-hex; - float: right; - &.error { - background: $color-orange-hex; - } - } - .text-editor-insert-attribute { - float: right; - } - .moji-picker { - float: right; - } -} - .url-wrp{ display: flex; flex-direction: column; @@ -217,7 +192,7 @@ .control-label{ font-family: 'Poppins','Roboto',Arial,sans-serif; - color: #e8eaed; + color: $blu; text-align: left; line-height: 20px; font-size: 14px; @@ -229,16 +204,24 @@ // margin-bottom: 10px; } - /** box-textarea **/ +.text-editor-wrapper { + font-size: $font-size-base; + position: relative; + width: 100%; + height: auto; + margin: 0px; //5px 0 0 0; + // padding: 0px 33px; +} + cds-textarea.text-editable-div ::ng-deep{ display: block; margin-left: 30px; - width: calc(100% - 66px); - // margin-left: 20px; + margin-right: 30px; + // width: calc(100% - 66px); textarea { line-height: 20px !important; - width: calc(100% - 20px) !important; + // width: calc(100% - 20px) !important; font-size: 0.9em !important; resize: none !important; @@ -258,10 +241,15 @@ mat-button-toggle ::ng-deep{ } mat-button-toggle-group { - border: none; + border: 1px solid $gray-light-02; margin-left: 30px; + border-radius: 8px; } mat-button-toggle.mat-button-toggle-checked{ - background-color: $icon-color; - color: white; + background-color: $blu; + color: $blu-light-02; +} + +mat-button-toggle.mat-button-toggle{ + color: $blu-light-02; } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts index c5e3d226..da088570 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts @@ -27,6 +27,7 @@ export class CdsActionReplyRedirectComponent implements OnInit { delayTime: number; // Filter // canShowFilter: boolean = true; + filterConditionExist: boolean = false; booleanOperators=[ { type: 'AND', operator: 'AND'},{ type: 'OR', operator: 'OR'},] typeActions = TYPE_ACTION; metadata: Metadata; @@ -44,6 +45,11 @@ export class CdsActionReplyRedirectComponent implements OnInit { this.delayTime = (this.wait && this.wait.time)? (this.wait.time/1000) : 500; try { this.metadata = this.response.metadata; + + if(this.response && this.response._tdJSONCondition && this.response._tdJSONCondition.conditions.length > 0){ + this.filterConditionExist = true + } + } catch (error) { this.logger.log("error ", error); } @@ -69,6 +75,7 @@ export class CdsActionReplyRedirectComponent implements OnInit { /** onChangeExpression */ onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; + this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.html index c6b0cc50..ecaab8a9 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.html @@ -23,7 +23,14 @@ (clickDelayTime)="onClickDelayTime($event)">
-
+ + +
+ filter_alt + Filter +
+
-
- -
-
- {{button.value}} -
-
- -
-
- {{button.value}} -
-
- -
- delete -
-
-
+
+ + + + + + + - -
+
+ Add button
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.scss index 19adc93b..d74aaf97 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.scss @@ -12,10 +12,10 @@ .extensions-response { font-size: $font-size-base; position: relative; - width: 100%; + width: calc(100% - 6px); height: auto; - margin: 27px 0px 0px 0px; - padding: 0px 33px; + margin: 27px 0px 5px 0px; + padding: 0px 30px; display: flex; flex-wrap: wrap; row-gap: 5px; @@ -38,9 +38,39 @@ z-index: 1; } + .add-filter-btn { + display: flex; + align-items: center; + justify-content: center; + gap: 5px; + padding: 0px 9px; + height: 26px; + font-size: .9em; + font-weight: 400; + border-radius: 13px; + transition: all 0.3s ease 0s; + background: $blu; + color: $blu-light-01; + + span.material-icons-outlined{ + font-size: 20px; + color: white; + } + + &:hover{ + opacity: 0.8; + cursor: pointer; + } + } + } +appdashboard-delay-slider, +appdashboard-filter{ + display: flex; +} + .extensions-response:hover{ .response-controls { opacity: 1; @@ -76,6 +106,7 @@ line-height: 20px; font-size: .8em; margin: auto; + white-space: pre-wrap; &.no-text{ color: rgb(141, 162, 181) @@ -90,15 +121,11 @@ flex-wrap: nowrap; align-items: flex-end; .button-reply-add{ - color: $color-txt-2-hex; - border-color: $color-txt-2-hex; + color: $blu-light-02; + border-color: $blu-light-02; } } - .button-reply{ - min-width: 200px; - padding: 2px 10px; - } } /* ./ Preview mode @@ -132,20 +159,20 @@ &.delete{ height: 24px; width: 24px; - background: $color-bck-gray-hex; + background: $blu-light-02; border-radius: 50%; display: flex; align-items: center; justify-content: center; em { font-size: 1.15em; - color: $color-withe-hex; + color: $blu; transition: color .3s; } } } .control-button:hover{ - color: $color-withe-hex; + color: $blu-light-02; &.delete{ box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); em { @@ -190,12 +217,6 @@ } -.content-botton-reply { - position:relative; - height: 26px; -} - - /** BUTTONS **/ .buttons-response { @@ -221,59 +242,13 @@ align-items: baseline; } -.button-reply { - // float: right; - display: flex; - position: relative; - min-width: 100px; - text-align: center; - // margin: 0px 5px 0px; //10px 5px 0; - padding: 0px 10px; - user-select: none; - box-sizing: border-box; - outline: none; - background: $color-withe-hex; - border: 1px solid $color-blue-hex; - border-radius: $button-border-radius-base; - color: $color-blue-hex; - cursor: pointer; - font-size: 0.7em; - font-weight: 500; - line-height: $button-height-base; - transition: all .3s; - &.custom-placeholder { - margin: 10px 5px; - background: #dfdfdf; - border: dotted 0px #999; - height: $button-height-base; - transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); +.custom-placeholder { + margin: 10px 5px; + background: #dfdfdf; + border: dotted 0px #999; + height: $button-height-base; + transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); - } -} -.button-reply:hover { - .button-controls { - opacity: 1; - } -} - -.button-reply-text { - width: 100%; - height: 100%; - max-width: $button-max-width-base; - user-select: none; - color: $color-blue-hex; - cursor: pointer; - font-size: 1em; - font-weight: 500; - line-height: $button-height-base; - text-align: center; - box-sizing: border-box; - margin: 0; - padding: 0; - outline: none; - overflow: hidden!important; - text-overflow: ellipsis; - white-space: nowrap; } .button-reply-add { @@ -281,9 +256,9 @@ user-select: none; box-sizing: border-box; outline: none; - border: 1px dashed $color-withe-hex;; + border: 1px dashed $blu-light-02; border-radius: $button-border-radius-base; - color: $color-withe-hex; + color: $blu-light-02; cursor: pointer; font-size: 0.7em; font-weight: 400; @@ -298,89 +273,44 @@ // margin-right: 10px; } -.button-controls { - justify-content: space-between; - display: inline-flex; - width: 28px; - height: 24px; - position: absolute; - left: 0; - top: -40%; - opacity: 0; - transition: opacity 0.3s ease-in-out; - .buttonsToMove{ - display: inline-flex; - } - .control-button { - cursor: pointer; - background: $color-bck-gray-hex; - color: $color-bck-gray-hex; - transition: color .3s; - height: 24px; - width: 24px; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin: 0 2px; - em { - font-size: 1.15em; - color: $color-withe-hex; - transition: color .3s; - } - } - .control-button:hover{ - color: $color-withe-hex; - box-shadow: 0 2px 6px 0 rgb(255 255 255 / 15%); - em { - color: $color-red-hex; - } - &.delete{ - em { - color: $color-red-hex; - } - } - } -} - /** box-textarea **/ cds-textarea.text-editable-div ::ng-deep{ display: block; margin-left: 30px; - width: calc(100% - 66px); - // margin-left: 20px; + margin-right: 30px; + // width: calc(100% - 66px); textarea { line-height: 20px !important; - width: calc(100% - 20px) !important; + // width: calc(100% - 20px) !important; font-size: 0.9em !important; } } /** TEXT AREA **/ -mat-form-field.mat-focused ::ng-deep { - .mat-form-field-wrapper { - .mat-form-field-flex { - .mat-form-field-infix { - textarea { - border: 1px solid $color-blue-hex!important; - outline: 1px solid $color-blue-hex!important; - transition: border .3s; - } - } - } - } -} -mat-form-field.box-textarea ::ng-deep { - .mat-form-field-wrapper { - padding-bottom:0; - .mat-form-field-flex { - border-radius: 4px 4px 0 0; - padding: 0 0.75em 0 0.75em; - margin: 0; - } - } - .mat-form-field-underline { - display: none; - } -} \ No newline at end of file +// mat-form-field.mat-focused ::ng-deep { +// .mat-form-field-wrapper { +// .mat-form-field-flex { +// .mat-form-field-infix { +// textarea { +// border: 1px solid $color-blue-hex!important; +// outline: 1px solid $color-blue-hex!important; +// transition: border .3s; +// } +// } +// } +// } +// } +// mat-form-field.box-textarea ::ng-deep { +// .mat-form-field-wrapper { +// padding-bottom:0; +// .mat-form-field-flex { +// border-radius: 4px 4px 0 0; +// padding: 0 0.75em 0 0.75em; +// margin: 0; +// } +// } +// .mat-form-field-underline { +// display: none; +// } +// } \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.ts index 1203c5ca..59db9894 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.ts @@ -38,8 +38,10 @@ export class CdsActionReplyTextComponent implements OnInit { delayTime: number; // Filter // canShowFilter: boolean = true; + filterConditionExist: boolean = false; booleanOperators = [ { type: 'AND', operator: 'AND'},{ type: 'OR', operator: 'OR'},]; // Buttons // + TYPE_BUTTON = TYPE_BUTTON; buttons: Array