@webitel/ui-sdk 24.6.16 → 24.6.18

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 (456) hide show
  1. package/dist/img/plyr.svg +77 -68
  2. package/dist/img/sprite/account.svg +4 -2
  3. package/dist/img/sprite/adfs.svg +7 -3
  4. package/dist/img/sprite/agent.svg +4 -3
  5. package/dist/img/sprite/app-navigator.svg +9 -9
  6. package/dist/img/sprite/arrow-down.svg +2 -1
  7. package/dist/img/sprite/arrow-left.svg +2 -1
  8. package/dist/img/sprite/arrow-mix.svg +3 -3
  9. package/dist/img/sprite/arrow-right.svg +2 -1
  10. package/dist/img/sprite/arrow-up.svg +2 -1
  11. package/dist/img/sprite/attach.svg +2 -1
  12. package/dist/img/sprite/attention.svg +2 -1
  13. package/dist/img/sprite/azure.svg +25 -17
  14. package/dist/img/sprite/back.svg +2 -2
  15. package/dist/img/sprite/bot.svg +4 -3
  16. package/dist/img/sprite/bucket.svg +2 -1
  17. package/dist/img/sprite/calendar.svg +2 -1
  18. package/dist/img/sprite/call--filled.svg +1 -1
  19. package/dist/img/sprite/call-add-to--filled.svg +2 -2
  20. package/dist/img/sprite/call-add-to.svg +3 -2
  21. package/dist/img/sprite/call-disconnect--filled.svg +2 -1
  22. package/dist/img/sprite/call-disconnect.svg +2 -1
  23. package/dist/img/sprite/call-end--filled.svg +2 -1
  24. package/dist/img/sprite/call-end.svg +2 -1
  25. package/dist/img/sprite/call-inbound--filled.svg +3 -2
  26. package/dist/img/sprite/call-inbound.svg +2 -1
  27. package/dist/img/sprite/call-missed--filled.svg +2 -2
  28. package/dist/img/sprite/call-missed.svg +2 -1
  29. package/dist/img/sprite/call-outbound--filled.svg +2 -1
  30. package/dist/img/sprite/call-outbound.svg +2 -1
  31. package/dist/img/sprite/call-ringing--filled.svg +4 -3
  32. package/dist/img/sprite/call-ringing.svg +2 -1
  33. package/dist/img/sprite/call-transfer--filled.svg +2 -2
  34. package/dist/img/sprite/call-transfer.svg +2 -1
  35. package/dist/img/sprite/call.svg +2 -1
  36. package/dist/img/sprite/chat--filled.svg +1 -1
  37. package/dist/img/sprite/chat-emoji.svg +2 -1
  38. package/dist/img/sprite/chat-end--filled.svg +2 -1
  39. package/dist/img/sprite/chat-end.svg +3 -2
  40. package/dist/img/sprite/chat-group.svg +5 -3
  41. package/dist/img/sprite/chat-join.svg +3 -2
  42. package/dist/img/sprite/chat-message-status-read.svg +2 -1
  43. package/dist/img/sprite/chat-message-status-sent.svg +2 -1
  44. package/dist/img/sprite/chat-quick-response--filled.svg +2 -1
  45. package/dist/img/sprite/chat-quick-response.svg +2 -1
  46. package/dist/img/sprite/chat-reply.svg +2 -1
  47. package/dist/img/sprite/chat-send.svg +5 -4
  48. package/dist/img/sprite/chat-transfer--filled.svg +2 -1
  49. package/dist/img/sprite/chat-transfer.svg +3 -2
  50. package/dist/img/sprite/chat.svg +2 -1
  51. package/dist/img/sprite/checkbox--checked--filled.svg +2 -1
  52. package/dist/img/sprite/checkbox--checked.svg +2 -1
  53. package/dist/img/sprite/checkbox.svg +2 -1
  54. package/dist/img/sprite/clear.svg +2 -1
  55. package/dist/img/sprite/close--filled.svg +2 -1
  56. package/dist/img/sprite/close.svg +1 -1
  57. package/dist/img/sprite/collapse.svg +4 -3
  58. package/dist/img/sprite/column-select.svg +3 -2
  59. package/dist/img/sprite/conference.svg +9 -6
  60. package/dist/img/sprite/contacts.svg +2 -1
  61. package/dist/img/sprite/copy.svg +2 -1
  62. package/dist/img/sprite/custom-chat-gateway.svg +8 -3
  63. package/dist/img/sprite/dark-mode.svg +5 -3
  64. package/dist/img/sprite/docs.svg +5 -4
  65. package/dist/img/sprite/done.svg +3 -2
  66. package/dist/img/sprite/download.svg +4 -3
  67. package/dist/img/sprite/edit.svg +2 -1
  68. package/dist/img/sprite/elevenlabs.svg +3 -3
  69. package/dist/img/sprite/email.svg +2 -1
  70. package/dist/img/sprite/expand.svg +4 -3
  71. package/dist/img/sprite/eye--closed.svg +2 -1
  72. package/dist/img/sprite/eye--opened.svg +4 -2
  73. package/dist/img/sprite/filter.svg +3 -3
  74. package/dist/img/sprite/flows.svg +2 -1
  75. package/dist/img/sprite/generate.svg +3 -2
  76. package/dist/img/sprite/google.svg +8 -4
  77. package/dist/img/sprite/history.svg +2 -2
  78. package/dist/img/sprite/hold.svg +2 -1
  79. package/dist/img/sprite/idle.svg +3 -2
  80. package/dist/img/sprite/instagram.svg +31 -26
  81. package/dist/img/sprite/job--accept.svg +3 -2
  82. package/dist/img/sprite/job--end.svg +3 -2
  83. package/dist/img/sprite/job.svg +5 -3
  84. package/dist/img/sprite/lock.svg +2 -1
  85. package/dist/img/sprite/logout.svg +2 -1
  86. package/dist/img/sprite/mail--color.svg +3 -1
  87. package/dist/img/sprite/mail.svg +3 -1
  88. package/dist/img/sprite/menu.svg +2 -1
  89. package/dist/img/sprite/messenger-facebook--filled.svg +2 -1
  90. package/dist/img/sprite/messenger-facebook.svg +8 -7
  91. package/dist/img/sprite/messenger-infobip.svg +8 -3
  92. package/dist/img/sprite/messenger-messenger.svg +12 -9
  93. package/dist/img/sprite/messenger-telegram--filled.svg +3 -1
  94. package/dist/img/sprite/messenger-telegram.svg +10 -7
  95. package/dist/img/sprite/messenger-viber--filled.svg +3 -1
  96. package/dist/img/sprite/messenger-viber.svg +3 -1
  97. package/dist/img/sprite/messenger-web-chat.svg +6 -2
  98. package/dist/img/sprite/messenger-whatsapp--filled.svg +6 -2
  99. package/dist/img/sprite/messenger-whatsapp.svg +9 -7
  100. package/dist/img/sprite/meta.svg +20 -15
  101. package/dist/img/sprite/mic-muted.svg +5 -4
  102. package/dist/img/sprite/mic.svg +3 -2
  103. package/dist/img/sprite/microsoft.svg +5 -5
  104. package/dist/img/sprite/move.svg +4 -4
  105. package/dist/img/sprite/note.svg +2 -1
  106. package/dist/img/sprite/numpad.svg +24 -22
  107. package/dist/img/sprite/options.svg +3 -3
  108. package/dist/img/sprite/pause.svg +2 -1
  109. package/dist/img/sprite/pin.svg +2 -1
  110. package/dist/img/sprite/play.svg +3 -2
  111. package/dist/img/sprite/plus.svg +2 -1
  112. package/dist/img/sprite/preview-tag-application.svg +5 -4
  113. package/dist/img/sprite/preview-tag-audio.svg +4 -2
  114. package/dist/img/sprite/preview-tag-image.svg +4 -2
  115. package/dist/img/sprite/preview-tag-video.svg +4 -2
  116. package/dist/img/sprite/prompter.svg +2 -1
  117. package/dist/img/sprite/queue-member.svg +2 -1
  118. package/dist/img/sprite/radio--checked.svg +3 -2
  119. package/dist/img/sprite/radio.svg +2 -1
  120. package/dist/img/sprite/rec-off.svg +1 -1
  121. package/dist/img/sprite/rec.svg +3 -2
  122. package/dist/img/sprite/refresh.svg +2 -2
  123. package/dist/img/sprite/role.svg +2 -1
  124. package/dist/img/sprite/rounded-info.svg +2 -1
  125. package/dist/img/sprite/scorecard.svg +3 -2
  126. package/dist/img/sprite/search.svg +2 -1
  127. package/dist/img/sprite/select-custom-value-enter.svg +1 -1
  128. package/dist/img/sprite/send-arrow.svg +2 -2
  129. package/dist/img/sprite/settings.svg +2 -1
  130. package/dist/img/sprite/sort-arrow-down.svg +2 -2
  131. package/dist/img/sprite/sort-arrow-up.svg +2 -2
  132. package/dist/img/sprite/sound-off.svg +3 -2
  133. package/dist/img/sprite/sound-on.svg +2 -1
  134. package/dist/img/sprite/star--filled.svg +2 -1
  135. package/dist/img/sprite/star.svg +2 -1
  136. package/dist/img/sprite/stop.svg +4 -2
  137. package/dist/img/sprite/stt-download.svg +3 -2
  138. package/dist/img/sprite/stt-search.svg +2 -1
  139. package/dist/img/sprite/stt.svg +4 -2
  140. package/dist/img/sprite/telegram-bot.svg +6 -2
  141. package/dist/img/sprite/tick.svg +2 -1
  142. package/dist/img/sprite/tts-download.svg +4 -3
  143. package/dist/img/sprite/unpin.svg +3 -3
  144. package/dist/img/sprite/upload.svg +4 -3
  145. package/dist/img/sprite/user.svg +2 -1
  146. package/dist/img/sprite/video-cam-off.svg +4 -2
  147. package/dist/img/sprite/video-cam.svg +2 -1
  148. package/dist/img/sprite/zoom-in.svg +2 -1
  149. package/dist/img/sprite/zoom-out.svg +3 -2
  150. package/dist/ui-sdk.css +1 -1
  151. package/dist/ui-sdk.js +13200 -13195
  152. package/dist/ui-sdk.umd.cjs +11 -11
  153. package/package.json +5 -5
  154. package/src/api/clients/agents/agents.js +4 -4
  155. package/src/api/clients/buckets/buckets.js +3 -3
  156. package/src/api/clients/calendars/calendars.js +5 -5
  157. package/src/api/clients/chatGateways/chatGateways.js +9 -8
  158. package/src/api/clients/chatGateways/defaults/defaultChatGateway.js +1 -1
  159. package/src/api/clients/chatGateways/defaults/webChatGateway.js +4 -3
  160. package/src/api/clients/communications/communications.js +6 -5
  161. package/src/api/clients/flows/flow.js +2 -2
  162. package/src/api/clients/gateways/defaults/registerGateway.js +1 -1
  163. package/src/api/clients/gateways/defaults/trunkingGateway.js +1 -1
  164. package/src/api/clients/gateways/gateways.js +4 -4
  165. package/src/api/clients/index.js +12 -12
  166. package/src/api/clients/lists/blacklists.js +6 -4
  167. package/src/api/clients/media/media.js +2 -2
  168. package/src/api/clients/queues/queues.js +10 -10
  169. package/src/api/clients/roles/roles.js +4 -4
  170. package/src/api/clients/users/__tests__/users.spec.js +1 -1
  171. package/src/api/clients/users/users.js +7 -6
  172. package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.js +2 -2
  173. package/src/api/defaults/getDefaultInstance/getDefaultInstance.js +3 -3
  174. package/src/api/defaults/index.js +6 -4
  175. package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +1 -1
  176. package/src/api/transformers/index.js +10 -10
  177. package/src/api/transformers/notify/notify.transformer.js +7 -3
  178. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +1 -1
  179. package/src/api/transformers/starToSearch/starToSearch.transformer.js +1 -1
  180. package/src/components/index.js +40 -38
  181. package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +2 -2
  182. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +6 -6
  183. package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +1 -1
  184. package/src/components/transitions/wt-expand-transition.vue +6 -7
  185. package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +2 -1
  186. package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +2 -1
  187. package/src/components/wt-app-header/assets/admin-dark.svg +42 -34
  188. package/src/components/wt-app-header/assets/admin-light.svg +42 -34
  189. package/src/components/wt-app-header/assets/agent-dark.svg +124 -124
  190. package/src/components/wt-app-header/assets/agent-light.svg +124 -124
  191. package/src/components/wt-app-header/assets/analytics-dark.svg +96 -58
  192. package/src/components/wt-app-header/assets/analytics-light.svg +96 -58
  193. package/src/components/wt-app-header/assets/audit-dark.svg +39 -33
  194. package/src/components/wt-app-header/assets/audit-light.svg +39 -33
  195. package/src/components/wt-app-header/assets/crm-dark.svg +22 -22
  196. package/src/components/wt-app-header/assets/crm-light.svg +22 -22
  197. package/src/components/wt-app-header/assets/history-dark.svg +246 -134
  198. package/src/components/wt-app-header/assets/history-light.svg +246 -134
  199. package/src/components/wt-app-header/assets/supervisor-dark.svg +72 -72
  200. package/src/components/wt-app-header/assets/supervisor-light.svg +72 -72
  201. package/src/components/wt-app-header/wt-app-header.vue +2 -2
  202. package/src/components/wt-app-header/wt-app-navigator.vue +1 -1
  203. package/src/components/wt-app-header/wt-header-actions.vue +1 -1
  204. package/src/components/wt-avatar/wt-avatar.vue +6 -6
  205. package/src/components/wt-badge/wt-badge.vue +4 -4
  206. package/src/components/wt-button/__tests__/WtButton.spec.js +1 -1
  207. package/src/components/wt-button/wt-button.vue +9 -9
  208. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +5 -3
  209. package/src/components/wt-button-select/wt-button-select.vue +2 -2
  210. package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +3 -3
  211. package/src/components/wt-checkbox/wt-checkbox.vue +9 -9
  212. package/src/components/wt-chip/wt-chip.scss +7 -7
  213. package/src/components/wt-chip/wt-chip.vue +1 -1
  214. package/src/components/wt-context-menu/wt-context-menu.vue +8 -8
  215. package/src/components/wt-copy-action/wt-copy-action.vue +1 -1
  216. package/src/components/wt-datepicker/__tests__/WtDatepicker.spec.js +3 -3
  217. package/src/components/wt-datepicker/wt-datepicker.vue +8 -8
  218. package/src/components/wt-divider/wt-divider.vue +1 -1
  219. package/src/components/wt-error-page/wt-error-page.vue +5 -5
  220. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +1 -1
  221. package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +4 -2
  222. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
  223. package/src/components/wt-headline/_variables.scss +1 -1
  224. package/src/components/wt-headline/wt-headline.vue +4 -4
  225. package/src/components/wt-hint/wt-hint.vue +1 -1
  226. package/src/components/wt-icon/wt-icon.vue +16 -3
  227. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +1 -1
  228. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +1 -1
  229. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +1 -1
  230. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +1 -1
  231. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +1 -1
  232. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +1 -1
  233. package/src/components/wt-icon-action/wt-icon-action.vue +2 -2
  234. package/src/components/wt-icon-btn/__tests__/WtIconBtn.spec.js +1 -1
  235. package/src/components/wt-icon-btn/wt-icon-btn.vue +4 -4
  236. package/src/components/wt-indicator/__tests__/WtIndicator.spec.js +1 -1
  237. package/src/components/wt-indicator/wt-indicator.vue +6 -3
  238. package/src/components/wt-input/__tests__/WtInput.spec.js +2 -2
  239. package/src/components/wt-input/wt-input.vue +3 -5
  240. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  241. package/src/components/wt-label/wt-label.vue +3 -3
  242. package/src/components/wt-loader/_internals/wt-loader--md.vue +62 -63
  243. package/src/components/wt-loader/_internals/wt-loader--sm.vue +8 -4
  244. package/src/components/wt-loader/wt-loader.vue +2 -2
  245. package/src/components/wt-logo/assets/logo-dark.svg +51 -25
  246. package/src/components/wt-logo/assets/logo-light.svg +51 -25
  247. package/src/components/wt-logo/wt-logo.vue +2 -2
  248. package/src/components/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +10 -8
  249. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-admin.svg +12 -6
  250. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-analytics.svg +19 -11
  251. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-audit.svg +10 -6
  252. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-crm.svg +7 -4
  253. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-history.svg +14 -7
  254. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-supervisor.svg +20 -11
  255. package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-workspace.svg +20 -10
  256. package/src/components/wt-navigation-bar/assets/light/app-logo-light-admin.svg +12 -6
  257. package/src/components/wt-navigation-bar/assets/light/app-logo-light-analytics.svg +19 -11
  258. package/src/components/wt-navigation-bar/assets/light/app-logo-light-audit.svg +10 -6
  259. package/src/components/wt-navigation-bar/assets/light/app-logo-light-crm.svg +7 -4
  260. package/src/components/wt-navigation-bar/assets/light/app-logo-light-history.svg +14 -7
  261. package/src/components/wt-navigation-bar/assets/light/app-logo-light-supervisor.svg +20 -11
  262. package/src/components/wt-navigation-bar/assets/light/app-logo-light-workspace.svg +20 -10
  263. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +13 -12
  264. package/src/components/wt-notification/__tests__/WtNotification.spec.js +1 -1
  265. package/src/components/wt-notification/wt-notification.vue +5 -5
  266. package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +2 -2
  267. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +4 -4
  268. package/src/components/wt-page-header/wt-page-header.vue +1 -1
  269. package/src/components/wt-page-wrapper/__tests__/WtPageWrapper.spec.js +2 -1
  270. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +2 -2
  271. package/src/components/wt-pagination/__tests__/WtPagination.spec.js +1 -1
  272. package/src/components/wt-pagination/wt-pagination.vue +1 -1
  273. package/src/components/wt-player/scripts/__tests__/createPlyrURL.spec.js +1 -1
  274. package/src/components/wt-player/scripts/createPlyrURL.js +5 -2
  275. package/src/components/wt-player/wt-player.vue +8 -8
  276. package/src/components/wt-popup/__tests__/WtPopup.spec.js +1 -1
  277. package/src/components/wt-popup/wt-popup.vue +3 -0
  278. package/src/components/wt-progress-bar/__tests__/WtProgressBar.spec.js +12 -2
  279. package/src/components/wt-progress-bar/wt-progress-bar.vue +7 -7
  280. package/src/components/wt-radio/__tests__/WtRadio.spec.js +2 -2
  281. package/src/components/wt-radio/wt-radio.vue +8 -8
  282. package/src/components/wt-rounded-action/wt-rounded-action.vue +10 -8
  283. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +2 -2
  284. package/src/components/wt-search-bar/_variables.scss +2 -6
  285. package/src/components/wt-search-bar/wt-search-bar.vue +3 -3
  286. package/src/components/wt-select/__tests__/WtSelect.spec.js +1 -1
  287. package/src/components/wt-select/_variables.scss +1 -1
  288. package/src/components/wt-select/mixins/__tests__/multiselectMixin.spec.js +1 -1
  289. package/src/components/wt-select/mixins/multiselectMixin.js +8 -7
  290. package/src/components/wt-select/wt-select.vue +7 -8
  291. package/src/components/wt-slider/wt-slider.vue +3 -3
  292. package/src/components/wt-status-select/__tests__/WtStatusSelect.spec.js +1 -1
  293. package/src/components/wt-status-select/_internals/StatusOptions.lookup.js +1 -1
  294. package/src/components/wt-status-select/wt-status-select.vue +15 -15
  295. package/src/components/wt-stepper/wt-stepper.vue +6 -6
  296. package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +2 -2
  297. package/src/components/wt-table/__tests__/WtTable.spec.js +7 -5
  298. package/src/components/wt-table/wt-table.vue +104 -104
  299. package/src/components/wt-table-column-select/wt-table-column-select.vue +9 -8
  300. package/src/components/wt-tabs/wt-tabs.vue +2 -2
  301. package/src/components/wt-tags-input/__tests__/WtTagsInput.spec.js +2 -2
  302. package/src/components/wt-tags-input/mixin/__tests__/taggableMixin.spec.js +3 -3
  303. package/src/components/wt-tags-input/wt-tags-input.vue +2 -2
  304. package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +5 -3
  305. package/src/components/wt-textarea/wt-textarea.vue +3 -3
  306. package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +2 -2
  307. package/src/components/wt-time-input/wt-time-input.vue +12 -11
  308. package/src/components/wt-timepicker/__tests__/WtTimepicker.spec.js +2 -2
  309. package/src/components/wt-timepicker/wt-timepicker.vue +12 -12
  310. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +1 -1
  311. package/src/components/wt-tooltip/wt-tooltip.vue +7 -11
  312. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +1 -1
  313. package/src/composables/useCachedInterval/useCachedInterval.js +6 -5
  314. package/src/composables/useDestroyableSortable/useDestroyableSortable.js +1 -6
  315. package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +4 -5
  316. package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +1 -1
  317. package/src/css/main.scss +6 -6
  318. package/src/css/styleguide/colors/_deprecated.scss +1 -1
  319. package/src/css/styleguide/fonts/_fonts.scss +0 -1
  320. package/src/css/styleguide/placeholder/_placeholder.scss +1 -1
  321. package/src/css/styleguide/scroll.scss +6 -5
  322. package/src/css/styleguide/typography/_typography.scss +1 -1
  323. package/src/directives/index.js +1 -1
  324. package/src/enums/WebitelApplications/AdminSections.enum.js +0 -2
  325. package/src/locale/en/en.js +6 -6
  326. package/src/locale/es/es.js +5 -5
  327. package/src/locale/i18n.js +5 -6
  328. package/src/locale/kz/kz.js +5 -5
  329. package/src/locale/ru/ru.js +6 -6
  330. package/src/locale/ua/ua.js +6 -6
  331. package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +1 -1
  332. package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +5 -3
  333. package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +1 -1
  334. package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +27 -24
  335. package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +1 -1
  336. package/src/mixins/dataFilterMixins/apiFilterMixin.js +1 -1
  337. package/src/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.js +3 -2
  338. package/src/mixins/dataFilterMixins/enumFilterMixin.js +5 -3
  339. package/src/mixins/dataFilterMixins/paginationFilterMixin.js +1 -1
  340. package/src/mixins/dataFilterMixins/sortFilterMixin.js +26 -13
  341. package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +1 -1
  342. package/src/mixins/validationMixin/useValidation.js +8 -4
  343. package/src/mixins/validationMixin/validationMixin.js +1 -1
  344. package/src/modules/AgentStatusSelect/api/pause-cause.js +5 -3
  345. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +10 -7
  346. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +2 -2
  347. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +6 -4
  348. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +2 -2
  349. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
  350. package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +1 -1
  351. package/src/modules/Appearance/store/AppearanceStoreModule.js +5 -5
  352. package/src/modules/Appearance/store/__tests__/AppearanceStoreModule.spec.js +1 -1
  353. package/src/modules/AuditForm/components/__tests__/audit-form-question-read-wrapper.spec.js +2 -1
  354. package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +16 -7
  355. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +16 -8
  356. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +8 -7
  357. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +18 -18
  358. package/src/modules/AuditForm/components/audit-form-question.vue +3 -2
  359. package/src/modules/AuditForm/components/audit-form.vue +10 -13
  360. package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options-write-row.spec.js +3 -2
  361. package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +4 -2
  362. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +5 -5
  363. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +5 -5
  364. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +16 -16
  365. package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +1 -1
  366. package/src/modules/CSVExport/CSVExport.js +8 -6
  367. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +3 -3
  368. package/src/modules/CSVExport/mixins/exportCSVMixin.js +5 -4
  369. package/src/modules/CardStoreModule/composables/useCardStore.js +1 -1
  370. package/src/modules/CardStoreModule/store/CardStoreModule.js +2 -2
  371. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +11 -7
  372. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +4 -4
  373. package/src/modules/FilesExport/FilesExport.js +2 -3
  374. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +18 -6
  375. package/src/modules/FilesExport/mixins/exportFilesMixin.js +7 -3
  376. package/src/modules/FilesExport/scripts/generateMediaURL.js +2 -1
  377. package/src/modules/Filters/classes/BaseFilterSchema.js +3 -3
  378. package/src/modules/Filters/components/__tests__/filter-pagination.spec.js +1 -1
  379. package/src/modules/Filters/components/__tests__/filter-table-fields.spec.js +2 -2
  380. package/src/modules/Filters/components/filter-pagination.vue +1 -1
  381. package/src/modules/Filters/components/filter-table-fields.vue +0 -2
  382. package/src/modules/Filters/scripts/getters/index.js +3 -3
  383. package/src/modules/Filters/scripts/getters/localStorageGetter.js +1 -1
  384. package/src/modules/Filters/scripts/getters/queryGetter.js +0 -1
  385. package/src/modules/Filters/scripts/getters/valueGetter.js +1 -1
  386. package/src/modules/Filters/scripts/restores/index.js +2 -2
  387. package/src/modules/Filters/scripts/restores/localStorageRestore.js +1 -1
  388. package/src/modules/Filters/scripts/restores/queryRestore.js +1 -1
  389. package/src/modules/Filters/scripts/setters/index.js +3 -3
  390. package/src/modules/Filters/scripts/setters/localStorageSetter.js +1 -1
  391. package/src/modules/Filters/scripts/setters/querySetter.js +1 -1
  392. package/src/modules/Filters/scripts/setters/valueSetter.js +1 -1
  393. package/src/modules/Filters/store/FiltersStoreModule.js +4 -4
  394. package/src/modules/Filters/store/__tests__/FiltersStoreModule.spec.js +4 -4
  395. package/src/modules/Notifications/store/NotificationsStoreModule.js +17 -15
  396. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -3
  397. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.mutations.spec.js +2 -2
  398. package/src/modules/QueryFilters/api/__tests__/defaults.spec.js +1 -1
  399. package/src/modules/QueryFilters/classes/ApiFilterSchema.js +1 -1
  400. package/src/modules/QueryFilters/classes/EnumFilterSchema.js +1 -1
  401. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
  402. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +3 -3
  403. package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +3 -3
  404. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +5 -4
  405. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +3 -3
  406. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +7 -5
  407. package/src/modules/QueryFilters/components/abstract-api-filter.vue +6 -6
  408. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +7 -7
  409. package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
  410. package/src/modules/QueryFilters/components/filter-from-to.vue +8 -8
  411. package/src/modules/QueryFilters/components/filter-search.vue +2 -2
  412. package/src/modules/QueryFilters/components/filter-table-fields.vue +1 -1
  413. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +7 -3
  414. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +18 -11
  415. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +27 -23
  416. package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +1 -1
  417. package/src/modules/QueryFilters/mixins/apiFilterMixin.js +5 -2
  418. package/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +2 -2
  419. package/src/modules/QueryFilters/mixins/enumFilterMixin.js +13 -11
  420. package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +5 -3
  421. package/src/modules/QueryFilters/mixins/sortFilterMixin.js +18 -7
  422. package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +2 -2
  423. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +17 -9
  424. package/src/modules/QueryFilters/store/queryFilters.js +1 -1
  425. package/src/modules/TableStoreModule/composables/useTableStore.js +1 -1
  426. package/src/modules/TableStoreModule/store/TableStoreModule.js +3 -3
  427. package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +6 -5
  428. package/src/modules/Userinfo/api/userinfo.js +2 -2
  429. package/src/modules/Userinfo/classes/ApplicationsAccess.js +18 -13
  430. package/src/modules/Userinfo/store/UserinfoStoreModule.js +28 -15
  431. package/src/plugins/breakpoint/breakpoint.plugin.js +1 -2
  432. package/src/scripts/__tests__/caseConverters.spec.js +6 -3
  433. package/src/scripts/__tests__/convertDuration.spec.js +1 -1
  434. package/src/scripts/__tests__/debounce.spec.js +1 -1
  435. package/src/scripts/__tests__/editProxy.spec.js +1 -1
  436. package/src/scripts/__tests__/isEmpty.spec.js +1 -1
  437. package/src/scripts/__tests__/prettifyFileSize.spec.js +1 -1
  438. package/src/scripts/__tests__/prettifyTime.spec.js +1 -1
  439. package/src/scripts/__tests__/preventHiddenPageCallsDecorator.spec.js +2 -1
  440. package/src/scripts/__tests__/sortQueryAdapters.spec.js +1 -1
  441. package/src/scripts/__tests__/updateObject.spec.js +5 -3
  442. package/src/scripts/caseConverters.js +34 -28
  443. package/src/scripts/debounce.js +5 -1
  444. package/src/scripts/preventHiddenPageCallsDecorator.js +4 -2
  445. package/src/scripts/sortQueryAdapters.js +12 -6
  446. package/src/scripts/updateObject.js +1 -1
  447. package/src/store/BaseStoreModules/ApiStoreModule.js +1 -1
  448. package/src/store/BaseStoreModules/BaseStoreModule.js +16 -4
  449. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +27 -23
  450. package/src/store/ReactiveNowStoreModule/ReactiveNowStoreModule.js +1 -1
  451. package/src/store/helpers/__tests__/getNamespacedState.spec.js +1 -1
  452. package/src/store/helpers/getNamespacedState.js +2 -1
  453. package/src/tests/mocks/axiosMock.js +16 -16
  454. package/src/validators/decimalValidator.js +3 -2
  455. package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +2 -2
  456. package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +3 -2
