@webitel/ui-sdk 24.6.17 → 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.
- package/dist/img/plyr.svg +77 -68
- package/dist/img/sprite/account.svg +4 -2
- package/dist/img/sprite/adfs.svg +7 -3
- package/dist/img/sprite/agent.svg +4 -3
- package/dist/img/sprite/app-navigator.svg +9 -9
- package/dist/img/sprite/arrow-down.svg +2 -1
- package/dist/img/sprite/arrow-left.svg +2 -1
- package/dist/img/sprite/arrow-mix.svg +3 -3
- package/dist/img/sprite/arrow-right.svg +2 -1
- package/dist/img/sprite/arrow-up.svg +2 -1
- package/dist/img/sprite/attach.svg +2 -1
- package/dist/img/sprite/attention.svg +2 -1
- package/dist/img/sprite/azure.svg +25 -17
- package/dist/img/sprite/back.svg +2 -2
- package/dist/img/sprite/bot.svg +4 -3
- package/dist/img/sprite/bucket.svg +2 -1
- package/dist/img/sprite/calendar.svg +2 -1
- package/dist/img/sprite/call--filled.svg +1 -1
- package/dist/img/sprite/call-add-to--filled.svg +2 -2
- package/dist/img/sprite/call-add-to.svg +3 -2
- package/dist/img/sprite/call-disconnect--filled.svg +2 -1
- package/dist/img/sprite/call-disconnect.svg +2 -1
- package/dist/img/sprite/call-end--filled.svg +2 -1
- package/dist/img/sprite/call-end.svg +2 -1
- package/dist/img/sprite/call-inbound--filled.svg +3 -2
- package/dist/img/sprite/call-inbound.svg +2 -1
- package/dist/img/sprite/call-missed--filled.svg +2 -2
- package/dist/img/sprite/call-missed.svg +2 -1
- package/dist/img/sprite/call-outbound--filled.svg +2 -1
- package/dist/img/sprite/call-outbound.svg +2 -1
- package/dist/img/sprite/call-ringing--filled.svg +4 -3
- package/dist/img/sprite/call-ringing.svg +2 -1
- package/dist/img/sprite/call-transfer--filled.svg +2 -2
- package/dist/img/sprite/call-transfer.svg +2 -1
- package/dist/img/sprite/call.svg +2 -1
- package/dist/img/sprite/chat--filled.svg +1 -1
- package/dist/img/sprite/chat-emoji.svg +2 -1
- package/dist/img/sprite/chat-end--filled.svg +2 -1
- package/dist/img/sprite/chat-end.svg +3 -2
- package/dist/img/sprite/chat-group.svg +5 -3
- package/dist/img/sprite/chat-join.svg +3 -2
- package/dist/img/sprite/chat-message-status-read.svg +2 -1
- package/dist/img/sprite/chat-message-status-sent.svg +2 -1
- package/dist/img/sprite/chat-quick-response--filled.svg +2 -1
- package/dist/img/sprite/chat-quick-response.svg +2 -1
- package/dist/img/sprite/chat-reply.svg +2 -1
- package/dist/img/sprite/chat-send.svg +5 -4
- package/dist/img/sprite/chat-transfer--filled.svg +2 -1
- package/dist/img/sprite/chat-transfer.svg +3 -2
- package/dist/img/sprite/chat.svg +2 -1
- package/dist/img/sprite/checkbox--checked--filled.svg +2 -1
- package/dist/img/sprite/checkbox--checked.svg +2 -1
- package/dist/img/sprite/checkbox.svg +2 -1
- package/dist/img/sprite/clear.svg +2 -1
- package/dist/img/sprite/close--filled.svg +2 -1
- package/dist/img/sprite/close.svg +1 -1
- package/dist/img/sprite/collapse.svg +4 -3
- package/dist/img/sprite/column-select.svg +3 -2
- package/dist/img/sprite/conference.svg +9 -6
- package/dist/img/sprite/contacts.svg +2 -1
- package/dist/img/sprite/copy.svg +2 -1
- package/dist/img/sprite/custom-chat-gateway.svg +8 -3
- package/dist/img/sprite/dark-mode.svg +5 -3
- package/dist/img/sprite/docs.svg +5 -4
- package/dist/img/sprite/done.svg +3 -2
- package/dist/img/sprite/download.svg +4 -3
- package/dist/img/sprite/edit.svg +2 -1
- package/dist/img/sprite/elevenlabs.svg +3 -3
- package/dist/img/sprite/email.svg +2 -1
- package/dist/img/sprite/expand.svg +4 -3
- package/dist/img/sprite/eye--closed.svg +2 -1
- package/dist/img/sprite/eye--opened.svg +4 -2
- package/dist/img/sprite/filter.svg +3 -3
- package/dist/img/sprite/flows.svg +2 -1
- package/dist/img/sprite/generate.svg +3 -2
- package/dist/img/sprite/google.svg +8 -4
- package/dist/img/sprite/history.svg +2 -2
- package/dist/img/sprite/hold.svg +2 -1
- package/dist/img/sprite/idle.svg +3 -2
- package/dist/img/sprite/instagram.svg +31 -26
- package/dist/img/sprite/job--accept.svg +3 -2
- package/dist/img/sprite/job--end.svg +3 -2
- package/dist/img/sprite/job.svg +5 -3
- package/dist/img/sprite/lock.svg +2 -1
- package/dist/img/sprite/logout.svg +2 -1
- package/dist/img/sprite/mail--color.svg +3 -1
- package/dist/img/sprite/mail.svg +3 -1
- package/dist/img/sprite/menu.svg +2 -1
- package/dist/img/sprite/messenger-facebook--filled.svg +2 -1
- package/dist/img/sprite/messenger-facebook.svg +8 -7
- package/dist/img/sprite/messenger-infobip.svg +8 -3
- package/dist/img/sprite/messenger-messenger.svg +12 -9
- package/dist/img/sprite/messenger-telegram--filled.svg +3 -1
- package/dist/img/sprite/messenger-telegram.svg +10 -7
- package/dist/img/sprite/messenger-viber--filled.svg +3 -1
- package/dist/img/sprite/messenger-viber.svg +3 -1
- package/dist/img/sprite/messenger-web-chat.svg +6 -2
- package/dist/img/sprite/messenger-whatsapp--filled.svg +6 -2
- package/dist/img/sprite/messenger-whatsapp.svg +9 -7
- package/dist/img/sprite/meta.svg +20 -15
- package/dist/img/sprite/mic-muted.svg +5 -4
- package/dist/img/sprite/mic.svg +3 -2
- package/dist/img/sprite/microsoft.svg +5 -5
- package/dist/img/sprite/move.svg +4 -4
- package/dist/img/sprite/note.svg +2 -1
- package/dist/img/sprite/numpad.svg +24 -22
- package/dist/img/sprite/options.svg +3 -3
- package/dist/img/sprite/pause.svg +2 -1
- package/dist/img/sprite/pin.svg +2 -1
- package/dist/img/sprite/play.svg +3 -2
- package/dist/img/sprite/plus.svg +2 -1
- package/dist/img/sprite/preview-tag-application.svg +5 -4
- package/dist/img/sprite/preview-tag-audio.svg +4 -2
- package/dist/img/sprite/preview-tag-image.svg +4 -2
- package/dist/img/sprite/preview-tag-video.svg +4 -2
- package/dist/img/sprite/prompter.svg +2 -1
- package/dist/img/sprite/queue-member.svg +2 -1
- package/dist/img/sprite/radio--checked.svg +3 -2
- package/dist/img/sprite/radio.svg +2 -1
- package/dist/img/sprite/rec-off.svg +1 -1
- package/dist/img/sprite/rec.svg +3 -2
- package/dist/img/sprite/refresh.svg +2 -2
- package/dist/img/sprite/role.svg +2 -1
- package/dist/img/sprite/rounded-info.svg +2 -1
- package/dist/img/sprite/scorecard.svg +3 -2
- package/dist/img/sprite/search.svg +2 -1
- package/dist/img/sprite/select-custom-value-enter.svg +1 -1
- package/dist/img/sprite/send-arrow.svg +2 -2
- package/dist/img/sprite/settings.svg +2 -1
- package/dist/img/sprite/sort-arrow-down.svg +2 -2
- package/dist/img/sprite/sort-arrow-up.svg +2 -2
- package/dist/img/sprite/sound-off.svg +3 -2
- package/dist/img/sprite/sound-on.svg +2 -1
- package/dist/img/sprite/star--filled.svg +2 -1
- package/dist/img/sprite/star.svg +2 -1
- package/dist/img/sprite/stop.svg +4 -2
- package/dist/img/sprite/stt-download.svg +3 -2
- package/dist/img/sprite/stt-search.svg +2 -1
- package/dist/img/sprite/stt.svg +4 -2
- package/dist/img/sprite/telegram-bot.svg +6 -2
- package/dist/img/sprite/tick.svg +2 -1
- package/dist/img/sprite/tts-download.svg +4 -3
- package/dist/img/sprite/unpin.svg +3 -3
- package/dist/img/sprite/upload.svg +4 -3
- package/dist/img/sprite/user.svg +2 -1
- package/dist/img/sprite/video-cam-off.svg +4 -2
- package/dist/img/sprite/video-cam.svg +2 -1
- package/dist/img/sprite/zoom-in.svg +2 -1
- package/dist/img/sprite/zoom-out.svg +3 -2
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +13200 -13195
- package/dist/ui-sdk.umd.cjs +11 -11
- package/package.json +1 -1
- package/src/api/clients/agents/agents.js +4 -4
- package/src/api/clients/buckets/buckets.js +3 -3
- package/src/api/clients/calendars/calendars.js +5 -5
- package/src/api/clients/chatGateways/chatGateways.js +9 -8
- package/src/api/clients/chatGateways/defaults/defaultChatGateway.js +1 -1
- package/src/api/clients/chatGateways/defaults/webChatGateway.js +4 -3
- package/src/api/clients/communications/communications.js +6 -5
- package/src/api/clients/flows/flow.js +2 -2
- package/src/api/clients/gateways/defaults/registerGateway.js +1 -1
- package/src/api/clients/gateways/defaults/trunkingGateway.js +1 -1
- package/src/api/clients/gateways/gateways.js +4 -4
- package/src/api/clients/index.js +12 -12
- package/src/api/clients/lists/blacklists.js +6 -4
- package/src/api/clients/media/media.js +2 -2
- package/src/api/clients/queues/queues.js +10 -10
- package/src/api/clients/roles/roles.js +4 -4
- package/src/api/clients/users/__tests__/users.spec.js +1 -1
- package/src/api/clients/users/users.js +7 -6
- package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.js +2 -2
- package/src/api/defaults/getDefaultInstance/getDefaultInstance.js +3 -3
- package/src/api/defaults/index.js +6 -4
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.js +1 -1
- package/src/api/transformers/index.js +10 -10
- package/src/api/transformers/notify/notify.transformer.js +7 -3
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.js +1 -1
- package/src/api/transformers/starToSearch/starToSearch.transformer.js +1 -1
- package/src/components/index.js +40 -38
- package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +2 -2
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +6 -6
- package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +1 -1
- package/src/components/transitions/wt-expand-transition.vue +6 -7
- package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +2 -1
- package/src/components/wt-app-header/__tests__/WtHeaderActions.spec.js +2 -1
- package/src/components/wt-app-header/assets/admin-dark.svg +42 -34
- package/src/components/wt-app-header/assets/admin-light.svg +42 -34
- package/src/components/wt-app-header/assets/agent-dark.svg +124 -124
- package/src/components/wt-app-header/assets/agent-light.svg +124 -124
- package/src/components/wt-app-header/assets/analytics-dark.svg +96 -58
- package/src/components/wt-app-header/assets/analytics-light.svg +96 -58
- package/src/components/wt-app-header/assets/audit-dark.svg +39 -33
- package/src/components/wt-app-header/assets/audit-light.svg +39 -33
- package/src/components/wt-app-header/assets/crm-dark.svg +22 -22
- package/src/components/wt-app-header/assets/crm-light.svg +22 -22
- package/src/components/wt-app-header/assets/history-dark.svg +246 -134
- package/src/components/wt-app-header/assets/history-light.svg +246 -134
- package/src/components/wt-app-header/assets/supervisor-dark.svg +72 -72
- package/src/components/wt-app-header/assets/supervisor-light.svg +72 -72
- package/src/components/wt-app-header/wt-app-header.vue +2 -2
- package/src/components/wt-app-header/wt-app-navigator.vue +1 -1
- package/src/components/wt-app-header/wt-header-actions.vue +1 -1
- package/src/components/wt-avatar/wt-avatar.vue +6 -6
- package/src/components/wt-badge/wt-badge.vue +4 -4
- package/src/components/wt-button/__tests__/WtButton.spec.js +1 -1
- package/src/components/wt-button/wt-button.vue +9 -9
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +5 -3
- package/src/components/wt-button-select/wt-button-select.vue +2 -2
- package/src/components/wt-checkbox/__tests__/WtCheckbox.spec.js +3 -3
- package/src/components/wt-checkbox/wt-checkbox.vue +9 -9
- package/src/components/wt-chip/wt-chip.scss +7 -7
- package/src/components/wt-chip/wt-chip.vue +1 -1
- package/src/components/wt-context-menu/wt-context-menu.vue +8 -8
- package/src/components/wt-copy-action/wt-copy-action.vue +1 -1
- package/src/components/wt-datepicker/__tests__/WtDatepicker.spec.js +3 -3
- package/src/components/wt-datepicker/wt-datepicker.vue +8 -8
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-error-page/wt-error-page.vue +5 -5
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +1 -1
- package/src/components/wt-filters-panel-wrapper/__tests__/WtFiltersPanelWrapper.spec.js +4 -2
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/wt-headline/_variables.scss +1 -1
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-hint/wt-hint.vue +1 -1
- package/src/components/wt-icon/wt-icon.vue +16 -3
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +1 -1
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +1 -1
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +1 -1
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +1 -1
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +1 -1
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +1 -1
- package/src/components/wt-icon-action/wt-icon-action.vue +2 -2
- package/src/components/wt-icon-btn/__tests__/WtIconBtn.spec.js +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +3 -3
- package/src/components/wt-indicator/__tests__/WtIndicator.spec.js +1 -1
- package/src/components/wt-indicator/wt-indicator.vue +6 -3
- package/src/components/wt-input/__tests__/WtInput.spec.js +2 -2
- package/src/components/wt-input/wt-input.vue +3 -5
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-label/wt-label.vue +3 -3
- package/src/components/wt-loader/_internals/wt-loader--md.vue +62 -63
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +8 -4
- package/src/components/wt-loader/wt-loader.vue +2 -2
- package/src/components/wt-logo/assets/logo-dark.svg +51 -25
- package/src/components/wt-logo/assets/logo-light.svg +51 -25
- package/src/components/wt-logo/wt-logo.vue +2 -2
- package/src/components/wt-navigation-bar/__tests__/WtNavigationBar.spec.js +10 -8
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-admin.svg +12 -6
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-analytics.svg +19 -11
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-audit.svg +10 -6
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-crm.svg +7 -4
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-history.svg +14 -7
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-supervisor.svg +20 -11
- package/src/components/wt-navigation-bar/assets/dark/app-logo-dark-workspace.svg +20 -10
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-admin.svg +12 -6
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-analytics.svg +19 -11
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-audit.svg +10 -6
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-crm.svg +7 -4
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-history.svg +14 -7
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-supervisor.svg +20 -11
- package/src/components/wt-navigation-bar/assets/light/app-logo-light-workspace.svg +20 -10
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +13 -12
- package/src/components/wt-notification/__tests__/WtNotification.spec.js +1 -1
- package/src/components/wt-notification/wt-notification.vue +5 -5
- package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +2 -2
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +4 -4
- package/src/components/wt-page-header/wt-page-header.vue +1 -1
- package/src/components/wt-page-wrapper/__tests__/WtPageWrapper.spec.js +2 -1
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +2 -2
- package/src/components/wt-pagination/__tests__/WtPagination.spec.js +1 -1
- package/src/components/wt-pagination/wt-pagination.vue +1 -1
- package/src/components/wt-player/scripts/__tests__/createPlyrURL.spec.js +1 -1
- package/src/components/wt-player/scripts/createPlyrURL.js +5 -2
- package/src/components/wt-player/wt-player.vue +8 -8
- package/src/components/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/wt-popup/wt-popup.vue +3 -0
- package/src/components/wt-progress-bar/__tests__/WtProgressBar.spec.js +12 -2
- package/src/components/wt-progress-bar/wt-progress-bar.vue +7 -7
- package/src/components/wt-radio/__tests__/WtRadio.spec.js +2 -2
- package/src/components/wt-radio/wt-radio.vue +8 -8
- package/src/components/wt-rounded-action/wt-rounded-action.vue +10 -8
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +2 -2
- package/src/components/wt-search-bar/_variables.scss +2 -6
- package/src/components/wt-search-bar/wt-search-bar.vue +3 -3
- package/src/components/wt-select/__tests__/WtSelect.spec.js +1 -1
- package/src/components/wt-select/_variables.scss +1 -1
- package/src/components/wt-select/mixins/__tests__/multiselectMixin.spec.js +1 -1
- package/src/components/wt-select/mixins/multiselectMixin.js +8 -7
- package/src/components/wt-select/wt-select.vue +7 -8
- package/src/components/wt-slider/wt-slider.vue +3 -3
- package/src/components/wt-status-select/__tests__/WtStatusSelect.spec.js +1 -1
- package/src/components/wt-status-select/_internals/StatusOptions.lookup.js +1 -1
- package/src/components/wt-status-select/wt-status-select.vue +15 -15
- package/src/components/wt-stepper/wt-stepper.vue +6 -6
- package/src/components/wt-switcher/__tests__/WtSwitcher.spec.js +2 -2
- package/src/components/wt-table/__tests__/WtTable.spec.js +7 -5
- package/src/components/wt-table/wt-table.vue +104 -104
- package/src/components/wt-table-column-select/wt-table-column-select.vue +9 -8
- package/src/components/wt-tabs/wt-tabs.vue +2 -2
- package/src/components/wt-tags-input/__tests__/WtTagsInput.spec.js +2 -2
- package/src/components/wt-tags-input/mixin/__tests__/taggableMixin.spec.js +3 -3
- package/src/components/wt-tags-input/wt-tags-input.vue +2 -2
- package/src/components/wt-textarea/__tests__/WtTextarea.spec.js +5 -3
- package/src/components/wt-textarea/wt-textarea.vue +3 -3
- package/src/components/wt-time-input/__tests__/WtTimeInput.spec.js +2 -2
- package/src/components/wt-time-input/wt-time-input.vue +12 -11
- package/src/components/wt-timepicker/__tests__/WtTimepicker.spec.js +2 -2
- package/src/components/wt-timepicker/wt-timepicker.vue +12 -12
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +1 -1
- package/src/components/wt-tooltip/wt-tooltip.vue +7 -11
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +1 -1
- package/src/composables/useCachedInterval/useCachedInterval.js +6 -5
- package/src/composables/useDestroyableSortable/useDestroyableSortable.js +1 -6
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +4 -5
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +1 -1
- package/src/css/main.scss +6 -6
- package/src/css/styleguide/colors/_deprecated.scss +1 -1
- package/src/css/styleguide/fonts/_fonts.scss +0 -1
- package/src/css/styleguide/placeholder/_placeholder.scss +1 -1
- package/src/css/styleguide/scroll.scss +6 -5
- package/src/css/styleguide/typography/_typography.scss +1 -1
- package/src/directives/index.js +1 -1
- package/src/enums/WebitelApplications/AdminSections.enum.js +0 -2
- package/src/locale/en/en.js +6 -6
- package/src/locale/es/es.js +5 -5
- package/src/locale/i18n.js +5 -6
- package/src/locale/kz/kz.js +5 -5
- package/src/locale/ru/ru.js +6 -6
- package/src/locale/ua/ua.js +6 -6
- package/src/mixins/dataFilterMixins/__tests__/apiFilterMixin.spec.js +1 -1
- package/src/mixins/dataFilterMixins/__tests__/enumFilterMixin.spec.js +5 -3
- package/src/mixins/dataFilterMixins/__tests__/paginationFilterMixin.spec.js +1 -1
- package/src/mixins/dataFilterMixins/__tests__/sortFilterMixin.spec.js +27 -24
- package/src/mixins/dataFilterMixins/__tests__/urlControllerMixin.spec.js +1 -1
- package/src/mixins/dataFilterMixins/apiFilterMixin.js +1 -1
- package/src/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.js +3 -2
- package/src/mixins/dataFilterMixins/enumFilterMixin.js +5 -3
- package/src/mixins/dataFilterMixins/paginationFilterMixin.js +1 -1
- package/src/mixins/dataFilterMixins/sortFilterMixin.js +26 -13
- package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +1 -1
- package/src/mixins/validationMixin/useValidation.js +8 -4
- package/src/mixins/validationMixin/validationMixin.js +1 -1
- package/src/modules/AgentStatusSelect/api/pause-cause.js +5 -3
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +10 -7
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-pause-cause-popup.spec.js +2 -2
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +6 -4
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +2 -2
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
- package/src/modules/Appearance/components/__tests__/wt-dark-mode-switcher.spec.js +1 -1
- package/src/modules/Appearance/store/AppearanceStoreModule.js +5 -5
- package/src/modules/Appearance/store/__tests__/AppearanceStoreModule.spec.js +1 -1
- package/src/modules/AuditForm/components/__tests__/audit-form-question-read-wrapper.spec.js +2 -1
- package/src/modules/AuditForm/components/__tests__/audit-form-question-write-wrapper.spec.js +16 -7
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +16 -8
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +8 -7
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +18 -18
- package/src/modules/AuditForm/components/audit-form-question.vue +3 -2
- package/src/modules/AuditForm/components/audit-form.vue +10 -13
- package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options-write-row.spec.js +3 -2
- package/src/modules/AuditForm/components/questions/options/__tests__/audit-form-question-options.spec.js +4 -2
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +5 -5
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +5 -5
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +16 -16
- package/src/modules/AuditForm/schemas/AuditFormQuestionSchema.js +1 -1
- package/src/modules/CSVExport/CSVExport.js +8 -6
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +3 -3
- package/src/modules/CSVExport/mixins/exportCSVMixin.js +5 -4
- package/src/modules/CardStoreModule/composables/useCardStore.js +1 -1
- package/src/modules/CardStoreModule/store/CardStoreModule.js +2 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +11 -7
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +4 -4
- package/src/modules/FilesExport/FilesExport.js +2 -3
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +18 -6
- package/src/modules/FilesExport/mixins/exportFilesMixin.js +7 -3
- package/src/modules/FilesExport/scripts/generateMediaURL.js +2 -1
- package/src/modules/Filters/classes/BaseFilterSchema.js +3 -3
- package/src/modules/Filters/components/__tests__/filter-pagination.spec.js +1 -1
- package/src/modules/Filters/components/__tests__/filter-table-fields.spec.js +2 -2
- package/src/modules/Filters/components/filter-pagination.vue +1 -1
- package/src/modules/Filters/components/filter-table-fields.vue +0 -2
- package/src/modules/Filters/scripts/getters/index.js +3 -3
- package/src/modules/Filters/scripts/getters/localStorageGetter.js +1 -1
- package/src/modules/Filters/scripts/getters/queryGetter.js +0 -1
- package/src/modules/Filters/scripts/getters/valueGetter.js +1 -1
- package/src/modules/Filters/scripts/restores/index.js +2 -2
- package/src/modules/Filters/scripts/restores/localStorageRestore.js +1 -1
- package/src/modules/Filters/scripts/restores/queryRestore.js +1 -1
- package/src/modules/Filters/scripts/setters/index.js +3 -3
- package/src/modules/Filters/scripts/setters/localStorageSetter.js +1 -1
- package/src/modules/Filters/scripts/setters/querySetter.js +1 -1
- package/src/modules/Filters/scripts/setters/valueSetter.js +1 -1
- package/src/modules/Filters/store/FiltersStoreModule.js +4 -4
- package/src/modules/Filters/store/__tests__/FiltersStoreModule.spec.js +4 -4
- package/src/modules/Notifications/store/NotificationsStoreModule.js +17 -15
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -3
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.mutations.spec.js +2 -2
- package/src/modules/QueryFilters/api/__tests__/defaults.spec.js +1 -1
- package/src/modules/QueryFilters/classes/ApiFilterSchema.js +1 -1
- package/src/modules/QueryFilters/classes/EnumFilterSchema.js +1 -1
- package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +3 -3
- package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +3 -3
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +5 -4
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +3 -3
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +7 -5
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +6 -6
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +7 -7
- package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +8 -8
- package/src/modules/QueryFilters/components/filter-search.vue +2 -2
- package/src/modules/QueryFilters/components/filter-table-fields.vue +1 -1
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +7 -3
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +18 -11
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +27 -23
- package/src/modules/QueryFilters/mixins/__tests__/urlControllerMixin.spec.js +1 -1
- package/src/modules/QueryFilters/mixins/apiFilterMixin.js +5 -2
- package/src/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.js +2 -2
- package/src/modules/QueryFilters/mixins/enumFilterMixin.js +13 -11
- package/src/modules/QueryFilters/mixins/paginationFilterMixin.js +5 -3
- package/src/modules/QueryFilters/mixins/sortFilterMixin.js +18 -7
- package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +2 -2
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +17 -9
- package/src/modules/QueryFilters/store/queryFilters.js +1 -1
- package/src/modules/TableStoreModule/composables/useTableStore.js +1 -1
- package/src/modules/TableStoreModule/store/TableStoreModule.js +3 -3
- package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +6 -5
- package/src/modules/Userinfo/api/userinfo.js +2 -2
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +18 -13
- package/src/modules/Userinfo/store/UserinfoStoreModule.js +28 -15
- package/src/plugins/breakpoint/breakpoint.plugin.js +1 -2
- package/src/scripts/__tests__/caseConverters.spec.js +6 -3
- package/src/scripts/__tests__/convertDuration.spec.js +1 -1
- package/src/scripts/__tests__/debounce.spec.js +1 -1
- package/src/scripts/__tests__/editProxy.spec.js +1 -1
- package/src/scripts/__tests__/isEmpty.spec.js +1 -1
- package/src/scripts/__tests__/prettifyFileSize.spec.js +1 -1
- package/src/scripts/__tests__/prettifyTime.spec.js +1 -1
- package/src/scripts/__tests__/preventHiddenPageCallsDecorator.spec.js +2 -1
- package/src/scripts/__tests__/sortQueryAdapters.spec.js +1 -1
- package/src/scripts/__tests__/updateObject.spec.js +5 -3
- package/src/scripts/caseConverters.js +34 -28
- package/src/scripts/debounce.js +5 -1
- package/src/scripts/preventHiddenPageCallsDecorator.js +4 -2
- package/src/scripts/sortQueryAdapters.js +12 -6
- package/src/scripts/updateObject.js +1 -1
- package/src/store/BaseStoreModules/ApiStoreModule.js +1 -1
- package/src/store/BaseStoreModules/BaseStoreModule.js +16 -4
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +27 -23
- package/src/store/ReactiveNowStoreModule/ReactiveNowStoreModule.js +1 -1
- package/src/store/helpers/__tests__/getNamespacedState.spec.js +1 -1
- package/src/store/helpers/getNamespacedState.js +2 -1
- package/src/tests/mocks/axiosMock.js +16 -16
- package/src/validators/decimalValidator.js +3 -2
- package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +2 -2
- package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +3 -2
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<header class="wt-navigation-bar__nav-header">
|
|
18
18
|
<!-- vue cli build target lib cant handle dynamic require :( -->
|
|
19
19
|
<img
|
|
20
|
-
class="wt-navigation-bar__app-pic"
|
|
21
|
-
:src="darkMode ? appLogo[currentApp].dark : appLogo[currentApp].light"
|
|
22
20
|
:alt="currentApp"
|
|
21
|
+
:src="darkMode ? appLogo[currentApp].dark : appLogo[currentApp].light"
|
|
22
|
+
class="wt-navigation-bar__app-pic"
|
|
23
23
|
>
|
|
24
24
|
<wt-icon-btn
|
|
25
25
|
class="wt-navigation-bar__nav-close"
|
|
@@ -92,20 +92,20 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script>
|
|
95
|
+
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum.js';
|
|
95
96
|
import ExpandTransition from '../transitions/wt-expand-transition.vue';
|
|
96
|
-
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
|
|
97
97
|
import AdminDark from './assets/dark/app-logo-dark-admin.svg';
|
|
98
|
-
import AdminLight from './assets/light/app-logo-light-admin.svg';
|
|
99
|
-
import WorkspaceDark from './assets/dark/app-logo-dark-workspace.svg';
|
|
100
|
-
import WorkspaceLight from './assets/light/app-logo-light-workspace.svg';
|
|
101
98
|
import AuditDark from './assets/dark/app-logo-dark-audit.svg';
|
|
102
|
-
import
|
|
99
|
+
import CrmDark from './assets/dark/app-logo-dark-crm.svg';
|
|
103
100
|
import HistoryDark from './assets/dark/app-logo-dark-history.svg';
|
|
104
|
-
import HistoryLight from './assets/light/app-logo-light-history.svg';
|
|
105
101
|
import SupervisorDark from './assets/dark/app-logo-dark-supervisor.svg';
|
|
106
|
-
import
|
|
107
|
-
import
|
|
102
|
+
import WorkspaceDark from './assets/dark/app-logo-dark-workspace.svg';
|
|
103
|
+
import AdminLight from './assets/light/app-logo-light-admin.svg';
|
|
104
|
+
import AuditLight from './assets/light/app-logo-light-audit.svg';
|
|
108
105
|
import CrmLight from './assets/light/app-logo-light-crm.svg';
|
|
106
|
+
import HistoryLight from './assets/light/app-logo-light-history.svg';
|
|
107
|
+
import SupervisorLight from './assets/light/app-logo-light-supervisor.svg';
|
|
108
|
+
import WorkspaceLight from './assets/light/app-logo-light-workspace.svg';
|
|
109
109
|
|
|
110
110
|
const appLogo = {
|
|
111
111
|
[WebitelApplications.SUPERVISOR]: {
|
|
@@ -148,7 +148,8 @@ export default {
|
|
|
148
148
|
},
|
|
149
149
|
darkMode: {
|
|
150
150
|
type: Boolean,
|
|
151
|
-
default: false,
|
|
151
|
+
default: false,
|
|
152
|
+
},
|
|
152
153
|
},
|
|
153
154
|
data: () => ({
|
|
154
155
|
isOpened: false,
|
|
@@ -264,8 +265,8 @@ export default {
|
|
|
264
265
|
justify-content: space-between;
|
|
265
266
|
width: 100%;
|
|
266
267
|
padding: var(--wt-navigation-bar-link-padding);
|
|
267
|
-
outline: none;
|
|
268
268
|
color: var(--wt-navigation-bar-option-text-color);
|
|
269
|
+
outline: none;
|
|
269
270
|
|
|
270
271
|
&:before {
|
|
271
272
|
position: absolute;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtNotification from '../wt-notification.vue';
|
|
3
2
|
import WtIcon from '../../wt-icon/wt-icon.vue';
|
|
3
|
+
import WtNotification from '../wt-notification.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtNotification', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
@click="$emit('close')"
|
|
5
5
|
>
|
|
6
6
|
<wt-icon
|
|
7
|
-
class="wt-notification__icon"
|
|
8
|
-
:icon="notificationIcon"
|
|
9
7
|
:color="notificationIconColor"
|
|
8
|
+
:icon="notificationIcon"
|
|
9
|
+
class="wt-notification__icon"
|
|
10
10
|
/>
|
|
11
11
|
|
|
12
12
|
<p class="wt-notification__text">
|
|
@@ -66,11 +66,11 @@ export default {
|
|
|
66
66
|
min-width: var(--wt-notification-min-width);
|
|
67
67
|
max-width: var(--wt-notification-max-width);
|
|
68
68
|
padding: var(--wt-notification-padding);
|
|
69
|
+
cursor: pointer;
|
|
69
70
|
color: var(--wt-notification-text-color);
|
|
70
|
-
background: var(--wt-notification-bg-color);
|
|
71
71
|
border-radius: var(--border-radius);
|
|
72
|
+
background: var(--wt-notification-bg-color);
|
|
72
73
|
box-shadow: var(--elevation-1);
|
|
73
|
-
cursor: pointer;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.wt-notification__icon {
|
|
@@ -79,8 +79,8 @@ export default {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.wt-notification__text {
|
|
82
|
-
flex-grow: 1;
|
|
83
82
|
align-self: center;
|
|
83
|
+
flex-grow: 1;
|
|
84
84
|
margin: 0;
|
|
85
85
|
}
|
|
86
86
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import
|
|
2
|
+
import eventBus from '../../../scripts/eventBus.js';
|
|
3
3
|
import WtNotification from '../../wt-notification/wt-notification.vue';
|
|
4
|
-
import
|
|
4
|
+
import WtNotificationsBar from '../wt-notifications-bar.vue';
|
|
5
5
|
|
|
6
6
|
describe('WtNotificationsBar', () => {
|
|
7
7
|
it('renders a component', () => {
|
|
@@ -57,12 +57,12 @@ export default {
|
|
|
57
57
|
@extend %wt-scrollbar;
|
|
58
58
|
|
|
59
59
|
position: fixed;
|
|
60
|
+
z-index: var(--notifications-bar-z-index);
|
|
60
61
|
top: var(--notifications-bar-corner-margin);
|
|
61
62
|
right: var(--notifications-bar-corner-margin);
|
|
62
|
-
max-height: var(--notifications-bar-max-height);
|
|
63
|
-
overflow-y: auto;
|
|
64
63
|
overflow-x: hidden;
|
|
65
|
-
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
max-height: var(--notifications-bar-max-height);
|
|
66
66
|
|
|
67
67
|
.wt-notification {
|
|
68
68
|
margin: var(--notifications-bar-notifications-margin);
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
|
|
77
77
|
.wt-notifications-transition-enter,
|
|
78
78
|
.wt-notifications-transition-leave-to {
|
|
79
|
-
opacity: 0;
|
|
80
79
|
transform: translateX(60px);
|
|
80
|
+
opacity: 0;
|
|
81
81
|
}
|
|
82
82
|
</style>
|
|
@@ -20,7 +20,8 @@ describe('WtPageWrapper', () => {
|
|
|
20
20
|
const wrapper = shallowMount(WtPageWrapper, {
|
|
21
21
|
slots: { 'actions-panel': content },
|
|
22
22
|
});
|
|
23
|
-
expect(wrapper.find('.wt-page-wrapper__actions-panel').text())
|
|
23
|
+
expect(wrapper.find('.wt-page-wrapper__actions-panel').text())
|
|
24
|
+
.toBe(content);
|
|
24
25
|
});
|
|
25
26
|
|
|
26
27
|
it('renders page wrapper main content via main slot', () => {
|
|
@@ -37,11 +37,11 @@ export default {
|
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
box-sizing: border-box;
|
|
40
|
-
min-height: 100%;
|
|
41
40
|
max-width: 100%;
|
|
41
|
+
min-height: 100%;
|
|
42
42
|
padding: var(--page-wrapper-padding);
|
|
43
|
-
gap: var(--page-wrapper-section-gap);
|
|
44
43
|
background: var(--wt-page-wrapper-background-color);
|
|
44
|
+
gap: var(--page-wrapper-section-gap);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.wt-page-wrapper__header,
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
function createPlyrURL(baseURL) {
|
|
2
2
|
// Check if baseURL is exactly "/" and adjust it to an empty string
|
|
3
|
-
let normalizedBaseURL = baseURL ===
|
|
3
|
+
let normalizedBaseURL = baseURL === '/' ? '' : baseURL;
|
|
4
4
|
|
|
5
5
|
// Ensure there is no trailing slash in normalizedBaseURL to prevent double slashes
|
|
6
|
-
normalizedBaseURL = normalizedBaseURL.endsWith('/')
|
|
6
|
+
normalizedBaseURL = normalizedBaseURL.endsWith('/')
|
|
7
|
+
? normalizedBaseURL.slice(0, -1)
|
|
8
|
+
: normalizedBaseURL;
|
|
7
9
|
|
|
8
10
|
// Construct iconUrl
|
|
9
11
|
return `${normalizedBaseURL}/img/plyr.svg`;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
export default createPlyrURL;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<aside
|
|
3
|
-
class="wt-player"
|
|
4
3
|
:class="[`wt-player--position-${position}`]"
|
|
4
|
+
class="wt-player"
|
|
5
5
|
>
|
|
6
6
|
<component
|
|
7
7
|
:is="playerType"
|
|
8
8
|
ref="player"
|
|
9
|
-
class="wt-player__player"
|
|
10
|
-
:src="src"
|
|
11
9
|
:autoplay="autoplay"
|
|
10
|
+
:src="src"
|
|
11
|
+
class="wt-player__player"
|
|
12
12
|
controls
|
|
13
13
|
v-on="listeners"
|
|
14
14
|
/>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<script>
|
|
28
28
|
import Plyr from 'plyr';
|
|
29
29
|
import 'plyr/src/sass/plyr.scss';
|
|
30
|
-
import createPlyrURL from './scripts/createPlyrURL';
|
|
30
|
+
import createPlyrURL from './scripts/createPlyrURL.js';
|
|
31
31
|
|
|
32
32
|
export default {
|
|
33
33
|
name: 'WtPlayer',
|
|
@@ -190,8 +190,8 @@ export default {
|
|
|
190
190
|
padding: var(--plyr-controls-icon-padding);
|
|
191
191
|
|
|
192
192
|
svg {
|
|
193
|
-
height: var(--plyr-controls-icon-size);
|
|
194
193
|
width: var(--plyr-controls-icon-size);
|
|
194
|
+
height: var(--plyr-controls-icon-size);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -208,11 +208,11 @@ export default {
|
|
|
208
208
|
cursor: pointer;
|
|
209
209
|
|
|
210
210
|
&::-webkit-slider-thumb {
|
|
211
|
+
transition: var(--transition);
|
|
211
212
|
border: var(--wt-slider-border);
|
|
212
213
|
border-radius: var(--wt-slider-pointer-radius);
|
|
213
214
|
background: var(--wt-slider-pointer-background-color);
|
|
214
215
|
-webkit-appearance: none;
|
|
215
|
-
transition: var(--transition);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
&::-webkit-slider-runnable-track {
|
|
@@ -222,12 +222,12 @@ export default {
|
|
|
222
222
|
&::-moz-range-thumb {
|
|
223
223
|
width: var(--wt-slider-pointer-size);
|
|
224
224
|
height: var(--wt-slider-pointer-size);
|
|
225
|
+
transition: var(--transition);
|
|
225
226
|
border: var(--wt-slider-border);
|
|
226
|
-
border-radius: var(--wt-slider-pointer-radius);
|
|
227
227
|
border-color: var(--wt-slider-pointer-border-color);
|
|
228
|
+
border-radius: var(--wt-slider-pointer-radius);
|
|
228
229
|
background: var(--wt-slider-pointer-background-color);
|
|
229
230
|
-moz-appearance: none;
|
|
230
|
-
transition: var(--transition);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
&::-moz-range-track {
|
|
@@ -111,16 +111,19 @@ export default {
|
|
|
111
111
|
width: var(--wt-popup-size-xs);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
|
|
114
115
|
&-sm {
|
|
115
116
|
.wt-popup__popup {
|
|
116
117
|
width: var(--wt-popup-size-sm);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
120
|
+
|
|
119
121
|
&-md {
|
|
120
122
|
.wt-popup__popup {
|
|
121
123
|
width: var(--wt-popup-size-md);
|
|
122
124
|
}
|
|
123
125
|
}
|
|
126
|
+
|
|
124
127
|
&-lg {
|
|
125
128
|
.wt-popup__popup {
|
|
126
129
|
width: var(--wt-popup-size-lg);
|
|
@@ -7,11 +7,21 @@ describe('WtProgressBar', () => {
|
|
|
7
7
|
expect(wrapper.exists()).toBe(true);
|
|
8
8
|
});
|
|
9
9
|
it('isOverflow correctly computes overflow=true', () => {
|
|
10
|
-
const wrapper = shallowMount(WtProgressBar, {
|
|
10
|
+
const wrapper = shallowMount(WtProgressBar, {
|
|
11
|
+
props: {
|
|
12
|
+
value: 2,
|
|
13
|
+
max: 1,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
11
16
|
expect(wrapper.vm.isOverflow).toBe(true);
|
|
12
17
|
});
|
|
13
18
|
it('isOverflow correctly computes overflow=false', () => {
|
|
14
|
-
const wrapper = shallowMount(WtProgressBar, {
|
|
19
|
+
const wrapper = shallowMount(WtProgressBar, {
|
|
20
|
+
props: {
|
|
21
|
+
value: 0.99,
|
|
22
|
+
max: 1,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
15
25
|
expect(wrapper.vm.isOverflow).toBe(false);
|
|
16
26
|
});
|
|
17
27
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="wt-progress-bar"
|
|
4
3
|
:class="[{
|
|
5
4
|
'wt-progress-bar--overflow': isOverflow,
|
|
6
5
|
},
|
|
7
6
|
`wt-progress-bar--${color}`
|
|
8
7
|
]"
|
|
8
|
+
class="wt-progress-bar"
|
|
9
9
|
>
|
|
10
10
|
<span
|
|
11
|
-
class="wt-progress-bar__progress"
|
|
12
11
|
:style="`width: ${progressWidth}%;`"
|
|
12
|
+
class="wt-progress-bar__progress"
|
|
13
13
|
/>
|
|
14
14
|
</div>
|
|
15
15
|
</template>
|
|
@@ -53,23 +53,23 @@ export default {
|
|
|
53
53
|
<style lang="scss" scoped>
|
|
54
54
|
|
|
55
55
|
.wt-progress-bar {
|
|
56
|
+
position: relative;
|
|
56
57
|
box-sizing: border-box;
|
|
57
58
|
width: 100%;
|
|
58
|
-
position: relative;
|
|
59
59
|
padding: var(--wt-progress-bar-padding);
|
|
60
60
|
line-height: 0;
|
|
61
|
-
background: var(--wt-progress-bar-background-color);
|
|
62
61
|
border-radius: var(--border-radius);
|
|
62
|
+
background: var(--wt-progress-bar-background-color);
|
|
63
63
|
box-shadow: var(--elevation-1);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.wt-progress-bar__progress {
|
|
67
67
|
display: inline-block;
|
|
68
68
|
height: var(--wt-progress-bar-height);
|
|
69
|
-
will-change: width;
|
|
70
|
-
background: var(--wt-progress-bar-background-primary-color);
|
|
71
|
-
border-radius: var(--wt-progress-bar-border-radius) 0 0 var(--wt-progress-bar-border-radius);
|
|
72
69
|
transition: var(--transition);
|
|
70
|
+
border-radius: var(--wt-progress-bar-border-radius) 0 0 var(--wt-progress-bar-border-radius);
|
|
71
|
+
background: var(--wt-progress-bar-background-primary-color);
|
|
72
|
+
will-change: width;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.wt-progress-bar--primary .wt-progress-bar__progress {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtRadio from '../wt-radio.vue';
|
|
3
|
-
import WtLabel from '../../wt-label/wt-label.vue';
|
|
4
2
|
import WtIcon from '../../wt-icon/wt-icon.vue';
|
|
3
|
+
import WtLabel from '../../wt-label/wt-label.vue';
|
|
4
|
+
import WtRadio from '../wt-radio.vue';
|
|
5
5
|
|
|
6
6
|
describe('WtRadio', () => {
|
|
7
7
|
it('renders a component', () => {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="wt-radio"
|
|
4
3
|
:class="{
|
|
5
4
|
'wt-radio--active': isChecked,
|
|
6
5
|
'wt-radio--outline': outline,
|
|
7
6
|
'wt-radio--disabled': disabled,
|
|
8
7
|
}"
|
|
8
|
+
class="wt-radio"
|
|
9
9
|
>
|
|
10
10
|
<wt-label class="wt-radio__wrapper">
|
|
11
11
|
<input
|
|
12
|
-
class="wt-radio__input"
|
|
13
|
-
type="radio"
|
|
14
|
-
:value="value"
|
|
15
12
|
:checked="isChecked"
|
|
16
13
|
:disabled="disabled"
|
|
14
|
+
:value="value"
|
|
15
|
+
class="wt-radio__input"
|
|
16
|
+
type="radio"
|
|
17
17
|
@input="inputHandler"
|
|
18
18
|
>
|
|
19
19
|
<wt-icon
|
|
20
|
-
class="wt-radio__icon"
|
|
21
20
|
:icon="radioIcon"
|
|
21
|
+
class="wt-radio__icon"
|
|
22
22
|
/>
|
|
23
23
|
<!-- @slot Custom input label -->
|
|
24
24
|
<slot
|
|
25
|
-
v-bind="{ label, isChecked, disabled }"
|
|
26
25
|
name="label"
|
|
26
|
+
v-bind="{ label, isChecked, disabled }"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
29
29
|
v-if="label"
|
|
@@ -108,8 +108,8 @@ export default {
|
|
|
108
108
|
position: relative;
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
|
-
user-select: none;
|
|
112
111
|
cursor: pointer;
|
|
112
|
+
user-select: none;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.wt-radio__label {
|
|
@@ -122,8 +122,8 @@ export default {
|
|
|
122
122
|
position: absolute;
|
|
123
123
|
width: 0;
|
|
124
124
|
height: 0;
|
|
125
|
-
opacity: 0;
|
|
126
125
|
pointer-events: none;
|
|
126
|
+
opacity: 0;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.wt-radio__icon {
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
{ 'wt-rounded-action--rounded': rounded },
|
|
8
8
|
{ 'wt-rounded-action--wide': wide },
|
|
9
9
|
]"
|
|
10
|
-
type="button"
|
|
11
10
|
class="wt-rounded-action"
|
|
11
|
+
type="button"
|
|
12
12
|
@click="emit('click', $event)"
|
|
13
13
|
>
|
|
14
14
|
<wt-loader
|
|
15
15
|
v-if="loading"
|
|
16
|
-
size="sm"
|
|
17
16
|
color="main"
|
|
17
|
+
size="sm"
|
|
18
18
|
/>
|
|
19
19
|
<wt-icon
|
|
20
20
|
v-else
|
|
@@ -77,8 +77,10 @@ const emit = defineEmits(['click']);
|
|
|
77
77
|
const iColor = computed(() => {
|
|
78
78
|
if (props.disabled) return 'disabled';
|
|
79
79
|
switch (props.color) {
|
|
80
|
-
case 'secondary':
|
|
81
|
-
|
|
80
|
+
case 'secondary':
|
|
81
|
+
return 'default';
|
|
82
|
+
default:
|
|
83
|
+
return props.color;
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
</script>
|
|
@@ -91,17 +93,17 @@ const iColor = computed(() => {
|
|
|
91
93
|
.wt-rounded-action {
|
|
92
94
|
display: block;
|
|
93
95
|
width: fit-content;
|
|
94
|
-
line-height: 0;
|
|
95
96
|
padding: var(--rounded-action-padding);
|
|
97
|
+
transition: var(--transition);
|
|
98
|
+
line-height: 0;
|
|
96
99
|
border: var(--rounded-action-border-size) solid;
|
|
97
|
-
background: var(--rounded-action-bg-color);
|
|
98
100
|
border-color: var(--rounded-action-bg-color);
|
|
99
101
|
border-radius: var(--border-radius);
|
|
100
|
-
|
|
102
|
+
background: var(--rounded-action-bg-color);
|
|
101
103
|
|
|
102
104
|
&:hover {
|
|
103
|
-
background: var(--rounded-action-bg-hover-color);
|
|
104
105
|
border-color: var(--rounded-action-bg-hover-color);
|
|
106
|
+
background: var(--rounded-action-bg-hover-color);
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
&--wide {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref } from 'vue';
|
|
2
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import { useValidation } from '../../../mixins/validationMixin/useValidation.js';
|
|
3
4
|
import WtSearchBar from '../wt-search-bar.vue';
|
|
4
|
-
import { useValidation } from '../../../mixins/validationMixin/useValidation';
|
|
5
5
|
|
|
6
6
|
vi.mock('../../../mixins/validationMixin/useValidation');
|
|
7
7
|
useValidation.mockImplementation(() => ({
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--search-bar-padding:
|
|
4
|
-
|
|
5
|
-
calc(var(--input-padding) + var(--icon-sm-size) + var(--spacing-xs))
|
|
6
|
-
var(--input-padding)
|
|
7
|
-
calc(var(--input-padding) + var(--icon-md-size) + var(--spacing-xs));
|
|
8
|
-
}
|
|
3
|
+
--search-bar-padding: var(--input-padding) calc(var(--input-padding) + var(--icon-sm-size) + var(--spacing-xs)) var(--input-padding) calc(var(--input-padding) + var(--icon-md-size) + var(--spacing-xs));
|
|
4
|
+
}
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
|
|
77
77
|
<script setup>
|
|
78
78
|
import { computed, toRefs } from 'vue';
|
|
79
|
-
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
80
|
-
import debounce from '../../scripts/debounce';
|
|
79
|
+
import { useValidation } from '../../mixins/validationMixin/useValidation.js';
|
|
80
|
+
import debounce from '../../scripts/debounce.js';
|
|
81
81
|
|
|
82
82
|
const props = defineProps({
|
|
83
83
|
v: {
|
|
@@ -198,9 +198,9 @@ function handleKeyup(event) {
|
|
|
198
198
|
padding: 0;
|
|
199
199
|
transition: var(--transition);
|
|
200
200
|
color: var(--wt-text-field-text-color);
|
|
201
|
-
background: transparent;
|
|
202
201
|
border: none;
|
|
203
202
|
outline: none;
|
|
203
|
+
background: transparent;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/* clears the 'X' from Internet Explorer */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
--select-caret-right-pos: var(--input-padding);
|
|
7
7
|
|
|
8
|
-
--select-tags-border: var(--input-border);
|
|
8
|
+
--select-tags-border: var(--input-border); // right pos = 10px spacing + clear icon size + clear offset
|
|
9
9
|
|
|
10
10
|
--select-options-padding: var(--input-padding);
|
|
11
11
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import VueMultiselect from 'vue-multiselect';
|
|
2
2
|
import { ObserveVisibility } from 'vue-observe-visibility';
|
|
3
|
-
import validationMixin
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import labelUsageMixin from '../../wt-label/mixins/labelUsageMixin';
|
|
3
|
+
import validationMixin from '../../../mixins/validationMixin/validationMixin.js';
|
|
4
|
+
import debounce from '../../../scripts/debounce.js';
|
|
5
|
+
import isEmpty from '../../../scripts/isEmpty.js';
|
|
6
|
+
import labelUsageMixin from '../../wt-label/mixins/labelUsageMixin.js';
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
9
|
mixins: [validationMixin, labelUsageMixin],
|
|
@@ -133,7 +132,9 @@ export default {
|
|
|
133
132
|
async fetchOptions({ search, page } = this.searchParams) {
|
|
134
133
|
if (!this.isApiMode) return;
|
|
135
134
|
const { items, next } = await this.searchMethod({ search, page });
|
|
136
|
-
this.apiOptions = this.searchParams.page === 1
|
|
135
|
+
this.apiOptions = this.searchParams.page === 1
|
|
136
|
+
? items
|
|
137
|
+
: this.apiOptions.concat(items);
|
|
137
138
|
this.searchHasNext = next;
|
|
138
139
|
this.isLoading = false;
|
|
139
140
|
},
|
|
@@ -153,7 +154,7 @@ export default {
|
|
|
153
154
|
disabled() {
|
|
154
155
|
// load options if becomes enabled
|
|
155
156
|
if (!this.disabled) this.fetchOptions();
|
|
156
|
-
}
|
|
157
|
+
},
|
|
157
158
|
},
|
|
158
159
|
|
|
159
160
|
created() {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
:multiple="multiple"
|
|
37
37
|
:options="optionsWithCustomValues"
|
|
38
38
|
:placeholder="placeholder || label"
|
|
39
|
-
:track-by="trackBy"
|
|
40
39
|
:taggable="taggable"
|
|
40
|
+
:track-by="trackBy"
|
|
41
41
|
class="wt-select__select"
|
|
42
42
|
v-bind="$attrs"
|
|
43
43
|
@close="isOpened = false"
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
:disabled="disabled"
|
|
92
92
|
class="multiselect__select multiselect__custom-value"
|
|
93
93
|
icon="select-custom-value-enter"
|
|
94
|
-
@mousedown.prevent
|
|
95
94
|
@click="handleCustomValueArrowInput(toggle)"
|
|
95
|
+
@mousedown.prevent
|
|
96
96
|
/>
|
|
97
97
|
<!-- To view a list of possible values, click on this icon -->
|
|
98
98
|
<!-- @mousedown.native.prevent.stop="toggle": https://github.com/shentao/vue-multiselect/issues/1204#issuecomment-615114727 -->
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
:disabled="disabled"
|
|
102
102
|
class="multiselect__select multiselect__arrow"
|
|
103
103
|
icon="arrow-down"
|
|
104
|
-
@mousedown.prevent
|
|
105
104
|
@click="toggle"
|
|
105
|
+
@mousedown.prevent
|
|
106
106
|
/>
|
|
107
107
|
</template>
|
|
108
108
|
|
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
</template>
|
|
145
145
|
|
|
146
146
|
<script>
|
|
147
|
-
import isEmpty from '../../scripts/isEmpty';
|
|
148
|
-
import taggableMixin from '../wt-tags-input/mixin/taggableMixin';
|
|
149
|
-
import multiselectMixin from './mixins/multiselectMixin';
|
|
147
|
+
import isEmpty from '../../scripts/isEmpty.js';
|
|
148
|
+
import taggableMixin from '../wt-tags-input/mixin/taggableMixin.js';
|
|
149
|
+
import multiselectMixin from './mixins/multiselectMixin.js';
|
|
150
150
|
|
|
151
151
|
export default {
|
|
152
152
|
name: 'WtSelect',
|
|
@@ -202,9 +202,8 @@ export default {
|
|
|
202
202
|
// https://webitel.atlassian.net/browse/WTEL-3181
|
|
203
203
|
if (!this.allowCustomValues) return this.selectOptions;
|
|
204
204
|
|
|
205
|
-
|
|
206
205
|
/**
|
|
207
|
-
|
|
206
|
+
custom values could be restored after refresh, so that they could be not included in options prop,
|
|
208
207
|
so that we should add them to options manually (but filter duplicates, which are already in options)
|
|
209
208
|
|
|
210
209
|
i assume it's bad decision and it's better to include custom values to options prop,
|