@chat21/chat21-web-widget 5.1.32-rc8 → 5.1.33-rc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.angular-mcp-cache/package.json +1 -0
- package/.cursor/angular18-accessibility-auditor-skill.md +442 -0
- package/.cursor/mcp.json +15 -0
- package/.github/workflows/playwright.yml +27 -0
- package/.playwright-mcp/console-2026-05-08T15-31-09-000Z.log +17 -0
- package/.playwright-mcp/console-2026-05-08T15-32-19-412Z.log +89 -0
- package/.playwright-mcp/console-2026-05-08T16-18-48-424Z.log +133 -0
- package/.playwright-mcp/console-2026-05-11T12-54-06-869Z.log +13 -0
- package/.playwright-mcp/console-2026-05-11T12-54-56-229Z.log +147 -0
- package/.playwright-mcp/console-2026-05-11T12-55-47-174Z.log +183 -0
- package/.playwright-mcp/console-2026-05-11T15-34-03-590Z.log +210 -0
- package/.playwright-mcp/console-2026-05-12T15-07-31-880Z.log +118 -0
- package/.playwright-mcp/page-2026-05-08T15-32-19-900Z.yml +851 -0
- package/.playwright-mcp/page-2026-05-08T15-32-47-264Z.yml +857 -0
- package/.playwright-mcp/page-2026-05-08T15-33-17-089Z.yml +1110 -0
- package/.playwright-mcp/page-2026-05-08T15-33-23-486Z.yml +1069 -0
- package/.playwright-mcp/page-2026-05-08T15-33-45-390Z.yml +1076 -0
- package/.playwright-mcp/page-2026-05-08T15-33-52-666Z.yml +1072 -0
- package/.playwright-mcp/page-2026-05-08T15-34-01-338Z.yml +1085 -0
- package/.playwright-mcp/page-2026-05-08T15-34-07-227Z.yml +1072 -0
- package/.playwright-mcp/page-2026-05-08T15-34-13-875Z.yml +1072 -0
- package/.playwright-mcp/page-2026-05-08T15-34-21-885Z.yml +1109 -0
- package/.playwright-mcp/page-2026-05-08T15-34-32-755Z.yml +1109 -0
- package/.playwright-mcp/page-2026-05-08T15-35-09-607Z.yml +1119 -0
- package/.playwright-mcp/page-2026-05-08T15-35-14-242Z.yml +1109 -0
- package/.playwright-mcp/page-2026-05-08T16-18-48-671Z.yml +44 -0
- package/.playwright-mcp/page-2026-05-08T16-18-52-753Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-19-13-919Z.yml +68 -0
- package/.playwright-mcp/page-2026-05-08T16-19-17-977Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-19-25-733Z.yml +120 -0
- package/.playwright-mcp/page-2026-05-08T16-19-29-252Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-19-39-269Z.yml +80 -0
- package/.playwright-mcp/page-2026-05-08T16-19-43-915Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-20-04-407Z.yml +81 -0
- package/.playwright-mcp/page-2026-05-08T16-20-08-984Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-20-32-397Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-20-58-658Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-21-12-320Z.yml +86 -0
- package/.playwright-mcp/page-2026-05-08T16-21-39-154Z.yml +91 -0
- package/.playwright-mcp/page-2026-05-08T16-21-45-420Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-22-21-062Z.yml +0 -0
- package/.playwright-mcp/page-2026-05-08T16-22-58-232Z.yml +91 -0
- package/.playwright-mcp/page-2026-05-08T16-23-36-520Z.yml +0 -0
- package/.playwright-mcp/page-2026-05-08T16-23-46-805Z.yml +100 -0
- package/.playwright-mcp/page-2026-05-08T16-23-55-169Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-24-26-574Z.yml +91 -0
- package/.playwright-mcp/page-2026-05-08T16-25-34-414Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-25-59-831Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-26-21-809Z.yml +91 -0
- package/.playwright-mcp/page-2026-05-08T16-26-47-443Z.yml +105 -0
- package/.playwright-mcp/page-2026-05-08T16-26-56-136Z.png +0 -0
- package/.playwright-mcp/page-2026-05-08T16-27-59-610Z.yml +48 -0
- package/.playwright-mcp/page-2026-05-11T12-54-07-180Z.yml +44 -0
- package/.playwright-mcp/page-2026-05-11T12-54-56-946Z.yml +4 -0
- package/.playwright-mcp/page-2026-05-11T12-55-47-503Z.yml +24 -0
- package/.playwright-mcp/page-2026-05-11T12-56-00-766Z.yml +28 -0
- package/.playwright-mcp/page-2026-05-11T12-56-06-438Z.yml +90 -0
- package/.playwright-mcp/page-2026-05-11T12-57-56-838Z.yml +106 -0
- package/.playwright-mcp/page-2026-05-11T12-58-00-124Z.yml +106 -0
- package/.playwright-mcp/page-2026-05-11T12-59-08-836Z.yml +61 -0
- package/.playwright-mcp/page-2026-05-11T12-59-12-088Z.yml +61 -0
- package/.playwright-mcp/page-2026-05-11T12-59-26-215Z.yml +69 -0
- package/.playwright-mcp/page-2026-05-11T12-59-29-519Z.yml +69 -0
- package/.playwright-mcp/page-2026-05-11T12-59-37-309Z.yml +0 -0
- package/.playwright-mcp/page-2026-05-11T12-59-39-968Z.yml +79 -0
- package/.playwright-mcp/page-2026-05-11T12-59-45-983Z.yml +78 -0
- package/.playwright-mcp/page-2026-05-11T12-59-49-951Z.yml +78 -0
- package/.playwright-mcp/page-2026-05-11T15-34-04-515Z.yml +0 -0
- package/.playwright-mcp/page-2026-05-12T15-07-32-171Z.yml +44 -0
- package/.playwright-mcp/page-2026-05-12T15-08-09-820Z.yml +119 -0
- package/CHANGELOG.md +61 -3
- package/angular.json +20 -3
- package/deploy_amazon_beta.sh +7 -17
- package/deploy_amazon_prod.sh +41 -0
- package/docs/TILEDESK_WIDGET_ACCESSIBILITY_STATEMENT_COMPLETE.md +379 -0
- package/env.sample +3 -2
- package/mocks/voice-websocket-mock/server.cjs +245 -0
- package/package.json +7 -3
- package/playwright-report/index.html +90 -0
- package/playwright.config.ts +41 -0
- package/src/app/app.component.html +2 -2
- package/src/app/app.component.scss +25 -14
- package/src/app/app.component.spec.ts +21 -6
- package/src/app/app.module.ts +4 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.html +19 -11
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +28 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +644 -75
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +61 -17
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +25 -13
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +123 -5
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +1 -0
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +22 -9
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +23 -1
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +249 -149
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +0 -1
- package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +53 -3
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component copy.html +172 -0
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +112 -62
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +133 -7
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +452 -78
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +193 -79
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +113 -53
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +12 -4
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +274 -29
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +23 -9
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +80 -8
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +29 -23
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +185 -16
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +34 -14
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +43 -19
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +63 -10
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +142 -12
- package/src/app/component/error-alert/error-alert.component.spec.ts +65 -5
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +16 -7
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +21 -0
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +89 -7
- package/src/app/component/form/form-builder/form-builder.component.html +1 -1
- package/src/app/component/form/form-builder/form-builder.component.spec.ts +163 -21
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +8 -4
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +10 -5
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +90 -16
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +26 -0
- package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +45 -11
- package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +24 -6
- package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +14 -5
- package/src/app/component/form/inputs/form-text/form-text.component.html +14 -12
- package/src/app/component/form/inputs/form-text/form-text.component.scss +11 -1
- package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +113 -17
- package/src/app/component/form/inputs/form-text/form-text.component.ts +26 -0
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +13 -11
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +6 -5
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +149 -13
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +26 -0
- package/src/app/component/form/prechat-form/prechat-form.component.html +14 -11
- package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +102 -10
- package/src/app/component/form/prechat-form/prechat-form.component.ts +8 -1
- package/src/app/component/form/prechat-form-test-mock.ts +35 -0
- package/src/app/component/home/home.component.html +38 -31
- package/src/app/component/home/home.component.scss +4 -2
- package/src/app/component/home/home.component.spec.ts +226 -11
- package/src/app/component/home-conversations/home-conversations.component.html +30 -26
- package/src/app/component/home-conversations/home-conversations.component.scss +3 -0
- package/src/app/component/home-conversations/home-conversations.component.spec.ts +212 -36
- package/src/app/component/last-message/last-message.component.html +15 -9
- package/src/app/component/last-message/last-message.component.scss +16 -2
- package/src/app/component/last-message/last-message.component.spec.ts +204 -23
- package/src/app/component/launcher-button/launcher-button.component.html +8 -13
- package/src/app/component/launcher-button/launcher-button.component.spec.ts +104 -8
- package/src/app/component/list-all-conversations/list-all-conversations.component.html +12 -17
- package/src/app/component/list-all-conversations/list-all-conversations.component.scss +2 -0
- package/src/app/component/list-conversations/list-conversations.component.html +22 -22
- package/src/app/component/menu-options/menu-options.component.html +30 -20
- package/src/app/component/menu-options/menu-options.component.spec.ts +125 -9
- package/src/app/component/message/audio/audio.component.html +13 -15
- package/src/app/component/message/audio/audio.component.spec.ts +140 -5
- package/src/app/component/message/audio/audio.component.ts +1 -0
- package/src/app/component/message/audio-sync/audio-sync.component.scss +1 -1
- package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +81 -1
- package/src/app/component/message/audio-sync/audio-sync.component.ts +134 -24
- package/src/app/component/message/avatar/avatar.component.html +2 -2
- package/src/app/component/message/avatar/avatar.component.spec.ts +99 -7
- package/src/app/component/message/bubble-message/bubble-message.component.html +39 -52
- package/src/app/component/message/bubble-message/bubble-message.component.scss +54 -1
- package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +154 -57
- package/src/app/component/message/bubble-message/bubble-message.component.ts +138 -110
- package/src/app/component/message/buttons/action-button/action-button.component.html +3 -4
- package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +49 -5
- package/src/app/component/message/buttons/link-button/link-button.component.scss +5 -8
- package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +50 -5
- package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +44 -5
- package/src/app/component/message/carousel/carousel.component.html +29 -16
- package/src/app/component/message/carousel/carousel.component.scss +20 -8
- package/src/app/component/message/carousel/carousel.component.spec.ts +80 -3
- package/src/app/component/message/carousel/carousel.component.ts +16 -0
- package/src/app/component/message/frame/frame.component.html +9 -4
- package/src/app/component/message/frame/frame.component.spec.ts +34 -15
- package/src/app/component/message/frame/frame.component.ts +7 -2
- package/src/app/component/message/html/html.component.html +1 -1
- package/src/app/component/message/html/html.component.scss +1 -1
- package/src/app/component/message/html/html.component.spec.ts +24 -7
- package/src/app/component/message/image/image.component.html +12 -10
- package/src/app/component/message/image/image.component.scss +16 -0
- package/src/app/component/message/image/image.component.spec.ts +101 -15
- package/src/app/component/message/image/image.component.ts +90 -51
- package/src/app/component/message/info-message/info-message.component.spec.ts +26 -14
- package/src/app/component/message/json-sources/json-sources.component.html +38 -0
- package/src/app/component/message/json-sources/json-sources.component.scss +197 -0
- package/src/app/component/message/json-sources/json-sources.component.ts +89 -0
- package/src/app/component/message/like-unlike/like-unlike.component.html +7 -9
- package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +31 -3
- package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +38 -17
- package/src/app/component/message/text/text.component.html +3 -3
- package/src/app/component/message/text/text.component.scss +80 -86
- package/src/app/component/message/text/text.component.spec.ts +106 -13
- package/src/app/component/message-attachment/message-attachment.component.spec.ts +134 -13
- package/src/app/component/selection-department/selection-department.component.html +21 -23
- package/src/app/component/selection-department/selection-department.component.spec.ts +159 -14
- package/src/app/component/selection-department/selection-department.component.ts +8 -1
- package/src/app/component/send-button/send-button.component.html +5 -13
- package/src/app/component/send-button/send-button.component.spec.ts +2 -2
- package/src/app/component/star-rating-widget/star-rating-widget.component.html +51 -81
- package/src/app/directives/tooltip.directive.spec.ts +8 -4
- package/src/app/modals/confirm-close/confirm-close.component.html +20 -8
- package/src/app/modals/confirm-close/confirm-close.component.scss +3 -0
- package/src/app/modals/confirm-close/confirm-close.component.spec.ts +13 -4
- package/src/app/modals/confirm-close/confirm-close.component.ts +8 -1
- package/src/app/pipe/html-entites-encode.pipe.spec.ts +35 -2
- package/src/app/pipe/marked.pipe.spec.ts +38 -2
- package/src/app/providers/app-config.service.ts +4 -2
- package/src/app/providers/brand.service.spec.ts +23 -2
- package/src/app/providers/brand.service.ts +1 -1
- package/src/app/providers/global-settings.service.spec.ts +1009 -14
- package/src/app/providers/global-settings.service.ts +30 -2
- package/src/app/providers/json-sources-parser.service.ts +182 -0
- package/src/app/providers/translator.service.ts +24 -6
- package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +117 -0
- package/src/app/providers/tts-audio-playback-coordinator.service.ts +45 -7
- package/src/app/providers/url-preview.service.ts +82 -0
- package/src/app/providers/voice/audio.types.ts +6 -0
- package/src/app/providers/voice/voice-streaming.service.spec.ts +23 -0
- package/src/app/providers/voice/voice-streaming.service.ts +710 -0
- package/src/app/providers/voice/voice-streaming.types.ts +113 -0
- package/src/app/providers/voice/voice.service.spec.ts +203 -3
- package/src/app/providers/voice/voice.service.ts +521 -12
- package/src/app/sass/_variables.scss +1 -1
- package/src/app/sass/animations.scss +19 -1
- package/src/app/utils/globals.ts +4 -0
- package/src/app/utils/json-sources-utils.ts +27 -0
- package/src/app/utils/url-utils.ts +98 -0
- package/src/app/utils/utils-resources.ts +1 -1
- package/src/assets/i18n/en.json +26 -1
- package/src/assets/i18n/es.json +106 -101
- package/src/assets/i18n/fr.json +106 -101
- package/src/assets/i18n/it.json +106 -99
- package/src/assets/twp/index-dev.html +18 -0
- package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +14 -0
- package/src/chat21-core/providers/chat-manager.spec.ts +72 -0
- package/src/chat21-core/providers/scripts/script.service.spec.ts +12 -2
- package/src/chat21-core/utils/constants.ts +4 -0
- package/src/chat21-core/utils/utils-message.ts +23 -1
- package/src/widget-config-template.json +3 -1
- package/src/widget-config.json +28 -27
- package/test-results/.last-run.json +4 -0
- package/tests/widget-form-rich.spec.ts +67 -0
- package/tests/widget-index-dev-settings.spec.ts +52 -0
- package/tests/widget-twp-iframe.spec.ts +39 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<div class="footerContainerAlert">
|
|
2
|
+
<!-- LOGO-->
|
|
3
|
+
<div id="hiddenFooter" *ngIf="!hideTextAreaContent && poweredBy" class="fade-in-bottom" [class.hideTextReply]="hideTextReply">
|
|
4
|
+
<div class="c21-powered-by" [innerHTML]="poweredBy" (click)="managePoweredBy($event)"></div>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<!-- ALERT EMOJI -->
|
|
8
|
+
<div id="textAlert"
|
|
9
|
+
*ngIf="!hideTextAreaContent && showAlertEmoji"
|
|
10
|
+
role="alert"
|
|
11
|
+
aria-live="assertive"
|
|
12
|
+
class="fade-in-bottom"
|
|
13
|
+
[class.hideTextReply]="hideTextReply">
|
|
14
|
+
<svg aria-hidden="true" focusable="false" id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" version="1.1" viewBox="0 0 110 135">
|
|
15
|
+
<path d="M55,25.8c-23,0-41.7,18.7-41.7,41.7s18.7,41.7,41.7,41.7,41.7-18.7,41.7-41.7-18.7-41.7-41.7-41.7ZM55,91.5c-3.4,0-6.2-2.8-6.2-6.2s2.8-6.2,6.2-6.2,6.2,2.8,6.2,6.2-2.8,6.2-6.2,6.2ZM60.3,70.1c-.2,2.8-2.5,4.9-5.3,4.9s-5.1-2.2-5.3-4.9l-1.6-22.3c-.3-4,2.9-7.4,6.9-7.4s7.2,3.4,6.9,7.4l-1.6,22.3Z"/>
|
|
16
|
+
</svg>
|
|
17
|
+
<div class="alertText">{{translationMap.get('EMOJI_NOT_ELLOWED')}}</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<!-- TEXTAREA + ICONS: conv active-->
|
|
23
|
+
<div class="textarea-container" *ngIf="!hideTextAreaContent && !hideTextReply">
|
|
24
|
+
|
|
25
|
+
<div *ngIf="!isStopRec" class="icons-container">
|
|
26
|
+
<!-- ICON ATTACHMENT -->
|
|
27
|
+
<label *ngIf="showAttachmentFooterButton"
|
|
28
|
+
for="chat21-file"
|
|
29
|
+
role="button"
|
|
30
|
+
tabindex="0"
|
|
31
|
+
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
32
|
+
[attr.title]="'MAX_ATTACHMENT' | translate: { FILE_SIZE_LIMIT: file_size_limit }"
|
|
33
|
+
class="chat21-textarea-button"
|
|
34
|
+
[class.active]="!isFilePendingToUpload && !hideTextReply"
|
|
35
|
+
id="chat21-start-upload-doc"
|
|
36
|
+
(keydown.enter)="$event.preventDefault(); chat21_file.click()"
|
|
37
|
+
(keydown.space)="$event.preventDefault(); chat21_file.click()">
|
|
38
|
+
<span class="v-align-center">
|
|
39
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24px" height="24" viewBox="0 0 24 24" fill="currentColor">
|
|
40
|
+
<path d="M9.9,22.7c0,0-.1,0-.2,0-1.9.3-3.7-.2-5.2-1.4-3-2.3-3.6-6.4-1.4-9.5L9.5,2.5c.4-.5,1.1-.6,1.6-.3.5.4.6,1.1.3,1.6l-6.5,9.4c-1.4,2-1,4.8.9,6.3,1,.8,2.2,1.1,3.5.9,1.3-.2,2.4-.9,3.1-1.9l6-8.7c.9-1.2.6-3-.6-3.9-.6-.5-1.4-.6-2.1-.5-.8.1-1.4.5-1.9,1.1l-5.8,8.2c-.3.5-.2,1.1.2,1.5.2.2.5.3.8.2.3,0,.6-.2.7-.4l4.7-6.2c.4-.5,1.1-.6,1.6-.2.5.4.6,1.1.2,1.6l-4.7,6.2c-.5.7-1.4,1.2-2.3,1.3-.9.1-1.8-.2-2.5-.7-1.4-1.1-1.6-3.1-.6-4.6l5.8-8.2c.8-1.1,2-1.9,3.4-2.1,1.4-.2,2.7.1,3.8,1,2.2,1.7,2.7,4.8,1.1,7.1l-6,8.7c-1.1,1.5-2.6,2.5-4.4,2.8h0Z"/>
|
|
41
|
+
</svg>
|
|
42
|
+
</span>
|
|
43
|
+
<input
|
|
44
|
+
[attr.disabled]="(isFilePendingToUpload || isConversationArchived || hideTextReply)? true : null"
|
|
45
|
+
tabindex="-1"
|
|
46
|
+
type="file"
|
|
47
|
+
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
48
|
+
[accept]="fileUploadAccept"
|
|
49
|
+
name="chat21-file"
|
|
50
|
+
id="chat21-file"
|
|
51
|
+
#chat21_file
|
|
52
|
+
class="inputfile"
|
|
53
|
+
style="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;"
|
|
54
|
+
(change)="detectFiles($event)"/>
|
|
55
|
+
</label>
|
|
56
|
+
<!-- ICON EMOJII -->
|
|
57
|
+
<label *ngIf="showEmojiFooterButton"
|
|
58
|
+
for="chat21-emojii"
|
|
59
|
+
role="button"
|
|
60
|
+
tabindex="0"
|
|
61
|
+
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
62
|
+
[attr.aria-pressed]="isEmojiiPickerShow ? 'true' : 'false'"
|
|
63
|
+
class="chat21-textarea-button"
|
|
64
|
+
[class.active]="!isFilePendingToUpload && !hideTextReply"
|
|
65
|
+
id="chat21-emoticon-picker"
|
|
66
|
+
(click)="onEmojiiPickerClicked()"
|
|
67
|
+
(keydown.enter)="$event.preventDefault(); onEmojiiPickerClicked()"
|
|
68
|
+
(keydown.space)="$event.preventDefault(); onEmojiiPickerClicked()">
|
|
69
|
+
<span class="v-align-center">
|
|
70
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
71
|
+
<path stroke-width=".4px" stroke="currentColor" d="M12,20.8c-5.1,0-9.3-4.2-9.3-9.3S6.9,2.2,12,2.2s9.3,4.2,9.3,9.3-4.2,9.3-9.3,9.3ZM12,3.6c-4.4,0-7.9,3.6-7.9,7.9s3.6,7.9,7.9,7.9,7.9-3.6,7.9-7.9-3.6-7.9-7.9-7.9Z"/>
|
|
72
|
+
<path stroke-width=".4px" stroke="currentColor" d="M12,17.2c-2.7,0-4.3-1.9-4.6-2.3-.2-.3-.2-.7.1-1s.7-.2,1,.1c.1.2,1.4,1.8,3.5,1.8s2.2,0,3.5-1.8c.2-.3.7-.4,1-.1s.4.7.1,1c-1.7,2.2-4.1,2.3-4.6,2.3Z"/>
|
|
73
|
+
<path d="M8.7,10.9c-.9,0-1.6-.7-1.6-1.6s.7-1.6,1.6-1.6,1.6.7,1.6,1.6-.7,1.6-1.6,1.6Z"/>
|
|
74
|
+
<path d="M15.5,10.9c-.9,0-1.6-.7-1.6-1.6s.7-1.6,1.6-1.6,1.6.7,1.6,1.6-.7,1.6-1.6,1.6Z"/>
|
|
75
|
+
</svg>
|
|
76
|
+
</span>
|
|
77
|
+
</label>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div *ngIf="!isStopRec"
|
|
81
|
+
class="visible-text-area"
|
|
82
|
+
[class.hasError]="showAlertEmoji"
|
|
83
|
+
[class.disabled]="(isConversationArchived || hideTextReply)? true : null">
|
|
84
|
+
<textarea
|
|
85
|
+
[attr.disabled]="(hideTextReply)? true : null"
|
|
86
|
+
[attr.placeholder]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
87
|
+
[attr.aria-label]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
88
|
+
[attr.aria-multiline]="true"
|
|
89
|
+
[attr.aria-invalid]="showAlertEmoji ? 'true' : 'false'"
|
|
90
|
+
start-focus-chat21-conversation-component
|
|
91
|
+
inputTextArea
|
|
92
|
+
#textbox
|
|
93
|
+
rows="1"
|
|
94
|
+
id="chat21-main-message-context"
|
|
95
|
+
class='f21textarea c21-button-clean'
|
|
96
|
+
[(ngModel)]="textInputTextArea"
|
|
97
|
+
(ngModelChange)="onTextAreaChange()"
|
|
98
|
+
(keydown)="onkeydown($event)"
|
|
99
|
+
(paste)="onPaste($event)">
|
|
100
|
+
</textarea>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<!-- ICON SEND -->
|
|
104
|
+
<button type="button"
|
|
105
|
+
*ngIf="(textInputTextArea !== '' && !isStopRec) || !showAudioRecorderFooterButton"
|
|
106
|
+
class="chat21-textarea-button c21-button-clean"
|
|
107
|
+
[class.disabled]="showAlertEmoji"
|
|
108
|
+
[class.active]="textInputTextArea && !hideTextReply"
|
|
109
|
+
[attr.aria-label]="translationMap?.get('BUTTON_SEND_MESSAGE')"
|
|
110
|
+
[attr.disabled]="(showAlertEmoji || !textInputTextArea || hideTextReply) ? true : null"
|
|
111
|
+
id="chat21-button-send"
|
|
112
|
+
(click)="onSendPressed($event)">
|
|
113
|
+
<span class="v-align-center">
|
|
114
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="currentColor">
|
|
115
|
+
<path d="M1.8,20.6V3.4l20.2,8.6L1.8,20.6ZM3.9,17.3l12.6-5.4L3.9,6.6v3.7l6.4,1.6-6.4,1.6v3.8ZM3.9,17.3V6.6v10.7Z"/>
|
|
116
|
+
</svg>
|
|
117
|
+
</span>
|
|
118
|
+
</button>
|
|
119
|
+
|
|
120
|
+
<!-- ICON REC -->
|
|
121
|
+
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea"
|
|
122
|
+
class="chat21-audio-button"
|
|
123
|
+
[class.active]="isStopRec"
|
|
124
|
+
id="chat21-button-rec">
|
|
125
|
+
<chat-audio-recorder
|
|
126
|
+
[translationMap]="translationMap"
|
|
127
|
+
(startRecordingEvent)="onStartRecording()"
|
|
128
|
+
(deleteRecordingEvent)="onDeleteRecording()"
|
|
129
|
+
(endRecordingEvent)="onEndRecording($event)"
|
|
130
|
+
(sendRecordingEvent)="onSendRecording($event)"
|
|
131
|
+
[stylesMap]="stylesMap">
|
|
132
|
+
</chat-audio-recorder>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
<!-- EMOJII PICKER-->
|
|
138
|
+
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
139
|
+
class="emoji-container"
|
|
140
|
+
id="emoji-mart-container"
|
|
141
|
+
role="dialog"
|
|
142
|
+
[attr.aria-hidden]="!isEmojiiPickerShow"
|
|
143
|
+
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
144
|
+
#emoji_mart_container>
|
|
145
|
+
<emoji-mart id="emoji-mart"
|
|
146
|
+
*ngIf="showEmojiPicker"
|
|
147
|
+
class="emoji-mart"
|
|
148
|
+
[showPreview]="emojiiOptions?.showPreview"
|
|
149
|
+
[color]="stylesMap?.get('themeColor')"
|
|
150
|
+
[perLine]="emojiiOptions?.emojiPerLine"
|
|
151
|
+
[totalFrequentLines]="emojiiOptions?.totalFrequentLines"
|
|
152
|
+
[enableSearch]="emojiiOptions?.enableSearch"
|
|
153
|
+
[darkMode]="emojiiOptions?.darkMode"
|
|
154
|
+
[include]="emojiiOptions?.include"
|
|
155
|
+
(emojiSelect)="addEmoji($event)">
|
|
156
|
+
</emoji-mart>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- NEW CONV & CONTINE buttons: conv archived-->
|
|
160
|
+
<div id="floating-container" *ngIf="hideTextAreaContent" class="fade-in-bottom" start-focus-chat21-conversation-component>
|
|
161
|
+
<button type="button" aflistconv #aflistconv class="c21-button-primary" (click)="openNewConversation()" [ngStyle]="{'background-color': stylesMap.get('themeColor'), 'border-color': stylesMap.get('themeColor'), 'color': stylesMap?.get('foregroundColor')}">
|
|
162
|
+
<span class="v-align-center">
|
|
163
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
164
|
+
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"/>
|
|
165
|
+
</svg>
|
|
166
|
+
</span>
|
|
167
|
+
<span class="v-align-center c21-label-button">
|
|
168
|
+
{{translationMap?.get('LABEL_START_NW_CONV')}}
|
|
169
|
+
</span>
|
|
170
|
+
<div class="clear"></div>
|
|
171
|
+
</button>
|
|
172
|
+
</div>
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html
CHANGED
|
@@ -1,21 +1,38 @@
|
|
|
1
1
|
<div class="footerContainerAlert">
|
|
2
2
|
<!-- LOGO-->
|
|
3
3
|
<div id="hiddenFooter" *ngIf="!hideTextAreaContent && poweredBy" class="fade-in-bottom" [class.hideTextReply]="hideTextReply">
|
|
4
|
-
<div
|
|
4
|
+
<div class="c21-powered-by" [innerHTML]="poweredBy" (click)="managePoweredBy($event)"></div>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<!-- ALERT EMOJI -->
|
|
8
|
-
<div id="textAlert"
|
|
9
|
-
|
|
8
|
+
<div id="textAlert"
|
|
9
|
+
*ngIf="!hideTextAreaContent && showAlertEmoji"
|
|
10
|
+
role="alert"
|
|
11
|
+
aria-live="assertive"
|
|
12
|
+
class="fade-in-bottom"
|
|
13
|
+
[class.hideTextReply]="hideTextReply">
|
|
14
|
+
<svg aria-hidden="true" focusable="false" id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" version="1.1" viewBox="0 0 110 135">
|
|
10
15
|
<path d="M55,25.8c-23,0-41.7,18.7-41.7,41.7s18.7,41.7,41.7,41.7,41.7-18.7,41.7-41.7-18.7-41.7-41.7-41.7ZM55,91.5c-3.4,0-6.2-2.8-6.2-6.2s2.8-6.2,6.2-6.2,6.2,2.8,6.2,6.2-2.8,6.2-6.2,6.2ZM60.3,70.1c-.2,2.8-2.5,4.9-5.3,4.9s-5.1-2.2-5.3-4.9l-1.6-22.3c-.3-4,2.9-7.4,6.9-7.4s7.2,3.4,6.9,7.4l-1.6,22.3Z"/>
|
|
11
|
-
|
|
12
|
-
<div
|
|
16
|
+
</svg>
|
|
17
|
+
<div class="alertText">{{translationMap.get('EMOJI_NOT_ELLOWED')}}</div>
|
|
13
18
|
</div>
|
|
14
19
|
|
|
15
|
-
<!-- STREAM AUDIO:
|
|
16
|
-
<div id="streamAudioAlert" *ngIf="!hideTextAreaContent && isStreamAudioActive
|
|
20
|
+
<!-- STREAM AUDIO: status + waveform panel above footer -->
|
|
21
|
+
<div id="streamAudioAlert" *ngIf="!hideTextAreaContent && (isStreamAudioActive || isStreamAudioConnecting)"
|
|
22
|
+
class="fade-in-bottom stream-audio-alert" [class.hideTextReply]="hideTextReply"
|
|
23
|
+
role="status" [attr.aria-label]="voiceStatusLabel">
|
|
24
|
+
<div class="voice-status-row">
|
|
25
|
+
<span class="voice-status-dot"
|
|
26
|
+
[class.voice-status-dot--connecting]="isStreamAudioConnecting && !isStreamAudioActive"
|
|
27
|
+
[class.voice-status-dot--listening]="isStreamAudioActive && !isBotSpeaking"
|
|
28
|
+
[class.voice-status-dot--processing]="isStreamAudioActive && isBotSpeaking">
|
|
29
|
+
</span>
|
|
30
|
+
<span class="voice-status-text">{{ voiceStatusLabel }}</span>
|
|
31
|
+
<span class="voice-transcript-text" *ngIf="lastVoiceTranscript">{{ lastVoiceTranscript }}</span>
|
|
32
|
+
</div>
|
|
17
33
|
<chat-stream-audio-spectrum
|
|
18
|
-
|
|
34
|
+
mode="alert"
|
|
35
|
+
[volume]="isBotSpeaking ? 0 : currentVolume"
|
|
19
36
|
[accentColor]="stylesMap?.get('themeColor')">
|
|
20
37
|
</chat-stream-audio-spectrum>
|
|
21
38
|
</div>
|
|
@@ -24,23 +41,31 @@
|
|
|
24
41
|
|
|
25
42
|
<div class="textarea-container-wrapper" *ngIf="!hideTextAreaContent && !hideTextReply">
|
|
26
43
|
<!-- TEXTAREA + ICONS: conv active-->
|
|
27
|
-
<div class="textarea-container">
|
|
44
|
+
<div class="textarea-container" [class.voice-mode]="isStreamAudioActive || isStreamAudioConnecting">
|
|
28
45
|
|
|
29
|
-
<div *ngIf="!isStopRec" class="icons-container">
|
|
46
|
+
<div *ngIf="!isStopRec && !(isStreamAudioActive || isStreamAudioConnecting)" class="icons-container">
|
|
30
47
|
<!-- ICON ATTACHMENT -->
|
|
31
|
-
<label *ngIf="showAttachmentFooterButton"
|
|
48
|
+
<label *ngIf="showAttachmentFooterButton"
|
|
49
|
+
for="chat21-file"
|
|
50
|
+
role="button"
|
|
51
|
+
tabindex="0"
|
|
52
|
+
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
53
|
+
[attr.title]="'MAX_ATTACHMENT' | translate: { FILE_SIZE_LIMIT: file_size_limit }"
|
|
54
|
+
class="chat21-textarea-button"
|
|
55
|
+
[class.active]="!isFilePendingToUpload && !hideTextReply"
|
|
56
|
+
id="chat21-start-upload-doc"
|
|
57
|
+
(keydown.enter)="$event.preventDefault(); chat21_file.click()"
|
|
58
|
+
(keydown.space)="$event.preventDefault(); chat21_file.click()">
|
|
32
59
|
<span class="v-align-center">
|
|
33
|
-
<svg
|
|
60
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24px" height="24" viewBox="0 0 24 24" fill="currentColor">
|
|
34
61
|
<path d="M9.9,22.7c0,0-.1,0-.2,0-1.9.3-3.7-.2-5.2-1.4-3-2.3-3.6-6.4-1.4-9.5L9.5,2.5c.4-.5,1.1-.6,1.6-.3.5.4.6,1.1.3,1.6l-6.5,9.4c-1.4,2-1,4.8.9,6.3,1,.8,2.2,1.1,3.5.9,1.3-.2,2.4-.9,3.1-1.9l6-8.7c.9-1.2.6-3-.6-3.9-.6-.5-1.4-.6-2.1-.5-.8.1-1.4.5-1.9,1.1l-5.8,8.2c-.3.5-.2,1.1.2,1.5.2.2.5.3.8.2.3,0,.6-.2.7-.4l4.7-6.2c.4-.5,1.1-.6,1.6-.2.5.4.6,1.1.2,1.6l-4.7,6.2c-.5.7-1.4,1.2-2.3,1.3-.9.1-1.8-.2-2.5-.7-1.4-1.1-1.6-3.1-.6-4.6l5.8-8.2c.8-1.1,2-1.9,3.4-2.1,1.4-.2,2.7.1,3.8,1,2.2,1.7,2.7,4.8,1.1,7.1l-6,8.7c-1.1,1.5-2.6,2.5-4.4,2.8h0Z"/>
|
|
35
|
-
|
|
36
|
-
</svg>
|
|
37
|
-
|
|
62
|
+
</svg>
|
|
38
63
|
</span>
|
|
39
64
|
<input
|
|
40
|
-
[attr.disabled]
|
|
41
|
-
tabindex="
|
|
65
|
+
[attr.disabled]="(isFilePendingToUpload || isConversationArchived || hideTextReply)? true : null"
|
|
66
|
+
tabindex="-1"
|
|
42
67
|
type="file"
|
|
43
|
-
aria-label="
|
|
68
|
+
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
44
69
|
[accept]="fileUploadAccept"
|
|
45
70
|
name="chat21-file"
|
|
46
71
|
id="chat21-file"
|
|
@@ -50,19 +75,24 @@
|
|
|
50
75
|
(change)="detectFiles($event)"/>
|
|
51
76
|
</label>
|
|
52
77
|
<!-- ICON EMOJII -->
|
|
53
|
-
<label *ngIf="showEmojiFooterButton"
|
|
78
|
+
<label *ngIf="showEmojiFooterButton"
|
|
79
|
+
for="chat21-emojii"
|
|
80
|
+
role="button"
|
|
81
|
+
tabindex="0"
|
|
82
|
+
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
83
|
+
[attr.aria-pressed]="isEmojiiPickerShow ? 'true' : 'false'"
|
|
84
|
+
class="chat21-textarea-button"
|
|
85
|
+
[class.active]="!isFilePendingToUpload && !hideTextReply"
|
|
86
|
+
id="chat21-emoticon-picker"
|
|
87
|
+
(click)="onEmojiiPickerClicked()"
|
|
88
|
+
(keydown.enter)="$event.preventDefault(); onEmojiiPickerClicked()"
|
|
89
|
+
(keydown.space)="$event.preventDefault(); onEmojiiPickerClicked()">
|
|
54
90
|
<span class="v-align-center">
|
|
55
91
|
<svg role="img" aria-labelledby="altIconTitle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
56
92
|
<path stroke-width=".4px" stroke="currentColor" d="M12,20.8c-5.1,0-9.3-4.2-9.3-9.3S6.9,2.2,12,2.2s9.3,4.2,9.3,9.3-4.2,9.3-9.3,9.3ZM12,3.6c-4.4,0-7.9,3.6-7.9,7.9s3.6,7.9,7.9,7.9,7.9-3.6,7.9-7.9-3.6-7.9-7.9-7.9Z"/>
|
|
57
93
|
<path stroke-width=".4px" stroke="currentColor" d="M12,17.2c-2.7,0-4.3-1.9-4.6-2.3-.2-.3-.2-.7.1-1s.7-.2,1,.1c.1.2,1.4,1.8,3.5,1.8s2.2,0,3.5-1.8c.2-.3.7-.4,1-.1s.4.7.1,1c-1.7,2.2-4.1,2.3-4.6,2.3Z"/>
|
|
58
94
|
<path d="M8.7,10.9c-.9,0-1.6-.7-1.6-1.6s.7-1.6,1.6-1.6,1.6.7,1.6,1.6-.7,1.6-1.6,1.6Z"/>
|
|
59
95
|
<path d="M15.5,10.9c-.9,0-1.6-.7-1.6-1.6s.7-1.6,1.6-1.6,1.6.7,1.6,1.6-.7,1.6-1.6,1.6Z"/>
|
|
60
|
-
<title id="altIconTitle">{{ translationMap?.get('EMOJI') }}</title>
|
|
61
|
-
|
|
62
|
-
<!-- <path d="M0,0H20.57V20.57H0V0Z" fill="none"/>
|
|
63
|
-
<circle cx="15.02" cy="9.86" r="1.29"/>
|
|
64
|
-
<circle cx="9.02" cy="9.86" r="1.29"/>
|
|
65
|
-
<path d="M12.02,15.43c-1.27,0-2.36-.69-2.96-1.71h-1.43c.69,1.76,2.39,3,4.39,3s3.7-1.24,4.39-3h-1.43c-.6,1.02-1.69,1.71-2.96,1.71Zm0-12C7.28,3.43,3.45,7.27,3.45,12s3.83,8.57,8.56,8.57,8.58-3.84,8.58-8.57S16.75,3.43,12.01,3.43Zm0,15.43c-3.79,0-6.86-3.07-6.86-6.86s3.07-6.86,6.86-6.86,6.86,3.07,6.86,6.86-3.07,6.86-6.86,6.86Z"/> -->
|
|
66
96
|
</svg>
|
|
67
97
|
</span>
|
|
68
98
|
</label>
|
|
@@ -71,22 +101,35 @@
|
|
|
71
101
|
|
|
72
102
|
|
|
73
103
|
|
|
74
|
-
<div *ngIf="!isStopRec"
|
|
75
|
-
|
|
104
|
+
<div *ngIf="!isStopRec"
|
|
105
|
+
class="visible-text-area"
|
|
106
|
+
[class.stream-active]="isStreamAudioActive || isStreamAudioConnecting"
|
|
107
|
+
[class.hasError]="showAlertEmoji"
|
|
108
|
+
[class.disabled]="(isConversationArchived || hideTextReply)? true : null">
|
|
109
|
+
<!-- Voice mode: inline status chip -->
|
|
110
|
+
<div class="voice-inline-status" *ngIf="isStreamAudioActive || isStreamAudioConnecting" role="status" aria-live="polite">
|
|
111
|
+
<span class="voice-inline-dot"
|
|
112
|
+
[class.voice-inline-dot--connecting]="isStreamAudioConnecting && !isStreamAudioActive"
|
|
113
|
+
[class.voice-inline-dot--processing]="isStreamAudioActive && isBotSpeaking">
|
|
114
|
+
</span>
|
|
115
|
+
<span class="voice-inline-label">{{ voiceStatusLabel }}</span>
|
|
116
|
+
</div>
|
|
117
|
+
<!-- Normal mode: textarea -->
|
|
76
118
|
<textarea
|
|
77
|
-
|
|
78
|
-
[attr.
|
|
119
|
+
*ngIf="!(isStreamAudioActive || isStreamAudioConnecting)"
|
|
120
|
+
[attr.disabled]="(hideTextReply)? true : null"
|
|
121
|
+
[attr.placeholder]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
122
|
+
[attr.aria-label]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
123
|
+
[attr.aria-multiline]="true"
|
|
124
|
+
[attr.aria-invalid]="showAlertEmoji ? 'true' : 'false'"
|
|
79
125
|
start-focus-chat21-conversation-component
|
|
80
126
|
inputTextArea
|
|
81
127
|
#textbox
|
|
82
|
-
tabindex="1501"
|
|
83
|
-
aria-labelledby="altTextArea"
|
|
84
128
|
rows="1"
|
|
85
129
|
id="chat21-main-message-context"
|
|
86
130
|
class='f21textarea c21-button-clean'
|
|
87
131
|
[(ngModel)]="textInputTextArea"
|
|
88
132
|
(ngModelChange)="onTextAreaChange()"
|
|
89
|
-
(keypress)="onkeypress($event)"
|
|
90
133
|
(keydown)="onkeydown($event)"
|
|
91
134
|
(paste)="onPaste($event)">
|
|
92
135
|
</textarea>
|
|
@@ -94,17 +137,29 @@
|
|
|
94
137
|
</div>
|
|
95
138
|
|
|
96
139
|
<!-- ICON SEND -->
|
|
97
|
-
<
|
|
140
|
+
<button type="button"
|
|
141
|
+
*ngIf="(textInputTextArea !== '' && !isStopRec) || !showAudioRecorderFooterButton"
|
|
142
|
+
class="chat21-textarea-button c21-button-clean"
|
|
143
|
+
[class.disabled]="showAlertEmoji"
|
|
144
|
+
[class.active]="textInputTextArea && !hideTextReply"
|
|
145
|
+
[attr.aria-label]="translationMap?.get('BUTTON_SEND_MESSAGE')"
|
|
146
|
+
[attr.disabled]="(showAlertEmoji || !textInputTextArea || hideTextReply) ? true : null"
|
|
147
|
+
id="chat21-button-send"
|
|
148
|
+
(click)="onSendPressed($event)">
|
|
98
149
|
<span class="v-align-center">
|
|
99
|
-
<svg
|
|
150
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="currentColor">
|
|
100
151
|
<path d="M1.8,20.6V3.4l20.2,8.6L1.8,20.6ZM3.9,17.3l12.6-5.4L3.9,6.6v3.7l6.4,1.6-6.4,1.6v3.8ZM3.9,17.3V6.6v10.7Z"/>
|
|
101
152
|
</svg>
|
|
102
153
|
</span>
|
|
103
|
-
</
|
|
154
|
+
</button>
|
|
104
155
|
|
|
105
156
|
<!-- ICON REC -->
|
|
106
|
-
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea"
|
|
157
|
+
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea"
|
|
158
|
+
class="chat21-audio-button"
|
|
159
|
+
[class.active]="isStopRec"
|
|
160
|
+
id="chat21-button-rec">
|
|
107
161
|
<chat-audio-recorder
|
|
162
|
+
[translationMap]="translationMap"
|
|
108
163
|
(startRecordingEvent)="onStartRecording()"
|
|
109
164
|
(deleteRecordingEvent)="onDeleteRecording()"
|
|
110
165
|
(endRecordingEvent)="onEndRecording($event)"
|
|
@@ -115,22 +170,17 @@
|
|
|
115
170
|
|
|
116
171
|
<!-- ICON STREAM / CHIUDI STREAM (cerchio, icone bianche su iconColor) -->
|
|
117
172
|
<div *ngIf="showAudioStreamFooterButton" tabindex="-1" id="chat21-button-stream"
|
|
118
|
-
class="chat21-textarea-button chat21-stream-button"
|
|
119
|
-
|
|
173
|
+
class="chat21-textarea-button chat21-stream-button"
|
|
174
|
+
[class.active]="isStreamAudioActive || isStreamAudioConnecting || (!textInputTextArea && !hideTextReply)"
|
|
175
|
+
[class.chat21-stream-button--expanded]="isStreamAudioActive || isStreamAudioConnecting"
|
|
176
|
+
(click)="onStreamPressed($event)" [attr.aria-label]="(isStreamAudioActive || isStreamAudioConnecting) ? (translationMap?.get('CLOSE') || 'Chiudi stream') : (translationMap?.get('STREAM_AUDIO') || 'Stream audio')"
|
|
120
177
|
[ngStyle]="{ 'background-color': stylesMap?.get('iconColor') || stylesMap?.get('themeColor') }">
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</svg>
|
|
128
|
-
</span>
|
|
129
|
-
<span class="v-align-center chat21-stream-button__icon" *ngIf="isStreamAudioActive">
|
|
130
|
-
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#ffffff" aria-hidden="true">
|
|
131
|
-
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/>
|
|
132
|
-
</svg>
|
|
133
|
-
</span>
|
|
178
|
+
<chat-stream-audio-spectrum
|
|
179
|
+
mode="button"
|
|
180
|
+
[active]="isStreamAudioActive || isStreamAudioConnecting"
|
|
181
|
+
[volume]="currentVolume"
|
|
182
|
+
[translationMap]="translationMap">
|
|
183
|
+
</chat-stream-audio-spectrum>
|
|
134
184
|
</div>
|
|
135
185
|
</div>
|
|
136
186
|
|
|
@@ -160,9 +210,15 @@
|
|
|
160
210
|
|
|
161
211
|
|
|
162
212
|
<!-- EMOJII PICKER-->
|
|
163
|
-
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
213
|
+
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
214
|
+
class="emoji-container"
|
|
215
|
+
id="emoji-mart-container"
|
|
216
|
+
role="dialog"
|
|
217
|
+
[attr.aria-hidden]="!isEmojiiPickerShow"
|
|
218
|
+
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
219
|
+
#emoji_mart_container>
|
|
164
220
|
<!-- <ng-container #emojii_container></ng-container> -->
|
|
165
|
-
|
|
221
|
+
<emoji-mart id="emoji-mart"
|
|
166
222
|
*ngIf="showEmojiPicker"
|
|
167
223
|
class="emoji-mart"
|
|
168
224
|
[showPreview]="emojiiOptions?.showPreview"
|
|
@@ -178,10 +234,10 @@
|
|
|
178
234
|
|
|
179
235
|
<!-- NEW CONV & CONTINE buttons: conv archived-->
|
|
180
236
|
<div id="floating-container" *ngIf="hideTextAreaContent" class="fade-in-bottom" start-focus-chat21-conversation-component>
|
|
181
|
-
<button
|
|
237
|
+
<button type="button" aflistconv #aflistconv class="c21-button-primary" (click)="openNewConversation()" [ngStyle]="{'background-color': stylesMap.get('themeColor'), 'border-color': stylesMap.get('themeColor'), 'color': stylesMap?.get('foregroundColor')}">
|
|
182
238
|
<span class="v-align-center">
|
|
183
|
-
<svg
|
|
184
|
-
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"
|
|
239
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
240
|
+
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"/>
|
|
185
241
|
</svg>
|
|
186
242
|
</span>
|
|
187
243
|
<span class="v-align-center c21-label-button">
|
|
@@ -189,10 +245,4 @@
|
|
|
189
245
|
</span>
|
|
190
246
|
<div class="clear"></div>
|
|
191
247
|
</button>
|
|
192
|
-
<!-- <button *ngIf="showContinueConversationButton" tabindex="1040" class="c21-button-primary" (click)="onContinueConversation()" [ngStyle]="{'background-color': stylesMap.get('themeColor'), 'border-color': stylesMap.get('themeColor'), 'color': stylesMap?.get('foregroundColor')}">
|
|
193
|
-
<span class="v-align-center c21-label-button">
|
|
194
|
-
{{translationMap?.get('CONTINUE')}}
|
|
195
|
-
</span>
|
|
196
|
-
<div class="clear"></div>
|
|
197
|
-
</button> -->
|
|
198
248
|
</div>
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
justify-content: space-between;
|
|
10
10
|
gap: 8px;
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
.close-chat-container{
|
|
13
14
|
display: flex;
|
|
14
15
|
flex-direction: column;
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
|
|
33
34
|
.visible-text-area {
|
|
34
35
|
width: 70%;
|
|
36
|
+
transition: width 220ms ease;
|
|
35
37
|
// margin: 12px 0px;
|
|
36
38
|
pointer-events: auto;
|
|
37
39
|
border-radius: var(--chat-footer-border-radius);
|
|
@@ -42,6 +44,15 @@
|
|
|
42
44
|
&.hasError{
|
|
43
45
|
box-shadow: 0 0 0 1px var(--chat-footer-border-color-error) inset;
|
|
44
46
|
}
|
|
47
|
+
|
|
48
|
+
&.stream-active {
|
|
49
|
+
flex: 1;
|
|
50
|
+
width: auto;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
45
56
|
}
|
|
46
57
|
|
|
47
58
|
.chat21-textarea-button {
|
|
@@ -90,9 +101,14 @@
|
|
|
90
101
|
height: 36px;
|
|
91
102
|
min-width: 36px;
|
|
92
103
|
border-radius: 50%;
|
|
104
|
+
overflow: hidden;
|
|
93
105
|
box-sizing: border-box;
|
|
94
106
|
flex-shrink: 0;
|
|
95
107
|
color: #ffffff;
|
|
108
|
+
transition:
|
|
109
|
+
min-width 220ms ease,
|
|
110
|
+
border-radius 180ms ease,
|
|
111
|
+
padding 180ms ease;
|
|
96
112
|
|
|
97
113
|
.chat21-stream-button__icon svg {
|
|
98
114
|
width: 20px;
|
|
@@ -106,6 +122,19 @@
|
|
|
106
122
|
background: rgba(255, 255, 255, 0.2) !important;
|
|
107
123
|
border-radius: 50%;
|
|
108
124
|
}
|
|
125
|
+
|
|
126
|
+
&.chat21-stream-button--expanded {
|
|
127
|
+
min-width: 120px;
|
|
128
|
+
border-radius: 999px;
|
|
129
|
+
padding: 0 14px;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
|
|
132
|
+
// stop the circle-hover background from looking odd on pill
|
|
133
|
+
&.chat21-textarea-button span svg:hover {
|
|
134
|
+
background: transparent !important;
|
|
135
|
+
border-radius: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
109
138
|
}
|
|
110
139
|
|
|
111
140
|
textarea,
|
|
@@ -393,13 +422,13 @@ textarea:active{
|
|
|
393
422
|
#streamAudioAlert {
|
|
394
423
|
bottom: 100%;
|
|
395
424
|
width: 100%;
|
|
396
|
-
|
|
425
|
+
height: var(--chat-footer-stream-button-height);
|
|
397
426
|
display: flex;
|
|
398
|
-
|
|
427
|
+
flex-direction: column;
|
|
399
428
|
justify-content: center;
|
|
400
429
|
position: absolute;
|
|
401
|
-
padding:
|
|
402
|
-
|
|
430
|
+
padding: 8px 16px;
|
|
431
|
+
overflow: hidden;
|
|
403
432
|
background-color: color-mix(in srgb, var(--content-background-color) 34%, transparent);
|
|
404
433
|
backdrop-filter: blur(20px) saturate(1.2);
|
|
405
434
|
-webkit-backdrop-filter: blur(20px) saturate(1.2);
|
|
@@ -407,10 +436,61 @@ textarea:active{
|
|
|
407
436
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
408
437
|
0 1px 0 rgba(0, 0, 0, 0.05);
|
|
409
438
|
|
|
439
|
+
.voice-status-row {
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
442
|
+
gap: 8px;
|
|
443
|
+
margin-bottom: 6px;
|
|
444
|
+
min-height: 18px;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.voice-status-dot {
|
|
448
|
+
width: 8px;
|
|
449
|
+
height: 8px;
|
|
450
|
+
border-radius: 50%;
|
|
451
|
+
flex-shrink: 0;
|
|
452
|
+
background-color: #b0b0b0;
|
|
453
|
+
animation: pulse-dot 2s ease-in-out infinite;
|
|
454
|
+
|
|
455
|
+
&--connecting {
|
|
456
|
+
background-color: #f59e0b;
|
|
457
|
+
}
|
|
458
|
+
&--listening {
|
|
459
|
+
background-color: #22c55e;
|
|
460
|
+
}
|
|
461
|
+
&--processing {
|
|
462
|
+
background-color: #3b82f6;
|
|
463
|
+
animation: pulse-dot 1s ease-in-out infinite;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.voice-status-text {
|
|
468
|
+
font-size: 12px;
|
|
469
|
+
font-weight: 600;
|
|
470
|
+
letter-spacing: 0.02em;
|
|
471
|
+
color: var(--chat-footer-color);
|
|
472
|
+
white-space: nowrap;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.voice-transcript-text {
|
|
476
|
+
font-size: 11px;
|
|
477
|
+
font-style: italic;
|
|
478
|
+
color: var(--dark-gray);
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
overflow: hidden;
|
|
481
|
+
text-overflow: ellipsis;
|
|
482
|
+
flex: 1;
|
|
483
|
+
min-width: 0;
|
|
484
|
+
|
|
485
|
+
&::before {
|
|
486
|
+
content: '· ';
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
410
490
|
&.hideTextReply {
|
|
411
491
|
position: unset;
|
|
412
|
-
|
|
413
|
-
padding: 16px
|
|
492
|
+
height: auto;
|
|
493
|
+
padding: 16px;
|
|
414
494
|
box-shadow: none;
|
|
415
495
|
backdrop-filter: none;
|
|
416
496
|
-webkit-backdrop-filter: none;
|
|
@@ -497,4 +577,50 @@ textarea:active{
|
|
|
497
577
|
&.inactive {
|
|
498
578
|
bottom: -52px;
|
|
499
579
|
}
|
|
500
|
-
}
|
|
580
|
+
}
|
|
581
|
+
.voice-preview {
|
|
582
|
+
font-style: italic;
|
|
583
|
+
opacity: 0.65;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// Voice mode: footer row layout when voice UI is active
|
|
587
|
+
.textarea-container.voice-mode {
|
|
588
|
+
justify-content: flex-end;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// Inline voice status chip (inside .visible-text-area when stream active)
|
|
592
|
+
.voice-inline-status {
|
|
593
|
+
display: flex;
|
|
594
|
+
align-items: center;
|
|
595
|
+
gap: 8px;
|
|
596
|
+
padding: 0 4px;
|
|
597
|
+
|
|
598
|
+
.voice-inline-dot {
|
|
599
|
+
width: 8px;
|
|
600
|
+
height: 8px;
|
|
601
|
+
border-radius: 50%;
|
|
602
|
+
flex-shrink: 0;
|
|
603
|
+
background-color: #22c55e;
|
|
604
|
+
animation: pulse-dot 2s ease-in-out infinite;
|
|
605
|
+
|
|
606
|
+
&--connecting {
|
|
607
|
+
background-color: #f59e0b;
|
|
608
|
+
}
|
|
609
|
+
&--processing {
|
|
610
|
+
background-color: #3b82f6;
|
|
611
|
+
animation: pulse-dot 1s ease-in-out infinite;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.voice-inline-label {
|
|
616
|
+
font-size: 12px;
|
|
617
|
+
font-weight: 500;
|
|
618
|
+
color: var(--dark-gray);
|
|
619
|
+
white-space: nowrap;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
@keyframes pulse-dot {
|
|
624
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
625
|
+
50% { opacity: 0.45; transform: scale(0.75); }
|
|
626
|
+
}
|