@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.
Files changed (193) hide show
  1. package/.github/workflows/docker-community-push-latest.yml +13 -23
  2. package/.github/workflows/docker-image-tag-community-tag-push.yml +12 -22
  3. package/CHANGELOG.md +8 -129
  4. package/Dockerfile +5 -4
  5. package/angular.json +3 -21
  6. package/docs/changelog/this-branch.md +0 -36
  7. package/env.sample +2 -3
  8. package/nginx.conf +2 -22
  9. package/package.json +3 -10
  10. package/src/app/app.component.html +2 -2
  11. package/src/app/app.component.scss +14 -25
  12. package/src/app/app.component.spec.ts +6 -21
  13. package/src/app/app.component.ts +9 -10
  14. package/src/app/app.module.ts +0 -13
  15. package/src/app/component/conversation-detail/conversation/conversation.component.html +11 -25
  16. package/src/app/component/conversation-detail/conversation/conversation.component.scss +2 -40
  17. package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +75 -644
  18. package/src/app/component/conversation-detail/conversation/conversation.component.ts +14 -100
  19. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +13 -25
  20. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +5 -123
  21. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +0 -1
  22. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +10 -23
  23. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +1 -19
  24. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +149 -242
  25. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +5 -8
  26. package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +3 -53
  27. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +96 -200
  28. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +6 -211
  29. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +78 -452
  30. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +76 -291
  31. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +53 -113
  32. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +4 -12
  33. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +29 -274
  34. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +9 -23
  35. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +8 -80
  36. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +23 -29
  37. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +16 -185
  38. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +14 -34
  39. package/src/app/component/error-alert/error-alert.component.spec.ts +5 -65
  40. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +7 -16
  41. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +0 -21
  42. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +7 -89
  43. package/src/app/component/form/form-builder/form-builder.component.html +1 -1
  44. package/src/app/component/form/form-builder/form-builder.component.spec.ts +21 -163
  45. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +4 -8
  46. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +5 -10
  47. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +16 -90
  48. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +0 -26
  49. package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +11 -45
  50. package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +6 -24
  51. package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +5 -14
  52. package/src/app/component/form/inputs/form-text/form-text.component.html +12 -14
  53. package/src/app/component/form/inputs/form-text/form-text.component.scss +1 -11
  54. package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +17 -113
  55. package/src/app/component/form/inputs/form-text/form-text.component.ts +3 -35
  56. package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +11 -13
  57. package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +5 -6
  58. package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +13 -149
  59. package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +0 -26
  60. package/src/app/component/form/prechat-form/prechat-form.component.html +11 -14
  61. package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +10 -102
  62. package/src/app/component/form/prechat-form/prechat-form.component.ts +1 -8
  63. package/src/app/component/home/home.component.html +31 -38
  64. package/src/app/component/home/home.component.scss +2 -4
  65. package/src/app/component/home/home.component.spec.ts +11 -226
  66. package/src/app/component/home-conversations/home-conversations.component.html +26 -30
  67. package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
  68. package/src/app/component/home-conversations/home-conversations.component.spec.ts +36 -212
  69. package/src/app/component/last-message/last-message.component.html +9 -15
  70. package/src/app/component/last-message/last-message.component.scss +2 -16
  71. package/src/app/component/last-message/last-message.component.spec.ts +23 -204
  72. package/src/app/component/last-message/last-message.component.ts +1 -4
  73. package/src/app/component/launcher-button/launcher-button.component.html +13 -8
  74. package/src/app/component/launcher-button/launcher-button.component.spec.ts +8 -104
  75. package/src/app/component/list-all-conversations/list-all-conversations.component.html +17 -12
  76. package/src/app/component/list-all-conversations/list-all-conversations.component.scss +0 -2
  77. package/src/app/component/list-conversations/list-conversations.component.html +22 -22
  78. package/src/app/component/menu-options/menu-options.component.html +20 -30
  79. package/src/app/component/menu-options/menu-options.component.spec.ts +9 -125
  80. package/src/app/component/message/audio/audio.component.html +15 -13
  81. package/src/app/component/message/audio/audio.component.spec.ts +5 -140
  82. package/src/app/component/message/audio/audio.component.ts +5 -1
  83. package/src/app/component/message/avatar/avatar.component.html +2 -2
  84. package/src/app/component/message/avatar/avatar.component.spec.ts +7 -99
  85. package/src/app/component/message/bubble-message/bubble-message.component.html +51 -38
  86. package/src/app/component/message/bubble-message/bubble-message.component.scss +1 -54
  87. package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +57 -154
  88. package/src/app/component/message/bubble-message/bubble-message.component.ts +11 -89
  89. package/src/app/component/message/buttons/action-button/action-button.component.html +4 -3
  90. package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +5 -49
  91. package/src/app/component/message/buttons/link-button/link-button.component.scss +8 -5
  92. package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +5 -50
  93. package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +5 -44
  94. package/src/app/component/message/carousel/carousel.component.html +16 -29
  95. package/src/app/component/message/carousel/carousel.component.scss +8 -20
  96. package/src/app/component/message/carousel/carousel.component.spec.ts +3 -80
  97. package/src/app/component/message/carousel/carousel.component.ts +0 -16
  98. package/src/app/component/message/frame/frame.component.html +4 -9
  99. package/src/app/component/message/frame/frame.component.spec.ts +15 -34
  100. package/src/app/component/message/frame/frame.component.ts +2 -7
  101. package/src/app/component/message/html/html.component.html +1 -1
  102. package/src/app/component/message/html/html.component.scss +1 -1
  103. package/src/app/component/message/html/html.component.spec.ts +7 -24
  104. package/src/app/component/message/image/image.component.html +10 -12
  105. package/src/app/component/message/image/image.component.scss +0 -16
  106. package/src/app/component/message/image/image.component.spec.ts +15 -101
  107. package/src/app/component/message/image/image.component.ts +51 -90
  108. package/src/app/component/message/info-message/info-message.component.spec.ts +14 -26
  109. package/src/app/component/message/like-unlike/like-unlike.component.html +9 -7
  110. package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +3 -31
  111. package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +17 -38
  112. package/src/app/component/message/text/text.component.html +3 -3
  113. package/src/app/component/message/text/text.component.scss +86 -80
  114. package/src/app/component/message/text/text.component.spec.ts +13 -106
  115. package/src/app/component/message-attachment/message-attachment.component.spec.ts +13 -134
  116. package/src/app/component/selection-department/selection-department.component.html +23 -21
  117. package/src/app/component/selection-department/selection-department.component.spec.ts +14 -159
  118. package/src/app/component/selection-department/selection-department.component.ts +1 -8
  119. package/src/app/component/send-button/send-button.component.html +13 -5
  120. package/src/app/component/send-button/send-button.component.spec.ts +2 -2
  121. package/src/app/component/star-rating-widget/star-rating-widget.component.html +81 -51
  122. package/src/app/directives/tooltip.directive.spec.ts +4 -8
  123. package/src/app/modals/confirm-close/confirm-close.component.html +8 -20
  124. package/src/app/modals/confirm-close/confirm-close.component.scss +0 -3
  125. package/src/app/modals/confirm-close/confirm-close.component.spec.ts +4 -13
  126. package/src/app/modals/confirm-close/confirm-close.component.ts +1 -8
  127. package/src/app/pipe/html-entites-encode.pipe.spec.ts +2 -35
  128. package/src/app/pipe/marked.pipe.spec.ts +2 -38
  129. package/src/app/pipe/marked.pipe.ts +41 -51
  130. package/src/app/providers/app-config.service.ts +2 -4
  131. package/src/app/providers/brand.service.spec.ts +2 -23
  132. package/src/app/providers/brand.service.ts +1 -1
  133. package/src/app/providers/global-settings.service.spec.ts +14 -1009
  134. package/src/app/providers/global-settings.service.ts +2 -82
  135. package/src/app/providers/translator.service.ts +6 -26
  136. package/src/app/sass/_variables.scss +0 -3
  137. package/src/app/sass/animations.scss +1 -19
  138. package/src/app/utils/globals.ts +1 -21
  139. package/src/app/utils/utils-resources.ts +1 -1
  140. package/src/assets/i18n/en.json +99 -106
  141. package/src/assets/i18n/es.json +100 -107
  142. package/src/assets/i18n/fr.json +100 -107
  143. package/src/assets/i18n/it.json +98 -107
  144. package/src/assets/twp/index-dev.html +0 -18
  145. package/src/chat21-core/models/message.ts +1 -2
  146. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +2 -3
  147. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -12
  148. package/src/chat21-core/providers/scripts/script.service.spec.ts +2 -12
  149. package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +1 -1
  150. package/src/chat21-core/utils/utils-message.ts +0 -7
  151. package/src/chat21-core/utils/utils.ts +2 -5
  152. package/src/widget-config-template.json +1 -4
  153. package/src/widget-config.json +1 -4
  154. package/tsconfig.json +0 -5
  155. package/.angular-mcp-cache/package.json +0 -1
  156. package/.cursor/angular18-accessibility-auditor-skill.md +0 -442
  157. package/.cursor/mcp.json +0 -15
  158. package/.github/workflows/build.yml +0 -22
  159. package/.github/workflows/playwright.yml +0 -27
  160. package/mocks/voice-websocket-mock/server.cjs +0 -245
  161. package/playwright.config.ts +0 -41
  162. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +0 -46
  163. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +0 -83
  164. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +0 -192
  165. package/src/app/component/form/prechat-form-test-mock.ts +0 -35
  166. package/src/app/component/message/audio-sync/audio-sync.component.html +0 -18
  167. package/src/app/component/message/audio-sync/audio-sync.component.scss +0 -65
  168. package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +0 -103
  169. package/src/app/component/message/audio-sync/audio-sync.component.ts +0 -643
  170. package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +0 -117
  171. package/src/app/providers/tts-audio-playback-coordinator.service.ts +0 -109
  172. package/src/app/providers/voice/STT&TTS/openai-voice.config.ts +0 -12
  173. package/src/app/providers/voice/STT&TTS/openai-voice.provider.ts +0 -171
  174. package/src/app/providers/voice/STT&TTS/speech-provider.abstract.ts +0 -39
  175. package/src/app/providers/voice/audio.types.ts +0 -40
  176. package/src/app/providers/voice/vad.service.spec.ts +0 -28
  177. package/src/app/providers/voice/vad.service.ts +0 -70
  178. package/src/app/providers/voice/voice-streaming.service.spec.ts +0 -23
  179. package/src/app/providers/voice/voice-streaming.service.ts +0 -702
  180. package/src/app/providers/voice/voice-streaming.types.ts +0 -112
  181. package/src/app/providers/voice/voice.service.spec.ts +0 -227
  182. package/src/app/providers/voice/voice.service.ts +0 -973
  183. package/src/app/shims/onnxruntime-web-wasm.ts +0 -4
  184. package/src/assets/onnx/ort-wasm-simd-threaded.mjs +0 -59
  185. package/src/assets/onnx/ort-wasm-simd-threaded.wasm +0 -0
  186. package/src/assets/sounds/keyboard.mp3 +0 -0
  187. package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +0 -14
  188. package/src/assets/vad/silero_vad_legacy.onnx +0 -0
  189. package/src/assets/vad/vad.worklet.bundle.min.js +0 -1
  190. package/src/chat21-core/providers/chat-manager.spec.ts +0 -72
  191. package/tests/widget-form-rich.spec.ts +0 -67
  192. package/tests/widget-index-dev-settings.spec.ts +0 -52
  193. package/tests/widget-twp-iframe.spec.ts +0 -39
