@webitel/ui-sdk 23.12.38 → 23.12.39-vite-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.
Files changed (277) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/img/sprite/sprite/index.js +147 -0
  3. package/dist/plyr.svg +70 -0
  4. package/dist/style.css +1 -0
  5. package/dist/ui-sdk.mjs +22666 -0
  6. package/dist/ui-sdk.umd.js +37 -43322
  7. package/package.json +19 -37
  8. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
  9. package/src/components/transitions/wt-expand-transition.vue +2 -2
  10. package/src/components/wt-app-header/wt-app-header.vue +2 -2
  11. package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
  12. package/src/components/wt-app-header/wt-header-actions.vue +30 -14
  13. package/src/components/wt-avatar/wt-avatar.vue +2 -2
  14. package/src/components/wt-badge/wt-badge.vue +3 -3
  15. package/src/components/wt-button/wt-button.vue +5 -3
  16. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
  17. package/src/components/wt-button-select/wt-button-select.vue +3 -3
  18. package/src/components/wt-checkbox/wt-checkbox.vue +12 -7
  19. package/src/components/wt-chip/wt-chip.vue +6 -3
  20. package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
  21. package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
  22. package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
  23. package/src/components/wt-divider/wt-divider.vue +1 -1
  24. package/src/components/wt-dummy/wt-dummy.vue +6 -2
  25. package/src/components/wt-error-page/wt-error-page.vue +10 -4
  26. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
  27. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
  28. package/src/components/wt-headline/wt-headline.vue +4 -4
  29. package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
  30. package/src/components/wt-hint/wt-hint.vue +4 -4
  31. package/src/components/wt-icon/wt-icon.vue +5 -5
  32. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
  33. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
  34. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
  35. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
  36. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
  37. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
  38. package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
  39. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  40. package/src/components/wt-indicator/wt-indicator.vue +6 -3
  41. package/src/components/wt-input/Readme.md +96 -0
  42. package/src/components/wt-input/wt-input.vue +193 -182
  43. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  44. package/src/components/wt-item-link/wt-item-link.vue +1 -1
  45. package/src/components/wt-label/wt-label.vue +2 -2
  46. package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
  47. package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
  48. package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
  49. package/src/components/wt-loader/wt-loader.vue +10 -3
  50. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
  51. package/src/components/wt-notification/wt-notification.vue +3 -3
  52. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
  53. package/src/components/wt-page-header/wt-page-header.vue +7 -8
  54. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
  55. package/src/components/wt-pagination/wt-pagination.vue +17 -15
  56. package/src/components/wt-player/wt-player.vue +16 -16
  57. package/src/components/wt-popup/wt-popup.vue +13 -7
  58. package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
  59. package/src/components/wt-radio/wt-radio.vue +15 -7
  60. package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
  61. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
  62. package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
  63. package/src/components/wt-select/_multiselect.scss +0 -1
  64. package/src/components/wt-select/wt-select.vue +33 -19
  65. package/src/components/wt-slider/wt-slider.vue +5 -5
  66. package/src/components/wt-status-select/wt-status-select.vue +9 -9
  67. package/src/components/wt-stepper/wt-stepper.vue +8 -6
  68. package/src/components/wt-switcher/wt-switcher.vue +12 -7
  69. package/src/components/wt-table/wt-table.vue +110 -72
  70. package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
  71. package/src/components/wt-table-column-select/wt-table-column-select.vue +28 -26
  72. package/src/components/wt-tabs/wt-tabs.vue +7 -7
  73. package/src/components/wt-tags-input/wt-tags-input.vue +23 -15
  74. package/src/components/wt-textarea/wt-textarea.vue +15 -10
  75. package/src/components/wt-time-input/wt-time-input.vue +7 -4
  76. package/src/components/wt-timepicker/wt-timepicker.vue +19 -15
  77. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
  78. package/src/components/wt-tooltip/wt-tooltip.vue +4 -4
  79. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
  80. package/src/css/styleguide/colors/_colors.scss +9 -8
  81. package/src/css/styleguide/colors/reusable/_text-field.scss +20 -0
  82. package/src/locale/en/en.js +1 -0
  83. package/src/locale/es/es.js +1 -0
  84. package/src/locale/i18n.js +1 -1
  85. package/src/locale/kz/kz.js +4 -0
  86. package/src/locale/ru/ru.js +1 -0
  87. package/src/locale/ua/ua.js +1 -0
  88. package/src/mixins/validationMixin/useValidation.js +2 -2
  89. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
  90. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
  91. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
  92. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
  93. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
  94. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
  95. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
  96. package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
  97. package/src/modules/AuditForm/components/audit-form.vue +6 -5
  98. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
  99. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
  100. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
  101. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +2 -2
  102. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
  103. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
  104. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +3 -3
  105. package/src/modules/Filters/components/filter-pagination.vue +1 -1
  106. package/src/modules/Filters/components/filter-table-fields.vue +1 -1
  107. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +3 -3
  108. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
  109. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
  110. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
  111. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
  112. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
  113. package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
  114. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
  115. package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
  116. package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
  117. package/src/modules/QueryFilters/components/filter-search.vue +2 -2
  118. package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
  119. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
  120. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
  121. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
  122. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
  123. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
  124. package/src/modules/Userinfo/components/__tests__/auth.spec.js +4 -4
  125. package/src/modules/Userinfo/components/the-auth.vue +7 -4
  126. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
  127. package/dist/demo.html +0 -1
  128. package/dist/img/sprite/index.js +0 -1
  129. package/dist/ui-sdk.common.js +0 -43304
  130. package/dist/ui-sdk.common.js.map +0 -1
  131. package/dist/ui-sdk.css +0 -1
  132. package/dist/ui-sdk.umd.js.map +0 -1
  133. package/dist/ui-sdk.umd.min.js +0 -35
  134. package/dist/ui-sdk.umd.min.js.map +0 -1
  135. /package/dist/img/sprite/{account.svg → sprite/account.svg} +0 -0
  136. /package/dist/img/sprite/{adfs.svg → sprite/adfs.svg} +0 -0
  137. /package/dist/img/sprite/{app-navigator.svg → sprite/app-navigator.svg} +0 -0
  138. /package/dist/img/sprite/{arrow-down.svg → sprite/arrow-down.svg} +0 -0
  139. /package/dist/img/sprite/{arrow-left.svg → sprite/arrow-left.svg} +0 -0
  140. /package/dist/img/sprite/{arrow-mix.svg → sprite/arrow-mix.svg} +0 -0
  141. /package/dist/img/sprite/{arrow-right.svg → sprite/arrow-right.svg} +0 -0
  142. /package/dist/img/sprite/{arrow-up.svg → sprite/arrow-up.svg} +0 -0
  143. /package/dist/img/sprite/{attach.svg → sprite/attach.svg} +0 -0
  144. /package/dist/img/sprite/{attention.svg → sprite/attention.svg} +0 -0
  145. /package/dist/img/sprite/{azure.svg → sprite/azure.svg} +0 -0
  146. /package/dist/img/sprite/{back.svg → sprite/back.svg} +0 -0
  147. /package/dist/img/sprite/{bell-badged.svg → sprite/bell-badged.svg} +0 -0
  148. /package/dist/img/sprite/{bell.svg → sprite/bell.svg} +0 -0
  149. /package/dist/img/sprite/{bucket.svg → sprite/bucket.svg} +0 -0
  150. /package/dist/img/sprite/{calendar.svg → sprite/calendar.svg} +0 -0
  151. /package/dist/img/sprite/{call--filled.svg → sprite/call--filled.svg} +0 -0
  152. /package/dist/img/sprite/{call-add-to--filled.svg → sprite/call-add-to--filled.svg} +0 -0
  153. /package/dist/img/sprite/{call-add-to.svg → sprite/call-add-to.svg} +0 -0
  154. /package/dist/img/sprite/{call-disconnect--filled.svg → sprite/call-disconnect--filled.svg} +0 -0
  155. /package/dist/img/sprite/{call-disconnect.svg → sprite/call-disconnect.svg} +0 -0
  156. /package/dist/img/sprite/{call-end--filled.svg → sprite/call-end--filled.svg} +0 -0
  157. /package/dist/img/sprite/{call-end.svg → sprite/call-end.svg} +0 -0
  158. /package/dist/img/sprite/{call-inbound--filled.svg → sprite/call-inbound--filled.svg} +0 -0
  159. /package/dist/img/sprite/{call-inbound.svg → sprite/call-inbound.svg} +0 -0
  160. /package/dist/img/sprite/{call-missed--filled.svg → sprite/call-missed--filled.svg} +0 -0
  161. /package/dist/img/sprite/{call-missed.svg → sprite/call-missed.svg} +0 -0
  162. /package/dist/img/sprite/{call-outbound--filled.svg → sprite/call-outbound--filled.svg} +0 -0
  163. /package/dist/img/sprite/{call-outbound.svg → sprite/call-outbound.svg} +0 -0
  164. /package/dist/img/sprite/{call-ringing--filled.svg → sprite/call-ringing--filled.svg} +0 -0
  165. /package/dist/img/sprite/{call-ringing.svg → sprite/call-ringing.svg} +0 -0
  166. /package/dist/img/sprite/{call-transfer--filled.svg → sprite/call-transfer--filled.svg} +0 -0
  167. /package/dist/img/sprite/{call-transfer.svg → sprite/call-transfer.svg} +0 -0
  168. /package/dist/img/sprite/{call.svg → sprite/call.svg} +0 -0
  169. /package/dist/img/sprite/{chat--filled.svg → sprite/chat--filled.svg} +0 -0
  170. /package/dist/img/sprite/{chat-emoji.svg → sprite/chat-emoji.svg} +0 -0
  171. /package/dist/img/sprite/{chat-end--filled.svg → sprite/chat-end--filled.svg} +0 -0
  172. /package/dist/img/sprite/{chat-end.svg → sprite/chat-end.svg} +0 -0
  173. /package/dist/img/sprite/{chat-group.svg → sprite/chat-group.svg} +0 -0
  174. /package/dist/img/sprite/{chat-join.svg → sprite/chat-join.svg} +0 -0
  175. /package/dist/img/sprite/{chat-message-status-read.svg → sprite/chat-message-status-read.svg} +0 -0
  176. /package/dist/img/sprite/{chat-message-status-sent.svg → sprite/chat-message-status-sent.svg} +0 -0
  177. /package/dist/img/sprite/{chat-quick-response--filled.svg → sprite/chat-quick-response--filled.svg} +0 -0
  178. /package/dist/img/sprite/{chat-quick-response.svg → sprite/chat-quick-response.svg} +0 -0
  179. /package/dist/img/sprite/{chat-reply.svg → sprite/chat-reply.svg} +0 -0
  180. /package/dist/img/sprite/{chat-send.svg → sprite/chat-send.svg} +0 -0
  181. /package/dist/img/sprite/{chat-transfer--filled.svg → sprite/chat-transfer--filled.svg} +0 -0
  182. /package/dist/img/sprite/{chat-transfer.svg → sprite/chat-transfer.svg} +0 -0
  183. /package/dist/img/sprite/{chat.svg → sprite/chat.svg} +0 -0
  184. /package/dist/img/sprite/{checkbox--checked--filled.svg → sprite/checkbox--checked--filled.svg} +0 -0
  185. /package/dist/img/sprite/{checkbox--checked.svg → sprite/checkbox--checked.svg} +0 -0
  186. /package/dist/img/sprite/{checkbox.svg → sprite/checkbox.svg} +0 -0
  187. /package/dist/img/sprite/{clear.svg → sprite/clear.svg} +0 -0
  188. /package/dist/img/sprite/{close--filled.svg → sprite/close--filled.svg} +0 -0
  189. /package/dist/img/sprite/{close.svg → sprite/close.svg} +0 -0
  190. /package/dist/img/sprite/{collapse.svg → sprite/collapse.svg} +0 -0
  191. /package/dist/img/sprite/{column-select.svg → sprite/column-select.svg} +0 -0
  192. /package/dist/img/sprite/{conference.svg → sprite/conference.svg} +0 -0
  193. /package/dist/img/sprite/{contacts.svg → sprite/contacts.svg} +0 -0
  194. /package/dist/img/sprite/{copy.svg → sprite/copy.svg} +0 -0
  195. /package/dist/img/sprite/{docs.svg → sprite/docs.svg} +0 -0
  196. /package/dist/img/sprite/{done.svg → sprite/done.svg} +0 -0
  197. /package/dist/img/sprite/{download.svg → sprite/download.svg} +0 -0
  198. /package/dist/img/sprite/{edit.svg → sprite/edit.svg} +0 -0
  199. /package/dist/img/sprite/{email.svg → sprite/email.svg} +0 -0
  200. /package/dist/img/sprite/{expand.svg → sprite/expand.svg} +0 -0
  201. /package/dist/img/sprite/{eye--closed.svg → sprite/eye--closed.svg} +0 -0
  202. /package/dist/img/sprite/{eye--opened.svg → sprite/eye--opened.svg} +0 -0
  203. /package/dist/img/sprite/{filter.svg → sprite/filter.svg} +0 -0
  204. /package/dist/img/sprite/{generate.svg → sprite/generate.svg} +0 -0
  205. /package/dist/img/sprite/{google.svg → sprite/google.svg} +0 -0
  206. /package/dist/img/sprite/{history.svg → sprite/history.svg} +0 -0
  207. /package/dist/img/sprite/{hold.svg → sprite/hold.svg} +0 -0
  208. /package/dist/img/sprite/{idle.svg → sprite/idle.svg} +0 -0
  209. /package/dist/img/sprite/{instagram.svg → sprite/instagram.svg} +0 -0
  210. /package/dist/img/sprite/{job--accept.svg → sprite/job--accept.svg} +0 -0
  211. /package/dist/img/sprite/{job--end.svg → sprite/job--end.svg} +0 -0
  212. /package/dist/img/sprite/{job.svg → sprite/job.svg} +0 -0
  213. /package/dist/img/sprite/{link.svg → sprite/link.svg} +0 -0
  214. /package/dist/img/sprite/{lock.svg → sprite/lock.svg} +0 -0
  215. /package/dist/img/sprite/{logout.svg → sprite/logout.svg} +0 -0
  216. /package/dist/img/sprite/{mail--color.svg → sprite/mail--color.svg} +0 -0
  217. /package/dist/img/sprite/{mail.svg → sprite/mail.svg} +0 -0
  218. /package/dist/img/sprite/{menu.svg → sprite/menu.svg} +0 -0
  219. /package/dist/img/sprite/{messenger-facebook--filled.svg → sprite/messenger-facebook--filled.svg} +0 -0
  220. /package/dist/img/sprite/{messenger-facebook.svg → sprite/messenger-facebook.svg} +0 -0
  221. /package/dist/img/sprite/{messenger-infobip.svg → sprite/messenger-infobip.svg} +0 -0
  222. /package/dist/img/sprite/{messenger-messenger.svg → sprite/messenger-messenger.svg} +0 -0
  223. /package/dist/img/sprite/{messenger-telegram--filled.svg → sprite/messenger-telegram--filled.svg} +0 -0
  224. /package/dist/img/sprite/{messenger-telegram.svg → sprite/messenger-telegram.svg} +0 -0
  225. /package/dist/img/sprite/{messenger-viber--filled.svg → sprite/messenger-viber--filled.svg} +0 -0
  226. /package/dist/img/sprite/{messenger-viber.svg → sprite/messenger-viber.svg} +0 -0
  227. /package/dist/img/sprite/{messenger-web-chat.svg → sprite/messenger-web-chat.svg} +0 -0
  228. /package/dist/img/sprite/{messenger-whatsapp--filled.svg → sprite/messenger-whatsapp--filled.svg} +0 -0
  229. /package/dist/img/sprite/{messenger-whatsapp.svg → sprite/messenger-whatsapp.svg} +0 -0
  230. /package/dist/img/sprite/{meta.svg → sprite/meta.svg} +0 -0
  231. /package/dist/img/sprite/{mic-muted.svg → sprite/mic-muted.svg} +0 -0
  232. /package/dist/img/sprite/{mic.svg → sprite/mic.svg} +0 -0
  233. /package/dist/img/sprite/{move.svg → sprite/move.svg} +0 -0
  234. /package/dist/img/sprite/{note.svg → sprite/note.svg} +0 -0
  235. /package/dist/img/sprite/{numpad.svg → sprite/numpad.svg} +0 -0
  236. /package/dist/img/sprite/{options.svg → sprite/options.svg} +0 -0
  237. /package/dist/img/sprite/{pause.svg → sprite/pause.svg} +0 -0
  238. /package/dist/img/sprite/{pin.svg → sprite/pin.svg} +0 -0
  239. /package/dist/img/sprite/{play.svg → sprite/play.svg} +0 -0
  240. /package/dist/img/sprite/{plus.svg → sprite/plus.svg} +0 -0
  241. /package/dist/img/sprite/{preview-tag-application.svg → sprite/preview-tag-application.svg} +0 -0
  242. /package/dist/img/sprite/{preview-tag-audio.svg → sprite/preview-tag-audio.svg} +0 -0
  243. /package/dist/img/sprite/{preview-tag-image.svg → sprite/preview-tag-image.svg} +0 -0
  244. /package/dist/img/sprite/{preview-tag-video.svg → sprite/preview-tag-video.svg} +0 -0
  245. /package/dist/img/sprite/{prompter.svg → sprite/prompter.svg} +0 -0
  246. /package/dist/img/sprite/{queue-member.svg → sprite/queue-member.svg} +0 -0
  247. /package/dist/img/sprite/{radio--checked.svg → sprite/radio--checked.svg} +0 -0
  248. /package/dist/img/sprite/{radio.svg → sprite/radio.svg} +0 -0
  249. /package/dist/img/sprite/{rec-off.svg → sprite/rec-off.svg} +0 -0
  250. /package/dist/img/sprite/{rec.svg → sprite/rec.svg} +0 -0
  251. /package/dist/img/sprite/{refresh.svg → sprite/refresh.svg} +0 -0
  252. /package/dist/img/sprite/{role.svg → sprite/role.svg} +0 -0
  253. /package/dist/img/sprite/{rounded-info.svg → sprite/rounded-info.svg} +0 -0
  254. /package/dist/img/sprite/{scorecard.svg → sprite/scorecard.svg} +0 -0
  255. /package/dist/img/sprite/{search.svg → sprite/search.svg} +0 -0
  256. /package/dist/img/sprite/{send-arrow.svg → sprite/send-arrow.svg} +0 -0
  257. /package/dist/img/sprite/{settings.svg → sprite/settings.svg} +0 -0
  258. /package/dist/img/sprite/{sort-arrow-down.svg → sprite/sort-arrow-down.svg} +0 -0
  259. /package/dist/img/sprite/{sort-arrow-up.svg → sprite/sort-arrow-up.svg} +0 -0
  260. /package/dist/img/sprite/{sound-off.svg → sprite/sound-off.svg} +0 -0
  261. /package/dist/img/sprite/{sound-on.svg → sprite/sound-on.svg} +0 -0
  262. /package/dist/img/sprite/{star--filled.svg → sprite/star--filled.svg} +0 -0
  263. /package/dist/img/sprite/{star.svg → sprite/star.svg} +0 -0
  264. /package/dist/img/sprite/{stop.svg → sprite/stop.svg} +0 -0
  265. /package/dist/img/sprite/{stt-download.svg → sprite/stt-download.svg} +0 -0
  266. /package/dist/img/sprite/{stt-search.svg → sprite/stt-search.svg} +0 -0
  267. /package/dist/img/sprite/{stt.svg → sprite/stt.svg} +0 -0
  268. /package/dist/img/sprite/{telegram-bot.svg → sprite/telegram-bot.svg} +0 -0
  269. /package/dist/img/sprite/{tick.svg → sprite/tick.svg} +0 -0
  270. /package/dist/img/sprite/{tts-download.svg → sprite/tts-download.svg} +0 -0
  271. /package/dist/img/sprite/{unpin.svg → sprite/unpin.svg} +0 -0
  272. /package/dist/img/sprite/{upload.svg → sprite/upload.svg} +0 -0
  273. /package/dist/img/sprite/{user.svg → sprite/user.svg} +0 -0
  274. /package/dist/img/sprite/{video-cam-off.svg → sprite/video-cam-off.svg} +0 -0
  275. /package/dist/img/sprite/{video-cam.svg → sprite/video-cam.svg} +0 -0
  276. /package/dist/img/sprite/{zoom-in.svg → sprite/zoom-in.svg} +0 -0
  277. /package/dist/img/sprite/{zoom-out.svg → sprite/zoom-out.svg} +0 -0
