@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.
- 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 +5 -5
- 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 +4 -4
- 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
|
@@ -122,11 +122,11 @@ export default {
|
|
|
122
122
|
&::-webkit-slider-thumb {
|
|
123
123
|
width: var(--wt-slider-pointer-size);
|
|
124
124
|
height: var(--wt-slider-pointer-size);
|
|
125
|
+
transition: var(--transition);
|
|
125
126
|
border: var(--wt-slider-border);
|
|
126
127
|
border-radius: var(--wt-slider-pointer-radius);
|
|
127
128
|
background: var(--wt-slider-pointer-background-color);
|
|
128
129
|
-webkit-appearance: none;
|
|
129
|
-
transition: var(--transition);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
&::-webkit-slider-runnable-track {
|
|
@@ -136,12 +136,12 @@ export default {
|
|
|
136
136
|
&::-moz-range-thumb {
|
|
137
137
|
width: var(--wt-slider-pointer-size);
|
|
138
138
|
height: var(--wt-slider-pointer-size);
|
|
139
|
+
transition: var(--transition);
|
|
139
140
|
border: var(--wt-slider-border);
|
|
140
|
-
border-radius: var(--wt-slider-pointer-radius);
|
|
141
141
|
border-color: var(--wt-slider-pointer-border-color);
|
|
142
|
+
border-radius: var(--wt-slider-pointer-radius);
|
|
142
143
|
background: var(--wt-slider-pointer-background-color);
|
|
143
144
|
-moz-appearance: none;
|
|
144
|
-
transition: var(--transition);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&::-moz-range-track {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtStatusSelect from '../wt-status-select.vue';
|
|
3
2
|
import WtSelect from '../../wt-select/wt-select.vue';
|
|
3
|
+
import WtStatusSelect from '../wt-status-select.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtStatusSelect', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-select
|
|
3
|
-
class="wt-status-select"
|
|
4
|
-
:value="selectedOption"
|
|
5
|
-
:options="availableOptions"
|
|
6
|
-
track-by="value"
|
|
7
3
|
:clearable="false"
|
|
4
|
+
:options="availableOptions"
|
|
8
5
|
:searchable="false"
|
|
6
|
+
:value="selectedOption"
|
|
7
|
+
class="wt-status-select"
|
|
8
|
+
track-by="value"
|
|
9
9
|
@input="inputHandler"
|
|
10
10
|
>
|
|
11
11
|
<template #singleLabel="{ option }">
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
|
-
import AgentStatus from '../../enums/AgentStatus/AgentStatus.enum';
|
|
28
|
-
import convertDuration from '../../scripts/convertDuration';
|
|
29
|
-
import StatusOptions from './_internals/StatusOptions.lookup';
|
|
27
|
+
import AgentStatus from '../../enums/AgentStatus/AgentStatus.enum.js';
|
|
28
|
+
import convertDuration from '../../scripts/convertDuration.js';
|
|
29
|
+
import StatusOptions from './_internals/StatusOptions.lookup.js';
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
32
|
name: 'WtStatusSelect',
|
|
@@ -65,14 +65,14 @@ export default {
|
|
|
65
65
|
}));
|
|
66
66
|
},
|
|
67
67
|
availableOptions() {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
return this.statusOptions.reduce((options, opt) => {
|
|
69
|
+
// PAUSE option is always passed
|
|
70
|
+
if ((this.status === opt.value && opt.value !== AgentStatus.PAUSE)
|
|
71
|
+
|| opt.value === AgentStatus.BREAK_OUT) { // skip breakout option
|
|
72
|
+
return options;
|
|
73
|
+
}
|
|
74
|
+
return [...options, opt];
|
|
75
|
+
}, []);
|
|
76
76
|
},
|
|
77
77
|
duration() {
|
|
78
78
|
/* The check commented below limits the display of time in the status to 8 characters.
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
12
|
v-if="idx !== 0"
|
|
13
|
-
class="wt-stepper-steps__divider"
|
|
14
13
|
:class="{ 'wt-stepper-steps__divider--completed': completed }"
|
|
14
|
+
class="wt-stepper-steps__divider"
|
|
15
15
|
/>
|
|
16
16
|
<wt-chip
|
|
17
|
-
class="wt-stepper-steps__item"
|
|
18
17
|
:color="completed ? 'primary' : 'secondary'"
|
|
18
|
+
class="wt-stepper-steps__item"
|
|
19
19
|
>
|
|
20
20
|
{{ name }}
|
|
21
21
|
</wt-chip>
|
|
@@ -48,9 +48,9 @@ const props = defineProps({
|
|
|
48
48
|
const description = computed(() => props.steps[props.activeStep - 1].description);
|
|
49
49
|
|
|
50
50
|
const stepWithCompleted = computed(() => props.steps.map((item, idx) => ({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
...item,
|
|
52
|
+
completed: props.activeStep > idx,
|
|
53
|
+
})));
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<style lang="scss">
|
|
@@ -65,8 +65,8 @@ const stepWithCompleted = computed(() => props.steps.map((item, idx) => ({
|
|
|
65
65
|
.wt-stepper-header {
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
|
-
gap: var(--spacing-lg);
|
|
69
68
|
margin-bottom: var(--spacing-lg);
|
|
69
|
+
gap: var(--spacing-lg);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.wt-stepper-steps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import WtSwitcher from '../wt-switcher.vue';
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
3
2
|
import WtLabel from '../../wt-label/wt-label.vue';
|
|
3
|
+
import WtSwitcher from '../wt-switcher.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtSwitcher', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtTable from '../wt-table.vue';
|
|
3
2
|
import WtCheckbox from '../../wt-checkbox/wt-checkbox.vue';
|
|
3
|
+
import WtTable from '../wt-table.vue';
|
|
4
4
|
|
|
5
5
|
const headers = [
|
|
6
6
|
{
|
|
@@ -41,7 +41,8 @@ const data = [
|
|
|
41
41
|
h2: 'value 2',
|
|
42
42
|
h3: 'value 3',
|
|
43
43
|
_isSelected: false,
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
];
|
|
45
46
|
|
|
46
47
|
describe('WtTable', () => {
|
|
47
48
|
it('renders a component', () => {
|
|
@@ -68,7 +69,8 @@ describe('WtTable', () => {
|
|
|
68
69
|
gridActions: false,
|
|
69
70
|
},
|
|
70
71
|
});
|
|
71
|
-
expect(wrapper.findAll('.wt-table__tr__head th').length)
|
|
72
|
+
expect(wrapper.findAll('.wt-table__tr__head th').length)
|
|
73
|
+
.toBe(headers.length);
|
|
72
74
|
});
|
|
73
75
|
|
|
74
76
|
it('do not renders table footer by default', () => {
|
|
@@ -116,8 +118,8 @@ describe('WtTable', () => {
|
|
|
116
118
|
},
|
|
117
119
|
});
|
|
118
120
|
expect(wrapper
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
.find('.wt-table__th--sortable .wt-table__th__sort-arrow')
|
|
122
|
+
.exists()).toBe(true);
|
|
121
123
|
});
|
|
122
124
|
|
|
123
125
|
it('selects all rows at header checkbox click', async () => {
|
|
@@ -2,131 +2,131 @@
|
|
|
2
2
|
<div class="wt-table">
|
|
3
3
|
<table class="wt-table__table">
|
|
4
4
|
<thead class="wt-table__head">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<tr
|
|
6
|
+
:style="columnsStyle"
|
|
7
|
+
class="wt-table__tr wt-table__tr__head"
|
|
8
|
+
>
|
|
9
|
+
<th
|
|
10
|
+
v-if="selectable"
|
|
11
|
+
class="wt-table__th wt-table__th--checkbox"
|
|
8
12
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<th
|
|
19
|
-
v-for="(col, key) of dataHeaders"
|
|
20
|
-
:key="key"
|
|
21
|
-
:class="[
|
|
13
|
+
<wt-checkbox
|
|
14
|
+
:selected="isAllSelected"
|
|
15
|
+
@change="selectAll"
|
|
16
|
+
/>
|
|
17
|
+
</th>
|
|
18
|
+
<th
|
|
19
|
+
v-for="(col, key) of dataHeaders"
|
|
20
|
+
:key="key"
|
|
21
|
+
:class="[
|
|
22
22
|
{'wt-table__th--sortable': isColSortable(col)},
|
|
23
23
|
`wt-table__th--sort-${col.sort}`,
|
|
24
24
|
]"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
class="wt-table__th"
|
|
26
|
+
@click="sort(col)"
|
|
27
|
+
>
|
|
28
|
+
<div class="wt-table__th__text">
|
|
29
|
+
{{ col.text }}
|
|
30
|
+
</div>
|
|
31
|
+
<wt-icon
|
|
32
|
+
v-if="sortable"
|
|
33
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
|
|
34
|
+
icon="sort-arrow-up"
|
|
35
|
+
size="sm"
|
|
36
|
+
/>
|
|
37
|
+
<wt-icon
|
|
38
|
+
v-if="sortable"
|
|
39
|
+
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
|
|
40
|
+
icon="sort-arrow-down"
|
|
41
|
+
size="sm"
|
|
42
|
+
/>
|
|
43
|
+
</th>
|
|
44
|
+
<th
|
|
45
|
+
v-if="gridActions"
|
|
46
|
+
class="wt-table__th__actions"
|
|
47
|
+
>
|
|
48
|
+
<slot name="actions-header" />
|
|
49
|
+
</th>
|
|
50
|
+
</tr>
|
|
51
51
|
</thead>
|
|
52
52
|
|
|
53
53
|
<tbody class="wt-table__body">
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
<tr
|
|
55
|
+
v-for="(row, dataKey) of data"
|
|
56
|
+
:key="dataKey"
|
|
57
|
+
:class="`wt-table__tr__${row.id || dataKey}`"
|
|
58
|
+
:style="columnsStyle"
|
|
59
|
+
class="wt-table__tr wt-table__tr__body"
|
|
60
|
+
>
|
|
61
|
+
<td
|
|
62
|
+
v-if="selectable"
|
|
63
|
+
class="wt-table__td wt-table__td--checkbox"
|
|
60
64
|
>
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<slot
|
|
77
|
-
:index="dataKey"
|
|
78
|
-
:item="row"
|
|
79
|
-
:name="col.value"
|
|
80
|
-
>
|
|
81
|
-
<div>{{ row[col.value] }}</div>
|
|
82
|
-
</slot>
|
|
83
|
-
</td>
|
|
84
|
-
|
|
85
|
-
<td
|
|
86
|
-
v-if="gridActions"
|
|
87
|
-
class="wt-table__td__actions"
|
|
65
|
+
<wt-checkbox
|
|
66
|
+
:selected="_selected.includes(row)"
|
|
67
|
+
@change="handleSelection(row, $event)"
|
|
68
|
+
/>
|
|
69
|
+
</td>
|
|
70
|
+
|
|
71
|
+
<td
|
|
72
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
73
|
+
:key="headerKey"
|
|
74
|
+
class="wt-table__td"
|
|
75
|
+
>
|
|
76
|
+
<slot
|
|
77
|
+
:index="dataKey"
|
|
78
|
+
:item="row"
|
|
79
|
+
:name="col.value"
|
|
88
80
|
>
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
<div>{{ row[col.value] }}</div>
|
|
82
|
+
</slot>
|
|
83
|
+
</td>
|
|
84
|
+
|
|
85
|
+
<td
|
|
86
|
+
v-if="gridActions"
|
|
87
|
+
class="wt-table__td__actions"
|
|
88
|
+
>
|
|
89
|
+
<slot
|
|
90
|
+
:index="dataKey"
|
|
91
|
+
:item="row"
|
|
92
|
+
name="actions"
|
|
93
|
+
/>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
96
|
</tbody>
|
|
97
97
|
|
|
98
98
|
<tfoot
|
|
99
99
|
v-if="isTableFooter"
|
|
100
100
|
class="wt-table__foot"
|
|
101
101
|
>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
<tr
|
|
103
|
+
:style="columnsStyle"
|
|
104
|
+
class="wt-table__tr wt-table__tr__foot"
|
|
105
|
+
>
|
|
106
|
+
<!-- empty checkbox column -->
|
|
107
|
+
<th
|
|
108
|
+
v-if="selectable"
|
|
109
|
+
class="wt-table__th__checkbox"
|
|
110
|
+
/>
|
|
111
|
+
<td
|
|
112
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
113
|
+
:key="headerKey"
|
|
114
|
+
class="wt-table__td"
|
|
105
115
|
>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
116
|
+
<slot
|
|
117
|
+
:header="col"
|
|
118
|
+
:index="headerKey"
|
|
119
|
+
:name="`${col.value}-footer`"
|
|
110
120
|
/>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
:key="headerKey"
|
|
114
|
-
class="wt-table__td"
|
|
115
|
-
>
|
|
116
|
-
<slot
|
|
117
|
-
:header="col"
|
|
118
|
-
:index="headerKey"
|
|
119
|
-
:name="`${col.value}-footer`"
|
|
120
|
-
/>
|
|
121
|
-
</td>
|
|
122
|
-
</tr>
|
|
121
|
+
</td>
|
|
122
|
+
</tr>
|
|
123
123
|
</tfoot>
|
|
124
124
|
</table>
|
|
125
125
|
</div>
|
|
126
126
|
</template>
|
|
127
127
|
|
|
128
128
|
<script>
|
|
129
|
-
import getNextSortOrder from './_internals/getSortOrder';
|
|
129
|
+
import getNextSortOrder from './_internals/getSortOrder.js';
|
|
130
130
|
|
|
131
131
|
export default {
|
|
132
132
|
name: 'WtTable',
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
// for backwards compatibility
|
|
244
244
|
row._isSelected = !row._isSelected;
|
|
245
245
|
}
|
|
246
|
-
}
|
|
246
|
+
},
|
|
247
247
|
},
|
|
248
248
|
|
|
249
249
|
};
|
|
@@ -269,9 +269,9 @@ export default {
|
|
|
269
269
|
display: grid;
|
|
270
270
|
padding: var(--table-row-padding);
|
|
271
271
|
transition: var(--transition);
|
|
272
|
+
background: var(--wt-table-primary-color);
|
|
272
273
|
grid-template-columns: repeat(auto-fit, var(--table-col-min-width));
|
|
273
274
|
grid-column-gap: var(--table-column-gap);
|
|
274
|
-
background: var(--wt-table-primary-color);
|
|
275
275
|
|
|
276
276
|
&:nth-child(2n) {
|
|
277
277
|
background: var(--wt-table-zebra-color);
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
<template #main>
|
|
21
21
|
<div class="wt-table-column-select__popup-list-wrap">
|
|
22
22
|
<ul
|
|
23
|
-
class="wt-table-column-select__popup-list"
|
|
24
23
|
:class="{
|
|
25
24
|
'wt-table-column-select__popup-list--md':
|
|
26
25
|
changeableDraft.length > 10 && changeableDraft.length <= 20,
|
|
27
26
|
'wt-table-column-select__popup-list--lg':
|
|
28
27
|
changeableDraft.length > 20
|
|
29
28
|
}"
|
|
29
|
+
class="wt-table-column-select__popup-list"
|
|
30
30
|
>
|
|
31
31
|
<li
|
|
32
32
|
v-for="(column, key) of changeableDraft"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
@click.capture.prevent="column.show = !column.show"
|
|
36
36
|
>
|
|
37
37
|
<wt-checkbox
|
|
38
|
-
:selected="column.show"
|
|
39
38
|
:label="shownColLabel(column)"
|
|
39
|
+
:selected="column.show"
|
|
40
40
|
@change="column.show = $event"
|
|
41
41
|
/>
|
|
42
42
|
</li>
|
|
@@ -137,6 +137,7 @@ $list-width-md: calc(800px - var(--spacing-xl)); // all popup width - (paddings
|
|
|
137
137
|
.wt-table-column-select {
|
|
138
138
|
line-height: 0; // prevent 24x28 icon height :/
|
|
139
139
|
}
|
|
140
|
+
|
|
140
141
|
.wt-table-column-select {
|
|
141
142
|
&__heading {
|
|
142
143
|
text-align: center;
|
|
@@ -148,27 +149,27 @@ $list-width-md: calc(800px - var(--spacing-xl)); // all popup width - (paddings
|
|
|
148
149
|
|
|
149
150
|
&__popup-list {
|
|
150
151
|
@extend %wt-scrollbar;
|
|
151
|
-
max-height: $list-height;
|
|
152
|
-
width: $list-width-sm;
|
|
153
152
|
display: flex;
|
|
153
|
+
overflow-x: hidden;
|
|
154
154
|
flex-direction: column;
|
|
155
155
|
flex-wrap: wrap;
|
|
156
|
-
|
|
156
|
+
width: $list-width-sm;
|
|
157
|
+
max-height: $list-height;
|
|
157
158
|
|
|
158
159
|
// for 10-30 items
|
|
159
160
|
&--md {
|
|
160
|
-
width: $list-width-md;
|
|
161
161
|
display: block;
|
|
162
|
+
width: $list-width-md;
|
|
162
163
|
column-count: 2;
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
// for 30+ items
|
|
166
167
|
&--lg {
|
|
168
|
+
display: block;
|
|
169
|
+
overflow-y: auto;
|
|
167
170
|
width: $list-width-md;
|
|
168
171
|
max-height: none;
|
|
169
|
-
display: block;
|
|
170
172
|
column-count: 3;
|
|
171
|
-
overflow-y: auto;
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav
|
|
3
|
-
class="wt-tabs"
|
|
4
3
|
:class="{
|
|
5
4
|
'wt-tabs--wide': wide,
|
|
6
5
|
}"
|
|
6
|
+
class="wt-tabs"
|
|
7
7
|
>
|
|
8
8
|
<button
|
|
9
9
|
v-for="(tab) in tabs"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
@click="open(tab)"
|
|
18
18
|
>
|
|
19
19
|
<slot
|
|
20
|
-
v-bind="{ tab, current }"
|
|
21
20
|
:name="tab.value"
|
|
21
|
+
v-bind="{ tab, current }"
|
|
22
22
|
>
|
|
23
23
|
<span style="display: block;">{{ tab.text }}</span>
|
|
24
24
|
</slot>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import WtTagsInput from '../wt-tags-input.vue';
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
3
2
|
import WtLabel from '../../wt-label/wt-label.vue';
|
|
3
|
+
import WtTagsInput from '../wt-tags-input.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtTagsInput', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
-
import taggableMixin from '../taggableMixin';
|
|
2
|
+
import taggableMixin from '../taggableMixin.js';
|
|
3
3
|
|
|
4
4
|
describe('taggableMixin', () => {
|
|
5
5
|
const Component = {
|
|
@@ -18,7 +18,7 @@ describe('taggableMixin', () => {
|
|
|
18
18
|
|
|
19
19
|
wrapper.vm.$emit('tag', searchQuery);
|
|
20
20
|
|
|
21
|
-
expect(wrapper.emitted().tag).toBeTruthy()
|
|
21
|
+
expect(wrapper.emitted().tag).toBeTruthy();
|
|
22
22
|
expect(wrapper.emitted().input).toBeFalsy();
|
|
23
23
|
});
|
|
24
|
-
})
|
|
24
|
+
});
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
</template>
|
|
103
103
|
|
|
104
104
|
<script>
|
|
105
|
-
import multiselectMixin from '../wt-select/mixins/multiselectMixin';
|
|
106
|
-
import taggableMixin from './mixin/taggableMixin';
|
|
105
|
+
import multiselectMixin from '../wt-select/mixins/multiselectMixin.js';
|
|
106
|
+
import taggableMixin from './mixin/taggableMixin.js';
|
|
107
107
|
|
|
108
108
|
export default {
|
|
109
109
|
name: 'WtTagsInput',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtTextarea from '../wt-textarea.vue';
|
|
3
2
|
import WtLabel from '../../wt-label/wt-label.vue';
|
|
3
|
+
import WtTextarea from '../wt-textarea.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtTextarea', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -30,7 +30,8 @@ describe('WtTextarea', () => {
|
|
|
30
30
|
},
|
|
31
31
|
props: { chatMode: true },
|
|
32
32
|
});
|
|
33
|
-
wrapper.find('.wt-textarea__textarea')
|
|
33
|
+
wrapper.find('.wt-textarea__textarea')
|
|
34
|
+
.trigger('keypress', { key: 'Enter' });
|
|
34
35
|
expect(wrapper.emitted().enter).toBeTruthy();
|
|
35
36
|
});
|
|
36
37
|
|
|
@@ -40,7 +41,8 @@ describe('WtTextarea', () => {
|
|
|
40
41
|
WtLabel,
|
|
41
42
|
},
|
|
42
43
|
});
|
|
43
|
-
wrapper.find('.wt-textarea__textarea')
|
|
44
|
+
wrapper.find('.wt-textarea__textarea')
|
|
45
|
+
.trigger('keypress', { key: 'Enter' });
|
|
44
46
|
expect(wrapper.emitted().enter).toBeFalsy();
|
|
45
47
|
});
|
|
46
48
|
});
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<script>
|
|
58
|
-
import validationMixin from '../../mixins/validationMixin/validationMixin';
|
|
58
|
+
import validationMixin from '../../mixins/validationMixin/validationMixin.js';
|
|
59
59
|
|
|
60
60
|
export default {
|
|
61
61
|
name: 'WtTextarea',
|
|
@@ -173,12 +173,12 @@ export default {
|
|
|
173
173
|
min-height: var(--textarea-min-height);
|
|
174
174
|
padding: var(--textarea-padding);
|
|
175
175
|
resize: none;
|
|
176
|
-
color: var(--wt-text-field-text-color);
|
|
177
176
|
transition: var(--transition);
|
|
178
|
-
|
|
177
|
+
color: var(--wt-text-field-text-color);
|
|
179
178
|
border: var(--input-border);
|
|
180
179
|
border-color: var(--wt-text-field-input-border-color);
|
|
181
180
|
border-radius: var(--border-radius);
|
|
181
|
+
background: transparent;
|
|
182
182
|
|
|
183
183
|
.wt-textarea--disabled & {
|
|
184
184
|
@include wt-placeholder('disabled');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import WtTimeInput from '../wt-time-input.vue';
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
3
2
|
import WtLabel from '../../wt-label/wt-label.vue';
|
|
3
|
+
import WtTimeInput from '../wt-time-input.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtTimeInput', () => {
|
|
6
6
|
it('renders a component', () => {
|