@chat21/chat21-web-widget 5.1.34 → 5.2.1
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/CHANGELOG.md +25 -0
- package/Dockerfile +4 -5
- package/README.md +1 -1
- package/angular.json +21 -3
- package/docs/ACCESSIBILITY-STATEMENT.md +388 -0
- package/docs/TILEDESK_WIDGET_ACCESSIBILITY_ALIGNMENT.md +60 -0
- package/docs/TILEDESK_WIDGET_ACCESSIBILITY_STATEMENT_COMPLETE.md +386 -0
- package/env.sample +3 -2
- package/mocks/voice-websocket-mock/server.cjs +245 -0
- package/package.json +10 -3
- 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 +13 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.html +25 -11
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +38 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +644 -75
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +70 -2
- 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 +23 -10
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +18 -0
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +241 -149
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +8 -5
- 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.html +203 -110
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +212 -1
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +458 -78
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +288 -76
- 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 +46 -0
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +83 -0
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +192 -0
- 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 +35 -3
- 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 -5
- package/src/app/component/message/audio-sync/audio-sync.component.html +18 -0
- package/src/app/component/message/audio-sync/audio-sync.component.scss +65 -0
- package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +112 -0
- package/src/app/component/message/audio-sync/audio-sync.component.ts +714 -0
- 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 +41 -51
- 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 +147 -57
- package/src/app/component/message/bubble-message/bubble-message.component.ts +95 -13
- 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 +6 -5
- package/src/app/component/message/json-sources/json-sources.component.scss +26 -18
- package/src/app/component/message/json-sources/json-sources.component.ts +41 -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/pipe/marked.pipe.ts +51 -41
- 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 +40 -2
- package/src/app/providers/json-sources-parser.service.ts +13 -1
- package/src/app/providers/translator.service.ts +24 -7
- package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +116 -0
- package/src/app/providers/tts-audio-playback-coordinator.service.ts +122 -0
- package/src/app/providers/voice/STT&TTS/openai-voice.config.ts +12 -0
- package/src/app/providers/voice/STT&TTS/openai-voice.provider.ts +156 -0
- package/src/app/providers/voice/STT&TTS/speech-provider.abstract.ts +39 -0
- package/src/app/providers/voice/audio.types.ts +40 -0
- package/src/app/providers/voice/vad.service.spec.ts +28 -0
- package/src/app/providers/voice/vad.service.ts +70 -0
- package/src/app/providers/voice/voice-streaming.service.spec.ts +23 -0
- package/src/app/providers/voice/voice-streaming.service.ts +702 -0
- package/src/app/providers/voice/voice-streaming.types.ts +112 -0
- package/src/app/providers/voice/voice.service.spec.ts +227 -0
- package/src/app/providers/voice/voice.service.ts +969 -0
- package/src/app/sass/_variables.scss +2 -0
- package/src/app/sass/animations.scss +19 -1
- package/src/app/shims/onnxruntime-web-wasm.ts +4 -0
- package/src/app/utils/globals.ts +14 -0
- package/src/app/utils/utils-resources.ts +1 -1
- package/src/assets/i18n/en.json +128 -100
- package/src/assets/i18n/es.json +128 -100
- package/src/assets/i18n/fr.json +128 -100
- package/src/assets/i18n/it.json +128 -98
- package/src/assets/onnx/ort-wasm-simd-threaded.mjs +59 -0
- package/src/assets/onnx/ort-wasm-simd-threaded.wasm +0 -0
- package/src/assets/sounds/keyboard.mp3 +0 -0
- package/src/assets/vad/silero_vad_legacy.onnx +0 -0
- package/src/assets/vad/vad.worklet.bundle.min.js +1 -0
- package/src/chat21-core/models/message.ts +2 -1
- package/src/chat21-core/providers/chat-manager.spec.ts +72 -0
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +3 -2
- package/src/chat21-core/providers/firebase/firebase-init-service.ts +5 -5
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +12 -0
- package/src/chat21-core/providers/scripts/script.service.spec.ts +12 -2
- package/src/chat21-core/utils/utils-message.ts +7 -0
- package/src/widget-config-template.json +3 -1
- package/src/widget-config.json +28 -27
- 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
- package/tsconfig.json +5 -0
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html
CHANGED
|
@@ -1,145 +1,238 @@
|
|
|
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>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
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>
|
|
33
|
+
<chat-stream-audio-spectrum
|
|
34
|
+
mode="alert"
|
|
35
|
+
[volume]="isBotSpeaking ? 0 : currentVolume"
|
|
36
|
+
[accentColor]="stylesMap?.get('themeColor')">
|
|
37
|
+
</chat-stream-audio-spectrum>
|
|
13
38
|
</div>
|
|
14
39
|
|
|
15
40
|
</div>
|
|
16
41
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
<div class="textarea-container-wrapper" *ngIf="!hideTextAreaContent && !hideTextReply">
|
|
43
|
+
<!-- TEXTAREA + ICONS: conv active-->
|
|
44
|
+
<div class="textarea-container" [class.voice-mode]="isStreamAudioActive || isStreamAudioConnecting">
|
|
45
|
+
|
|
46
|
+
<div *ngIf="!isStopRec && !(isStreamAudioActive || isStreamAudioConnecting)" class="icons-container">
|
|
47
|
+
<!-- ICON ATTACHMENT -->
|
|
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()">
|
|
59
|
+
<span class="v-align-center">
|
|
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">
|
|
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"/>
|
|
62
|
+
</svg>
|
|
63
|
+
</span>
|
|
64
|
+
<input
|
|
65
|
+
[attr.disabled] = "(isFilePendingToUpload || isConversationArchived || hideTextReply)? true : null"
|
|
66
|
+
tabindex="-1"
|
|
67
|
+
type="file"
|
|
68
|
+
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
69
|
+
[accept]="fileUploadAccept"
|
|
70
|
+
name="chat21-file"
|
|
71
|
+
id="chat21-file"
|
|
72
|
+
#chat21_file
|
|
73
|
+
class="inputfile"
|
|
74
|
+
[ngStyle]="{'display': 'block', height:'1px', width:'1px', overflow: 'hidden' }"
|
|
75
|
+
(change)="detectFiles($event)"/>
|
|
76
|
+
</label>
|
|
77
|
+
<!-- ICON EMOJII -->
|
|
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()">
|
|
90
|
+
<span class="v-align-center">
|
|
91
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
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"/>
|
|
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"/>
|
|
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"/>
|
|
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"/>
|
|
96
|
+
</svg>
|
|
97
|
+
</span>
|
|
98
|
+
</label>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
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 -->
|
|
118
|
+
<textarea
|
|
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'"
|
|
125
|
+
start-focus-chat21-conversation-component
|
|
126
|
+
inputTextArea
|
|
127
|
+
#textbox
|
|
128
|
+
rows="1"
|
|
129
|
+
id="chat21-main-message-context"
|
|
130
|
+
class='f21textarea c21-button-clean'
|
|
131
|
+
[(ngModel)]="textInputTextArea"
|
|
132
|
+
(ngModelChange)="onTextAreaChange()"
|
|
133
|
+
(keydown)="onkeydown($event)"
|
|
134
|
+
(paste)="onPaste($event)">
|
|
135
|
+
</textarea>
|
|
136
|
+
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<!-- ICON SEND -->
|
|
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)">
|
|
45
149
|
<span class="v-align-center">
|
|
46
|
-
<svg
|
|
47
|
-
<path
|
|
48
|
-
<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"/>
|
|
49
|
-
<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"/>
|
|
50
|
-
<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"/>
|
|
51
|
-
<title id="altIconTitle">{{ translationMap?.get('EMOJI') }}</title>
|
|
52
|
-
|
|
53
|
-
<!-- <path d="M0,0H20.57V20.57H0V0Z" fill="none"/>
|
|
54
|
-
<circle cx="15.02" cy="9.86" r="1.29"/>
|
|
55
|
-
<circle cx="9.02" cy="9.86" r="1.29"/>
|
|
56
|
-
<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"/> -->
|
|
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">
|
|
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"/>
|
|
57
152
|
</svg>
|
|
58
153
|
</span>
|
|
59
|
-
</
|
|
60
|
-
</div>
|
|
154
|
+
</button>
|
|
61
155
|
|
|
156
|
+
<!-- ICON REC -->
|
|
157
|
+
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea && !isStreamAudioActive && !isStreamAudioConnecting" tabindex="-1" class="chat21-audio-button" [class.active]="isStopRec" id="chat21-button-rec">
|
|
158
|
+
<chat-audio-recorder
|
|
159
|
+
(startRecordingEvent)="onStartRecording()"
|
|
160
|
+
(deleteRecordingEvent)="onDeleteRecording()"
|
|
161
|
+
(endRecordingEvent)="onEndRecording($event)"
|
|
162
|
+
(sendRecordingEvent)="onSendRecording($event)"
|
|
163
|
+
[stylesMap]="stylesMap">
|
|
164
|
+
</chat-audio-recorder>
|
|
165
|
+
</div>
|
|
62
166
|
|
|
167
|
+
<!-- ICON STREAM / CHIUDI STREAM (cerchio, icone bianche su iconColor) -->
|
|
168
|
+
<div *ngIf="showAudioStreamFooterButton" tabindex="-1" id="chat21-button-stream"
|
|
169
|
+
class="chat21-textarea-button chat21-stream-button"
|
|
170
|
+
[class.active]="isStreamAudioActive || isStreamAudioConnecting || (!textInputTextArea && !hideTextReply)"
|
|
171
|
+
[class.chat21-stream-button--expanded]="isStreamAudioActive || isStreamAudioConnecting"
|
|
172
|
+
(click)="onStreamPressed($event)" [attr.aria-label]="(isStreamAudioActive || isStreamAudioConnecting) ? (translationMap?.get('CLOSE') || 'Chiudi stream') : (translationMap?.get('STREAM_AUDIO') || 'Stream audio')">
|
|
173
|
+
<chat-stream-audio-spectrum
|
|
174
|
+
mode="button"
|
|
175
|
+
[active]="isStreamAudioActive || isStreamAudioConnecting"
|
|
176
|
+
[volume]="currentVolume"
|
|
177
|
+
[translationMap]="translationMap">
|
|
178
|
+
</chat-stream-audio-spectrum>
|
|
179
|
+
</div>
|
|
63
180
|
|
|
181
|
+
<div class="close-chat-container" *ngIf="closeChatInConversation">
|
|
182
|
+
<button type="button" aflistconv #aflistconv class="c21-button-primary c21-close" (click)="onCloseChat($event)" [ngStyle]="{'background-color': stylesMap.get('themeColor'), 'border-color': stylesMap.get('themeColor'), 'color': stylesMap?.get('foregroundColor')}">
|
|
183
|
+
<span class="v-align-center">
|
|
184
|
+
<svg [ngStyle]="{'stroke': stylesMap?.get('foregroundColor'), 'fill': stylesMap?.get('foregroundColor') }" role="img" id="archive" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg"
|
|
185
|
+
width="15px" height="15px" viewBox="0 0 512 512">
|
|
186
|
+
<path d="M80 152v256a40.12 40.12 0 0040 40h272a40.12 40.12 0 0040-40V152" stroke-linecap="round" stroke-linejoin="round" stroke-width="50px" fill="none"></path>
|
|
187
|
+
<rect x="48" y="64" width="416" height="80" rx="28" ry="28" stroke-linejoin="round" stroke-width="50px" fill="none" ></rect>
|
|
188
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M320 304l-64 64-64-64M256 345.89V224" stroke-width="50px" fill="none"></path>
|
|
189
|
+
<title id="altIconTitle">{{ translationMap?.get('CLOSE_CHAT') }}</title>
|
|
190
|
+
</svg>
|
|
191
|
+
</span>
|
|
192
|
+
<span class="v-align-center c21-label-button">
|
|
193
|
+
{{translationMap?.get('CLOSE_CHAT')}}
|
|
194
|
+
</span>
|
|
195
|
+
<div class="clear"></div>
|
|
196
|
+
</button>
|
|
197
|
+
</div>
|
|
64
198
|
|
|
65
|
-
<div *ngIf="!isStopRec" class="visible-text-area" [class.hasError]="showAlertEmoji" [class.disabled] = "( isConversationArchived || hideTextReply)? true : null">
|
|
66
|
-
<!-- isFilePendingToUpload || -->
|
|
67
|
-
<textarea
|
|
68
|
-
[attr.disabled] = "(hideTextReply)? true : null"
|
|
69
|
-
[attr.placeholder] ="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
70
|
-
start-focus-chat21-conversation-component
|
|
71
|
-
inputTextArea
|
|
72
|
-
#textbox
|
|
73
|
-
tabindex="1501"
|
|
74
|
-
aria-labelledby="altTextArea"
|
|
75
|
-
rows="1"
|
|
76
|
-
id="chat21-main-message-context"
|
|
77
|
-
class='f21textarea c21-button-clean'
|
|
78
|
-
[(ngModel)]="textInputTextArea"
|
|
79
|
-
(ngModelChange)="onTextAreaChange()"
|
|
80
|
-
(keypress)="onkeypress($event)"
|
|
81
|
-
(keydown)="onkeydown($event)"
|
|
82
|
-
(paste)="onPaste($event)">
|
|
83
|
-
</textarea>
|
|
84
|
-
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<!-- ICON SEND -->
|
|
88
|
-
<div *ngIf="(textInputTextArea !== '' && !isStopRec) || !showAudioRecorderFooterButton" tabindex="-1" class="chat21-textarea-button" [class.disabled]="showAlertEmoji" [class.active]="textInputTextArea && !hideTextReply" id="chat21-button-send" (click)="onSendPressed($event)">
|
|
89
|
-
<span class="v-align-center">
|
|
90
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="24" width="24" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" fill="currentColor">
|
|
91
|
-
<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"/>
|
|
92
|
-
</svg>
|
|
93
|
-
</span>
|
|
94
|
-
</div>
|
|
95
|
-
|
|
96
|
-
<!-- ICON REC -->
|
|
97
|
-
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea" tabindex="-1" class="chat21-audio-button" [class.active]="isStopRec" id="chat21-button-rec">
|
|
98
|
-
<chat-audio-recorder
|
|
99
|
-
(startRecordingEvent)="onStartRecording()"
|
|
100
|
-
(deleteRecordingEvent)="onDeleteRecording()"
|
|
101
|
-
(endRecordingEvent)="onEndRecording($event)"
|
|
102
|
-
(sendRecordingEvent)="onSendRecording($event)"
|
|
103
|
-
[stylesMap]="stylesMap">
|
|
104
|
-
</chat-audio-recorder>
|
|
105
199
|
</div>
|
|
106
200
|
</div>
|
|
107
201
|
|
|
108
202
|
|
|
109
203
|
<!-- EMOJII PICKER-->
|
|
110
|
-
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
111
|
-
|
|
204
|
+
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
205
|
+
class="emoji-container"
|
|
206
|
+
id="emoji-mart-container"
|
|
207
|
+
role="dialog"
|
|
208
|
+
[attr.aria-hidden]="!isEmojiiPickerShow"
|
|
209
|
+
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
210
|
+
#emoji_mart_container>
|
|
112
211
|
<emoji-mart id="emoji-mart"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
212
|
+
*ngIf="showEmojiPicker"
|
|
213
|
+
class="emoji-mart"
|
|
214
|
+
[showPreview]="emojiiOptions?.showPreview"
|
|
215
|
+
[color]="stylesMap?.get('themeColor')"
|
|
216
|
+
[perLine]="emojiiOptions?.emojiPerLine"
|
|
217
|
+
[totalFrequentLines]="emojiiOptions?.totalFrequentLines"
|
|
218
|
+
[enableSearch]="emojiiOptions?.enableSearch"
|
|
219
|
+
[darkMode]="emojiiOptions?.darkMode"
|
|
220
|
+
[include]="emojiiOptions?.include"
|
|
221
|
+
(emojiSelect)="addEmoji($event)">
|
|
222
|
+
</emoji-mart>
|
|
124
223
|
</div>
|
|
125
224
|
|
|
126
225
|
<!-- NEW CONV & CONTINE buttons: conv archived-->
|
|
127
|
-
<div id="floating-container" *ngIf="hideTextAreaContent" class="fade-in-bottom" start-focus-chat21-conversation-component>
|
|
128
|
-
<button
|
|
226
|
+
<div id="floating-container" *ngIf="hideTextAreaContent" class="fade-in-bottom" start-focus-chat21-conversation-component>
|
|
227
|
+
<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')}">
|
|
129
228
|
<span class="v-align-center">
|
|
130
|
-
<svg
|
|
131
|
-
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"
|
|
229
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
230
|
+
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"/>
|
|
132
231
|
</svg>
|
|
133
232
|
</span>
|
|
134
233
|
<span class="v-align-center c21-label-button">
|
|
135
234
|
{{translationMap?.get('LABEL_START_NW_CONV')}}
|
|
136
|
-
</span>
|
|
235
|
+
</span>
|
|
137
236
|
<div class="clear"></div>
|
|
138
237
|
</button>
|
|
139
|
-
<!-- <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')}">
|
|
140
|
-
<span class="v-align-center c21-label-button">
|
|
141
|
-
{{translationMap?.get('CONTINUE')}}
|
|
142
|
-
</span>
|
|
143
|
-
<div class="clear"></div>
|
|
144
|
-
</button> -->
|
|
145
238
|
</div>
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss
CHANGED
|
@@ -16,10 +16,18 @@
|
|
|
16
16
|
//if attachment icon AND emoji icon is not in DOM -> increment textarea width
|
|
17
17
|
&:has(:not(#chat21-start-upload-doc)):has(:not(#chat21-emoticon-picker)) .visible-text-area {
|
|
18
18
|
width: 90%;
|
|
19
|
-
|
|
19
|
+
}
|
|
20
20
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.close-chat-container{
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
.icons-container{
|
|
24
32
|
display: flex;
|
|
25
33
|
// align-self: flex-end;
|
|
@@ -30,6 +38,7 @@
|
|
|
30
38
|
|
|
31
39
|
.visible-text-area {
|
|
32
40
|
width: 70%;
|
|
41
|
+
transition: width 220ms ease;
|
|
33
42
|
// margin: 12px 0px;
|
|
34
43
|
pointer-events: auto;
|
|
35
44
|
border-radius: var(--chat-footer-border-radius);
|
|
@@ -40,6 +49,24 @@
|
|
|
40
49
|
&.hasError{
|
|
41
50
|
box-shadow: 0 0 0 1px var(--chat-footer-border-color-error) inset;
|
|
42
51
|
}
|
|
52
|
+
|
|
53
|
+
&.stream-active {
|
|
54
|
+
flex: 1;
|
|
55
|
+
width: auto;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//if attachment icon OR emoji icon is not in DOM -> increment textarea width
|
|
63
|
+
&:has(:not(#chat21-start-upload-doc), :not(#chat21-emoticon-picker)) .visible-text-area {
|
|
64
|
+
width: 80%;
|
|
65
|
+
}
|
|
66
|
+
//if attachment icon AND emoji icon is not in DOM -> increment textarea width
|
|
67
|
+
&:has(:not(#chat21-start-upload-doc)):has(:not(#chat21-emoticon-picker)) .visible-text-area {
|
|
68
|
+
width: 90%;
|
|
69
|
+
}
|
|
43
70
|
}
|
|
44
71
|
|
|
45
72
|
.chat21-textarea-button {
|
|
@@ -82,6 +109,39 @@
|
|
|
82
109
|
border-radius: 50%;
|
|
83
110
|
}
|
|
84
111
|
|
|
112
|
+
/** Stream audio: cerchio pieno, glyph bianco su sfondo iconColor (stylesMap) */
|
|
113
|
+
.chat21-stream-button.chat21-textarea-button {
|
|
114
|
+
width: 36px;
|
|
115
|
+
height: 36px;
|
|
116
|
+
min-width: 36px;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
flex-shrink: 0;
|
|
121
|
+
color: #ffffff;
|
|
122
|
+
transition: min-width 220ms ease, border-radius 180ms ease, padding 180ms ease;
|
|
123
|
+
|
|
124
|
+
&:hover{
|
|
125
|
+
background: rgba(240, 240, 240, 0.4) !important;
|
|
126
|
+
transition: all 0.45s ease-in-out 0s !important;
|
|
127
|
+
-moz-transition: all 0.45s ease-in-out 0s !important;
|
|
128
|
+
-webkit-transition: all 0.45s ease-in-out 0s !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.chat21-stream-button--expanded {
|
|
132
|
+
min-width: 110px;
|
|
133
|
+
border-radius: 999px;
|
|
134
|
+
// padding: 0 14px;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
|
|
137
|
+
// stop the circle-hover background from looking odd on pill
|
|
138
|
+
&.chat21-textarea-button span svg:hover {
|
|
139
|
+
background: transparent !important;
|
|
140
|
+
border-radius: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
85
145
|
textarea,
|
|
86
146
|
textarea:visited,
|
|
87
147
|
textarea:focus,
|
|
@@ -364,6 +424,86 @@ textarea:active{
|
|
|
364
424
|
}
|
|
365
425
|
}
|
|
366
426
|
|
|
427
|
+
#streamAudioAlert {
|
|
428
|
+
bottom: 100%;
|
|
429
|
+
width: 100%;
|
|
430
|
+
height: var(--chat-footer-stream-button-height);
|
|
431
|
+
display: flex;
|
|
432
|
+
flex-direction: column;
|
|
433
|
+
justify-content: center;
|
|
434
|
+
position: absolute;
|
|
435
|
+
// padding: 8px 16px;
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
background-color: var(--content-background-color);
|
|
438
|
+
// background-color: color-mix(in srgb, var(--content-background-color) 34%, transparent);
|
|
439
|
+
backdrop-filter: blur(20px) saturate(1.2);
|
|
440
|
+
-webkit-backdrop-filter: blur(20px) saturate(1.2);
|
|
441
|
+
box-shadow:
|
|
442
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
443
|
+
0 1px 0 rgba(0, 0, 0, 0.05);
|
|
444
|
+
|
|
445
|
+
.voice-status-row {
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
gap: 8px;
|
|
449
|
+
margin-bottom: 6px;
|
|
450
|
+
min-height: 18px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.voice-status-dot {
|
|
454
|
+
width: 8px;
|
|
455
|
+
height: 8px;
|
|
456
|
+
border-radius: 50%;
|
|
457
|
+
flex-shrink: 0;
|
|
458
|
+
background-color: #b0b0b0;
|
|
459
|
+
animation: pulse-dot 2s ease-in-out infinite;
|
|
460
|
+
|
|
461
|
+
&--connecting {
|
|
462
|
+
background-color: #f59e0b;
|
|
463
|
+
}
|
|
464
|
+
&--listening {
|
|
465
|
+
background-color: #22c55e;
|
|
466
|
+
}
|
|
467
|
+
&--processing {
|
|
468
|
+
background-color: #3b82f6;
|
|
469
|
+
animation: pulse-dot 1s ease-in-out infinite;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.voice-status-text {
|
|
474
|
+
font-size: 12px;
|
|
475
|
+
font-weight: 600;
|
|
476
|
+
letter-spacing: 0.02em;
|
|
477
|
+
color: var(--chat-footer-color);
|
|
478
|
+
white-space: nowrap;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.voice-transcript-text {
|
|
482
|
+
font-size: 11px;
|
|
483
|
+
font-style: italic;
|
|
484
|
+
color: var(--dark-gray);
|
|
485
|
+
white-space: nowrap;
|
|
486
|
+
overflow: hidden;
|
|
487
|
+
text-overflow: ellipsis;
|
|
488
|
+
flex: 1;
|
|
489
|
+
min-width: 0;
|
|
490
|
+
|
|
491
|
+
&::before {
|
|
492
|
+
content: '· ';
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&.hideTextReply {
|
|
497
|
+
position: unset;
|
|
498
|
+
height: auto;
|
|
499
|
+
padding: 16px;
|
|
500
|
+
box-shadow: none;
|
|
501
|
+
backdrop-filter: none;
|
|
502
|
+
-webkit-backdrop-filter: none;
|
|
503
|
+
background-color: var(--content-background-color);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
367
507
|
#textAlert{
|
|
368
508
|
bottom: 100%;
|
|
369
509
|
width: 100%;
|
|
@@ -419,3 +559,74 @@ textarea:active{
|
|
|
419
559
|
border: none;
|
|
420
560
|
// margin: -2px -2px 0px;
|
|
421
561
|
}
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
// aggiungi un'animazione di fade in e fade out quando .star-rating-widget è visibile con transition
|
|
565
|
+
.star-rating-widget {
|
|
566
|
+
transition: all 0.5s ease-in-out;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.star-rating-widget {
|
|
570
|
+
position: absolute;
|
|
571
|
+
left: 0;
|
|
572
|
+
right: 0;
|
|
573
|
+
bottom: -52px;
|
|
574
|
+
height: 100%;
|
|
575
|
+
width: 100%;
|
|
576
|
+
flex-direction: row;
|
|
577
|
+
justify-content: center;
|
|
578
|
+
background-color: rgb(255, 255, 255);
|
|
579
|
+
flex-wrap: nowrap;
|
|
580
|
+
&.active {
|
|
581
|
+
bottom: 0px;
|
|
582
|
+
}
|
|
583
|
+
&.inactive {
|
|
584
|
+
bottom: -52px;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
.voice-preview {
|
|
588
|
+
font-style: italic;
|
|
589
|
+
opacity: 0.65;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// Voice mode: footer row layout when voice UI is active
|
|
593
|
+
.textarea-container.voice-mode {
|
|
594
|
+
justify-content: flex-end;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// Inline voice status chip (inside .visible-text-area when stream active)
|
|
598
|
+
.voice-inline-status {
|
|
599
|
+
display: flex;
|
|
600
|
+
align-items: center;
|
|
601
|
+
gap: 8px;
|
|
602
|
+
padding: 0 4px;
|
|
603
|
+
|
|
604
|
+
.voice-inline-dot {
|
|
605
|
+
width: 8px;
|
|
606
|
+
height: 8px;
|
|
607
|
+
border-radius: 50%;
|
|
608
|
+
flex-shrink: 0;
|
|
609
|
+
background-color: #22c55e;
|
|
610
|
+
animation: pulse-dot 2s ease-in-out infinite;
|
|
611
|
+
|
|
612
|
+
&--connecting {
|
|
613
|
+
background-color: #f59e0b;
|
|
614
|
+
}
|
|
615
|
+
&--processing {
|
|
616
|
+
background-color: #3b82f6;
|
|
617
|
+
animation: pulse-dot 1s ease-in-out infinite;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.voice-inline-label {
|
|
622
|
+
font-size: 12px;
|
|
623
|
+
font-weight: 500;
|
|
624
|
+
color: var(--dark-gray);
|
|
625
|
+
white-space: nowrap;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
@keyframes pulse-dot {
|
|
630
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
631
|
+
50% { opacity: 0.45; transform: scale(0.75); }
|
|
632
|
+
}
|