@@ -8,8 +8,8 @@
8
8
  }"
9
9
  >
10
10
  <wt-label
11
- v-bind="labelProps"
12
11
  v-if="hasLabel"
12
+ v-bind="labelProps"
13
13
  :for="name"
14
14
  :outline="outline"
15
15
  :disabled="disabled"
@@ -19,7 +19,9 @@
19
19
  <slot
20
20
  v-bind="{ label }"
21
21
  name="label"
22
- >{{ label }}</slot>
22
+ >
23
+ {{ label }}
24
+ </slot>
23
25
  </wt-label>
24
26
  <div class="wt-time-input__wrapper">
25
27
  <input
@@ -36,7 +38,8 @@
36
38
  <wt-input-info
37
39
  v-if="showInfo"
38
40
  :invalid="invalid"
39
- >{{ validationText }}
41
+ >
42
+ {{ validationText }}
40
43
  </wt-input-info>
41
44
  </div>
42
45
  </template>
@@ -45,7 +48,7 @@
45
48
  import validationMixin from '../../mixins/validationMixin/validationMixin';
46
49
 
47
50
  export default {
48
- name: 'wt-time-input',
51
+ name: 'WtTimeInput',
49
52
  mixins: [validationMixin],
50
53
  props: {
51
54
  /**
@@ -1,8 +1,11 @@
1
1
  <template>
2
- <div class="wt-timepicker" :class="{'wt-timepicker--invalid': invalid}">
2
+ <div
3
+ class="wt-timepicker"
4
+ :class="{'wt-timepicker--invalid': invalid}"
5
+ >
3
6
  <wt-label
4
- v-bind="labelProps"
5
7
  v-if="label"
8
+ v-bind="labelProps"
6
9
  :invalid="invalid"
7
10
  >
8
11
  {{ `${label} (${format})` }}
@@ -13,36 +16,37 @@
13
16
  :value="hour"
14
17
  :v="v"
15
18
  :label="label ? null : $t('webitelUI.timepicker.hour') "
16
- :maxValue="dateMode ? null : 23"
19
+ :max-value="dateMode ? null : 23"
17
20
  :disabled="disabled"
18
21
  hide-input-info
19
22
  @input="hour = $event"
20
- ></wt-time-input>
23
+ />
21
24
  <wt-time-input
22
25
  v-if="isMin"
23
26
  :value="min"
24
27
  :v="v"
25
28
  :label="label ? null : $t('webitelUI.timepicker.min')"
26
- :maxValue="59"
29
+ :max-value="59"
27
30
  :disabled="disabled"
28
31
  hide-input-info
29
32
  @input="min = $event"
30
- ></wt-time-input>
33
+ />
31
34
  <wt-time-input
32
35
  v-if="isSec"
33
36
  :value="sec"
34
37
  :v="v"
35
- :label="label ? null : $t('webitelUI.timepicker.sec')"
36
- :maxValue="59"
38
+ :label="label ? null : $t('webitelUI.timepicker.sec')"
39
+ :max-value="59"
37
40
  :disabled="disabled"
38
41
  hide-input-info
39
42
  @input="sec = $event"
40
- ></wt-time-input>
43
+ />
41
44
  </div>
42
45
  <wt-input-info
43
46
  v-if="isValidation"
44
47
  :invalid="invalid"
45
- >{{ validationText }}
48
+ >
49
+ {{ validationText }}
46
50
  </wt-input-info>
47
51
  </div>
48
52
  </template>
@@ -54,8 +58,12 @@ const SEC_IN_HOUR = 60 * 60;
54
58
  const SEC_IN_MIN = 60;
55
59
 
56
60
  export default {
57
- name: 'wt-timepicker',
61
+ name: 'WtTimepicker',
58
62
  mixins: [validationMixin],
63
+ model: {
64
+ prop: 'value',
65
+ event: 'input',
66
+ },
59
67
  props: {
60
68
  value: {
61
69
  type: [String, Number],
@@ -82,10 +90,6 @@ export default {
82
90
  description: 'Object with props, passed down to wt-label as props',
83
91
  },
84
92
  },
85
- model: {
86
- prop: 'value',
87
- event: 'input',
88
- },
89
93
 
90
94
  computed: {
91
95
  isHour() {
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <aside
3
- class="wt-tooltip-floating"
4
3
  ref="floating"
4
+ class="wt-tooltip-floating"
5
5
  >
6
- <slot></slot>
6
+ <slot />
7
7
  </aside>
8
8
  </template>
9
9
 
@@ -3,27 +3,27 @@
3
3
  :class="{
4
4
  'wt-tooltip--contrast': contrast,
5
5
  'wt-tooltip--visible': isVisible,
6
- }"
6
+ }"
7
7
  class="wt-tooltip"
8
8
  >
9
9
  <div
10
10
  ref="activator"
11
11
  class="wt-tooltip__activator"
12
12
  >
13
- <slot name="activator"></slot>
13
+ <slot name="activator" />
14
14
  </div>
15
15
  <wt-tooltip-floating
16
16
  v-if="isVisible"
17
17
  ref="floating"
18
- class="wt-tooltip__floating"
19
18
  v-clickaway="hideTooltip"
19
+ class="wt-tooltip__floating"
20
20
  :class="[popperClass]"
21
21
  :style="floatingStyles"
22
22
  :triggers="popperTriggers"
23
23
  @show="showTooltip"
24
24
  @hide="hideTooltip"
25
25
  >
26
- <slot v-bind="{ hide: hideTooltip }"></slot>
26
+ <slot v-bind="{ hide: hideTooltip }" />
27
27
  </wt-tooltip-floating>
28
28
  </div>
29
29
  </template>
@@ -1,14 +1,14 @@
1
1
  import { useCachedInterval } from '../useCachedInterval';
2
2
 
3
3
  describe('useCachedInterval', () => {
4
- it('subscribe', (done) => {
5
- const callback = jest.fn();
4
+ it('subscribe', async () => {
5
+ const callback = vi.fn();
6
6
  const { subscribe } = useCachedInterval({ timeout: 10 });
7
7
  subscribe(callback);
8
8
  expect(callback).toHaveBeenCalledTimes(1);
9
- setTimeout(() => {
9
+ return await new Promise((resolve, reject) => setTimeout(() => {
10
10
  expect(callback).toHaveBeenCalledTimes(2);
11
- done();
12
- }, 10);
11
+ resolve();
12
+ }, 10));
13
13
  });
14
14
  });
@@ -1,5 +1,6 @@
1
1
  @import './deprecated';
2
2
  @import './palette';
3
+ @import './reusable/text-field';
3
4
 
4
5
  :root {
5
6
  // dp colors
@@ -84,10 +85,10 @@
84
85
  --sub-accent-color: var(--indigo-darken-3);
85
86
 
86
87
  // typography colors
87
- --main-text-color: var(--grey-darken-3);
88
- --main-text-disabled-color: var(--grey-lighten-1);
89
- --negative-text-color: var(--error-color);
90
- --link-color: var(--info-color);
88
+ --text-main-color: var(--grey-darken-3);
89
+ --text-disabled-color: var(--grey-lighten-1);
90
+ --text-error-color: var(--error-color);
91
+ --text-link-color: var(--info-color);
91
92
  }
92
93
 
93
94
  :root.theme--dark {
@@ -173,8 +174,8 @@
173
174
  --sub-accent-color: var(--indigo-darken-3);
174
175
 
175
176
  // typography colors
176
- --main-text-color: var(--grey-lighten-3);
177
- --main-text-disabled-color: var(--grey-darken-1);
178
- --negative-text-color: var(--error-color);
179
- --link-color: var(--info-color);
177
+ --text-main-color: var(--grey-lighten-3);
178
+ --text-disabled-color: var(--grey-darken-1);
179
+ --text-error-color: var(--error-color);
180
+ --text-link-color: var(--info-color);
180
181
  }
@@ -0,0 +1,20 @@
1
+ // shared text field colors
2
+
3
+ :root {
4
+ // TODO: move to separate helper-text component
5
+ --wt-helper-text-color: var(--text-main-color);
6
+ --wt-helper-text-disabled-color: var(--text-disabled-color);
7
+
8
+ --wt-text-field-error-text-color: var(--error-color);
9
+ --wt-text-field-placeholder-color: var(--text-main-color);
10
+ --wt-text-field-placeholder-error-color: var(--error-color);
11
+ --wt-text-field-placeholder-disabled-color: var(--text-disabled-color);
12
+
13
+ --wt-text-field-input-border-color: var(--grey-darken-1);
14
+ --wt-text-field-input-border-disabled-color: var(--dp-16-surface-color);
15
+ --wt-text-field-input-border-error-color: var(--error-color);
16
+ }
17
+
18
+ :root.theme--dark {
19
+ --wt-text-field-input-border-color: var(--grey-lighten-1);
20
+ }
@@ -44,6 +44,7 @@ export default {
44
44
  es: 'Español',
45
45
  ru: 'Русский',
46
46
  ua: 'Українська',
47
+ kz: 'Қазақ',
47
48
  },
48
49
  from: 'From',
49
50
  to: 'To',
@@ -39,6 +39,7 @@ export default {
39
39
  es: 'Español',
40
40
  ru: 'Русский',
41
41
  ua: 'Українська',
42
+ kz: 'Қазақ',
42
43
  },
43
44
  from: 'De',
44
45
  to: 'Hasta',
@@ -14,7 +14,7 @@ const messages = {
14
14
  };
15
15
 
16
16
  // eslint-disable-next-line new-cap
17
- export default new createI18n({
17
+ export default createI18n({
18
18
  // legacy: false,
19
19
  locale: 'en',
20
20
  allowComposition: true,
@@ -37,7 +37,11 @@ export default {
37
37
  collapse: 'Жабу',
38
38
  generate: 'Жасау',
39
39
  lang: {
40
+ en: 'English',
41
+ es: 'Español',
40
42
  ru: 'Орысша',
43
+ ua: 'Українська',
44
+ kz: 'Қазақ',
41
45
  },
42
46
  from: 'Бастап',
43
47
  to: 'Бұрын/Дейін',
@@ -44,6 +44,7 @@ export default {
44
44
  es: 'Español',
45
45
  ru: 'Русский',
46
46
  ua: 'Українська',
47
+ kz: 'Қазақ',
47
48
  },
48
49
  from: 'От',
49
50
  to: 'До',
@@ -44,6 +44,7 @@ export default {
44
44
  es: 'Español',
45
45
  ru: 'Русский',
46
46
  ua: 'Українська',
47
+ kz: 'Қазақ',
47
48
  },
48
49
  from: 'Від',
49
50
  to: 'До',
@@ -3,12 +3,12 @@ import { useI18n } from 'vue-i18n';
3
3
 
4
4
  export function useValidation({ v, customValidators }) {
5
5
  const { t } = useI18n();
6
- const isValidation = computed(() => !!v.value && !!Object.keys(v.value).length);
6
+ const isValidation = computed(() => !!v && !!v.value && !!Object.keys(v.value).length);
7
7
  const invalid = computed(() => isValidation.value && v.value.$error);
8
8
 
9
9
  const validationText = computed(() => {
10
10
  let validationText = '';
11
- if (isValidation && invalid) {
11
+ if (isValidation.value && invalid) {
12
12
  if (v.value.required?.$invalid) validationText = t('validation.required');
13
13
  else if (v.value.numeric?.$invalid) validationText = t('validation.numeric');
14
14
  else if (v.value.email?.$invalid) validationText = t('validation.email');
@@ -6,13 +6,13 @@ import * as PauseCauseAPIFactory from '../../api/pause-cause';
6
6
  import WtCcAgentStatusSelect from '../wt-cc-agent-status-select.vue';
7
7
 
8
8
  const pauseCauses = [{ name: 'jest1' }, { name: 'jest2' }];
9
- const getAgentPauseCausesMock = jest.fn(() => ({ items: pauseCauses }));
9
+ const getAgentPauseCausesMock = vi.fn(() => ({ items: pauseCauses }));
10
10
  // https://stackoverflow.com/a/63727813
11
- jest.spyOn(PauseCauseAPIFactory, 'default').mockImplementation(() => ({ getList: getAgentPauseCausesMock }));
11
+ vi.spyOn(PauseCauseAPIFactory, 'default').mockImplementation(() => ({ getList: getAgentPauseCausesMock }));
12
12
 
13
- const agentStatusMock = jest.fn(() => {});
13
+ const agentStatusMock = vi.fn(() => {});
14
14
  // https://stackoverflow.com/a/63727813
15
- jest.spyOn(AgentStatusAPIFactory, 'default').mockImplementation(() => ({ patch: agentStatusMock }));
15
+ vi.spyOn(AgentStatusAPIFactory, 'default').mockImplementation(() => ({ patch: agentStatusMock }));
16
16
 
17
17
  const agent = {
18
18
  status: '',
@@ -4,16 +4,16 @@
4
4
  min-width="480"
5
5
  @close="close"
6
6
  >
7
- <template v-slot:title>
7
+ <template #title>
8
8
  {{ $t('webitelUI.agentStatusSelect.pauseCausePopup.title') }}
9
9
  </template>
10
- <template v-slot:main>
10
+ <template #main>
11
11
  <form @submit.prevent="setPause">
12
12
  <ul>
13
13
  <li
14
- class="wt-cc-pause-cause-popup-option"
15
14
  v-for="(option) of pauseCause"
16
15
  :key="option.id"
16
+ class="wt-cc-pause-cause-popup-option"
17
17
  >
18
18
  <wt-radio
19
19
  class="wt-cc-pause-cause-popup-option__radio"
@@ -21,12 +21,12 @@
21
21
  :value="option.id"
22
22
  :label="option.name"
23
23
  @input="select(option)"
24
- ></wt-radio>
24
+ />
25
25
  <div class="wt-cc-pause-cause-popup-option__limits-wrapper">
26
26
  <span
27
27
  :class="{
28
- 'wt-cc-pause-cause-popup-option__duration--overflow': option.isOverflow,
29
- }"
28
+ 'wt-cc-pause-cause-popup-option__duration--overflow': option.isOverflow,
29
+ }"
30
30
  >
31
31
  {{ option.duration }}
32
32
  </span>
@@ -37,16 +37,18 @@
37
37
  </ul>
38
38
  </form>
39
39
  </template>
40
- <template v-slot:actions>
40
+ <template #actions>
41
41
  <wt-button
42
42
  :disabled="!selected"
43
43
  @click="setPause"
44
- >{{ $t('reusable.ok') }}
44
+ >
45
+ {{ $t('reusable.ok') }}
45
46
  </wt-button>
46
47
  <wt-button
47
48
  color="secondary"
48
49
  @click="close"
49
- >{{ $t('reusable.cancel') }}
50
+ >
51
+ {{ $t('reusable.cancel') }}
50
52
  </wt-button>
51
53
  </template>
52
54
  </wt-popup>
@@ -4,25 +4,26 @@
4
4
  min-width="480"
5
5
  @close="close"
6
6
  >
7
- <template v-slot:header>
7
+ <template #header>
8
8
  {{ $t('webitelUI.agentStatusSelect.statusSelectErrorPopup.title') }}
9
9
  </template>
10
- <template v-slot:main>
10
+ <template #main>
11
11
  <article class="wt-cc-status-select-error-popup__main-wrapper">
12
12
  <wt-icon
13
13
  icon="attention"
14
14
  color="danger"
15
- ></wt-icon>
15
+ />
16
16
  <p class="wt-cc-status-select-error-popup__message">
17
17
  {{ $t('webitelUI.agentStatusSelect.statusSelectErrorPopup.message') }}
18
18
  </p>
19
19
  </article>
20
20
  </template>
21
- <template v-slot:actions>
21
+ <template #actions>
22
22
  <wt-button
23
23
  color="secondary"
24
24
  @click="close"
25
- >{{ $t('reusable.ok') }}
25
+ >
26
+ {{ $t('reusable.ok') }}
26
27
  </wt-button>
27
28
  </template>
28
29
  </wt-popup>
@@ -4,18 +4,18 @@
4
4
  :status="status"
5
5
  :status-duration="statusDuration"
6
6
  @change="handleStatusSelectInput"
7
- ></wt-status-select>
7
+ />
8
8
  <pause-cause-popup
9
9
  v-if="isPauseCausePopup"
10
10
  :options="pauseCauses"
11
11
  @change="handlePauseCauseInput"
12
12
  @close="closePauseCausePopup"
13
- ></pause-cause-popup>
13
+ />
14
14
  <status-select-error-popup
15
15
  v-if="error"
16
16
  :error="error"
17
17
  @close="error = null"
18
- ></status-select-error-popup>
18
+ />
19
19
  </article>
20
20
  </template>
21
21
 
@@ -6,7 +6,7 @@ import {
6
6
  useDestroyableSortable,
7
7
  } from '../../../../composables/useDestroyableSortable/useDestroyableSortable';
8
8
 
9
- jest.mock('../../../../composables/useDestroyableSortable/useDestroyableSortable');
9
+ vi.mock('../../../../composables/useDestroyableSortable/useDestroyableSortable');
10
10
 
11
11
  useDestroyableSortable.mockImplementation(() => ({ reloadSortable: ref(false) }));
12
12
 
@@ -14,12 +14,14 @@
14
14
  :class="{
15
15
  'audit-form-question-read-text--required': question.required,
16
16
  }"
17
- >{{ question.question }}</p>
17
+ >
18
+ {{ question.question }}
19
+ </p>
18
20
  <wt-icon
19
- class="audit-form-question-read__drag-icon"
20
21
  v-if="!disableDragging && !first"
22
+ class="audit-form-question-read__drag-icon"
21
23
  icon="move"
22
- ></wt-icon>
24
+ />
23
25
  </header>
24
26
  <section class="audit-form-question-read-content">
25
27
  <component
@@ -28,12 +30,14 @@
28
30
  :result="result"
29
31
  mode="read"
30
32
  @change:result="!readonly && emit('change:result', $event)"
31
- ></component>
33
+ />
32
34
  <div
33
35
  v-show="isResult"
34
36
  class="audit-form-question--clear"
35
37
  @click="emit('change:result', {})"
36
- >{{ $t('webitelUI.auditForm.clearSelection') }}</div>
38
+ >
39
+ {{ $t('webitelUI.auditForm.clearSelection') }}
40
+ </div>
37
41
  </section>
38
42
  </article>
39
43
  </template>
@@ -126,6 +130,6 @@ const isResult = computed(() => !isEmpty(props.result));
126
130
  .audit-form-question--clear {
127
131
  margin-top: var(--spacing-sm);;
128
132
  cursor: pointer;
129
- color: var(--link-color);
133
+ color: var(--text-link-color);
130
134
  }
131
135
  </style>
@@ -6,24 +6,24 @@
6
6
  :label="$t('reusable.required')"
7
7
  :disabled="first"
8
8
  @change="updateQuestion({ path: 'required', value: $event })"
9
- ></wt-switcher>
9
+ />
10
10
  <div class="audit-form-question-write-header__actions">
11
11
  <wt-tooltip>
12
- <template v-slot:activator>
12
+ <template #activator>
13
13
  <wt-icon-btn
14
14
  icon="copy"
15
15
  @click="emit('copy')"
16
- ></wt-icon-btn>
16
+ />
17
17
  </template>
18
18
  {{ $t('reusable.copy') }}
19
19
  </wt-tooltip>
20
20
  <wt-tooltip>
21
- <template v-slot:activator>
21
+ <template #activator>
22
22
  <wt-icon-btn
23
23
  icon="bucket"
24
24
  :disabled="first"
25
25
  @click="emit('delete')"
26
- ></wt-icon-btn>
26
+ />
27
27
  </template>
28
28
  {{ $t('reusable.delete') }}
29
29
  </wt-tooltip>
@@ -38,7 +38,7 @@
38
38
  required
39
39
  prevent-trim
40
40
  @input="updateQuestion({ path: 'question', value: $event })"
41
- ></wt-input>
41
+ />
42
42
  <wt-select
43
43
  :value="prettifiedQuestionType"
44
44
  :options="QuestionType"
@@ -46,14 +46,14 @@
46
46
  :clearable="false"
47
47
  :label="$t('webitelUI.auditForm.answerType')"
48
48
  @input="handleQuestionTypeChange($event.value)"
49
- ></wt-select>
49
+ />
50
50
  </div>
51
51
  <component
52
52
  :is="QuestionTypeComponent"
53
53
  :question="question"
54
54
  mode="write"
55
55
  @change:question="emit('change:question', $event)"
56
- ></component>
56
+ />
57
57
  </section>
58
58
  </article>
59
59
  </template>
@@ -3,13 +3,13 @@
3
3
  :is="component"
4
4
  v-clickaway="saveQuestion"
5
5
  :class="[
6
- `audit-form-question--mode-${mode}`,
7
- {
8
- 'audit-form-question--answered': isResult,
9
- },
10
- {
11
- 'audit-form-question--sort-ignore': first && mode === 'fill'
12
- }
6
+ `audit-form-question--mode-${mode}`,
7
+ {
8
+ 'audit-form-question--answered': isResult,
9
+ },
10
+ {
11
+ 'audit-form-question--sort-ignore': first && mode === 'fill'
12
+ }
13
13
  ]"
14
14
  :disable-dragging="mode === 'fill'"
15
15
  :first="first"
@@ -23,7 +23,7 @@
23
23
  @delete="emits('delete')"
24
24
  @change:question="emits('update:question', $event)"
25
25
  @change:result="emits('update:result', $event)"
26
- ></component>
26
+ />
27
27
  </template>
28
28
 
29
29
  <script setup>
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <section class="audit-form">
3
3
  <div
4
- class="audit-form__sortable-wrapper"
5
- ref="sortableWrapper"
6
4
  v-if="!reloadSortable"
5
+ ref="sortableWrapper"
6
+ class="audit-form__sortable-wrapper"
7
7
  >
8
8
  <audit-form-question
9
9
  v-for="(question, key) of questions"
@@ -18,14 +18,15 @@
18
18
  @delete="deleteQuestion({ question, key})"
19
19
  @update:question="handleQuestionUpdate({ key, value: $event })"
20
20
  @update:result="handleResultUpdate({ key, value: $event })"
21
- ></audit-form-question>
21
+ />
22
22
  </div>
23
23
  <wt-button
24
- class="audit-form__add-button"
25
24
  v-if="mode === 'create' && !readonly"
25
+ class="audit-form__add-button"
26
26
  :disabled="isInvalidForm"
27
27
  @click="addQuestion"
28
- >{{ $t('webitelUI.auditForm.addQuestion') }}
28
+ >
29
+ {{ $t('webitelUI.auditForm.addQuestion') }}
29
30
  </wt-button>
30
31
  </section>
31
32
  </template>
@@ -6,21 +6,21 @@
6
6
  :v="v$.option.name"
7
7
  prevent-trim
8
8
  @input="emit('update:option', { name: $event, score: option.score })"
9
- ></wt-input>
9
+ />
10
10
  <wt-input
11
11
  :label="$t('webitelUI.auditForm.score', 1)"
12
12
  :value="option.score"
13
13
  :v="v$.option.score"
14
14
  type="number"
15
15
  @input="emit('update:option', { name: option.name, score: $event })"
16
- ></wt-input>
16
+ />
17
17
  <wt-tooltip class="audit-form-question-options-write-row__tooltip">
18
- <template v-slot:activator>
18
+ <template #activator>
19
19
  <wt-icon-btn
20
20
  :disabled="first"
21
21
  icon="bucket"
22
22
  @click="emit('delete')"
23
- ></wt-icon-btn>
23
+ />
24
24
  </template>
25
25
  {{ $t('reusable.delete') }}
26
26
  </wt-tooltip>