@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
package/package.json CHANGED
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "23.12.38",
3
+ "version": "23.12.39-vite-1",
4
4
  "private": false,
5
5
  "scripts": {
6
- "build": "vue-cli-service build --target lib --name ui-sdk ./src/install.js",
7
- "test:unit": "vue-cli-service test:unit",
8
- "lint": "vue-cli-service lint --fix",
9
- "build:app": "vue-cli-service build",
6
+ "dev": "vite",
7
+ "build": "vite build",
8
+ "serve": "vite preview",
9
+ "test:unit": "vitest",
10
+ "lint:fix": "eslint --fix --ext .js,.vue src",
10
11
  "prepare": "husky install",
11
12
  "publish-lib": "npm run test:unit && npm run build && npm publish --access public",
12
- "publish-lib:testless": "npm run build && npm publish --access public",
13
- "serve-lib": "vue-cli-service serve",
14
- "styleguide": "vue-cli-service styleguidist",
15
- "styleguide:build": "vue-cli-service styleguidist:build"
13
+ "publish-lib:testless": "npm run build && npm publish --access public"
16
14
  },
17
- "main": "./dist/@webitel/ui-sdk.common.js",
15
+ "main": "./dist/@webitel/ui-sdk.umd.js",
18
16
  "files": [
19
17
  "dist/*",
20
18
  "src/api/*",
@@ -40,7 +38,6 @@
40
38
  "@vuepic/vue-datepicker": "^4.4.0",
41
39
  "@vueuse/components": "^10.5.0",
42
40
  "clipboard-copy": "^4.0.1",
43
- "core-js": "^3.6.5",
44
41
  "csv-stringify": "^5.5.3",
45
42
  "deep-copy": "^1.4.2",
46
43
  "deep-equal": "^2.0.3",
@@ -49,7 +46,6 @@
49
46
  "jszip": "^3.5.0",
50
47
  "jszip-utils": "^0.1.0",
51
48
  "lodash": "^4.17.21",
52
- "node-polyfill-webpack-plugin": "^1.1.4",
53
49
  "plyr": "3.6.2",
54
50
  "query-string": "^8.1.0",
55
51
  "sortablejs": "^1.15.0",
@@ -62,35 +58,21 @@
62
58
  "webitel-sdk": "^23.7.5"
63
59
  },
64
60
  "devDependencies": {
65
- "@babel/eslint-parser": "^7.17.0",
66
- "@babel/preset-react": "^7.22.15",
67
- "@testing-library/jest-dom": "^5.16.2",
68
- "@vue/cli-plugin-babel": "~5.0.8",
69
- "@vue/cli-plugin-eslint": "~5.0.8",
70
- "@vue/cli-plugin-router": "^5.0.8",
71
- "@vue/cli-plugin-unit-jest": "^5.0.8",
72
- "@vue/cli-service": "~5.0.8",
61
+ "@vitejs/plugin-vue": "4.4.1",
62
+ "@vitest/coverage-v8": "^0.34.6",
73
63
  "@vue/compiler-sfc": "^3.2.47",
74
- "@vue/eslint-config-airbnb": "^6.0.0",
75
64
  "@vue/test-utils": "^2.3.0",
76
- "@vue/vue3-jest": "^29.2.2",
77
- "babel-preset-vite": "^1.1.0",
78
65
  "bamboo-jest-reporter": "^1.0.3",
79
- "eslint": "^8.14.0",
80
- "eslint-plugin-import": "^2.20.2",
81
- "eslint-plugin-vue": "^8.7.1",
82
- "husky": "^7.0.0",
83
- "jest-environment-jsdom": "^29.4.3",
66
+ "eslint": "^8.53.0",
67
+ "eslint-plugin-vue": "^9.18.1",
68
+ "happy-dom": "^12.9.1",
69
+ "husky": "^8.0.3",
84
70
  "sass": "^1.51.0",
85
- "sass-loader": "^12.6.0",
86
- "svg-sprite-loader": "^6.0.11",
87
- "vue-cli-plugin-styleguidist": "~4.72.4",
71
+ "vite": "^4.5.0",
72
+ "vite-plugin-node-polyfills": "^0.15.0",
73
+ "vite-plugin-static-copy": "^0.17.0",
74
+ "vite-plugin-svg-sprite": "^0.5.0",
75
+ "vitest": "^0.34.6",
88
76
  "vuex": "^4.1.0"
89
- },
90
- "overrides": {
91
- "@vue/vue3-jest": "^29.2.2",
92
- "vue": "^3.2.47",
93
- "babel-jest": "^29.*",
94
- "jest": "^29.*"
95
77
  }