@@ -1,15 +1,17 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import { createRouter, createWebHistory } from 'vue-router';
3
- import enumFilterMixin from '../enumFilterMixin';
3
+ import enumFilterMixin from '../enumFilterMixin.js';
4
4
 
5
- const options = [{
5
+ const options = [
6
+ {
6
7
  name: 'Inbound',
7
8
  value: 'inbound',
8
9
  },
9
10
  {
10
11
  name: 'Outbound',
11
12
  value: 'outbound',
12
- }];
13
+ },
14
+ ];
13
15
 
14
16
  const router = createRouter({
15
17
  history: createWebHistory(),
@@ -41,7 +43,8 @@ describe('Enum filter mixin', () => {
41
43
  global: { plugins: [router] },
42
44
  });
43
45
  await wrapper.vm.$nextTick();
44
- expect(setValue).toHaveBeenCalledWith({ filter: 'direction', value: options[0] });
46
+ expect(setValue)
47
+ .toHaveBeenCalledWith({ filter: 'direction', value: options[0] });
45
48
  });
46
49
 
47
50
  it('Sets empty array value if $route query is empty', async () => {
@@ -52,13 +55,17 @@ describe('Enum filter mixin', () => {
52
55
  });
53
56
 
54
57
  it('Attaches locales to options, if they have "locale" key', async () => {
55
- const options = [{
56
- locale: 'vi.locale',
57
- }];
58
- const expectedOptions = [{
59
- locale: options[0].locale,
60
- name: options[0].locale,
61
- }];
58
+ const options = [
59
+ {
60
+ locale: 'vi.locale',
61
+ },
62
+ ];
63
+ const expectedOptions = [
64
+ {
65
+ locale: options[0].locale,
66
+ name: options[0].locale,
67
+ },
68
+ ];
62
69
  const wrapper = shallowMount(Component, {
63
70
  global: { plugins: [router] },
64
71
  data: () => ({ options }),
@@ -1,35 +1,39 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import { createRouter, createWebHistory } from 'vue-router';
3
- import sortFilterMixin from '../sortFilterMixin';
3
+ import sortFilterMixin from '../sortFilterMixin.js';
4
4
 
5
5
  const router = createRouter({
6
6
  history: createWebHistory(),
7
7
  routes: [{ path: '/', name: 'jest' }],
8
8
  });
9
9
 
10
- const headers = [{
11
- value: 'queue',
12
- show: true,
13
- sort: null,
14
- field: 'queue',
15
- }, {
16
- value: 'agents',
17
- show: true,
18
- sort: null,
19
- field: 'online',
20
- }];
10
+ const headers = [
11
+ {
12
+ value: 'queue',
13
+ show: true,
14
+ sort: null,
15
+ field: 'queue',
16
+ }, {
17
+ value: 'agents',
18
+ show: true,
19
+ sort: null,
20
+ field: 'online',
21
+ },
22
+ ];
21
23
 
22
- const sortedHeaders = [{
23
- value: 'queue',
24
- show: true,
25
- sort: 'asc',
26
- field: 'queue',
27
- }, {
28
- value: 'agents',
29
- show: true,
30
- sort: null,
31
- field: 'online',
32
- }];
24
+ const sortedHeaders = [
25
+ {
26
+ value: 'queue',
27
+ show: true,
28
+ sort: 'asc',
29
+ field: 'queue',
30
+ }, {
31
+ value: 'agents',
32
+ show: true,
33
+ sort: null,
34
+ field: 'online',
35
+ },
36
+ ];
33
37
 
34
38
  describe('Sort filter mixin', () => {
35
39
  const setHeaders = vi.fn();
@@ -1,6 +1,6 @@
1
1
  import { shallowMount } from '@vue/test-utils';
2
2
  import { createRouter, createWebHistory } from 'vue-router';
3
- import _urlControllerMixin from '../_urlControllerMixin/_urlControllerMixin';
3
+ import _urlControllerMixin from '../_urlControllerMixin/_urlControllerMixin.js';
4
4
 
5
5
  const router = createRouter({
6
6
  history: createWebHistory(),
@@ -1,4 +1,4 @@
1
- import baseFilterMixin from './baseFilterMixin/baseFilterMixin';
1
+ import baseFilterMixin from './baseFilterMixin/baseFilterMixin.js';
2
2
 
3
3
  export default {
4
4
  mixins: [baseFilterMixin],
@@ -27,7 +27,10 @@ export default {
27
27
  let newValue;
28
28
  if (this.multiple) {
29
29
  const idsArr = Array.isArray(id) ? id : [id];
30
- this.setValue({ filter: this.filterQuery, value: idsArr.map((id) => ({ id })) });
30
+ this.setValue({
31
+ filter: this.filterQuery,
32
+ value: idsArr.map((id) => ({ id })),
33
+ });
31
34
  newValue = await this.fetchSelected(idsArr);
32
35
  } else {
33
36
  this.setValue({ filter: this.filterQuery, value: { id } });
@@ -1,5 +1,5 @@
1
- import _urlControllerMixin from '../_urlControllerMixin/_urlControllerMixin';
2
- import getNamespacedState from '../../../../store/helpers/getNamespacedState';
1
+ import getNamespacedState from '../../../../store/helpers/getNamespacedState.js';
2
+ import _urlControllerMixin from '../_urlControllerMixin/_urlControllerMixin.js';
3
3
 
4
4
  export default {
5
5
  mixins: [_urlControllerMixin],
@@ -1,4 +1,4 @@
1
- import baseFilterMixin from './baseFilterMixin/baseFilterMixin';
1
+ import baseFilterMixin from './baseFilterMixin/baseFilterMixin.js';
2
2
 
3
3
  export default {
4
4
  mixins: [baseFilterMixin],
@@ -35,7 +35,9 @@ export default {
35
35
  if (optsHaveLocale) {
36
36
  return this.options.map((opt) => ({
37
37
  ...opt,
38
- name: Array.isArray(opt.locale) ? this.$tc(...opt.locale) : this.$t(opt.locale),
38
+ name: Array.isArray(opt.locale)
39
+ ? this.$tc(...opt.locale)
40
+ : this.$t(opt.locale),
39
41
  }));
40
42
  }
41
43
  return this.options;
@@ -49,8 +51,8 @@ export default {
49
51
  restore not just value, but value with all client-side properties like locale
50
52
  */
51
53
  newValue = this.localizedOptions
52
- .filter((option) => value
53
- .some((value) => value === option[this.storedProp]));
54
+ .filter((option) => value
55
+ .some((value) => value === option[this.storedProp]));
54
56
 
55
57
  /*
56
58
  but if allowCustomValues is true, we should also restore custom values,
@@ -59,9 +61,9 @@ export default {
59
61
  if (this.allowCustomValues) {
60
62
  newValue = newValue.concat(
61
63
  value
62
- .filter((val) => !this.localizedOptions
63
- .some((option) => val === option[this.storedProp]))
64
- .map((val) => ({ [this.storedProp]: val, name: val })),
64
+ .filter((val) => !this.localizedOptions
65
+ .some((option) => val === option[this.storedProp]))
66
+ .map((val) => ({ [this.storedProp]: val, name: val })),
65
67
  );
66
68
  }
67
69
  } else {
@@ -69,10 +71,10 @@ export default {
69
71
  see comments above
70
72
  */
71
73
  newValue = this.localizedOptions
72
- .find((option) => value === option[this.storedProp]);
73
- if (this.allowCustomValues) {
74
- newValue = newValue || { [this.storedProp]: value, name: value };
75
- }
74
+ .find((option) => value === option[this.storedProp]);
75
+ if (this.allowCustomValues) {
76
+ newValue = newValue || { [this.storedProp]: value, name: value };
77
+ }
76
78
  }
77
79
  this.setValue({ filter: this.filterQuery, value: newValue });
78
80
  },
@@ -1,4 +1,4 @@
1
- import baseFilterMixin from './baseFilterMixin/baseFilterMixin';
1
+ import baseFilterMixin from './baseFilterMixin/baseFilterMixin.js';
2
2
 
3
3
  export default {
4
4
  mixins: [baseFilterMixin],
@@ -24,13 +24,15 @@ export default {
24
24
 
25
25
  restorePage() {
26
26
  const defaultPage = 1;
27
- const value = +this.getValueFromQuery({ filterQuery: 'page' }) || defaultPage;
27
+ const value = +this.getValueFromQuery({ filterQuery: 'page' }) ||
28
+ defaultPage;
28
29
  this.setPage(value);
29
30
  },
30
31
 
31
32
  restoreSize() {
32
33
  const defaultSize = 10;
33
- const value = +this.getValueFromQuery({ filterQuery: 'size' }) || defaultSize;
34
+ const value = +this.getValueFromQuery({ filterQuery: 'size' }) ||
35
+ defaultSize;
34
36
  this.setSize(value);
35
37
  },
36
38
 
@@ -1,16 +1,27 @@
1
- import baseFilterMixin from './baseFilterMixin/baseFilterMixin';
2
- import { SortSymbols, queryToSortAdapter, sortToQueryAdapter } from '../../../scripts/sortQueryAdapters';
1
+ import {
2
+ queryToSortAdapter,
3
+ SortSymbols,
4
+ sortToQueryAdapter,
5
+ } from '../../../scripts/sortQueryAdapters.js';
6
+ import baseFilterMixin from './baseFilterMixin/baseFilterMixin.js';
3
7
 
4
8
  const getNextSortOrder = (sort) => {
5
9
  switch (sort) {
6
- case SortSymbols.NONE: return SortSymbols.ASC;
7
- case SortSymbols.ASC: return SortSymbols.DESC;
8
- case SortSymbols.DESC: return SortSymbols.NONE;
9
- default: return SortSymbols.ASC;
10
+ case SortSymbols.NONE:
11
+ return SortSymbols.ASC;
12
+ case SortSymbols.ASC:
13
+ return SortSymbols.DESC;
14
+ case SortSymbols.DESC:
15
+ return SortSymbols.NONE;
16
+ default:
17
+ return SortSymbols.ASC;
10
18
  }
11
19
  };
12
20
 
13
- const encodeSortQuery = ({ column, order }) => (`${sortToQueryAdapter(order)}${column.field}`);
21
+ const encodeSortQuery = ({
22
+ column,
23
+ order,
24
+ }) => (`${sortToQueryAdapter(order)}${column.field}`);
14
25
 
15
26
  const decodeSortQuery = ({ value }) => {
16
27
  const sort = queryToSortAdapter(value.slice(0, 1));
@@ -1,5 +1,5 @@
1
- import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule';
2
- import isEmpty from '../../../scripts/isEmpty';
1
+ import isEmpty from '../../../scripts/isEmpty.js';
2
+ import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
3
3
 
4
4
  export default class QueryFiltersStoreModule extends BaseStoreModule {
5
5
  getters = {
@@ -1,7 +1,7 @@
1
1
  // import { shallowMount, createLocalVue } from '@vue/test-utils';
2
2
  // import Vuex from 'vuex';
3
3
  // import queryFilters from '../queryFilters';
4
- import QueryFiltersStoreModule from '../QueryFiltersStoreModule';
4
+ import QueryFiltersStoreModule from '../QueryFiltersStoreModule.js';
5
5
 
6
6
  const valueFilter = 'search';
7
7
  const arrayFilter = 'agent';
@@ -25,17 +25,17 @@ describe('QueryFiltersStoreModule getters', () => {
25
25
  });
26
26
  it('GET_FILTER: single value filter', () => {
27
27
  expect(module.getters.GET_FILTER(state)(valueFilter))
28
- .toEqual('jest');
28
+ .toEqual('jest');
29
29
  });
30
30
  it('GET_FILTER: array value filter', () => {
31
31
  expect(module.getters.GET_FILTER(state)(arrayFilter))
32
- .toEqual([1]);
32
+ .toEqual([1]);
33
33
  });
34
34
  it('GET_FILTERS filters aggregator', () => {
35
35
  const { GET_FILTER } = module.getters;
36
36
  module.getters.GET_FILTER = vi.fn((filter) => GET_FILTER(state)(filter));
37
37
  expect(module.getters.GET_FILTERS(state, module.getters))
38
- .toEqual({ agent: [1], search: 'jest' });
38
+ .toEqual({ agent: [1], search: 'jest' });
39
39
  });
40
40
  });
41
41
 
@@ -59,19 +59,25 @@ describe('QueryFiltersStoreModule actions', () => {
59
59
  const filter = { filter: arrayFilter, value: { id: 3 } };
60
60
  module.actions.SET_FILTER(context, filter);
61
61
  expect(context.commit)
62
- .toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: [filter.value] });
62
+ .toHaveBeenCalledWith('SET_FILTER', {
63
+ filter: filter.filter,
64
+ value: [filter.value],
65
+ });
63
66
  });
64
67
  it('SET_FILTER: sets array value filter with null value to defaultValue', () => {
65
68
  const filter = { filter: arrayFilter, value: null };
66
69
  module.actions.SET_FILTER(context, filter);
67
70
  expect(context.commit)
68
- .toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: [] });
71
+ .toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: [] });
69
72
  });
70
73
  it('SET_FILTER: sets "false" value filter', () => {
71
74
  const filter = { filter: valueFilter, value: false };
72
75
  module.actions.SET_FILTER(context, filter);
73
76
  expect(context.commit)
74
- .toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: false });
77
+ .toHaveBeenCalledWith('SET_FILTER', {
78
+ filter: filter.filter,
79
+ value: false,
80
+ });
75
81
  });
76
82
  it('calls RESET_FILTERS mutation on RESET_FILTERS action call', () => {
77
83
  module.actions.RESET_FILTERS(context);
@@ -82,8 +88,10 @@ describe('QueryFiltersStoreModule actions', () => {
82
88
  describe('QueryFiltersStoreModule mutations', () => {
83
89
  const module = new QueryFiltersStoreModule().getModule();
84
90
  it('correctly mutates state at RESET_FILTERS call', () => {
85
- expect(Object.values(state).every((filter) => filter.value === filter.defaultValue)).toBeFalsy();
91
+ expect(Object.values(state)
92
+ .every((filter) => filter.value === filter.defaultValue)).toBeFalsy();
86
93
  module.mutations.RESET_FILTERS(state);
87
- expect(Object.values(state).every((filter) => filter.value === filter.defaultValue)).toBeTruthy();
94
+ expect(Object.values(state)
95
+ .every((filter) => filter.value === filter.defaultValue)).toBeTruthy();
88
96
  });
89
97
  });
@@ -1,4 +1,4 @@
1
- import QueryFiltersStoreModule from './QueryFiltersStoreModule';
1
+ import QueryFiltersStoreModule from './QueryFiltersStoreModule.js';
2
2
  /*
3
3
  * @deprecated: PLEASE USE QUERY_FILTERS_STORE_MODULE
4
4
  */
@@ -1,6 +1,6 @@
1
1
  import { computed } from 'vue';
2
2
  import { useStore } from 'vuex';
3
- import getNamespacedState from '../../../store/helpers/getNamespacedState';
3
+ import getNamespacedState from '../../../store/helpers/getNamespacedState.js';
4
4
 
5
5
  // eslint-disable-next-line import/prefer-default-export
6
6
  export const useTableStore = (namespace) => {
@@ -2,9 +2,9 @@ import set from 'lodash/set';
2
2
  import {
3
3
  queryToSortAdapter,
4
4
  sortToQueryAdapter,
5
- } from '../../../scripts/sortQueryAdapters';
6
- import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule';
7
- import FilterEvent from '../../Filters/enums/FilterEvent.enum';
5
+ } from '../../../scripts/sortQueryAdapters.js';
6
+ import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
7
+ import FilterEvent from '../../Filters/enums/FilterEvent.enum.js';
8
8
 
9
9
  export default class TableStoreModule extends BaseStoreModule {
10
10
  state = {
@@ -1,9 +1,9 @@
1
1
  import { createRouter, createWebHistory } from 'vue-router';
2
2
  import { createStore } from 'vuex';
3
- import { SortSymbols } from '../../../../scripts/sortQueryAdapters';
4
- import FilterEvent from '../../../Filters/enums/FilterEvent.enum';
5
- import FiltersStoreModule from '../../../Filters/store/FiltersStoreModule';
6
- import TableStoreModule from '../TableStoreModule';
3
+ import { SortSymbols } from '../../../../scripts/sortQueryAdapters.js';
4
+ import FilterEvent from '../../../Filters/enums/FilterEvent.enum.js';
5
+ import FiltersStoreModule from '../../../Filters/store/FiltersStoreModule.js';
6
+ import TableStoreModule from '../TableStoreModule.js';
7
7
 
8
8
  describe('TableStoreModule', () => {
9
9
  it('correctly computes FIELDS getter', () => {
@@ -243,7 +243,8 @@ describe('TableStoreModule integration with FiltersStoreModule', () => {
243
243
  value: ['surname'],
244
244
  });
245
245
 
246
- expect(store.getters['table/filters/GET_FILTER']('fields')).toEqual(['surname']);
246
+ expect(store.getters['table/filters/GET_FILTER']('fields'))
247
+ .toEqual(['surname']);
247
248
 
248
249
  expect(store.getters['table/FIELDS']).toEqual(['id', 'included']);
249
250
 
@@ -1,7 +1,7 @@
1
1
  import applyTransform, {
2
2
  notify,
3
3
  snakeToCamel,
4
- } from '../../../api/transformers';
4
+ } from '../../../api/transformers/index.js';
5
5
 
6
6
  const userinfo = (instance) => ({
7
7
  async getSession() {
@@ -42,7 +42,7 @@ const userinfo = (instance) => ({
42
42
  notify,
43
43
  ]);
44
44
  }
45
- }
45
+ },
46
46
  });
47
47
 
48
48
  export default userinfo;
@@ -1,11 +1,14 @@
1
- import deepmerge from 'deepmerge';
2
1
  import deepCopy from 'deep-copy';
3
- import CrmSections from '../../../enums/WebitelApplications/CrmSections.enum';
4
- import WebitelApplications from '../../../enums/WebitelApplications/WebitelApplications.enum';
5
- import SupervisorSections from '../../../enums/WebitelApplications/SupervisorSections.enum';
6
- import AdminSections from '../../../enums/WebitelApplications/AdminSections.enum';
2
+ import deepmerge from 'deepmerge';
3
+ import AdminSections
4
+ from '../../../enums/WebitelApplications/AdminSections.enum.js';
7
5
  import AuditorSections
8
- from '../../../enums/WebitelApplications/AuditorSections.enum';
6
+ from '../../../enums/WebitelApplications/AuditorSections.enum.js';
7
+ import CrmSections from '../../../enums/WebitelApplications/CrmSections.enum.js';
8
+ import SupervisorSections
9
+ from '../../../enums/WebitelApplications/SupervisorSections.enum.js';
10
+ import WebitelApplications
11
+ from '../../../enums/WebitelApplications/WebitelApplications.enum.js';
9
12
 
10
13
  const applicationsAccess = (value = true) => ({
11
14
  [WebitelApplications.AGENT]: {
@@ -193,22 +196,20 @@ export default class ApplicationsAccess {
193
196
  constructor({ access, value } = { value: true }) {
194
197
  /* if access, deeply merge with falsy values schema
195
198
  if no access, "not configured => full permissions" */
196
- this.access = access ? ApplicationsAccess.restore(access) : applicationsAccess(value);
197
- }
198
-
199
- getAccess() {
200
- return this.access;
199
+ this.access = access
200
+ ? ApplicationsAccess.restore(access)
201
+ : applicationsAccess(value);
201
202
  }
202
203
 
203
204
  // minify schema for API sending
204
205
  static minify(access) {
205
206
  const rmEmptyKeys = (obj) => {
206
207
  Object.keys(obj).forEach((key) => {
207
- // eslint-disable-next-line no-param-reassign
208
+
208
209
  if (!obj[key] || key === '_locale') delete obj[key];
209
210
  if (typeof obj[key] === 'object') {
210
211
  rmEmptyKeys(obj[key]);
211
- // eslint-disable-next-line no-param-reassign
212
+
212
213
  if (!Object.keys(obj[key]).length) delete obj[key];
213
214
  }
214
215
  });
@@ -222,4 +223,8 @@ export default class ApplicationsAccess {
222
223
  return deepmerge(applicationsAccess(false), access);
223
224
  // return deepmerge(access, applicationsAccess(false));
224
225
  }
226
+
227
+ getAccess() {
228
+ return this.access;
229
+ }
225
230
  }
@@ -1,7 +1,7 @@
1
- import userinfoGenerator from '../api/userinfo';
2
- import ApplicationsAccess from '../classes/ApplicationsAccess';
3
- import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule';
4
- import Permissions from '../enums/Permissions.enum';
1
+ import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
2
+ import userinfoGenerator from '../api/userinfo.js';
3
+ import ApplicationsAccess from '../classes/ApplicationsAccess.js';
4
+ import Permissions from '../enums/Permissions.enum.js';
5
5
 
6
6
  let userinfo = null;
7
7
 
@@ -24,14 +24,16 @@ const defaultState = () => ({
24
24
  export default class UserinfoStoreModule extends BaseStoreModule {
25
25
  state = {
26
26
  ...defaultState(),
27
- }
27
+ };
28
28
 
29
29
  getters = {
30
30
  THIS_APP: (state) => state.thisApp,
31
31
  // if no access[app] => accessed by default
32
- CHECK_APP_ACCESS: (state) => (app) => !state.access[app] || state.access[app]?._enabled,
32
+ CHECK_APP_ACCESS: (state) => (app) => !state.access[app] ||
33
+ state.access[app]?._enabled,
33
34
  CHECK_OBJECT_ACCESS: (state, getters) => ({ name, route }) => {
34
- if (!state.access[getters.THIS_APP] || !state.access[getters.THIS_APP]._enabled) return false;
35
+ if (!state.access[getters.THIS_APP] ||
36
+ !state.access[getters.THIS_APP]._enabled) return false;
35
37
  if (route) return getters.CHECK_OBJECT_ACCESS_BY_ROUTE(route);
36
38
  return getters.CHECK_OBJECT_ACCESS_BY_NAME(name);
37
39
  },
@@ -39,7 +41,8 @@ export default class UserinfoStoreModule extends BaseStoreModule {
39
41
  state.access[getters.THIS_APP][name]?._enabled
40
42
  ),
41
43
  CHECK_OBJECT_ACCESS_BY_ROUTE: (state, getters) => (route) => {
42
- const accessKey = Object.keys(state.access[getters.THIS_APP]).find((object) => route.name.includes(object));
44
+ const accessKey = Object.keys(state.access[getters.THIS_APP])
45
+ .find((object) => route.name.includes(object));
43
46
  return state.access[getters.THIS_APP][accessKey]?._enabled;
44
47
  },
45
48
  GET_OBJECT_SCOPE: (state, getters) => ({ name, route }) => {
@@ -50,7 +53,8 @@ export default class UserinfoStoreModule extends BaseStoreModule {
50
53
  Object.values(state.scope).find((object) => name === object.name)
51
54
  ),
52
55
  GET_OBJECT_SCOPE_BY_ROUTE: (state) => (route) => (
53
- Object.values(state.scope).find((object) => route.name.includes(object.route))
56
+ Object.values(state.scope)
57
+ .find((object) => route.name.includes(object.route))
54
58
  ),
55
59
  HAS_READ_ACCESS: (state, getters) => (checkedObject) => {
56
60
  if (!getters.CHECK_OBJECT_ACCESS(checkedObject)) return false;
@@ -73,7 +77,7 @@ export default class UserinfoStoreModule extends BaseStoreModule {
73
77
  const objectScope = getters.GET_OBJECT_SCOPE(checkedObject);
74
78
  return objectScope?.access?.includes('d');
75
79
  },
76
- }
80
+ };
77
81
 
78
82
  actions = {
79
83
  BEFORE_OPEN_SESSION_HOOK: () => {},
@@ -82,7 +86,10 @@ export default class UserinfoStoreModule extends BaseStoreModule {
82
86
  CONVERT_USER_PERMISSIONS: (context, initialPermissions) => {
83
87
  let permissions = {};
84
88
  if (!initialPermissions) return permissions;
85
- permissions = initialPermissions.reduce((permissions, currentPermission) => ({
89
+ permissions = initialPermissions.reduce((
90
+ permissions,
91
+ currentPermission,
92
+ ) => ({
86
93
  ...permissions,
87
94
  [currentPermission.id]: currentPermission,
88
95
  }), {});
@@ -130,13 +137,19 @@ export default class UserinfoStoreModule extends BaseStoreModule {
130
137
  }
131
138
  },
132
139
 
133
- LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL } = {}) => {
140
+ LOGOUT: async (
141
+ context,
142
+ { authUrl = import.meta.env.VITE_AUTH_URL } = {},
143
+ ) => {
134
144
  if (!authUrl) throw new Error('No authUrl for LOGOUT provided');
135
145
  await userinfo.logout();
136
146
  window.location.href = authUrl;
137
147
  },
138
148
 
139
- SET_APPLICATIONS_ACCESS: (context, access) => context.commit('SET_APPLICATIONS_ACCESS', access),
149
+ SET_APPLICATIONS_ACCESS: (
150
+ context,
151
+ access,
152
+ ) => context.commit('SET_APPLICATIONS_ACCESS', access),
140
153
 
141
154
  SET_LOADING: (context, isLoading) => {
142
155
  context.commit('SET_LOADING', isLoading);
@@ -145,7 +158,7 @@ export default class UserinfoStoreModule extends BaseStoreModule {
145
158
  RESET_STATE: (context) => {
146
159
  context.commit('RESET_STATE');
147
160
  },
148
- }
161
+ };
149
162
 
150
163
  mutations = {
151
164
  SET_SESSION: (state, session) => {
@@ -163,5 +176,5 @@ export default class UserinfoStoreModule extends BaseStoreModule {
163
176
  RESET_STATE: (state) => {
164
177
  Object.assign(state, defaultState());
165
178
  },
166
- }
179
+ };
167
180
  }
@@ -1,5 +1,5 @@
1
1
  import { reactive } from 'vue';
2
- import debounce from '../../scripts/debounce';
2
+ import debounce from '../../scripts/debounce.js';
3
3
 
4
4
  // https://stackoverflow.com/questions/41791193/vuejs-reactive-binding-for-a-plugin-how-to/41801107#41801107
5
5
  // https://stackoverflow.com/questions/50111231/vue-prototype-not-reactive-when-data-changes
@@ -130,7 +130,6 @@ const install = (app) => {
130
130
 
131
131
  onResize();
132
132
 
133
- // eslint-disable-next-line no-param-reassign
134
133
  app.config.globalProperties.$breakpoint = breakpoint;
135
134
  };
136
135
 
@@ -2,12 +2,12 @@ import {
2
2
  camelToKebab,
3
3
  camelToSnake,
4
4
  kebabToCamel,
5
- snakeToKebab,
6
5
  kebabToSnake,
7
6
  objCamelToSnake,
8
7
  objSnakeToCamel,
9
8
  snakeToCamel,
10
- } from '../caseConverters';
9
+ snakeToKebab,
10
+ } from '../caseConverters.js';
11
11
 
12
12
  describe('Case converters', () => {
13
13
  it('Camel-Kebab', () => {
@@ -60,7 +60,10 @@ describe('Case converters', () => {
60
60
 
61
61
  it('Camel-Snake Arrays', () => {
62
62
  const camelArr = ['camelToSnake', { camelToSnake: { camelToSnake: null } }];
63
- const snakeArr = ['camel_to_snake', { camel_to_snake: { camel_to_snake: null } }];
63
+ const snakeArr = [
64
+ 'camel_to_snake',
65
+ { camel_to_snake: { camel_to_snake: null } },
66
+ ];
64
67
  expect(objCamelToSnake(camelArr)).toEqual(snakeArr);
65
68
  expect(objSnakeToCamel(snakeArr)).toEqual(camelArr);
66
69
  });
@@ -1,4 +1,4 @@
1
- import convertDuration from '../convertDuration';
1
+ import convertDuration from '../convertDuration.js';
2
2
 
3
3
  describe('Case converters', () => {
4
4
  it('duration from sec value', () => {
@@ -1,4 +1,4 @@
1
- import debounce from '../debounce';
1
+ import debounce from '../debounce.js';
2
2
 
3
3
  describe('debounce', () => {
4
4
  it('debounces call', async () => {
@@ -1,4 +1,4 @@
1
- import editProxy from '../editProxy';
1
+ import editProxy from '../editProxy.js';
2
2
 
3
3
  describe('editProxy', () => {
4
4
  it('correctly updates _dirty prop at object property change', () => {