@@ -1,4 +1,5 @@
1
- <div class="c21-header" [ngStyle]="{'background-image': stylesMap?.get('colorGradient') }">
1
+ <!-- 'background-color': stylesMap.get('backgroundColor'), 'color': stylesMap.get('foregroundColor'), 'background-image': stylesMap.get('themeColor')+','+ convertColorToRGBA(stylesMap.get('themeColor'), 50)+')' -->
2
+ <div class="c21-header" [ngStyle]="{'background-image': stylesMap?.get('colorGradient') }">
2
3
 
3
4
  <div class="c21-header-container">
4
5
 
@@ -6,106 +7,63 @@
6
7
  <div class="c21-header-content">
7
8
 
8
9
  <!-- ICON CLOSE CHAT -->
9
- <button [attr.disabled]="(isButtonsDisabled)?true:null"
10
- type="button"
11
- class="c21-header-button c21-right c21-close c21-button-clean"
12
- [attr.aria-label]="translationMap?.get('BUTTON_CLOSE_TO_ICON')"
13
- [ngStyle]="{'display': (hideHeaderCloseButton)?'none':'flex'}"
14
- (click)="closeWidget()">
15
- <svg aria-hidden="true" focusable="false"
16
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }"
17
- xmlns="http://www.w3.org/2000/svg"
10
+ <button [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="-1" class="c21-header-button c21-right c21-close c21-button-clean" [ngStyle]="{'display': (hideHeaderCloseButton)?'none':'flex'}" (click)="closeWidget()">
11
+ <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }" xmlns="http://www.w3.org/2000/svg"
18
12
  width="24px" height="24px" viewBox="0 0 24 24">
