@chat21/chat21-web-widget 5.1.34-rc1 → 5.1.34
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/.github/workflows/docker-community-push-latest.yml +13 -23
- package/.github/workflows/docker-image-tag-community-tag-push.yml +12 -22
- package/CHANGELOG.md +8 -129
- package/Dockerfile +5 -4
- package/angular.json +3 -21
- package/docs/changelog/this-branch.md +0 -36
- package/env.sample +2 -3
- package/nginx.conf +2 -22
- package/package.json +3 -10
- package/src/app/app.component.html +2 -2
- package/src/app/app.component.scss +14 -25
- package/src/app/app.component.spec.ts +6 -21
- package/src/app/app.component.ts +9 -10
- package/src/app/app.module.ts +0 -13
- package/src/app/component/conversation-detail/conversation/conversation.component.html +11 -25
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +2 -40
- package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +75 -644
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +14 -100
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +13 -25
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +5 -123
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +0 -1
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +10 -23
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +1 -19
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +149 -242
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +5 -8
- package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +3 -53
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +96 -200
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +6 -211
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +78 -452
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +76 -291
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +53 -113
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +4 -12
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +29 -274
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +9 -23
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +8 -80
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +23 -29
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +16 -185
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +14 -34
- package/src/app/component/error-alert/error-alert.component.spec.ts +5 -65
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +7 -16
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +0 -21
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +7 -89
- 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 +21 -163
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +4 -8
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +5 -10
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +16 -90
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +0 -26
- package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +11 -45
- package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +6 -24
- package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +5 -14
- package/src/app/component/form/inputs/form-text/form-text.component.html +12 -14
- package/src/app/component/form/inputs/form-text/form-text.component.scss +1 -11
- package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +17 -113
- package/src/app/component/form/inputs/form-text/form-text.component.ts +3 -35
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +11 -13
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +5 -6
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +13 -149
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +0 -26
- package/src/app/component/form/prechat-form/prechat-form.component.html +11 -14
- package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +10 -102
- package/src/app/component/form/prechat-form/prechat-form.component.ts +1 -8
- package/src/app/component/home/home.component.html +31 -38
- package/src/app/component/home/home.component.scss +2 -4
- package/src/app/component/home/home.component.spec.ts +11 -226
- package/src/app/component/home-conversations/home-conversations.component.html +26 -30
- package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
- package/src/app/component/home-conversations/home-conversations.component.spec.ts +36 -212
- package/src/app/component/last-message/last-message.component.html +9 -15
- package/src/app/component/last-message/last-message.component.scss +2 -16
- package/src/app/component/last-message/last-message.component.spec.ts +23 -204
- package/src/app/component/last-message/last-message.component.ts +1 -4
- package/src/app/component/launcher-button/launcher-button.component.html +13 -8
- package/src/app/component/launcher-button/launcher-button.component.spec.ts +8 -104
- package/src/app/component/list-all-conversations/list-all-conversations.component.html +17 -12
- package/src/app/component/list-all-conversations/list-all-conversations.component.scss +0 -2
- package/src/app/component/list-conversations/list-conversations.component.html +22 -22
- package/src/app/component/menu-options/menu-options.component.html +20 -30
- package/src/app/component/menu-options/menu-options.component.spec.ts +9 -125
- package/src/app/component/message/audio/audio.component.html +15 -13
- package/src/app/component/message/audio/audio.component.spec.ts +5 -140
- package/src/app/component/message/audio/audio.component.ts +5 -1
- package/src/app/component/message/avatar/avatar.component.html +2 -2
- package/src/app/component/message/avatar/avatar.component.spec.ts +7 -99
- package/src/app/component/message/bubble-message/bubble-message.component.html +51 -38
- package/src/app/component/message/bubble-message/bubble-message.component.scss +1 -54
- package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +57 -154
- package/src/app/component/message/bubble-message/bubble-message.component.ts +11 -89
- package/src/app/component/message/buttons/action-button/action-button.component.html +4 -3
- package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +5 -49
- package/src/app/component/message/buttons/link-button/link-button.component.scss +8 -5
- package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +5 -50
- package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +5 -44
- package/src/app/component/message/carousel/carousel.component.html +16 -29
- package/src/app/component/message/carousel/carousel.component.scss +8 -20
- package/src/app/component/message/carousel/carousel.component.spec.ts +3 -80
- package/src/app/component/message/carousel/carousel.component.ts +0 -16
- package/src/app/component/message/frame/frame.component.html +4 -9
- package/src/app/component/message/frame/frame.component.spec.ts +15 -34
- package/src/app/component/message/frame/frame.component.ts +2 -7
- 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 +7 -24
- package/src/app/component/message/image/image.component.html +10 -12
- package/src/app/component/message/image/image.component.scss +0 -16
- package/src/app/component/message/image/image.component.spec.ts +15 -101
- package/src/app/component/message/image/image.component.ts +51 -90
- package/src/app/component/message/info-message/info-message.component.spec.ts +14 -26
- package/src/app/component/message/like-unlike/like-unlike.component.html +9 -7
- package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +3 -31
- package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +17 -38
- package/src/app/component/message/text/text.component.html +3 -3
- package/src/app/component/message/text/text.component.scss +86 -80
- package/src/app/component/message/text/text.component.spec.ts +13 -106
- package/src/app/component/message-attachment/message-attachment.component.spec.ts +13 -134
- package/src/app/component/selection-department/selection-department.component.html +23 -21
- package/src/app/component/selection-department/selection-department.component.spec.ts +14 -159
- package/src/app/component/selection-department/selection-department.component.ts +1 -8
- package/src/app/component/send-button/send-button.component.html +13 -5
- 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 +81 -51
- package/src/app/directives/tooltip.directive.spec.ts +4 -8
- package/src/app/modals/confirm-close/confirm-close.component.html +8 -20
- package/src/app/modals/confirm-close/confirm-close.component.scss +0 -3
- package/src/app/modals/confirm-close/confirm-close.component.spec.ts +4 -13
- package/src/app/modals/confirm-close/confirm-close.component.ts +1 -8
- package/src/app/pipe/html-entites-encode.pipe.spec.ts +2 -35
- package/src/app/pipe/marked.pipe.spec.ts +2 -38
- package/src/app/pipe/marked.pipe.ts +41 -51
- package/src/app/providers/app-config.service.ts +2 -4
- package/src/app/providers/brand.service.spec.ts +2 -23
- package/src/app/providers/brand.service.ts +1 -1
- package/src/app/providers/global-settings.service.spec.ts +14 -1009
- package/src/app/providers/global-settings.service.ts +2 -82
- package/src/app/providers/translator.service.ts +6 -26
- package/src/app/sass/_variables.scss +0 -3
- package/src/app/sass/animations.scss +1 -19
- package/src/app/utils/globals.ts +1 -21
- package/src/app/utils/utils-resources.ts +1 -1
- package/src/assets/i18n/en.json +99 -106
- package/src/assets/i18n/es.json +100 -107
- package/src/assets/i18n/fr.json +100 -107
- package/src/assets/i18n/it.json +98 -107
- package/src/assets/twp/index-dev.html +0 -18
- package/src/chat21-core/models/message.ts +1 -2
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +2 -3
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -12
- package/src/chat21-core/providers/scripts/script.service.spec.ts +2 -12
- package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +1 -1
- package/src/chat21-core/utils/utils-message.ts +0 -7
- package/src/chat21-core/utils/utils.ts +2 -5
- package/src/widget-config-template.json +1 -4
- package/src/widget-config.json +1 -4
- package/tsconfig.json +0 -5
- package/.angular-mcp-cache/package.json +0 -1
- package/.cursor/angular18-accessibility-auditor-skill.md +0 -442
- package/.cursor/mcp.json +0 -15
- package/.github/workflows/build.yml +0 -22
- package/.github/workflows/playwright.yml +0 -27
- package/mocks/voice-websocket-mock/server.cjs +0 -245
- package/playwright.config.ts +0 -41
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +0 -46
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +0 -83
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +0 -192
- package/src/app/component/form/prechat-form-test-mock.ts +0 -35
- package/src/app/component/message/audio-sync/audio-sync.component.html +0 -18
- package/src/app/component/message/audio-sync/audio-sync.component.scss +0 -65
- package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +0 -103
- package/src/app/component/message/audio-sync/audio-sync.component.ts +0 -643
- package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +0 -117
- package/src/app/providers/tts-audio-playback-coordinator.service.ts +0 -109
- package/src/app/providers/voice/STT&TTS/openai-voice.config.ts +0 -12
- package/src/app/providers/voice/STT&TTS/openai-voice.provider.ts +0 -171
- package/src/app/providers/voice/STT&TTS/speech-provider.abstract.ts +0 -39
- package/src/app/providers/voice/audio.types.ts +0 -40
- package/src/app/providers/voice/vad.service.spec.ts +0 -28
- package/src/app/providers/voice/vad.service.ts +0 -70
- package/src/app/providers/voice/voice-streaming.service.spec.ts +0 -23
- package/src/app/providers/voice/voice-streaming.service.ts +0 -702
- package/src/app/providers/voice/voice-streaming.types.ts +0 -112
- package/src/app/providers/voice/voice.service.spec.ts +0 -227
- package/src/app/providers/voice/voice.service.ts +0 -973
- package/src/app/shims/onnxruntime-web-wasm.ts +0 -4
- package/src/assets/onnx/ort-wasm-simd-threaded.mjs +0 -59
- package/src/assets/onnx/ort-wasm-simd-threaded.wasm +0 -0
- package/src/assets/sounds/keyboard.mp3 +0 -0
- package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +0 -14
- package/src/assets/vad/silero_vad_legacy.onnx +0 -0
- package/src/assets/vad/vad.worklet.bundle.min.js +0 -1
- package/src/chat21-core/providers/chat-manager.spec.ts +0 -72
- package/tests/widget-form-rich.spec.ts +0 -67
- package/tests/widget-index-dev-settings.spec.ts +0 -52
- package/tests/widget-twp-iframe.spec.ts +0 -39
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html
CHANGED
|
@@ -1,225 +1,115 @@
|
|
|
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 class="c21-powered-by" [innerHTML]="poweredBy" (click)="managePoweredBy($event)"></div>
|
|
4
|
+
<div tabindex="-1" class="c21-powered-by" [innerHTML]="poweredBy" (click)="managePoweredBy($event)"></div>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<!-- ALERT EMOJI -->
|
|
8
|
-
<div id="textAlert"
|
|
9
|
-
|
|
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">
|
|
8
|
+
<div id="textAlert" *ngIf="!hideTextAreaContent && showAlertEmoji" class="fade-in-bottom" [class.hideTextReply]="hideTextReply">
|
|
9
|
+
<svg 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
10
|
<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
|
-
|
|
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>
|
|
11
|
+
</svg>
|
|
12
|
+
<div tabindex="-1" class="alertText">{{translationMap.get('EMOJI_NOT_ELLOWED')}}</div>
|
|
38
13
|
</div>
|
|
39
14
|
|
|
40
15
|
</div>
|
|
41
16
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[attr.aria-label]="translationMap?.get('BUTTON_ATTACH_FILE')"
|
|
71
|
-
[accept]="fileUploadAccept"
|
|
72
|
-
name="chat21-file"
|
|
73
|
-
id="chat21-file"
|
|
74
|
-
#chat21_file
|
|
75
|
-
class="inputfile"
|
|
76
|
-
[ngStyle]="{'display': 'block', height:'1px', width:'1px', overflow: 'hidden' }"
|
|
77
|
-
(change)="detectFiles($event)"/>
|
|
78
|
-
</label>
|
|
79
|
-
<!-- ICON EMOJII -->
|
|
80
|
-
<label *ngIf="showEmojiFooterButton"
|
|
81
|
-
for="chat21-emojii"
|
|
82
|
-
role="button"
|
|
83
|
-
tabindex="0"
|
|
84
|
-
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
85
|
-
[attr.aria-pressed]="isEmojiiPickerShow ? 'true' : 'false'"
|
|
86
|
-
class="chat21-textarea-button"
|
|
87
|
-
[class.active]="!isFilePendingToUpload && !hideTextReply"
|
|
88
|
-
id="chat21-emoticon-picker"
|
|
89
|
-
(click)="onEmojiiPickerClicked()"
|
|
90
|
-
(keydown.enter)="$event.preventDefault(); onEmojiiPickerClicked()"
|
|
91
|
-
(keydown.space)="$event.preventDefault(); onEmojiiPickerClicked()">
|
|
92
|
-
<span class="v-align-center">
|
|
93
|
-
<svg role="img" aria-labelledby="altIconTitle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
94
|
-
<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"/>
|
|
95
|
-
<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"/>
|
|
96
|
-
<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"/>
|
|
97
|
-
<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"/>
|
|
98
|
-
</svg>
|
|
99
|
-
</span>
|
|
100
|
-
</label>
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<div *ngIf="!isStopRec"
|
|
107
|
-
class="visible-text-area"
|
|
108
|
-
[class.stream-active]="isStreamAudioActive || isStreamAudioConnecting"
|
|
109
|
-
[class.hasError]="showAlertEmoji"
|
|
110
|
-
[class.disabled]="(isConversationArchived || hideTextReply)? true : null">
|
|
111
|
-
<!-- Voice mode: inline status chip -->
|
|
112
|
-
<div class="voice-inline-status" *ngIf="isStreamAudioActive || isStreamAudioConnecting" role="status" aria-live="polite">
|
|
113
|
-
<span class="voice-inline-dot"
|
|
114
|
-
[class.voice-inline-dot--connecting]="isStreamAudioConnecting && !isStreamAudioActive"
|
|
115
|
-
[class.voice-inline-dot--processing]="isStreamAudioActive && isBotSpeaking">
|
|
116
|
-
</span>
|
|
117
|
-
<span class="voice-inline-label">{{ voiceStatusLabel }}</span>
|
|
118
|
-
</div>
|
|
119
|
-
<!-- Normal mode: textarea -->
|
|
120
|
-
<textarea
|
|
121
|
-
*ngIf="!(isStreamAudioActive || isStreamAudioConnecting)"
|
|
122
|
-
[attr.disabled]="(hideTextReply)? true : null"
|
|
123
|
-
[attr.placeholder]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
124
|
-
[attr.aria-label]="(footerMessagePlaceholder)? footerMessagePlaceholder : translationMap?.get('LABEL_PLACEHOLDER')"
|
|
125
|
-
[attr.aria-multiline]="true"
|
|
126
|
-
[attr.aria-invalid]="showAlertEmoji ? 'true' : 'false'"
|
|
127
|
-
start-focus-chat21-conversation-component
|
|
128
|
-
inputTextArea
|
|
129
|
-
#textbox
|
|
130
|
-
rows="1"
|
|
131
|
-
id="chat21-main-message-context"
|
|
132
|
-
class='f21textarea c21-button-clean'
|
|
133
|
-
[(ngModel)]="textInputTextArea"
|
|
134
|
-
(ngModelChange)="onTextAreaChange()"
|
|
135
|
-
(keydown)="onkeydown($event)"
|
|
136
|
-
(paste)="onPaste($event)">
|
|
137
|
-
</textarea>
|
|
138
|
-
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
<!-- ICON SEND -->
|
|
142
|
-
<button type="button"
|
|
143
|
-
*ngIf="(textInputTextArea !== '' && !isStopRec) || !showAudioRecorderFooterButton"
|
|
144
|
-
class="chat21-textarea-button c21-button-clean"
|
|
145
|
-
[class.disabled]="showAlertEmoji"
|
|
146
|
-
[class.active]="textInputTextArea && !hideTextReply"
|
|
147
|
-
[attr.aria-label]="translationMap?.get('BUTTON_SEND_MESSAGE')"
|
|
148
|
-
[attr.disabled]="(showAlertEmoji || !textInputTextArea || hideTextReply) ? true : null"
|
|
149
|
-
id="chat21-button-send"
|
|
150
|
-
(click)="onSendPressed($event)">
|
|
17
|
+
<!-- TEXTAREA + ICONS: conv active-->
|
|
18
|
+
<div class="textarea-container" *ngIf="!hideTextAreaContent && !hideTextReply">
|
|
19
|
+
|
|
20
|
+
<div *ngIf="!isStopRec" class="icons-container">
|
|
21
|
+
<!-- ICON ATTACHMENT -->
|
|
22
|
+
<label *ngIf="showAttachmentFooterButton" tabindex="1502" aria-label="allegati" for="chat21-file" class="chat21-textarea-button" [class.active]="!isFilePendingToUpload && !hideTextReply" id="chat21-start-upload-doc">
|
|
23
|
+
<span class="v-align-center">
|
|
24
|
+
<svg role="img" aria-labelledby="altIconTitle" xmlns="http://www.w3.org/2000/svg" width="24px" height="24" viewBox="0 0 24 24" fill="currentColor">
|
|
25
|
+
<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"/>
|
|
26
|
+
<title id="altIconTitle">{{ 'MAX_ATTACHMENT' | translate: { FILE_SIZE_LIMIT: file_size_limit } }}</title>
|
|
27
|
+
</svg>
|
|
28
|
+
|
|
29
|
+
</span>
|
|
30
|
+
<input
|
|
31
|
+
[attr.disabled] = "(isFilePendingToUpload || isConversationArchived || hideTextReply)? true : null"
|
|
32
|
+
tabindex="1503"
|
|
33
|
+
type="file"
|
|
34
|
+
aria-label="seleziona allegato"
|
|
35
|
+
[accept]="fileUploadAccept"
|
|
36
|
+
name="chat21-file"
|
|
37
|
+
id="chat21-file"
|
|
38
|
+
#chat21_file
|
|
39
|
+
class="inputfile"
|
|
40
|
+
[ngStyle]="{'display': 'block', height:'1px', width:'1px', overflow: 'hidden' }"
|
|
41
|
+
(change)="detectFiles($event)"/>
|
|
42
|
+
</label>
|
|
43
|
+
<!-- ICON EMOJII -->
|
|
44
|
+
<label *ngIf="showEmojiFooterButton" tabindex="1504" aria-label="emojii" for="chat21-emojii" class="chat21-textarea-button" [class.active]="!isFilePendingToUpload && !hideTextReply" id="chat21-emoticon-picker" (click)="onEmojiiPickerClicked()">
|
|
151
45
|
<span class="v-align-center">
|
|
152
|
-
<svg
|
|
153
|
-
<path d="
|
|
46
|
+
<svg role="img" aria-labelledby="altIconTitle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
47
|
+
<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"/>
|
|
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"/> -->
|
|
154
57
|
</svg>
|
|
155
58
|
</span>
|
|
156
|
-
</
|
|
59
|
+
</label>
|
|
60
|
+
</div>
|
|
157
61
|
|
|
158
|
-
<!-- ICON REC -->
|
|
159
|
-
<div *ngIf="showAudioRecorderFooterButton && !textInputTextArea"
|
|
160
|
-
class="chat21-audio-button"
|
|
161
|
-
[class.active]="isStopRec"
|
|
162
|
-
id="chat21-button-rec">
|
|
163
|
-
<chat-audio-recorder
|
|
164
|
-
[translationMap]="translationMap"
|
|
165
|
-
(startRecordingEvent)="onStartRecording()"
|
|
166
|
-
(deleteRecordingEvent)="onDeleteRecording()"
|
|
167
|
-
(endRecordingEvent)="onEndRecording($event)"
|
|
168
|
-
(sendRecordingEvent)="onSendRecording($event)"
|
|
169
|
-
[stylesMap]="stylesMap">
|
|
170
|
-
</chat-audio-recorder>
|
|
171
|
-
</div>
|
|
172
62
|
|
|
173
|
-
<!-- ICON STREAM / CHIUDI STREAM (cerchio, icone bianche su iconColor) -->
|
|
174
|
-
<div *ngIf="showAudioStreamFooterButton" tabindex="-1" id="chat21-button-stream"
|
|
175
|
-
class="chat21-textarea-button chat21-stream-button"
|
|
176
|
-
[class.active]="isStreamAudioActive || isStreamAudioConnecting || (!textInputTextArea && !hideTextReply)"
|
|
177
|
-
[class.chat21-stream-button--expanded]="isStreamAudioActive || isStreamAudioConnecting"
|
|
178
|
-
(click)="onStreamPressed($event)" [attr.aria-label]="(isStreamAudioActive || isStreamAudioConnecting) ? (translationMap?.get('CLOSE') || 'Chiudi stream') : (translationMap?.get('STREAM_AUDIO') || 'Stream audio')">
|
|
179
|
-
<chat-stream-audio-spectrum
|
|
180
|
-
mode="button"
|
|
181
|
-
[active]="isStreamAudioActive || isStreamAudioConnecting"
|
|
182
|
-
[volume]="currentVolume"
|
|
183
|
-
[translationMap]="translationMap">
|
|
184
|
-
</chat-stream-audio-spectrum>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
63
|
|
|
188
64
|
|
|
189
|
-
<div class="
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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>
|
|
208
94
|
</div>
|
|
209
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
|
+
</div>
|
|
210
106
|
</div>
|
|
211
107
|
|
|
212
108
|
|
|
213
109
|
<!-- EMOJII PICKER-->
|
|
214
|
-
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'"
|
|
215
|
-
class="emoji-container"
|
|
216
|
-
id="emoji-mart-container"
|
|
217
|
-
role="dialog"
|
|
218
|
-
[attr.aria-hidden]="!isEmojiiPickerShow"
|
|
219
|
-
[attr.aria-label]="translationMap?.get('EMOJI')"
|
|
220
|
-
#emoji_mart_container>
|
|
110
|
+
<div [style.visibility]="isEmojiiPickerShow?'visible':'hidden'" class="emoji-container" id="emoji-mart-container" #emoji_mart_container>
|
|
221
111
|
<!-- <ng-container #emojii_container></ng-container> -->
|
|
222
|
-
|
|
112
|
+
<emoji-mart id="emoji-mart"
|
|
223
113
|
*ngIf="showEmojiPicker"
|
|
224
114
|
class="emoji-mart"
|
|
225
115
|
[showPreview]="emojiiOptions?.showPreview"
|
|
@@ -235,10 +125,10 @@
|
|
|
235
125
|
|
|
236
126
|
<!-- NEW CONV & CONTINE buttons: conv archived-->
|
|
237
127
|
<div id="floating-container" *ngIf="hideTextAreaContent" class="fade-in-bottom" start-focus-chat21-conversation-component>
|
|
238
|
-
<button
|
|
128
|
+
<button tabindex="1040" aflistconv #aflistconv class="c21-button-primary" (click)="openNewConversation()" [ngStyle]="{'background-color': stylesMap.get('themeColor'), 'border-color': stylesMap.get('themeColor'), 'color': stylesMap?.get('foregroundColor')}">
|
|
239
129
|
<span class="v-align-center">
|
|
240
|
-
<svg
|
|
241
|
-
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"
|
|
130
|
+
<svg [ngStyle]="{'fill': 'yellow' }" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
|
|
131
|
+
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"/>
|
|
242
132
|
</svg>
|
|
243
133
|
</span>
|
|
244
134
|
<span class="v-align-center c21-label-button">
|
|
@@ -246,4 +136,10 @@
|
|
|
246
136
|
</span>
|
|
247
137
|
<div class="clear"></div>
|
|
248
138
|
</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> -->
|
|
249
145
|
</div>
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
}
|
|
1
|
+
|
|
6
2
|
.textarea-container{
|
|
3
|
+
// padding: 8px 34px;
|
|
4
|
+
// padding-left: 70px;
|
|
5
|
+
// padding-right: 45px;
|
|
7
6
|
display: flex;
|
|
7
|
+
// width: 100%;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: space-between;
|
|
10
10
|
gap: 8px;
|
|
@@ -16,20 +16,8 @@
|
|
|
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
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.close-chat-container{
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
gap: 8px;
|
|
19
|
+
}
|
|
28
20
|
|
|
29
|
-
.c21-close{
|
|
30
|
-
height: 30px !important;
|
|
31
|
-
margin: 0px !important;
|
|
32
|
-
}
|
|
33
21
|
}
|
|
34
22
|
|
|
35
23
|
.icons-container{
|
|
@@ -42,7 +30,6 @@
|
|
|
42
30
|
|
|
43
31
|
.visible-text-area {
|
|
44
32
|
width: 70%;
|
|
45
|
-
transition: width 220ms ease;
|
|
46
33
|
// margin: 12px 0px;
|
|
47
34
|
pointer-events: auto;
|
|
48
35
|
border-radius: var(--chat-footer-border-radius);
|
|
@@ -53,15 +40,6 @@
|
|
|
53
40
|
&.hasError{
|
|
54
41
|
box-shadow: 0 0 0 1px var(--chat-footer-border-color-error) inset;
|
|
55
42
|
}
|
|
56
|
-
|
|
57
|
-
&.stream-active {
|
|
58
|
-
flex: 1;
|
|
59
|
-
width: auto;
|
|
60
|
-
min-width: 0;
|
|
61
|
-
background-color: transparent;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
}
|
|
65
43
|
}
|
|
66
44
|
|
|
67
45
|
.chat21-textarea-button {
|
|
@@ -104,39 +82,6 @@
|
|
|
104
82
|
border-radius: 50%;
|
|
105
83
|
}
|
|
106
84
|
|
|
107
|
-
/** Stream audio: cerchio pieno, glyph bianco su sfondo iconColor (stylesMap) */
|
|
108
|
-
.chat21-stream-button.chat21-textarea-button {
|
|
109
|
-
width: 36px;
|
|
110
|
-
height: 36px;
|
|
111
|
-
min-width: 36px;
|
|
112
|
-
border-radius: 50%;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
box-sizing: border-box;
|
|
115
|
-
flex-shrink: 0;
|
|
116
|
-
color: #ffffff;
|
|
117
|
-
transition: min-width 220ms ease, border-radius 180ms ease, padding 180ms ease;
|
|
118
|
-
|
|
119
|
-
&:hover{
|
|
120
|
-
background: rgba(240, 240, 240, 0.4) !important;
|
|
121
|
-
transition: all 0.45s ease-in-out 0s !important;
|
|
122
|
-
-moz-transition: all 0.45s ease-in-out 0s !important;
|
|
123
|
-
-webkit-transition: all 0.45s ease-in-out 0s !important;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.chat21-stream-button--expanded {
|
|
127
|
-
min-width: 110px;
|
|
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
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
85
|
textarea,
|
|
141
86
|
textarea:visited,
|
|
142
87
|
textarea:focus,
|
|
@@ -419,85 +364,6 @@ textarea:active{
|
|
|
419
364
|
}
|
|
420
365
|
}
|
|
421
366
|
|
|
422
|
-
#streamAudioAlert {
|
|
423
|
-
bottom: 100%;
|
|
424
|
-
width: 100%;
|
|
425
|
-
height: var(--chat-footer-stream-button-height);
|
|
426
|
-
display: flex;
|
|
427
|
-
flex-direction: column;
|
|
428
|
-
justify-content: center;
|
|
429
|
-
position: absolute;
|
|
430
|
-
// padding: 8px 16px;
|
|
431
|
-
overflow: hidden;
|
|
432
|
-
background-color: color-mix(in srgb, var(--content-background-color) 34%, transparent);
|
|
433
|
-
backdrop-filter: blur(20px) saturate(1.2);
|
|
434
|
-
-webkit-backdrop-filter: blur(20px) saturate(1.2);
|
|
435
|
-
box-shadow:
|
|
436
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
437
|
-
0 1px 0 rgba(0, 0, 0, 0.05);
|
|
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
|
-
|
|
490
|
-
&.hideTextReply {
|
|
491
|
-
position: unset;
|
|
492
|
-
height: auto;
|
|
493
|
-
padding: 16px;
|
|
494
|
-
box-shadow: none;
|
|
495
|
-
backdrop-filter: none;
|
|
496
|
-
-webkit-backdrop-filter: none;
|
|
497
|
-
background-color: var(--content-background-color);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
367
|
#textAlert{
|
|
502
368
|
bottom: 100%;
|
|
503
369
|
width: 100%;
|
|
@@ -553,74 +419,3 @@ textarea:active{
|
|
|
553
419
|
border: none;
|
|
554
420
|
// margin: -2px -2px 0px;
|
|
555
421
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
// aggiungi un'animazione di fade in e fade out quando .star-rating-widget è visibile con transition
|
|
559
|
-
.star-rating-widget {
|
|
560
|
-
transition: all 0.5s ease-in-out;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.star-rating-widget {
|
|
564
|
-
position: absolute;
|
|
565
|
-
left: 0;
|
|
566
|
-
right: 0;
|
|
567
|
-
bottom: -52px;
|
|
568
|
-
height: 100%;
|
|
569
|
-
width: 100%;
|
|
570
|
-
flex-direction: row;
|
|
571
|
-
justify-content: center;
|
|
572
|
-
background-color: rgb(255, 255, 255);
|
|
573
|
-
flex-wrap: nowrap;
|
|
574
|
-
&.active {
|
|
575
|
-
bottom: 0px;
|
|
576
|
-
}
|
|
577
|
-
&.inactive {
|
|
578
|
-
bottom: -52px;
|
|
579
|
-
}
|
|
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
|
-
}
|