@webitel/ui-sdk 24.6.17 → 24.6.19
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 +8 -7
- package/src/locale/es/es.js +7 -6
- package/src/locale/i18n.js +5 -6
- package/src/locale/kz/kz.js +7 -6
- package/src/locale/ru/ru.js +8 -7
- package/src/locale/ua/ua.js +8 -7
- 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
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<article class="audit-form-question-write">
|
|
3
3
|
<header class="audit-form-question-write-header">
|
|
4
4
|
<wt-switcher
|
|
5
|
-
:value="question.required"
|
|
6
|
-
:label="$t('reusable.required')"
|
|
7
5
|
:disabled="first"
|
|
6
|
+
:label="$t('reusable.required')"
|
|
7
|
+
:value="question.required"
|
|
8
8
|
@change="updateQuestion({ path: 'required', value: $event })"
|
|
9
9
|
/>
|
|
10
10
|
<div class="audit-form-question-write-header__actions">
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<wt-tooltip>
|
|
21
21
|
<template #activator>
|
|
22
22
|
<wt-icon-btn
|
|
23
|
-
icon="bucket"
|
|
24
23
|
:disabled="first"
|
|
24
|
+
icon="bucket"
|
|
25
25
|
@click="emit('delete')"
|
|
26
26
|
/>
|
|
27
27
|
</template>
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
<section class="audit-form-question-write-content">
|
|
33
33
|
<div class="audit-form-question-write-content-question">
|
|
34
34
|
<wt-input
|
|
35
|
-
:value="question.question"
|
|
36
35
|
:label="$t('webitelUI.auditForm.question')"
|
|
37
36
|
:v="v.question.question"
|
|
38
|
-
|
|
37
|
+
:value="question.question"
|
|
39
38
|
prevent-trim
|
|
39
|
+
required
|
|
40
40
|
@input="updateQuestion({ path: 'question', value: $event })"
|
|
41
41
|
/>
|
|
42
42
|
<wt-select
|
|
43
|
-
:value="prettifiedQuestionType"
|
|
44
|
-
:options="QuestionType"
|
|
45
|
-
track-by="value"
|
|
46
43
|
:clearable="false"
|
|
47
44
|
:label="$t('webitelUI.auditForm.answerType')"
|
|
45
|
+
:options="QuestionType"
|
|
46
|
+
:value="prettifiedQuestionType"
|
|
47
|
+
track-by="value"
|
|
48
48
|
@input="handleQuestionTypeChange($event.value)"
|
|
49
49
|
/>
|
|
50
50
|
</div>
|
|
@@ -59,22 +59,22 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script setup>
|
|
62
|
-
import set from 'lodash/set';
|
|
63
62
|
import cloneDeep from 'lodash/cloneDeep';
|
|
63
|
+
import set from 'lodash/set';
|
|
64
64
|
import { computed } from 'vue';
|
|
65
65
|
import { EngineAuditQuestionType } from 'webitel-sdk';
|
|
66
|
-
import WtTooltip from '../../../components/wt-tooltip/wt-tooltip.vue';
|
|
67
|
-
import WtSwitcher from '../../../components/wt-switcher/wt-switcher.vue';
|
|
68
66
|
import WtIconBtn from '../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
69
67
|
import WtInput from '../../../components/wt-input/wt-input.vue';
|
|
70
68
|
import WtSelect from '../../../components/wt-select/wt-select.vue';
|
|
69
|
+
import WtSwitcher from '../../../components/wt-switcher/wt-switcher.vue';
|
|
70
|
+
import WtTooltip from '../../../components/wt-tooltip/wt-tooltip.vue';
|
|
71
|
+
import { generateQuestionOptionsSchema } from '../schemas/AuditFormQuestionOptionsSchema.js';
|
|
72
|
+
|
|
73
|
+
import { generateQuestionScoreSchema } from '../schemas/AuditFormQuestionScoreSchema.js';
|
|
71
74
|
|
|
72
75
|
import AuditFormQuestionOptions from './questions/options/audit-form-question-options.vue';
|
|
73
76
|
import AuditFormQuestionScore from './questions/score/audit-form-question-score.vue';
|
|
74
77
|
|
|
75
|
-
import { generateQuestionScoreSchema } from '../schemas/AuditFormQuestionScoreSchema';
|
|
76
|
-
import { generateQuestionOptionsSchema } from '../schemas/AuditFormQuestionOptionsSchema';
|
|
77
|
-
|
|
78
78
|
const props = defineProps({
|
|
79
79
|
question: {
|
|
80
80
|
type: Object,
|
|
@@ -129,14 +129,14 @@ function handleQuestionTypeChange(type) {
|
|
|
129
129
|
.audit-form-question.audit-form-question-write {
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
|
-
gap: var(--spacing-sm);
|
|
133
132
|
box-shadow: var(--elevation-3);
|
|
133
|
+
gap: var(--spacing-sm);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.audit-form-question-write-header {
|
|
137
137
|
display: flex;
|
|
138
|
-
justify-content: space-between;
|
|
139
138
|
align-items: center;
|
|
139
|
+
justify-content: space-between;
|
|
140
140
|
|
|
141
141
|
&__actions {
|
|
142
142
|
display: flex;
|
|
@@ -146,9 +146,9 @@ function handleQuestionTypeChange(type) {
|
|
|
146
146
|
|
|
147
147
|
.audit-form-question-write-content-question {
|
|
148
148
|
display: grid;
|
|
149
|
-
grid-template-columns: 3fr 1fr;
|
|
150
|
-
gap: var(--spacing-sm);
|
|
151
149
|
margin-right: calc(24px + var(--spacing-sm)); // delete icon action for type "options"
|
|
152
150
|
margin-bottom: var(--spacing-sm);
|
|
151
|
+
grid-template-columns: 3fr 1fr;
|
|
152
|
+
gap: var(--spacing-sm);
|
|
153
153
|
}
|
|
154
154
|
</style>
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
import { useVuelidate } from '@vuelidate/core';
|
|
31
31
|
import { required } from '@vuelidate/validators';
|
|
32
32
|
import { computed, onMounted, ref, toRefs } from 'vue';
|
|
33
|
-
import
|
|
34
|
-
import
|
|
33
|
+
import vClickaway from '../../../directives/clickaway/clickaway.js';
|
|
34
|
+
import isEmpty from '../../../scripts/isEmpty.js';
|
|
35
35
|
import QuestionRead from './audit-form-question-read-wrapper.vue';
|
|
36
36
|
import QuestionWrite from './audit-form-question-write-wrapper.vue';
|
|
37
37
|
|
|
@@ -123,6 +123,7 @@ onMounted(() => {
|
|
|
123
123
|
// override audit-form-question-read-wrapper specificity for hover
|
|
124
124
|
&.audit-form-question--answered {
|
|
125
125
|
background: var(--secondary-color);
|
|
126
|
+
|
|
126
127
|
&:hover,
|
|
127
128
|
&:focus-within {
|
|
128
129
|
border-color: transparent;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
>
|
|
8
8
|
<audit-form-question
|
|
9
9
|
v-for="(question, key) of questions"
|
|
10
|
-
ref="auditQuestions"
|
|
11
10
|
:key="key"
|
|
12
|
-
|
|
13
|
-
:result="(result && result[key]) ? result[key] : null"
|
|
14
|
-
:mode="mode"
|
|
11
|
+
ref="auditQuestions"
|
|
15
12
|
:first="key === 0"
|
|
13
|
+
:mode="mode"
|
|
14
|
+
:question="question"
|
|
16
15
|
:readonly="readonly"
|
|
16
|
+
:result="(result && result[key]) ? result[key] : null"
|
|
17
17
|
@copy="copyQuestion({ question, key })"
|
|
18
18
|
@delete="deleteQuestion({ question, key})"
|
|
19
19
|
@update:question="handleQuestionUpdate({ key, value: $event })"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
<wt-button
|
|
24
24
|
v-if="mode === 'create' && !readonly"
|
|
25
|
-
class="audit-form__add-button"
|
|
26
25
|
:disabled="isInvalidForm"
|
|
26
|
+
class="audit-form__add-button"
|
|
27
27
|
@click="addQuestion"
|
|
28
28
|
>
|
|
29
29
|
{{ $t('webitelUI.auditForm.addQuestion') }}
|
|
@@ -32,16 +32,13 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup>
|
|
35
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
36
|
-
import {
|
|
37
|
-
watch, watchEffect, ref, computed, onMounted,
|
|
38
|
-
reactive, nextTick,
|
|
39
|
-
} from 'vue';
|
|
40
35
|
import { useVuelidate } from '@vuelidate/core';
|
|
41
|
-
import
|
|
42
|
-
import
|
|
36
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
37
|
+
import { computed, nextTick, onMounted, reactive, ref, watch, watchEffect } from 'vue';
|
|
43
38
|
import WtButton from '../../../components/wt-button/wt-button.vue';
|
|
44
|
-
import {
|
|
39
|
+
import { useDestroyableSortable } from '../../../composables/useDestroyableSortable/useDestroyableSortable.js';
|
|
40
|
+
import { generateQuestionSchema } from '../schemas/AuditFormQuestionSchema.js';
|
|
41
|
+
import AuditFormQuestion from './audit-form-question.vue';
|
|
45
42
|
|
|
46
43
|
const props = defineProps({
|
|
47
44
|
mode: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import AuditFormQuestionOptionsWriteRow
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
|
+
import AuditFormQuestionOptionsWriteRow
|
|
3
|
+
from '../audit-form-question-options-write-row.vue';
|
|
3
4
|
|
|
4
5
|
describe('AuditFormQuestionOptionsWriteRow', () => {
|
|
5
6
|
it('renders a component', () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
2
|
import AuditFormQuestionOptions from '../audit-form-question-options.vue';
|
|
3
3
|
|
|
4
4
|
describe('AuditFormQuestionOptions', () => {
|
|
@@ -17,7 +17,9 @@ describe('AuditFormQuestionOptions', () => {
|
|
|
17
17
|
mode: 'write',
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
|
-
wrapper.findComponent('.audit-form-question-options-write__add-button')
|
|
20
|
+
wrapper.findComponent('.audit-form-question-options-write__add-button')
|
|
21
|
+
.vm
|
|
22
|
+
.$emit('click');
|
|
21
23
|
expect(wrapper.emitted()['change:question'][0][0].options.length).toBe(2);
|
|
22
24
|
});
|
|
23
25
|
it('deletes existing question option at "delete" icon-btn click', () => {
|
package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
<div class="audit-form-question-options-write-row">
|
|
3
3
|
<wt-input
|
|
4
4
|
:label="$t('webitelUI.auditForm.option', 1)"
|
|
5
|
-
:value="option.name"
|
|
6
5
|
:v="v$.option.name"
|
|
6
|
+
:value="option.name"
|
|
7
7
|
prevent-trim
|
|
8
8
|
@input="emit('update:option', { name: $event, score: option.score })"
|
|
9
9
|
/>
|
|
10
10
|
<wt-input
|
|
11
11
|
:label="$t('webitelUI.auditForm.score', 1)"
|
|
12
|
-
:value="option.score"
|
|
13
12
|
:v="v$.option.score"
|
|
13
|
+
:value="option.score"
|
|
14
14
|
type="number"
|
|
15
15
|
@input="emit('update:option', { name: option.name, score: $event })"
|
|
16
16
|
/>
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
<script setup>
|
|
31
31
|
import { useVuelidate } from '@vuelidate/core';
|
|
32
|
-
import {
|
|
32
|
+
import { maxValue, minValue, required } from '@vuelidate/validators';
|
|
33
33
|
import { computed, onMounted, toRefs } from 'vue';
|
|
34
|
-
import WtTooltip from '../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
35
34
|
import WtIconBtn from '../../../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
36
35
|
import WtInput from '../../../../../components/wt-input/wt-input.vue';
|
|
37
|
-
import
|
|
36
|
+
import WtTooltip from '../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
37
|
+
import decimalValidator from '../../../../../validators/decimalValidator.js';
|
|
38
38
|
|
|
39
39
|
const props = defineProps({
|
|
40
40
|
option: {
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<options-write-row
|
|
8
8
|
v-for="(option, key) of question.options"
|
|
9
9
|
:key="key"
|
|
10
|
-
:option="option"
|
|
11
10
|
:first="key === 0"
|
|
12
|
-
|
|
11
|
+
:option="option"
|
|
13
12
|
@delete="deleteQuestionOption({ key })"
|
|
13
|
+
@update:option="updateQuestion({ path: `options[${key}]`, value: $event })"
|
|
14
14
|
/>
|
|
15
15
|
<wt-button
|
|
16
16
|
class="audit-form-question-options-write__add-button"
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
|
-
import OptionsWriteRow from './audit-form-question-options-write-row.vue';
|
|
43
42
|
import WtButton from '../../../../../components/wt-button/wt-button.vue';
|
|
44
43
|
import WtRadio from '../../../../../components/wt-radio/wt-radio.vue';
|
|
45
|
-
import updateObject from '../../../../../scripts/updateObject';
|
|
46
|
-
import { generateOption } from '../../../schemas/AuditFormQuestionOptionsSchema';
|
|
44
|
+
import updateObject from '../../../../../scripts/updateObject.js';
|
|
45
|
+
import { generateOption } from '../../../schemas/AuditFormQuestionOptionsSchema.js';
|
|
46
|
+
import OptionsWriteRow from './audit-form-question-options-write-row.vue';
|
|
47
47
|
|
|
48
48
|
const props = defineProps({
|
|
49
49
|
question: {
|
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
class="audit-form-question-score-write"
|
|
6
6
|
>
|
|
7
7
|
<wt-input
|
|
8
|
-
:value="question.min"
|
|
9
|
-
:v="v$.question.min"
|
|
10
|
-
:number-min="0"
|
|
11
|
-
:number-max="19"
|
|
12
8
|
:label="$t('reusable.from')"
|
|
13
|
-
|
|
9
|
+
:number-max="19"
|
|
10
|
+
:number-min="0"
|
|
11
|
+
:v="v$.question.min"
|
|
12
|
+
:value="question.min"
|
|
14
13
|
required
|
|
14
|
+
type="number"
|
|
15
15
|
@input="updateQuestion({ path: 'min', value: $event })"
|
|
16
16
|
/>
|
|
17
17
|
<wt-input
|
|
18
|
-
:value="question.max"
|
|
19
|
-
:v="v$.question.max"
|
|
20
|
-
:number-min="1"
|
|
21
|
-
:number-max="20"
|
|
22
18
|
:label="$t('reusable.to')"
|
|
23
|
-
|
|
19
|
+
:number-max="20"
|
|
20
|
+
:number-min="1"
|
|
21
|
+
:v="v$.question.max"
|
|
22
|
+
:value="question.max"
|
|
24
23
|
required
|
|
24
|
+
type="number"
|
|
25
25
|
@input="updateQuestion({ path: 'max', value: $event })"
|
|
26
26
|
/>
|
|
27
27
|
</div>
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
v-for="(value) of scoreRange"
|
|
34
34
|
:key="value"
|
|
35
35
|
:label="`${value}`"
|
|
36
|
-
:value="value"
|
|
37
36
|
:selected="isResult ? result.score : null"
|
|
37
|
+
:value="value"
|
|
38
38
|
@input="emit('change:result', { score: value })"
|
|
39
39
|
/>
|
|
40
40
|
</div>
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
45
|
import { useVuelidate } from '@vuelidate/core';
|
|
46
|
-
import { maxValue, minValue, required
|
|
46
|
+
import { integer, maxValue, minValue, required } from '@vuelidate/validators';
|
|
47
47
|
import { computed, onMounted, toRefs } from 'vue';
|
|
48
|
-
import isEmpty from '../../../../../scripts/isEmpty';
|
|
49
|
-
import updateObject from '../../../../../scripts/updateObject';
|
|
50
|
-
import WtRadio from '../../../../../components/wt-radio/wt-radio.vue';
|
|
51
48
|
import WtInput from '../../../../../components/wt-input/wt-input.vue';
|
|
49
|
+
import WtRadio from '../../../../../components/wt-radio/wt-radio.vue';
|
|
50
|
+
import isEmpty from '../../../../../scripts/isEmpty.js';
|
|
51
|
+
import updateObject from '../../../../../scripts/updateObject.js';
|
|
52
52
|
|
|
53
53
|
const props = defineProps({
|
|
54
54
|
question: {
|
|
@@ -119,9 +119,9 @@ onMounted(() => v$.value.$touch());
|
|
|
119
119
|
<style lang="scss" scoped>
|
|
120
120
|
.audit-form-question-score-write {
|
|
121
121
|
display: grid;
|
|
122
|
+
margin-right: calc(var(--spacing-sm) + 24px); // icon offset
|
|
122
123
|
grid-template-columns: 100px 100px;
|
|
123
124
|
gap: var(--spacing-sm);
|
|
124
|
-
margin-right: calc(var(--spacing-sm) + 24px); // icon offset
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.audit-form-question-score-read {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateQuestionScoreSchema } from './AuditFormQuestionScoreSchema';
|
|
1
|
+
import { generateQuestionScoreSchema } from './AuditFormQuestionScoreSchema.js';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line import/prefer-default-export
|
|
4
4
|
export const generateQuestionSchema = ({ required = true } = {}) => ({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { saveAs } from 'file-saver';
|
|
2
1
|
import stringify from 'csv-stringify/lib/sync';
|
|
3
|
-
import {
|
|
2
|
+
import { saveAs } from 'file-saver';
|
|
3
|
+
import { objSnakeToCamel } from '../../scripts/caseConverters.js';
|
|
4
4
|
|
|
5
5
|
const cast = {
|
|
6
6
|
object: (separator) => {
|
|
7
7
|
const cast = (object) => {
|
|
8
8
|
if (Array.isArray(object)) {
|
|
9
9
|
return object.map((item) => cast(item))
|
|
10
|
-
|
|
10
|
+
.join(separator);
|
|
11
11
|
}
|
|
12
12
|
return object.name || JSON.stringify(object);
|
|
13
13
|
};
|
|
@@ -33,7 +33,8 @@ export default class CSVExport {
|
|
|
33
33
|
header: true,
|
|
34
34
|
delimiter: ',',
|
|
35
35
|
};
|
|
36
|
-
const localStorageOptions = JSON.parse(localStorage.getItem('csv-export-options')) ||
|
|
36
|
+
const localStorageOptions = JSON.parse(localStorage.getItem('csv-export-options')) ||
|
|
37
|
+
{};
|
|
37
38
|
return {
|
|
38
39
|
...defaultOptions,
|
|
39
40
|
...localStorageOptions,
|
|
@@ -57,11 +58,12 @@ export default class CSVExport {
|
|
|
57
58
|
let csv = '';
|
|
58
59
|
let isNext = false;
|
|
59
60
|
// why _columns? https://webitel.atlassian.net/browse/DEV-3797
|
|
60
|
-
let columns = params._columns ||
|
|
61
|
+
let columns = params._columns ||
|
|
62
|
+
(params?.fields ? objSnakeToCamel(params?.fields) : []);
|
|
61
63
|
let page = 1;
|
|
62
64
|
|
|
63
65
|
do {
|
|
64
|
-
|
|
66
|
+
|
|
65
67
|
const { items, next } = await this.fetchMethod({
|
|
66
68
|
...params,
|
|
67
69
|
page,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import * as fileSaver from 'file-saver';
|
|
3
2
|
import stringify from 'csv-stringify/lib/sync';
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
3
|
+
import * as fileSaver from 'file-saver';
|
|
4
|
+
import CSVExportMixin from '../mixins/exportCSVMixin.js';
|
|
5
|
+
import '../../../../tests/mocks/localStorageMock.js';
|
|
6
6
|
|
|
7
7
|
vi.mock('csv-stringify/lib/sync');
|
|
8
8
|
vi.mock('file-saver', () => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CSVExport from '../CSVExport';
|
|
1
|
+
import CSVExport from '../CSVExport.js';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
data: () => ({
|
|
@@ -15,8 +15,8 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
selectedIds() {
|
|
17
17
|
return this.dataList
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
.filter((item) => item._isSelected)
|
|
19
|
+
.map((item) => item.id);
|
|
20
20
|
},
|
|
21
21
|
isAnySelected() {
|
|
22
22
|
return !!this.selectedIds.length;
|
|
@@ -40,7 +40,8 @@ export default {
|
|
|
40
40
|
await this.CSVExport.export(params);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
throw err;
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
|
+
|
|
44
45
|
},
|
|
45
46
|
},
|
|
46
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed } from 'vue';
|
|
2
2
|
import { useStore } from 'vuex';
|
|
3
|
-
import getNamespacedState from '../../../store/helpers/getNamespacedState';
|
|
3
|
+
import getNamespacedState from '../../../store/helpers/getNamespacedState.js';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line import/prefer-default-export
|
|
6
6
|
export const useCardStore = (namespace) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import deepCopy from 'deep-copy';
|
|
2
2
|
import set from 'lodash/set';
|
|
3
|
-
import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule';
|
|
3
|
+
import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
|
|
4
4
|
|
|
5
5
|
export default class CardStoreModule extends BaseStoreModule {
|
|
6
6
|
state = {
|
|
@@ -41,7 +41,7 @@ export default class CardStoreModule extends BaseStoreModule {
|
|
|
41
41
|
context.commit('RESET_ITEM_STATE');
|
|
42
42
|
},
|
|
43
43
|
DELETE_ITEM: async (context, { id }) => {
|
|
44
|
-
await context.dispatch('api/DELETE_ITEM', {context, id});
|
|
44
|
+
await context.dispatch('api/DELETE_ITEM', { context, id });
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { mount, shallowMount } from '@vue/test-utils';
|
|
2
2
|
import { ref } from 'vue';
|
|
3
|
-
import { useValidation } from '../../../mixins/validationMixin/useValidation';
|
|
4
|
-
import DeleteConfirmationPopup
|
|
3
|
+
import { useValidation } from '../../../mixins/validationMixin/useValidation.js';
|
|
4
|
+
import DeleteConfirmationPopup
|
|
5
|
+
from '../components/delete-confirmation-popup.vue';
|
|
5
6
|
|
|
6
|
-
vi.mock('../../../mixins/validationMixin/useValidation');
|
|
7
|
+
vi.mock('../../../mixins/validationMixin/useValidation.js');
|
|
7
8
|
|
|
8
9
|
useValidation.mockImplementation(() => ({
|
|
9
10
|
isValidation: ref(false),
|
|
@@ -30,7 +31,8 @@ describe('DeleteConfirmationPopup', () => {
|
|
|
30
31
|
callback,
|
|
31
32
|
},
|
|
32
33
|
});
|
|
33
|
-
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
34
|
+
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
35
|
+
.find((btn) => btn.text().includes('Yes'));
|
|
34
36
|
expect(button.text()).toContain('Yes');
|
|
35
37
|
await button.trigger('click');
|
|
36
38
|
await wrapper.vm.$nextTick();
|
|
@@ -46,7 +48,7 @@ describe('DeleteConfirmationPopup', () => {
|
|
|
46
48
|
},
|
|
47
49
|
});
|
|
48
50
|
expect(wrapper.find('.delete-confirmation-popup__content').text())
|
|
49
|
-
|
|
51
|
+
.toContain(deleteCount.toString());
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
it('yes button emitted close', async () => {
|
|
@@ -56,7 +58,8 @@ describe('DeleteConfirmationPopup', () => {
|
|
|
56
58
|
callback: vi.fn(),
|
|
57
59
|
},
|
|
58
60
|
});
|
|
59
|
-
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
61
|
+
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
62
|
+
.find((btn) => btn.text().includes('Yes'));
|
|
60
63
|
await button.vm.$emit('close');
|
|
61
64
|
await wrapper.vm.$nextTick();
|
|
62
65
|
expect(button.emitted('close')).toBeTruthy();
|
|
@@ -69,7 +72,8 @@ describe('DeleteConfirmationPopup', () => {
|
|
|
69
72
|
callback: vi.fn(),
|
|
70
73
|
},
|
|
71
74
|
});
|
|
72
|
-
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
75
|
+
const button = wrapper.findAllComponents({ name: 'wt-button' })
|
|
76
|
+
.find((btn) => btn.text().includes('No'));
|
|
73
77
|
await button.vm.$emit('close');
|
|
74
78
|
await wrapper.vm.$nextTick();
|
|
75
79
|
expect(button.emitted('close')).toBeTruthy();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-popup
|
|
3
3
|
class="delete-confirmation-popup"
|
|
4
|
-
v-bind="attrs"
|
|
5
4
|
size="sm"
|
|
5
|
+
v-bind="attrs"
|
|
6
6
|
@close="close"
|
|
7
7
|
>
|
|
8
8
|
<template #title>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<template #main>
|
|
12
12
|
<div class="delete-confirmation-popup__content">
|
|
13
13
|
<wt-icon
|
|
14
|
-
icon="attention"
|
|
15
14
|
color="error"
|
|
15
|
+
icon="attention"
|
|
16
16
|
/>
|
|
17
17
|
<p class="delete-confirmation-popup__message">
|
|
18
18
|
{{ deleteMessage }}
|
|
@@ -53,7 +53,7 @@ const props = defineProps({
|
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
const emit = defineEmits([
|
|
56
|
-
|
|
56
|
+
'close',
|
|
57
57
|
]);
|
|
58
58
|
|
|
59
59
|
const attrs = useAttrs();
|
|
@@ -96,8 +96,8 @@ async function confirm() {
|
|
|
96
96
|
<style scoped>
|
|
97
97
|
.delete-confirmation-popup__content {
|
|
98
98
|
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
99
|
align-items: center;
|
|
100
|
+
flex-direction: column;
|
|
101
101
|
gap: var(--spacing-sm);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import jszipUtils from 'jszip-utils';
|
|
2
1
|
import { saveAs } from 'file-saver';
|
|
3
2
|
import JSZip from 'jszip';
|
|
3
|
+
import jszipUtils from 'jszip-utils';
|
|
4
4
|
import path from 'path-browserify';
|
|
5
|
-
import generateMediaURL from './scripts/generateMediaURL';
|
|
5
|
+
import generateMediaURL from './scripts/generateMediaURL.js';
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
export default class FilesExport {
|
|
9
8
|
filename = 'files';
|
|
10
9
|
|
|
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils';
|
|
|
2
2
|
import * as fileSaver from 'file-saver';
|
|
3
3
|
import jszip from 'jszip';
|
|
4
4
|
import jszipUtils from 'jszip-utils';
|
|
5
|
-
import FilesExportMixin from '../mixins/exportFilesMixin';
|
|
5
|
+
import FilesExportMixin from '../mixins/exportFilesMixin.js';
|
|
6
6
|
import '../../../../tests/mocks/localStorageMock';
|
|
7
7
|
|
|
8
8
|
vi.mock('jszip');
|
|
@@ -15,19 +15,31 @@ const dataList = [
|
|
|
15
15
|
{ files: [{ name: 'jest', id: '1', mimeType: 'mime/type' }] },
|
|
16
16
|
];
|
|
17
17
|
const selectedDataList = [
|
|
18
|
-
{
|
|
19
|
-
|
|
18
|
+
{
|
|
19
|
+
_isSelected: true,
|
|
20
|
+
files: [{ name: 'jest1', id: '1', mimeType: 'mime/type' }],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
_isSelected: true,
|
|
24
|
+
files: [{ name: 'jest2', id: '2', mimeType: 'mime/type' }],
|
|
25
|
+
},
|
|
20
26
|
];
|
|
21
27
|
|
|
22
28
|
describe('File Export', () => {
|
|
23
|
-
jszipUtils.getBinaryContent.mockImplementation((
|
|
29
|
+
jszipUtils.getBinaryContent.mockImplementation((
|
|
30
|
+
url,
|
|
31
|
+
callback,
|
|
32
|
+
) => callback(null, {}));
|
|
24
33
|
let wrapper;
|
|
25
34
|
const Component = {
|
|
26
35
|
render() {
|
|
27
36
|
},
|
|
28
37
|
mixins: [FilesExportMixin],
|
|
29
38
|
created() {
|
|
30
|
-
this.initFilesExport({
|
|
39
|
+
this.initFilesExport({
|
|
40
|
+
fetchMethod: () => ({ items: dataList }),
|
|
41
|
+
filename: 'jest',
|
|
42
|
+
});
|
|
31
43
|
},
|
|
32
44
|
data: () => ({ dataList }),
|
|
33
45
|
};
|
|
@@ -51,7 +63,7 @@ describe('File Export', () => {
|
|
|
51
63
|
computed: { selectedItems() { return selectedDataList; } },
|
|
52
64
|
});
|
|
53
65
|
expect(wrapper.vm.getSelectedFiles())
|
|
54
|
-
|
|
66
|
+
.toEqual([...selectedDataList[0].files, ...selectedDataList[1].files]);
|
|
55
67
|
});
|
|
56
68
|
|
|
57
69
|
it('mixin catches export error and resets isFilesLoading on export error', async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import FilesExport from '../FilesExport';
|
|
1
|
+
import FilesExport from '../FilesExport.js';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
data: () => ({
|
|
@@ -15,7 +15,9 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
|
|
17
17
|
filesZippingProgress() {
|
|
18
|
-
return this.FilesExport
|
|
18
|
+
return this.FilesExport
|
|
19
|
+
? Math.floor(this.FilesExport.zippingProgress.percent)
|
|
20
|
+
: 0;
|
|
19
21
|
},
|
|
20
22
|
},
|
|
21
23
|
|
|
@@ -28,7 +30,9 @@ export default {
|
|
|
28
30
|
let files = null;
|
|
29
31
|
if (this.selectedItems?.length) {
|
|
30
32
|
files = this.selectedItems.reduce((filesAccumulator, next) => (
|
|
31
|
-
next.files
|
|
33
|
+
next.files
|
|
34
|
+
? [...filesAccumulator, ...next.files]
|
|
35
|
+
: filesAccumulator), []);
|
|
32
36
|
}
|
|
33
37
|
return files;
|
|
34
38
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const generateMediaURL = (id) => {
|
|
2
2
|
const token = localStorage.getItem('access-token');
|
|
3
|
-
const BASE_URL = process?.env?.VUE_APP_API_URL ||
|
|
3
|
+
const BASE_URL = process?.env?.VUE_APP_API_URL ||
|
|
4
|
+
import.meta.env.VITE_API_URL;
|
|
4
5
|
return `${BASE_URL}/storage/recordings/${id}/stream?access_token=${token}`;
|
|
5
6
|
};
|
|
6
7
|
|