96
78
  }
@@ -4,17 +4,17 @@
4
4
  color="disabled"
5
5
  :text="status.offline"
6
6
  :size="size"
7
- ></wt-indicator>
7
+ />
8
8
  <wt-indicator
9
9
  color="success"
10
10
  :text="status.online"
11
11
  :size="size"
12
- ></wt-indicator>
12
+ />
13
13
  <wt-indicator
14
14
  color="primary"
15
15
  :text="status.pause"
16
16
  :size="size"
17
- ></wt-indicator>
17
+ />
18
18
  </article>
19
19
  </template>
20
20
 
@@ -5,7 +5,7 @@
5
5
  @enter="enter"
6
6
  @leave="leave"
7
7
  >
8
- <slot></slot>
8
+ <slot />
9
9
  </transition>
10
10
  </template>
11
11
 
@@ -13,7 +13,7 @@
13
13
  /* eslint-disable no-param-reassign */
14
14
  // https://markus.oberlehner.net/blog/transition-to-height-auto-with-vue/
15
15
  export default {
16
- name: 'wt-expand-transition',
16
+ name: 'WtExpandTransition',
17
17
  methods: {
18
18
  afterEnter(element) {
19
19
  element.style.height = 'auto';
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <header class="wt-app-header">
3
- <slot></slot>
3
+ <slot />
4
4
  </header>
5
5
  </template>
6
6
 
7
7
  <script>
8
8
  export default {
9
- name: 'wt-app-header',
9
+ name: 'WtAppHeader',
10
10
  };
11
11
  </script>
12
12
 
@@ -1,13 +1,16 @@
1
1
  <template>
2
- <div v-clickaway="close" class="wt-app-navigator">
2
+ <div
3
+ v-clickaway="close"
4
+ class="wt-app-navigator"
5
+ >
3
6
  <wt-tooltip>
4
- <template v-slot:activator>
7
+ <template #activator>
5
8
  <wt-icon-btn
6
9
  :class="{'active': isOpened}"
7
10
  class="wt-app-navigator__btn"
8
11
  icon="app-navigator"
9
12
  @click="isOpened = !isOpened"
10
- ></wt-icon-btn>
13
+ />
11
14
  </template>
12
15
  {{ $t('webitelUI.appNavigator.title') }}
13
16
  </wt-tooltip>
@@ -21,7 +24,6 @@
21
24
  {{ $t('webitelUI.appNavigator.title') }}
22
25
  </h3>
23
26
  <ul class="wt-app-navigator__nav">
24
-
25
27
  <li
26
28
  v-if="formattedApps[WebitelApplications.AGENT]"
27
29
  :class="{'active': formattedApps[WebitelApplications.AGENT].currentApp }"
@@ -173,7 +175,6 @@
173
175
  >
174
176
  </a>
175
177
  </li>
176
-
177
178
  </ul>
178
179
  </nav>
179
180
  </transition>
@@ -1,27 +1,37 @@
1
1
  <template>
2
2
  <div class="wt-header-actions">
3
3
  <wt-tooltip>
4
- <template v-slot:activator>
4
+ <template #activator>
5
5
  <wt-icon-btn
6
6
  v-clickaway="close"
7
7
  :class="{'active': isOpened}"
8
8
  class="wt-header-actions__btn"
9
9
  icon="account"
10
10
  @click="isOpened = !isOpened"
11
- ></wt-icon-btn>
11
+ />
12
12
  </template>
13
13
  {{ $t('webitelUI.headerActions.account') }}
14
14
  </wt-tooltip>
15
15
 
16
16
  <transition name="fade">
17
- <section v-show="isOpened" class="wt-header-actions__panel-wrapper">
18
- <header v-if="isHeader" class="wt-header-actions__header">
17
+ <section
18
+ v-show="isOpened"
19
+ class="wt-header-actions__panel-wrapper"
20
+ >
21
+ <header
22
+ v-if="isHeader"
23
+ class="wt-header-actions__header"
24
+ >
19
25
  <h3
20
26
  class="wt-header-actions__name"
21
- >{{ userName }}</h3>
27
+ >
28
+ {{ userName }}
29
+ </h3>
22
30
  <p
23
31
  class="wt-header-actions__account"
24
- >{{ userAccount }}</p>
32
+ >
33
+ {{ userAccount }}
34
+ </p>
25
35
  </header>
26
36
  <ul class="wt-header-actions__actions-wrapper">
27
37
  <li class="wt-header-actions__action">
@@ -31,7 +41,7 @@
31
41
  target="_blank"
32
42
  @click="close"
33
43
  >
34
- <wt-icon icon="docs"></wt-icon>
44
+ <wt-icon icon="docs" />
35
45
  <span>{{ $t('webitelUI.headerActions.docs') }}</span>
36
46
  </a>
37
47
  </li>
@@ -40,7 +50,7 @@
40
50
  class="wt-header-actions__action__link"
41
51
  @click.prevent="settings"
42
52
  >
43
- <wt-icon icon="settings"></wt-icon>
53
+ <wt-icon icon="settings" />
44
54
  <span>{{ $t('webitelUI.headerActions.settings') }}</span>
45
55
  </a>
46
56
  </li>
@@ -49,12 +59,18 @@
49
59
  class="wt-header-actions__action__link"
50
60
  @click.prevent="logout"
51
61
  >
52
- <wt-icon color="error" icon="logout"></wt-icon>
62
+ <wt-icon
63
+ color="error"
64
+ icon="logout"
65
+ />
53
66
  <span>{{ $t('webitelUI.headerActions.logout') }}</span>
54
67
  </a>
55
68
  </li>
56
69
  </ul>
57
- <footer v-if="isFooter" class="wt-header-actions__footer">
70
+ <footer
71
+ v-if="isFooter"
72
+ class="wt-header-actions__footer"
73
+ >
58
74
  <p class="wt-header-actions__build__version">
59
75
  {{ buildVersion }}
60
76
  </p>
@@ -66,10 +82,7 @@
66
82
 
67
83
  <script>
68
84
  export default {
69
- name: 'wt-header-actions',
70
- data: () => ({
71
- isOpened: false,
72
- }),
85
+ name: 'WtHeaderActions',
73
86
  props: {
74
87
  user: {
75
88
  type: Object,
@@ -79,6 +92,9 @@ export default {
79
92
  type: Object,
80
93
  },
81
94
  },
95
+ data: () => ({
96
+ isOpened: false,
97
+ }),
82
98
 
83
99
  computed: {
84
100
  isHeader() {
@@ -7,10 +7,10 @@
7
7
  v-if="badge"
8
8
  :color-variable="badgeColorVar"
9
9
  :icon-badge="isDnd ? 'dnd' : null"
10
- ></wt-badge>
10
+ />
11
11
  <div
12
- class="wt-avatar__letters"
13
12
  v-if="isLetterAvatar"
13
+ class="wt-avatar__letters"
14
14
  :style="{ background: `var(${avatarLettersBackground})` }"
15
15
  >
16
16
  {{ avatarLetters }}
@@ -2,15 +2,15 @@
2
2
  <aside
3
3
  class="wt-badge"
4
4
  :class="{ 'wt-badge--outside': outside }"
5
- :style="{ background: iconBadge ? `url(${this.showIconBadge})` : `var(--${colorVariable})` }"
6
- ></aside>
5
+ :style="{ background: iconBadge ? `url(${showIconBadge})` : `var(--${colorVariable})` }"
6
+ />
7
7
  </template>
8
8
 
9
9
  <script>
10
10
  import BadgeDnd from '../../assets/icons/badge-dnd.svg';
11
11
 
12
12
  export default {
13
- name: 'wt-badge',
13
+ name: 'WtBadge',
14
14
  props: {
15
15
  colorVariable: {
16
16
  type: String,
@@ -19,14 +19,16 @@
19
19
  v-if="loading"
20
20
  size="sm"
21
21
  :color="loaderColor"
22
- ></wt-loader>
23
- <slot v-else>no content provided</slot>
22
+ />
23
+ <slot v-else>
24
+ no content provided
25
+ </slot>
24
26
  </button>
25
27
  </template>
26
28
 
27
29
  <script>
28
30
  export default {
29
- name: 'wt-button',
31
+ name: 'WtButton',
30
32
  props: {
31
33
  /**
32
34
  * @values 'primary', 'secondary', 'success', 'error', 'transfer', 'job', 'info'
@@ -2,10 +2,10 @@ import { shallowMount, mount } from '@vue/test-utils';
2
2
  import WtSelectButton from '../wt-button-select.vue';
3
3
 
4
4
  // helps to mock @floating-ui/vue autoUpdate method
5
- global.ResizeObserver = jest.fn().mockImplementation(() => ({
6
- observe: jest.fn(),
7
- unobserve: jest.fn(),
8
- disconnect: jest.fn(),
5
+ global.ResizeObserver = vi.fn().mockImplementation(() => ({
6
+ observe: vi.fn(),
7
+ unobserve: vi.fn(),
8
+ disconnect: vi.fn(),
9
9
  }));
10
10
 
11
11
  describe('WtSelectButton', () => {
@@ -10,7 +10,7 @@
10
10
  class="wt-button-select__button"
11
11
  @click="$emit('click', $event)"
12
12
  >
13
- <slot></slot>
13
+ <slot />
14
14
  </wt-button>
15
15
 
16
16
  <wt-context-menu
@@ -18,7 +18,7 @@
18
18
  :visible="isOpened"
19
19
  @click="selectOption"
20
20
  >
21
- <template v-slot:activator>
21
+ <template #activator>
22
22
  <wt-button
23
23
  v-bind="$attrs"
24
24
  :color="color"
@@ -33,7 +33,7 @@
33
33
  :disabled="disabled"
34
34
  class="wt-button-select__select-arrow"
35
35
  icon="arrow-down"
36
- ></wt-icon>
36
+ />
37
37
  </wt-button>
38
38
  </template>
39
39
  </wt-context-menu>
@@ -20,17 +20,22 @@
20
20
  @change="inputHandler"
21
21
  >
22
22
  <span class="wt-checkbox__checkmark">
23
- <wt-icon
24
- :icon="checkboxIcon"
25
- :color="iconColor"
26
- ></wt-icon>
27
- </span>
23
+ <wt-icon
24
+ :icon="checkboxIcon"
25
+ :color="iconColor"
26
+ />
27
+ </span>
28
28
  <!-- @slot Custom label markup -->
29
29
  <slot
30
30
  v-bind="{ label, isChecked, disabled }"
31
31
  name="label"
32
32
  >
33
- <div v-if="label" class="wt-checkbox__label">{{ label }}</div>
33
+ <div
34
+ v-if="label"
35
+ class="wt-checkbox__label"
36
+ >
37
+ {{ label }}
38
+ </div>
34
39
  </slot>
35
40
  </wt-label>
36
41
  </div>
@@ -38,7 +43,7 @@
38
43
 
39
44
  <script>
40
45
  export default {
41
- name: 'wt-checkbox',
46
+ name: 'WtCheckbox',
42
47
  model: {
43
48
  prop: 'selected',
44
49
  event: 'change',
@@ -1,12 +1,15 @@
1
1
  <template>
2
- <span class="wt-chip" :class="`wt-chip--${color}-color`">
3
- <slot></slot>
2
+ <span
3
+ class="wt-chip"
4
+ :class="`wt-chip--${color}-color`"
5
+ >
6
+ <slot />
4
7
  </span>
5
8
  </template>
6
9
 
7
10
  <script>
8
11
  export default {
9
- name: 'wt-chip',
12
+ name: 'WtChip',
10
13
  props: {
11
14
  color: {
12
15
  type: String,
@@ -6,18 +6,18 @@
6
6
  placement="bottom-end"
7
7
  popper-class="wt-context-menu__floating-wrapper"
8
8
  >
9
- <template v-slot:activator>
10
- <slot name="activator"></slot>
9
+ <template #activator>
10
+ <slot name="activator" />
11
11
  </template>
12
- <template v-slot:default="{ hide }">
12
+ <template #default="{ hide }">
13
13
  <ul
14
14
  class="wt-context-menu__menu"
15
15
  :style="`width: ${width}; min-width: ${minWidth}; max-width: ${maxWidth};`"
16
16
  >
17
17
  <li
18
- class="wt-context-menu__option-wrapper"
19
18
  v-for="(option, index) of options"
20
19
  :key="index"
20
+ class="wt-context-menu__option-wrapper"
21
21
  >
22
22
  <!-- <a> click.prevent prevents redirect to # -->
23
23
  <a
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <wt-tooltip class="wt-copy-action">
3
- <template v-slot:activator>
3
+ <template #activator>
4
4
  <wt-icon-btn
5
5
  v-bind="$attrs"
6
6
  :icon="copied ? 'done' : 'copy'"
7
7
  class="copy-action"
8
8
  @click="copy"
9
- ></wt-icon-btn>
9
+ />
10
10
  </template>
11
11
  {{ copied ? copiedTooltip : copyTooltip }}
12
12
  </wt-tooltip>
@@ -18,10 +18,7 @@ import copy from 'clipboard-copy';
18
18
  let copiedIdTimeout = null;
19
19
 
20
20
  export default {
21
- name: 'wt-copy-action',
22
- data: () => ({
23
- copied: false,
24
- }),
21
+ name: 'WtCopyAction',
25
22
  props: {
26
23
  value: {
27
24
  type: String,
@@ -34,6 +31,9 @@ export default {
34
31
  }),
35
32
  },
36
33
  },
34
+ data: () => ({
35
+ copied: false,
36
+ }),
37
37
  computed: {
38
38
  copyTooltip() {
39
39
  return this.tooltips.copy || this.$t('webitelUI.copyAction.copy');
@@ -13,7 +13,9 @@
13
13
  <slot
14
14
  v-bind="{ label }"
15
15
  name="label"
16
- >{{ label }}</slot>
16
+ >
17
+ {{ label }}
18
+ </slot>
17
19
  </wt-label>
18
20
  <vue-datepicker
19
21
  v-bind="{ ...$attrs, ...$props }"
@@ -29,46 +31,46 @@
29
31
  @open="isOpened = true"
30
32
  @update:model-value="emit('input', $event.getTime())"
31
33
  >
32
- <template v-slot:input-icon>
34
+ <template #input-icon>
33
35
  <wt-icon
34
36
  :color="disabled ? 'disabled' : 'default'"
35
37
  icon="calendar"
36
- ></wt-icon>
38
+ />
37
39
  </template>
38
- <template v-slot:clear-icon>
40
+ <template #clear-icon>
39
41
  <wt-icon
40
42
  :class="{ 'wt-datepicker__open-arrow--opened': isOpened }"
41
43
  :color="disabled ? 'disabled' : 'default'"
42
44
  class="wt-datepicker__open-arrow"
43
45
  icon="arrow-down"
44
- ></wt-icon>
46
+ />
45
47
  </template>
46
- <template v-slot:arrow-left>
48
+ <template #arrow-left>
47
49
  <wt-icon-btn
48
50
  icon="arrow-left"
49
- ></wt-icon-btn>
51
+ />
50
52
  </template>
51
- <template v-slot:arrow-right>
53
+ <template #arrow-right>
52
54
  <wt-icon-btn
53
55
  icon="arrow-right"
54
- ></wt-icon-btn>
56
+ />
55
57
  </template>
56
58
  <template
57
59
  v-if="isDateTime"
58
- v-slot:time-picker="{ time, updateTime }"
60
+ #time-picker="{ time, updateTime }"
59
61
  >
60
62
  <div class="datepicker__timepicker">
61
63
  <wt-time-input
62
64
  :value="time.hours"
63
65
  max-value="23"
64
66
  @input="updateTime"
65
- ></wt-time-input>
67
+ />
66
68
  :
67
69
  <wt-time-input
68
70
  :value="time.minutes"
69
71
  max-value="59"
70
72
  @input="updateTime($event, false)"
71
- ></wt-time-input>
73
+ />
72
74
  </div>
73
75
  </template>
74
76
  </vue-datepicker>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <script>
6
6
  export default {
7
- name: 'wt-divider',
7
+ name: 'WtDivider',
8
8
  };
9
9
  </script>
10
10
 
@@ -10,11 +10,15 @@
10
10
  </div>
11
11
  <p
12
12
  v-if="!hiddenText"
13
- class="wt-dummy__text">{{ text || $t('webitelUI.dummy.text') }}</p>
13
+ class="wt-dummy__text"
14
+ >
15
+ {{ text || $t('webitelUI.dummy.text') }}
16
+ </p>
14
17
  <wt-button
15
18
  v-if="showAction"
16
19
  @click="emits('create')"
17
- >{{ buttonText || $t('reusable.add') }}
20
+ >
21
+ {{ buttonText || $t('reusable.add') }}
18
22
  </wt-button>
19
23
  </div>
20
24
  </template>
@@ -7,12 +7,18 @@
7
7
  :alt="errorPic.alt"
8
8
  >
9
9
  <h2
10
- class="wt-error-page__title">{{ errorTitle }}</h2>
11
- <p class="wt-error-page__text">{{ errorText }}</p>
10
+ class="wt-error-page__title"
11
+ >
12
+ {{ errorTitle }}
13
+ </h2>
14
+ <p class="wt-error-page__text">
15
+ {{ errorText }}
16
+ </p>
12
17
  <wt-button
13
18
  class="wt-error-page__action"
14
19
  @click="$emit('back')"
15
- >{{ $t('webitelUI.errorPages.goBack') }}
20
+ >
21
+ {{ $t('webitelUI.errorPages.goBack') }}
16
22
  </wt-button>
17
23
  </article>
18
24
  </section>
@@ -23,7 +29,7 @@ import pic403 from '../../assets/components/organisms/wt-error-page/403.svg';
23
29
  import pic404 from '../../assets/components/organisms/wt-error-page/404.svg';
24
30
 
25
31
  export default {
26
- name: 'wt-error-page',
32
+ name: 'WtErrorPage',
27
33
  props: {
28
34
  type: {
29
35
  type: String,
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  :class="[{'wt-expansion-panel--opened':open},
4
- `wt-expansion-panel--${props.size}`]"
4
+ `wt-expansion-panel--${props.size}`]"
5
5
  class="wt-expansion-panel"
6
6
  >
7
7
  <div
@@ -10,14 +10,14 @@
10
10
  @click="open = !open"
11
11
  @keypress.enter="open = !open"
12
12
  >
13
- <slot name="title"></slot>
13
+ <slot name="title" />
14
14
  <wt-icon
15
15
  icon="arrow-right"
16
- ></wt-icon>
16
+ />
17
17
  </div>
18
18
  <wt-expand-transition>
19
19
  <div v-show="open">
20
- <slot></slot>
20
+ <slot />
21
21
  </div>
22
22
  </wt-expand-transition>
23
23
  </div>