19
13
  <path d="M19.35,9.21c.2-.2.2-.51,0-.71l-.71-.71c-.2-.2-.51-.2-.71,0l-5.94,5.94-5.94-5.94c-.2-.2-.51-.2-.71,0l-.71.71c-.2.2-.2.51,0,.71l7,7c.2.2.51.2.71,0l7-7Z"/>
14
+ <title id="altIconTitle">{{ translationMap?.get('BUTTON_CLOSE_TO_ICON') }}</title>
20
15
  </svg>
21
16
  </button>
22
-
17
+
23
18
  <!-- ICON MENU OPTION -->
24
- <button [attr.disabled]="(isButtonsDisabled)?true:null"
25
- type="button"
26
- class="c21-header-button c21-right c21-button-clean"
27
- [attr.aria-label]="translationMap?.get('OPTIONS')"
28
- [attr.aria-expanded]="isMenuShow ? 'true' : 'false'"
29
- aria-haspopup="true"
30
- [attr.aria-controls]="isMenuShow ? 'c21-options-menu' : null"
31
- [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}"
32
- (click)="toggleMenu()">
33
- <svg aria-hidden="true" focusable="false"
34
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }"
35
- xmlns="http://www.w3.org/2000/svg"
19
+ <button [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="-1" class="c21-header-button c21-right c21-button-clean" [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}" (click)="toggleMenu()" >
20
+ <svg aria-labelledby="altIconTitle" [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }" xmlns="http://www.w3.org/2000/svg"
36
21
  width="24" height="24" viewBox="0 0 24 24">
37
22
  <path fill="none" d="M0 0h24v24H0V0z" />
38
23
  <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
24
+ <title id="altIconTitle">{{ translationMap?.get('OPTIONS') }}</title>
39
25
  </svg>
40
26
  </button>
41
27
 
42
28
 
43
29
  <!-- ICON MAXIMIZE -->
44
- <button *ngIf="size === 'min' && !fullscreenMode && !isMobile"
45
- [attr.disabled]="(isButtonsDisabled)?true:null"
46
- type="button"
47
- class="c21-header-button c21-right c21-button-clean"
48
- [attr.aria-label]="translationMap?.get('MAXIMIZE')"
49
- [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}"
50
- (click)="onChangeSize('max')">
51
- <svg aria-hidden="true" focusable="false"
52
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }"
53
- xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
30
+ <button *ngIf="size === 'min' && !fullscreenMode && !isMobile" [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="-1" class="c21-header-button c21-right c21-button-clean" [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}" (click)="onChangeSize('max')" >
31
+ <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
54
32
  width="17" height="17" viewBox="0 0 17 17">
55
33
  <path d="M6.49001 8.30999L3.69 11.11V9.40999C3.69 8.93999 3.31 8.55999 2.84 8.55999C2.37 8.55999 1.99001 8.93999 1.99001 9.40999V14.01H6.59C7.06 14.01 7.44 13.63 7.44 13.16C7.44 12.69 7.06 12.31 6.59 12.31H4.89L7.69 9.50999L6.49001 8.30999ZM9.41 1.98999C8.94 1.98999 8.56001 2.36999 8.56001 2.83999C8.56001 3.30999 8.94 3.68999 9.41 3.68999H11.11L8.31001 6.48999L9.51 7.68999L12.31 4.88999V6.58999C12.31 7.05999 12.69 7.43999 13.16 7.43999C13.63 7.43999 14.01 7.05999 14.01 6.58999V1.98999H9.41Z"></path>
34
+ <title id="altIconTitle">{{ translationMap?.get('MAXIMIZE') }}</title>
56
35
  </svg>
57
36
  </button>
58
37
 
59
38
  <!-- ICON MINIMIZE -->
60
- <button *ngIf="size==='top' && !fullscreenMode && !isMobile"
61
- [attr.disabled]="(isButtonsDisabled)?true:null"
62
- type="button"
63
- class="c21-header-button c21-right c21-button-clean"
64
- [attr.aria-label]="translationMap?.get('MINIMIZE')"
65
- [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}"
66
- (click)="onChangeSize('min')">
67
- <svg aria-hidden="true" focusable="false"
68
- class="icon-menu"
69
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"
70
- xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
39
+ <button *ngIf="size==='top' && !fullscreenMode && !isMobile" [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="-1" class="c21-header-button c21-right c21-button-clean" [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}" (click)="onChangeSize('min')" >
40
+ <svg role="img" aria-labelledby="altIconTitle" class="icon-menu" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
71
41
  width="17" height="17" viewBox="0 0 17 17">
72
42
  <path d="M13.59 5.31h-1.7l3.3-3.3-1.2-1.2-3.3 3.3v-1.7a.85.85 0 1 0-1.7 0v4.6h4.6a.85.85 0 1 0 0-1.7M1.57 9.84c0 .47.38.85.85.85h1.7l-3.3 3.3 1.2 1.2 3.3-3.3v1.7a.85.85 0 1 0 1.7 0v-4.6h-4.6a.85.85 0 0 0-.85.85"></path>
43
+ <title id="altIconTitle">{{ translationMap?.get('MINIMIZE') }}</title>
73
44
  </svg>
74
45
  </button>
75
46
 
76
47
  <!-- ICON TOP -->
77
- <button *ngIf="size==='max' && !fullscreenMode && !isMobile"
78
- [attr.disabled]="(isButtonsDisabled)?true:null"
79
- type="button"
80
- class="c21-header-button c21-right c21-button-clean"
81
- [attr.aria-label]="translationMap?.get('CENTER')"
82
- [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}"
83
- (click)="onChangeSize('top')">
84
- <svg aria-hidden="true" focusable="false"
85
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}"
86
- xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
48
+ <button *ngIf="size==='max' && !fullscreenMode && !isMobile" [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="-1" class="c21-header-button c21-right c21-button-clean" [ngStyle]="{'display': (hideHeaderConversationOptionsMenu)?'none':'flex'}" (click)="onChangeSize('top')" >
49
+ <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': stylesMap?.get('foregroundColor')}" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
87
50
  width="17" height="17" viewBox="0 0 17 17">
88
51
  <path d="M3.7,7.6L2.5,6.4C2.2,6,2.2,5.5,2.5,5.2s0.9-0.4,1.2-0.1L7,8.4l-3.3,3.3c-0.4,0.4-0.8,0.3-1.1,0s-0.4-0.9-0.1-1.2l1.2-1.2 H1.5l0-1.7H3.7z"/>
89
52
  <path d="M13.3,7.6l1.2-1.2c0.4-0.4,0.3-0.8,0-1.1s-0.9-0.4-1.2-0.1L10,8.4l3.3,3.3c0.4,0.4,0.8,0.3,1.1,0s0.4-0.9,0.1-1.2l-1.2-1.2 h2.2l0-1.7H13.3z"/>
90
53
  <path d="M8.5,14.5L8.5,14.5c-0.5,0-0.9-0.4-0.9-0.8V3.3c0-0.5,0.4-0.8,0.8-0.8h0c0.5,0,0.8,0.4,0.8,0.8v10.4 C9.4,14.2,9,14.5,8.5,14.5z"/>
54
+ <title id="altIconTitle">{{ translationMap?.get('CENTER') }}</title>
91
55
  </svg>
92
56
  </button>
93
57
 
94
58
 
95
59
 
96
60
  <!-- ICON BACK -->
97
- <button [attr.disabled]="(isButtonsDisabled)?true:null"
98
- type="button"
99
- class="c21-header-button c21-left c21-button-clean"
100
- [attr.aria-label]="translationMap?.get('PREV_CONVERSATIONS') || translationMap?.get('BACK')"
101
- [ngStyle]="{'display': (hideHeaderBackButton)?'none':'flex'}"
102
- (click)="returnHome()">
103
- <svg aria-hidden="true" focusable="false"
104
- [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }"
105
- xmlns="http://www.w3.org/2000/svg"
61
+ <button [attr.disabled]="(isButtonsDisabled)?true:null" tabindex="1530" aria-label=" indietro " class="c21-header-button c21-left c21-button-clean" [ngStyle]="{'display': (hideHeaderBackButton)?'none':'flex'}" (click)="returnHome()">
62
+ <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': stylesMap?.get('foregroundColor') }" xmlns="http://www.w3.org/2000/svg"
106
63
  width="24px" height="24px" viewBox="0 0 24 24">
107
64
  <path fill="none" d="M0 0h24v24H0V0z" />
108
65
  <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z" />
66
+ <title id="altIconTitle">{{ translationMap?.get('PREV_CONVERSATIONS') }}</title>
109
67
  </svg>
110
68
  </button>
111
69
 
@@ -113,7 +71,7 @@
113
71
  <div class="c21-title" [ngStyle]="{'color': stylesMap?.get('foregroundColor') }">
114
72
  <div class="titleText">{{widgetTitle}}</div>
115
73
  </div>
116
-
74
+
117
75
  <user-typing *ngIf="isTypings && typingLocation==='header'"
118
76
  [color]="stylesMap?.get('foregroundColor')"
119
77
  [translationMap]="translationMap"
@@ -126,54 +84,44 @@
126
84
 
127
85
  </div>
128
86
 
129
- <div *ngIf="isMenuShow"
130
- id="c21-options-menu"
131
- role="group"
132
- [attr.aria-label]="translationMap?.get('OPTIONS')"
133
- (keydown.escape)="$event.preventDefault(); $event.stopPropagation(); toggleMenu()">
87
+ <div *ngIf="isMenuShow" id="c21-options-menu">
134
88
  <!-- ICON VOLUME -->
135
- <button type="button"
136
- class="c21-header-button c21-right c21-button-clean"
137
- [attr.aria-pressed]="soundEnabled ? 'true' : 'false'"
138
- [attr.aria-label]="soundEnabled ? translationMap?.get('SOUND_ON') : translationMap?.get('SOUND_OFF')"
139
- (click)="toggleSound()">
140
- <svg *ngIf="!soundEnabled" aria-hidden="true" focusable="false" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
89
+ <div class="c21-header-button c21-right" (click)="toggleSound()">
90
+ <svg *ngIf="!soundEnabled" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
141
91
  <path fill="none" d="M0 0h24v24H0V0z" />
142
92
  <path d="M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z" />
93
+ <title id="altIconTitle">{{ translationMap?.get('SOUND_OFF') }}</title>
143
94
  </svg>
144
- <svg *ngIf="soundEnabled" aria-hidden="true" focusable="false" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
95
+ <svg *ngIf="soundEnabled" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
145
96
  <path fill="none" d="M0 0h24v24H0V0z" />
146
97
  <path d="M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z" />
98
+ <title id="altIconTitle">{{ translationMap?.get('SOUND_ON') }}</title>
147
99
  </svg>
148
100
  <span *ngIf="!soundEnabled" class="label-menu-item"> {{ translationMap?.get('SOUND_OFF') }}</span>
149
101
  <span *ngIf="soundEnabled" class="label-menu-item"> {{ translationMap?.get('SOUND_ON')}}</span>
150
- </button>
102
+ </div>
151
103
 
152
104
  <!-- ICON TRANSCRIPT -->
153
- <button type="button"
154
- class="c21-header-button c21-right c21-button-clean" *ngIf="isTrascriptDownloadEnabled"
155
- [attr.aria-label]="translationMap?.get('DOWNLOAD_TRANSCRIPT')"
156
- (click)="dowloadTranscript()">
157
- <svg aria-hidden="true" focusable="false" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 24 24">
105
+ <div class="c21-header-button c21-right" *ngIf="isTrascriptDownloadEnabled" (click)="dowloadTranscript()">
106
+ <svg role="img" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 24 24">
158
107
  <path fill="none" d="M0 0h24v24H0V0z" />
159
108
  <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z" />
109
+ <title id="altIconTitle">{{ translationMap?.get('DOWNLOAD_TRANSCRIPT') }}</title>
160
110
  </svg>
161
111
  <span class="label-menu-item">{{ translationMap?.get('DOWNLOAD_TRANSCRIPT') }}</span>
162
- </button>
112
+ </div>
163
113
 
164
114
  <!-- ICON CLOSE CHAT -->
165
- <button type="button"
166
- class="c21-header-button c21-right c21-button-clean" *ngIf="!hideCloseConversationOptionMenu"
167
- [attr.aria-label]="translationMap?.get('CLOSE_CHAT')"
168
- (click)="closeChat()">
169
- <svg aria-hidden="true" focusable="false" id="archive" class="icon-menu" xmlns="http://www.w3.org/2000/svg"
115
+ <div class="c21-header-button c21-right" *ngIf="!hideCloseConversationOptionMenu" (click)="closeChat()">
116
+ <svg role="img" id="archive" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg"
170
117
  width="20px" height="20px" viewBox="0 0 512 512">
171
118
  <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>
172
119
  <rect x="48" y="64" width="416" height="80" rx="28" ry="28" stroke-linejoin="round" stroke-width="50px" fill="none" ></rect>
173
120
  <path stroke-linecap="round" stroke-linejoin="round" d="M320 304l-64 64-64-64M256 345.89V224" stroke-width="50px" fill="none"></path>
121
+ <title id="altIconTitle">{{ translationMap?.get('CLOSE_CHAT') }}</title>
174
122
  </svg>
175
123
  <span class="label-menu-item">{{ translationMap?.get('CLOSE_CHAT') }}</span>
176
- </button>
124
+ </div>
177
125
 
178
126
  <!-- ICON OPEN CHAT DETAIL -->
179
127
  <!-- <div class="c21-header-button c21-right" *ngIf="!hideChatDetailOptionMenu"(click)="openDetail()">
@@ -201,52 +149,44 @@
201
149
  </div> -->
202
150
 
203
151
  <!-- ICON MAXIMIZE -->
204
- <button type="button"
205
- class="c21-header-button c21-right c21-button-clean" *ngIf="size === 'min' && !fullscreenMode"
206
- [attr.aria-label]="translationMap?.get('MAXIMIZE')"
207
- (click)="onChangeSize('max')">
208
- <svg aria-hidden="true" focusable="false" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
152
+ <div class="c21-header-button c21-right" *ngIf="size === 'min' && !fullscreenMode" (click)="onChangeSize('max')">
153
+ <svg role="img" aria-labelledby="altIconTitle" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
209
154
  width="17" height="17" viewBox="0 0 17 17">
210
155
  <path d="M6.49001 8.30999L3.69 11.11V9.40999C3.69 8.93999 3.31 8.55999 2.84 8.55999C2.37 8.55999 1.99001 8.93999 1.99001 9.40999V14.01H6.59C7.06 14.01 7.44 13.63 7.44 13.16C7.44 12.69 7.06 12.31 6.59 12.31H4.89L7.69 9.50999L6.49001 8.30999ZM9.41 1.98999C8.94 1.98999 8.56001 2.36999 8.56001 2.83999C8.56001 3.30999 8.94 3.68999 9.41 3.68999H11.11L8.31001 6.48999L9.51 7.68999L12.31 4.88999V6.58999C12.31 7.05999 12.69 7.43999 13.16 7.43999C13.63 7.43999 14.01 7.05999 14.01 6.58999V1.98999H9.41Z" fill="currentColor"></path>
156
+ <title id="altIconTitle">{{ translationMap?.get('MAXIMIZE') }}</title>
211
157
  </svg>
212
158
  <span class="label-menu-item">{{ translationMap?.get('MAXIMIZE') }}</span>
213
- </button>
159
+ </div>
214
160
  <!-- ICON MINIMIZE -->
215
- <button type="button"
216
- class="c21-header-button c21-right c21-button-clean" *ngIf="(size==='max' || size==='top') && !fullscreenMode"
217
- [attr.aria-label]="translationMap?.get('MINIMIZE')"
218
- (click)="onChangeSize('min')">
219
- <svg aria-hidden="true" focusable="false" class="icon-menu" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
161
+ <div class="c21-header-button c21-right" *ngIf="(size==='max' || size==='top') && !fullscreenMode" (click)="onChangeSize('min')">
162
+ <svg role="img" aria-labelledby="altIconTitle" class="icon-menu" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
220
163
  width="17" height="17" viewBox="0 0 17 17">
221
164
  <path d="M13.59 5.31h-1.7l3.3-3.3-1.2-1.2-3.3 3.3v-1.7a.85.85 0 1 0-1.7 0v4.6h4.6a.85.85 0 1 0 0-1.7M1.57 9.84c0 .47.38.85.85.85h1.7l-3.3 3.3 1.2 1.2 3.3-3.3v1.7a.85.85 0 1 0 1.7 0v-4.6h-4.6a.85.85 0 0 0-.85.85" fill="currentColor"></path>
165
+ <title id="altIconTitle">{{ translationMap?.get('MINIMIZE') }}</title>
222
166
  </svg>
223
167
  <span class="label-menu-item">{{ translationMap?.get('MINIMIZE') }}</span>
224
- </button>
168
+ </div>
225
169
  <!-- ICON TOP -->
226
- <button type="button"
227
- class="c21-header-button c21-right c21-button-clean" *ngIf="size!=='top' && !fullscreenMode"
228
- [attr.aria-label]="translationMap?.get('CENTER')"
229
- (click)="onChangeSize('top')">
230
- <svg aria-hidden="true" focusable="false" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
170
+ <div class="c21-header-button c21-right" *ngIf="size!=='top' && !fullscreenMode" (click)="onChangeSize('top')">
171
+ <svg role="img" aria-labelledby="altIconTitle" fill="none" xmlns="http://www.w3.org/2000/svg" transform="matrix(-1,0,0,1,0,0)"
231
172
  width="17" height="17" viewBox="0 0 17 17">
232
173
  <path fill="currentColor" d="M3.7,7.6L2.5,6.4C2.2,6,2.2,5.5,2.5,5.2s0.9-0.4,1.2-0.1L7,8.4l-3.3,3.3c-0.4,0.4-0.8,0.3-1.1,0s-0.4-0.9-0.1-1.2l1.2-1.2 H1.5l0-1.7H3.7z"/>
233
174
  <path fill="currentColor" d="M13.3,7.6l1.2-1.2c0.4-0.4,0.3-0.8,0-1.1s-0.9-0.4-1.2-0.1L10,8.4l3.3,3.3c0.4,0.4,0.8,0.3,1.1,0s0.4-0.9,0.1-1.2l-1.2-1.2 h2.2l0-1.7H13.3z"/>
234
175
  <path fill="currentColor" d="M8.5,14.5L8.5,14.5c-0.5,0-0.9-0.4-0.9-0.8V3.3c0-0.5,0.4-0.8,0.8-0.8h0c0.5,0,0.8,0.4,0.8,0.8v10.4 C9.4,14.2,9,14.5,8.5,14.5z"/>
176
+ <title id="altIconTitle">{{ translationMap?.get('CENTER') }}</title>
235
177
  </svg>
236
178
  <span class="label-menu-item">{{ translationMap?.get('CENTER') }}</span>
237
- </button>
179
+ </div>
238
180
 
239
181
  <!-- ICON LOGOUT -->
240
- <button type="button"
241
- class="c21-header-button c21-right c21-button-clean" *ngIf="!hideSignOutOptionMenu"
242
- [attr.aria-label]="translationMap?.get('LOGOUT')"
243
- (click)="signOut()">
244
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true" focusable="false" class="icon-menu">
182
+ <div class="c21-header-button c21-right" *ngIf="!hideSignOutOptionMenu" (click)="signOut()">
183
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" aria-labelledby="altIconTitle" class="icon-menu">
245
184
  <path fill="none" d="M0 0h24v24H0V0z"/>
246
185
  <path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
186
+ <title id="altIconTitle">{{ translationMap?.get('LOGOUT') }}</title>
247
187
  </svg>
248
188
  <span class="label-menu-item">{{ translationMap?.get('LOGOUT') }}</span>
249
- </button>
189
+ </div>
250
190
 
251
191
  <!-- BUILD VERSION -->
252
192
  <div class="c21-button build_version_menu" *ngIf="build_version">
@@ -86,14 +86,11 @@
86
86
 
87
87
  /* ==================== OPTION MENU CONTAINER ==================== */
88
88
  #c21-options-menu {
89
- /* Single column: every row matches the width of the widest item */
90
- display: grid;
91
- grid-template-columns: minmax(0, 1fr);
92
- width: max-content;
93
- max-width: 80%;
89
+ width: auto;
94
90
  height: auto;
95
91
  //min-height: 40px;
96
92
  min-width: 100px;
93
+ max-width: 80%;
97
94
  position: absolute;
98
95
  z-index: 10;
99
96
  top: 40px;
@@ -106,12 +103,10 @@
106
103
  color: var(--blue);
107
104
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
108
105
  background-color: #ffffff;
109
- padding: 5px;
106
+ // padding: 10px 0px 10px 0px;
110
107
  .c21-header-button {
111
108
  // padding: 6px 10px 6px 10px;
112
- box-sizing: border-box;
113
- width: 100%;
114
- margin: 5px 0;
109
+ margin: 5px 5px;
115
110
  padding: 5px 10px;
116
111
  display: flex;
117
112
  align-items: center;
@@ -135,9 +130,6 @@
135
130
  }
136
131
 
137
132
  .build_version_menu {
138
- box-sizing: border-box;
139
- width: 100%;
140
- margin: 5px 0 0;
141
133
  color: var(--gray);
142
134
  justify-content: center;
143
135
  font-size: 0.8em;