@webitel/ui-sdk 26.8.21 → 26.8.22
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/{clients-Ba7VhTMH.js → clients-Cgrz-ee-.js} +707 -22
- package/dist/{components-ABAwRPPa.js → components-BENKf-0C.js} +882 -846
- package/dist/{composables-C_OatTQJ.js → composables-BtWSAI5D.js} +14 -12
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +51 -50
- package/dist/ui-sdk.umd.cjs +695 -594
- package/dist/useEventBus-B-ZeklLu.js +5 -0
- package/dist/{useValidation-DgSm80YX.js → useValidation-B4_82RZv.js} +4 -4
- package/dist/{useVidstackSrc-B4mUti_c.js → useVidstackSrc-aQcqC_v0.js} +5 -5
- package/dist/{vidstack-C6nBVWwn-cKiWT0KJ.js → vidstack-C6nBVWwn-DNsvM1pU.js} +2 -2
- package/dist/{vidstack-CI5oafcm-DfWpvayJ.js → vidstack-CI5oafcm-EXmYmdjq.js} +1 -1
- package/dist/{vidstack-DUnfBERX2-BJtKHFxc.js → vidstack-DUnfBERX2-jgzDS0Hg.js} +1 -1
- package/dist/{vidstack-audio-BCPraiiR.js → vidstack-audio-CPO0A50Q.js} +1 -1
- package/dist/{vidstack-dash-MBx5aEEA.js → vidstack-dash-DHt7tTPh.js} +2 -2
- package/dist/{vidstack-hls-BbZsbfaO.js → vidstack-hls-WW1jeu5R.js} +2 -2
- package/dist/vidstack-video-Bwash4bY.js +2 -0
- package/dist/vue-router-Dwey8MMv.js +16 -0
- package/dist/{wt-button-G2Q1uf_y.js → wt-button-OZTROX1W.js} +3 -3
- package/dist/{wt-chat-emoji-DM6G80G_.js → wt-chat-emoji-ByGj5Mh4.js} +3 -3
- package/dist/{wt-datepicker-DTUMTWJK.js → wt-datepicker-OIgnVIpv.js} +38 -34
- package/dist/{wt-display-chip-items-3GRXkRfT.js → wt-display-chip-items-BUlu4Pqh.js} +2 -2
- package/dist/{wt-dual-panel-Dhj8Eg_y.js → wt-dual-panel-BEGLGU7F.js} +1 -1
- package/dist/{wt-expansion-card-BzhcCehz.js → wt-expansion-card-CpmnVJ03.js} +1 -1
- package/dist/{wt-galleria-qPHnXPx7.js → wt-galleria-CgY38PPx.js} +3 -6
- package/dist/{wt-icon-btn-BJl5VlM9.js → wt-icon-btn-hAWVJdNG.js} +2 -2
- package/dist/{wt-navigation-menu-CenQi_-T.js → wt-navigation-menu-BMupOW07.js} +2 -2
- package/dist/{wt-notifications-bar-C7cK0wEL.js → wt-notifications-bar-CqVk9cm7.js} +1 -1
- package/dist/{wt-player-Ca2x4geU.js → wt-player-vsOVUgi7.js} +17 -15
- package/dist/{wt-screen-recordings-action-Dzzo0eqW.js → wt-screen-recordings-action-Dj6ITuhE.js} +1 -1
- package/dist/{wt-search-bar-DtJL-csc.js → wt-search-bar-CagDl5av.js} +3 -3
- package/dist/wt-send-message-popup-zjxEP-HK.js +1208 -0
- package/dist/wt-start-page-BFQExFUj.js +73 -0
- package/dist/{wt-status-select-D1hAjCAS.js → wt-status-select-B-N9Fvz4.js} +2 -2
- package/dist/{wt-table-DJ3yOWZV.js → wt-table-C4PZJ3rP.js} +49 -47
- package/dist/{wt-table-column-select-CgEh5BAF.js → wt-table-column-select-D4c56HPB.js} +2 -2
- package/dist/{wt-time-input-u5Ay5_X5.js → wt-time-input-BEBrSugB.js} +9 -2
- package/dist/{wt-timepicker-CB8HzUZw.js → wt-timepicker-CQ2TRigf.js} +11 -4
- package/dist/{wt-toast-BbaZZWKt.js → wt-toast-Cb15-PN4.js} +1 -1
- package/dist/{wt-tree-DZ9ErOGj.js → wt-tree-CMIpbXBo.js} +40 -40
- package/dist/{wt-tree-table-C0ZIJXcv.js → wt-tree-table-CVvWMduu.js} +7 -7
- package/dist/{wt-type-extension-value-input-kzX2hJY_.js → wt-type-extension-value-input-l3TF0Xtv.js} +14 -9
- package/dist/{wt-vidstack-player-DbRHboYo.js → wt-vidstack-player-DV_fxJKW.js} +46 -42
- package/package.json +4 -1
- package/src/api/clients/_shared/types.ts +30 -0
- package/src/api/clients/caseSources/caseSources.ts +17 -8
- package/src/api/clients/quickReplies/quickReplies.ts +17 -8
- package/src/api/clients/roles/roles.ts +21 -12
- package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +16 -4
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +27 -9
- package/src/api/websocket/WebSocketClientController.ts +13 -5
- package/src/api/websocket/{config.js → config.ts} +5 -3
- package/src/api/websocket/websocketErrorEventHandler.ts +1 -1
- package/src/components/_internals/composables/useExpansion/useExpansion.ts +6 -1
- package/src/components/_internals/composables/useGalleriaMaskClick/useGalleriaMaskClick.ts +5 -3
- package/src/components/_internals/composables/useInputControl/useInputControl.ts +5 -3
- package/src/components/_internals/composables/useSelect/types.ts +69 -0
- package/src/components/_internals/composables/useSelect/useSelect.ts +4 -2
- package/src/components/_internals/composables/useSelect/useSelectCustomValues.ts +3 -2
- package/src/components/_internals/composables/useSelect/useSelectDropdown.ts +4 -3
- package/src/components/_internals/composables/useSelect/useSelectOptions.ts +20 -14
- package/src/components/_internals/composables/useSelect/useSelectUtils.ts +20 -7
- package/src/components/_internals/composables/useTableColumnDrag/useTableColumnDrag.ts +22 -12
- package/src/components/_internals/composables/useWtTable/useWtTable.ts +6 -2
- package/src/components/_internals/types/PrimevueInstance.ts +15 -0
- package/src/components/_shared/settings-panel/components/speed-settings/speed-settings.vue +6 -1
- package/src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue +6 -1
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +0 -2
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +0 -2
- package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue +12 -4
- package/src/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue +17 -7
- package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +36 -15
- package/src/components/on-demand/wt-upload-file-icon-btn/wt-upload-file-icon-btn.vue +1 -1
- package/src/components/wt-badge-new/wt-badge.vue +1 -1
- package/src/components/wt-button/wt-button.vue +5 -5
- package/src/components/wt-checkbox/wt-checkbox.vue +4 -2
- package/src/components/wt-chip/wt-chip.vue +1 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +30 -20
- package/src/components/wt-dual-panel/wt-dual-panel.vue +1 -1
- package/src/components/wt-galleria/wt-galleria.vue +1 -11
- package/src/components/wt-image/wt-image.vue +3 -3
- package/src/components/wt-input-number/wt-input-number.vue +8 -13
- package/src/components/wt-input-text/wt-input-text.vue +15 -17
- package/src/components/wt-intersection-observer/wt-intersection-observer.vue +1 -1
- package/src/components/wt-message/wt-message.vue +1 -1
- package/src/components/wt-multi-select/wt-multi-select.vue +22 -12
- package/src/components/wt-navigation-bar/types/WtNavigationBar.ts +3 -1
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +34 -18
- package/src/components/wt-password/wt-password.vue +12 -13
- package/src/components/wt-player/wt-player.vue +7 -2
- package/src/components/wt-popover/wt-popover.vue +5 -1
- package/src/components/wt-popup/wt-popup.vue +5 -1
- package/src/components/wt-radio/wt-radio.vue +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +17 -10
- package/src/components/wt-single-select/wt-single-select.vue +19 -12
- package/src/components/wt-status-select/wt-status-select.vue +2 -2
- package/src/components/wt-table/types/WtTable.ts +11 -1
- package/src/components/wt-table/wt-table.vue +43 -24
- package/src/components/wt-table-column-select/wt-table-column-select.vue +3 -5
- package/src/components/wt-textarea/wt-textarea.vue +9 -15
- package/src/components/wt-time-input/wt-time-input.vue +7 -4
- package/src/components/wt-timepicker/wt-timepicker.vue +6 -3
- package/src/components/wt-toast/wt-toast.vue +2 -2
- package/src/components/wt-tree/wt-tree.vue +6 -5
- package/src/components/wt-tree-line/types/wt-tree-node.ts +6 -0
- package/src/components/wt-tree-line/wt-tree-line.vue +29 -15
- package/src/components/wt-tree-table/wt-tree-table.vue +16 -18
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +9 -4
- package/src/components/wt-vidstack-player/components/buttons/fullscreen-button.vue +2 -3
- package/src/components/wt-vidstack-player/components/buttons/play-button.vue +1 -5
- package/src/components/wt-vidstack-player/components/controls-group/controls-group.vue +2 -4
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +2 -4
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/fullscreen-button.vue +0 -2
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/play-button.vue +2 -4
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +4 -4
- package/src/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue +3 -3
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +4 -4
- package/src/components/wt-vidstack-player/components/screenshot-box/screenshot-box.vue +1 -1
- package/src/components/wt-vidstack-player/composables/useVidstackPlayerSize.ts +11 -0
- package/src/components/wt-vidstack-player/composables/useVidstackSrc.ts +27 -6
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +7 -4
- package/src/enums/MessageColor/MessageColor.ts +1 -1
- package/src/enums/MessageVariant/MessageVariant.ts +2 -1
- package/src/install.ts +6 -2
- package/src/locale/en/en.js +1 -0
- package/src/locale/es/es.js +1 -0
- package/src/locale/kz/kz.js +1 -0
- package/src/locale/pl/pl.js +1 -0
- package/src/locale/ro/ro.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/uk/uk.js +1 -0
- package/src/locale/uz/uz.js +1 -0
- package/src/locale/vi/vi.js +1 -0
- package/src/mixins/validationMixin/regle/useRegleValidation.ts +2 -2
- package/src/mixins/validationMixin/useValidation.ts +1 -1
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +23 -8
- package/src/modules/CSVExport/CSVExport.js +1 -1
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +34 -16
- package/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.js +1 -1
- package/src/modules/FilesExport/composables/useFilesExport.ts +1 -1
- package/src/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue +2 -2
- package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +39 -12
- package/src/modules/UploadCsvPopup/scripts/normalizeCSVData.ts +20 -17
- package/src/modules/UploadCsvPopup/scripts/parseCSV.ts +2 -2
- package/src/modules/UploadCsvPopup/scripts/processFile.ts +2 -2
- package/src/modules/UploadCsvPopup/scripts/splitAndSaveData.ts +8 -2
- package/src/modules/UserNotifications/stores/userNotificationsStore.ts +9 -1
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +12 -6
- package/src/modules/Userinfo/mappings/mappings.ts +10 -3
- package/src/modules/Userinfo/scripts/utils.ts +8 -4
- package/src/modules/Userinfo/stores/accessStore.ts +16 -16
- package/src/modules/Userinfo/types/UserAccess.ts +1 -1
- package/src/plugins/breakpoint/breakpoint.plugin.ts +1 -1
- package/src/scripts/compareSize.ts +4 -4
- package/src/scripts/downloadFile/downloadFile.ts +1 -1
- package/src/scripts/normalizeDatetime.ts +2 -2
- package/src/utils/displayText.ts +1 -1
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/_shared/types.d.ts +23 -0
- package/types/api/clients/caseSources/caseSources.d.ts +7 -15
- package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +1 -1
- package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +1 -1
- package/types/api/clients/quickReplies/quickReplies.d.ts +7 -15
- package/types/api/clients/roles/roles.d.ts +8 -16
- package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +11 -12
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +19 -18
- package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +1 -1
- package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +2 -2
- package/types/api/transformers/applyTransform.d.ts +2 -2
- package/types/api/websocket/WebSocketClientController.d.ts +10 -9
- package/types/api/websocket/config.d.ts +3 -2
- package/types/api/websocket/websocketErrorEventHandler.d.ts +5 -1
- package/types/assets/icons/iconsRepository.d.ts +1 -1
- package/types/components/_internals/composables/useExpansion/useExpansion.d.ts +6 -1
- package/types/components/_internals/composables/useGalleriaMaskClick/useGalleriaMaskClick.d.ts +2 -1
- package/types/components/_internals/composables/useInputControl/useInputControl.d.ts +4 -2
- package/types/components/_internals/composables/useSelect/types.d.ts +52 -0
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +4 -18
- package/types/components/_internals/composables/useSelect/useSelectCustomValues.d.ts +2 -12
- package/types/components/_internals/composables/useSelect/useSelectDropdown.d.ts +2 -14
- package/types/components/_internals/composables/useSelect/useSelectOptions.d.ts +6 -14
- package/types/components/_internals/composables/useSelect/useSelectUtils.d.ts +5 -4
- package/types/components/_internals/composables/useTableColumnDrag/useTableColumnDrag.d.ts +3 -1
- package/types/components/_internals/composables/useWtTable/useWtTable.d.ts +3 -2
- package/types/components/_internals/types/PrimevueInstance.d.ts +14 -0
- package/types/components/_shared/settings-panel/components/speed-settings/speed-settings.vue.d.ts +2 -2
- package/types/components/_shared/settings-panel/settings-panel.vue.d.ts +1 -1
- package/types/components/on-demand/wt-call-media-action/wt-call-media-action.vue.d.ts +2 -2
- package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +1 -1
- package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +6 -2
- package/types/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue.d.ts +6 -6
- package/types/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue.d.ts +2 -2
- package/types/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue.d.ts +2 -2
- package/types/components/on-demand/wt-route-transition/wt-route-transition.vue.d.ts +1 -1
- package/types/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue.d.ts +3 -3
- package/types/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue.d.ts +10 -2
- package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +8 -8
- package/types/components/on-demand/wt-send-message-popup/wt-send-message-popup.vue.d.ts +1 -1
- package/types/components/on-demand/wt-table-transition/wt-table-transition.vue.d.ts +1 -1
- package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +18 -11
- package/types/components/on-demand/wt-upload-file-icon-btn/wt-upload-file-icon-btn.vue.d.ts +3 -3
- package/types/components/transitions/cases/wt-replace-transition.vue.d.ts +1 -1
- package/types/components/transitions/wt-transition.vue.d.ts +1 -1
- package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +64 -64
- package/types/components/wt-app-header/wt-app-header.vue.d.ts +1 -1
- package/types/components/wt-app-header/wt-header-actions.vue.d.ts +6 -9
- package/types/components/wt-badge/wt-badge.vue.d.ts +1 -1
- package/types/components/wt-badge-new/wt-badge.vue.d.ts +3 -3
- package/types/components/wt-breadcrumb/wt-breadcrumb.vue.d.ts +1 -1
- package/types/components/wt-button/wt-button.vue.d.ts +2 -2
- package/types/components/wt-button-select/wt-button-select.vue.d.ts +3 -3
- package/types/components/wt-call-media-metric/wt-call-media-metric.vue.d.ts +1 -1
- package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +3 -3
- package/types/components/wt-chip/wt-chip.vue.d.ts +2 -2
- package/types/components/wt-confirm-dialog/wt-confirm-dialog.vue.d.ts +5 -5
- package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +7 -7
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +20 -19
- package/types/components/wt-divider/wt-divider.vue.d.ts +1 -1
- package/types/components/wt-dual-panel/wt-dual-panel.vue.d.ts +5 -5
- package/types/components/wt-empty/wt-empty.vue.d.ts +38 -38
- package/types/components/wt-expansion-card/wt-expansion-card.vue.d.ts +3 -3
- package/types/components/wt-expansion-panel/wt-expansion-panel.vue.d.ts +3 -3
- package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -2
- package/types/components/wt-icon/wt-icon.vue.d.ts +1 -1
- package/types/components/wt-icon-action/wt-icon-action.vue.d.ts +4 -4
- package/types/components/wt-icon-btn/wt-icon-btn.vue.d.ts +3 -3
- package/types/components/wt-image/wt-image.vue.d.ts +2 -2
- package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +3 -3
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +9 -9
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +11 -9
- package/types/components/wt-intersection-observer/wt-intersection-observer.vue.d.ts +1 -1
- package/types/components/wt-item-link/wt-item-link.vue.d.ts +1 -1
- package/types/components/wt-label/mixins/labelUsageMixin.d.ts +1 -1
- package/types/components/wt-label/wt-label.vue.d.ts +1 -1
- package/types/components/wt-menubar/wt-menubar.vue.d.ts +1 -1
- package/types/components/wt-message/wt-message.vue.d.ts +1 -1
- package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +19 -19
- package/types/components/wt-navigation-bar/types/WtNavigationBar.d.ts +2 -1
- package/types/components/wt-navigation-bar/wt-navigation-bar.vue.d.ts +22 -45
- package/types/components/wt-page-header/wt-page-header.vue.d.ts +4 -4
- package/types/components/wt-password/wt-password.vue.d.ts +11 -9
- package/types/components/wt-player/wt-player.vue.d.ts +6 -6
- package/types/components/wt-popover/wt-popover.vue.d.ts +13 -9
- package/types/components/wt-popup/wt-popup.vue.d.ts +8 -4
- package/types/components/wt-radio/wt-radio.vue.d.ts +2 -2
- package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +25 -18
- package/types/components/wt-single-select/wt-single-select.vue.d.ts +18 -15
- package/types/components/wt-slider/wt-slider.vue.d.ts +3 -3
- package/types/components/wt-status-select/wt-status-select.vue.d.ts +3 -3
- package/types/components/wt-stepper/wt-stepper.vue.d.ts +2 -2
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +4 -4
- package/types/components/wt-table/types/WtTable.d.ts +7 -1
- package/types/components/wt-table/wt-table.vue.d.ts +12 -12
- package/types/components/wt-table-actions/wt-table-actions.vue.d.ts +2 -2
- package/types/components/wt-table-column-select/wt-table-column-select.vue.d.ts +1 -1
- package/types/components/wt-tabs/wt-tabs.vue.d.ts +3 -3
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +9 -14
- package/types/components/wt-time-input/wt-time-input.vue.d.ts +9 -9
- package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +8 -8
- package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +5 -5
- package/types/components/wt-tooltip/wt-tooltip.vue.d.ts +7 -7
- package/types/components/wt-tree/wt-tree.vue.d.ts +5 -3
- package/types/components/wt-tree-line/types/wt-tree-node.d.ts +5 -0
- package/types/components/wt-tree-line/wt-tree-line.vue.d.ts +8 -18
- package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +2 -2
- package/types/components/wt-tree-table-row/wt-tree-table-row.vue.d.ts +3 -18
- package/types/components/wt-vidstack-player/components/buttons/fullscreen-button.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +5 -5
- package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/components/buttons/fullscreen-button.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/panels/playback-controls-panel/playback-controls-panel.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue.d.ts +3 -3
- package/types/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue.d.ts +14 -14
- package/types/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue.d.ts +2 -2
- package/types/components/wt-vidstack-player/components/screenshot-box/screenshot-box.vue.d.ts +2 -2
- package/types/components/wt-vidstack-player/components/toggle-button.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/composables/useVidstackPlayerSize.d.ts +2 -0
- package/types/components/wt-vidstack-player/composables/useVidstackSrc.d.ts +11 -4
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +8 -7
- package/types/composables/useCachedInterval/useCachedInterval.d.ts +1 -1
- package/types/composables/useCachedItemInstanceName/useCachedItemInstanceName.d.ts +1 -1
- package/types/composables/useCard/useCardTabs.d.ts +1 -1
- package/types/composables/useClose/useClose.d.ts +1 -1
- package/types/enums/MessageColor/MessageColor.d.ts +1 -1
- package/types/enums/MessageVariant/MessageVariant.d.ts +1 -1
- package/types/locale/en/en.d.ts +3 -2
- package/types/locale/es/es.d.ts +3 -2
- package/types/locale/i18n.d.ts +27 -18
- package/types/locale/index.d.ts +27 -18
- package/types/locale/kz/kz.d.ts +3 -2
- package/types/locale/pl/pl.d.ts +3 -2
- package/types/locale/ro/ro.d.ts +3 -2
- package/types/locale/ru/ru.d.ts +3 -2
- package/types/locale/uk/uk.d.ts +3 -2
- package/types/locale/uz/uz.d.ts +3 -2
- package/types/locale/vi/vi.d.ts +3 -2
- package/types/mixins/dataFilterMixins/_urlControllerMixin/_urlControllerMixin.d.ts +1 -1
- package/types/mixins/dataFilterMixins/apiFilterMixin.d.ts +3 -3
- package/types/mixins/dataFilterMixins/baseFilterMixin/baseFilterMixin.d.ts +1 -1
- package/types/mixins/dataFilterMixins/enumFilterMixin.d.ts +4 -4
- package/types/mixins/dataFilterMixins/paginationFilterMixin.d.ts +2 -2
- package/types/mixins/dataFilterMixins/sortFilterMixin.d.ts +1 -1
- package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +1 -1
- package/types/mixins/validationMixin/useValidation.d.ts +2 -2
- package/types/mixins/validationMixin/validationMixin.d.ts +1 -1
- package/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +9 -5
- package/types/modules/AgentPdfs/components/agent-pdfs-tab.vue.d.ts +1 -1
- package/types/modules/AgentPdfs/components/pdf-status-preview.vue.d.ts +1 -1
- package/types/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue.d.ts +4 -4
- package/types/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue.d.ts +1 -1
- package/types/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue.d.ts +1 -1
- package/types/modules/Appearance/components/wt-dark-mode-switcher.vue.d.ts +1 -1
- package/types/modules/Appearance/pinia/store/AppearanceStore.d.ts +3 -3
- package/types/modules/Appearance/store/AppearanceStoreModule.d.ts +1 -1
- package/types/modules/AuditForm/components/audit-form-question-read-wrapper.vue.d.ts +3 -3
- package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +2 -2
- package/types/modules/AuditForm/components/audit-form-question.vue.d.ts +7 -7
- package/types/modules/AuditForm/components/audit-form.vue.d.ts +6 -6
- package/types/modules/AuditForm/components/form/form-footer/audit-form-footer.vue.d.ts +3 -3
- package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options-write-row.vue.d.ts +2 -2
- package/types/modules/AuditForm/components/form-questions/options/audit-form-question-options.vue.d.ts +4 -4
- package/types/modules/AuditForm/components/form-questions/score/audit-form-question-score.vue.d.ts +6 -6
- package/types/modules/AuditForm/components/form-questions/yes/audit-form-question-yes.vue.d.ts +2 -2
- package/types/modules/CSVExport/CSVExport.d.ts +3 -6
- package/types/modules/CSVExport/XLSExport.d.ts +1 -1
- package/types/modules/CSVExport/composables/useCSVExport.d.ts +6 -6
- package/types/modules/CSVExport/mixins/exportCSVMixin.d.ts +1 -1
- package/types/modules/CSVExport/mixins/exportXLSMixin.d.ts +1 -1
- package/types/modules/CallSession/modules/ScreenSharing/screen-sharing.vue.d.ts +3 -3
- package/types/modules/CallSession/modules/VideoCall/composables/useReceiverLiveStream.d.ts +6 -6
- package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +17 -17
- package/types/modules/CardStoreModule/store/CardStoreModule.d.ts +1 -1
- package/types/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue.d.ts +2 -2
- package/types/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup.d.ts +1 -1
- package/types/modules/Filters/classes/BaseFilterSchema.d.ts +7 -7
- package/types/modules/Filters/components/filter-search.vue.d.ts +2 -2
- package/types/modules/Filters/components/filter-table-fields.vue.d.ts +3 -3
- package/types/modules/Filters/scripts/getters/localStorageGetter.d.ts +1 -1
- package/types/modules/Filters/store/FiltersStoreModule.d.ts +1 -1
- package/types/modules/Notifications/assets/audio/triggerSound.d.ts +1 -1
- package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +9 -9
- package/types/modules/ObjectPermissions/components/_internal/permissions-role-row.vue.d.ts +1 -1
- package/types/modules/ObjectPermissions/components/_internal/permissions-role-select.vue.d.ts +1 -1
- package/types/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue.d.ts +5 -5
- package/types/modules/ObjectPermissions/components/_internal/permissions-tab-role-popup.vue.d.ts +2 -2
- package/types/modules/ObjectPermissions/headers/headers.d.ts +1 -1
- package/types/modules/ObjectPermissions/store/objectPermissionsStoreModule.d.ts +2 -2
- package/types/modules/QueryFilters/classes/BaseFilterSchema.d.ts +2 -2
- package/types/modules/QueryFilters/components/abstract-api-filter.vue.d.ts +1 -1
- package/types/modules/QueryFilters/components/abstract-enum-filter.vue.d.ts +1 -1
- package/types/modules/QueryFilters/components/filter-datetime.vue.d.ts +1 -1
- package/types/modules/QueryFilters/components/filter-from-to.vue.d.ts +1 -1
- package/types/modules/QueryFilters/components/filter-search.vue.d.ts +1 -1
- package/types/modules/QueryFilters/components/filter-table-fields.vue.d.ts +3 -3
- package/types/modules/QueryFilters/mixins/_urlControllerMixin/_urlControllerMixin.d.ts +1 -1
- package/types/modules/QueryFilters/mixins/apiFilterMixin.d.ts +1 -1
- package/types/modules/QueryFilters/mixins/baseFilterMixin/baseFilterMixin.d.ts +1 -1
- package/types/modules/QueryFilters/mixins/enumFilterMixin.d.ts +1 -1
- package/types/modules/QueryFilters/mixins/paginationFilterMixin.d.ts +2 -2
- package/types/modules/QueryFilters/mixins/sortFilterMixin.d.ts +1 -1
- package/types/modules/QueryFilters/store/QueryFiltersStoreModule.d.ts +4 -4
- package/types/modules/TableComponentModule/composables/useTableEmpty.d.ts +7 -7
- package/types/modules/TableStoreModule/store/TableStoreModule.d.ts +5 -5
- package/types/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue.d.ts +5 -5
- package/types/modules/UploadCsvPopup/composable/useUploadCsv.d.ts +21 -11
- package/types/modules/UploadCsvPopup/scripts/normalizeCSVData.d.ts +15 -20
- package/types/modules/UploadCsvPopup/scripts/parseCSV.d.ts +2 -1
- package/types/modules/UploadCsvPopup/scripts/processFile.d.ts +2 -2
- package/types/modules/UploadCsvPopup/scripts/splitAndSaveData.d.ts +3 -3
- package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +2 -10
- package/types/modules/Userinfo/mappings/mappings.d.ts +12 -24
- package/types/modules/Userinfo/scripts/utils.d.ts +2 -2
- package/types/modules/Userinfo/stores/settingsStore.d.ts +4 -4
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +3 -3
- package/types/modules/Userinfo/types/UserAccess.d.ts +1 -1
- package/types/scripts/compareSize.d.ts +4 -4
- package/types/scripts/debounce.d.ts +1 -1
- package/types/scripts/sortQueryAdapters.d.ts +3 -3
- package/types/store/BaseStoreModules/BaseStoreModule.d.ts +6 -6
- package/types/store/new/modules/apiStoreModule/apiStoreModule.d.ts +12 -12
- package/types/store/new/modules/tableStoreModule/tableStoreModule.d.ts +4 -4
- package/types/utils/displayText.d.ts +1 -1
- package/types/validations/config/errors/customZodErrorsHandler.d.ts +1 -1
- package/dist/vidstack-video-DwlbGwN7.js +0 -2
- package/dist/wt-send-message-popup-MbV1uq6H.js +0 -77
- package/dist/wt-start-page-DMXRhA9E.js +0 -86
- package/dist/{wt-popover-ChCN6b1o.js → wt-popover-lP-AhF8l.js} +3 -3
package/src/components/on-demand/wt-screen-recordings-action/wt-screen-recordings-action.vue
CHANGED
|
@@ -29,10 +29,18 @@
|
|
|
29
29
|
import { EngineCallFileType } from '@webitel/api-services/gen/models';
|
|
30
30
|
import { computed } from 'vue';
|
|
31
31
|
|
|
32
|
-
import { EMPTY_SYMBOL } from '../../../utils/index
|
|
32
|
+
import { EMPTY_SYMBOL } from '../../../utils/index';
|
|
33
|
+
|
|
34
|
+
interface CallFile {
|
|
35
|
+
name?: string;
|
|
36
|
+
id?: string;
|
|
37
|
+
mimeType?: string;
|
|
38
|
+
type?: string;
|
|
39
|
+
}
|
|
33
40
|
|
|
34
41
|
interface Props {
|
|
35
|
-
files
|
|
42
|
+
/** call files grouped by `EngineCallFileType` */
|
|
43
|
+
files: Partial<Record<EngineCallFileType, CallFile[]>>;
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
const props = defineProps<Props>();
|
|
@@ -41,7 +49,7 @@ const emit = defineEmits<(e: 'set-video', val: unknown) => void>();
|
|
|
41
49
|
|
|
42
50
|
const contextOptions = computed(() =>
|
|
43
51
|
props?.files?.[EngineCallFileType.FileTypeScreensharing]?.map(
|
|
44
|
-
({ name, id, mimeType, type }) => ({
|
|
52
|
+
({ name, id, mimeType, type }: CallFile) => ({
|
|
45
53
|
text: name,
|
|
46
54
|
id,
|
|
47
55
|
mimeType,
|
|
@@ -50,7 +58,7 @@ const contextOptions = computed(() =>
|
|
|
50
58
|
),
|
|
51
59
|
);
|
|
52
60
|
|
|
53
|
-
const handleOptionSelect = ({ option }) => {
|
|
61
|
+
const handleOptionSelect = ({ option }: { option: CallFile }) => {
|
|
54
62
|
if (option.id && option.type === EngineCallFileType.FileTypeScreensharing) {
|
|
55
63
|
emit('set-video', option);
|
|
56
64
|
}
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
|
|
38
38
|
<script setup lang="ts">
|
|
39
39
|
import { AgentsAPI, MessagesServiceAPI } from '@webitel/api-services/api';
|
|
40
|
-
import {
|
|
40
|
+
import { onMounted, ref } from 'vue';
|
|
41
41
|
import { useI18n } from 'vue-i18n';
|
|
42
|
+
import { useEventBus } from '../../../composables';
|
|
42
43
|
import { WtChatEmoji } from '../..';
|
|
43
44
|
|
|
44
45
|
interface ChatItem {
|
|
@@ -65,10 +66,19 @@ const props = defineProps<{
|
|
|
65
66
|
const emit = defineEmits([
|
|
66
67
|
'close',
|
|
67
68
|
]);
|
|
68
|
-
const eventBus =
|
|
69
|
+
const eventBus = useEventBus();
|
|
69
70
|
const { t } = useI18n();
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
interface MessageDraft {
|
|
73
|
+
gateway: {
|
|
74
|
+
id?: string;
|
|
75
|
+
};
|
|
76
|
+
provider: string;
|
|
77
|
+
message: string;
|
|
78
|
+
agentId: string | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const generateNewDraft = (): MessageDraft => {
|
|
72
82
|
return {
|
|
73
83
|
gateway: props.chatItem?.app || {},
|
|
74
84
|
provider: props.chatItem?.protocol || '',
|
|
@@ -79,7 +89,7 @@ const generateNewDraft = () => {
|
|
|
79
89
|
|
|
80
90
|
const draft = ref(generateNewDraft());
|
|
81
91
|
|
|
82
|
-
async function getAgentId(params) {
|
|
92
|
+
async function getAgentId(params: Record<string, unknown> = {}) {
|
|
83
93
|
const { items } = await AgentsAPI.getList({
|
|
84
94
|
...params,
|
|
85
95
|
userId: props.userId,
|
|
@@ -104,7 +114,7 @@ const sendMessage = async () => {
|
|
|
104
114
|
},
|
|
105
115
|
});
|
|
106
116
|
if (response.failure) {
|
|
107
|
-
eventBus
|
|
117
|
+
eventBus?.$emit('notification', {
|
|
108
118
|
type: 'error',
|
|
109
119
|
text: response.failure[0].error.message,
|
|
110
120
|
});
|
|
@@ -112,9 +122,9 @@ const sendMessage = async () => {
|
|
|
112
122
|
emit('close');
|
|
113
123
|
};
|
|
114
124
|
|
|
115
|
-
const insertEmoji = (emoji) => {
|
|
125
|
+
const insertEmoji = (emoji: string) => {
|
|
116
126
|
draft.value.message += emoji;
|
|
117
|
-
document.querySelector('textarea')
|
|
127
|
+
document.querySelector('textarea')?.focus();
|
|
118
128
|
};
|
|
119
129
|
|
|
120
130
|
onMounted(async () => await getAgentId());
|
package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
CHANGED
|
@@ -81,9 +81,13 @@ import {
|
|
|
81
81
|
} from '@webitel/ui-sdk/components';
|
|
82
82
|
import { computed } from 'vue';
|
|
83
83
|
import { useI18n } from 'vue-i18n';
|
|
84
|
-
import type {
|
|
84
|
+
import type {
|
|
85
|
+
WebitelProtoDataField,
|
|
86
|
+
WebitelProtoDataTypeLookup,
|
|
87
|
+
} from 'webitel-sdk';
|
|
85
88
|
|
|
86
89
|
import { WtTypeExtensionFieldKind as FieldType } from '../../../enums';
|
|
90
|
+
import type { VuelidateFieldLike } from '../../../mixins/validationMixin/vuelidate/useVuelidateValidation';
|
|
87
91
|
|
|
88
92
|
const model = defineModel<unknown>();
|
|
89
93
|
|
|
@@ -94,10 +98,16 @@ const props = defineProps<{
|
|
|
94
98
|
/**
|
|
95
99
|
* TODO: implement validation
|
|
96
100
|
*/
|
|
97
|
-
v?:
|
|
101
|
+
v?: VuelidateFieldLike;
|
|
98
102
|
}>();
|
|
99
103
|
|
|
100
|
-
|
|
104
|
+
(
|
|
105
|
+
props.v as
|
|
106
|
+
| {
|
|
107
|
+
$touch?: () => void;
|
|
108
|
+
}
|
|
109
|
+
| undefined
|
|
110
|
+
)?.$touch?.();
|
|
101
111
|
|
|
102
112
|
const { t } = useI18n();
|
|
103
113
|
|
|
@@ -109,7 +119,8 @@ const isRequired = computed(() => {
|
|
|
109
119
|
return props.required ?? props.field.required;
|
|
110
120
|
});
|
|
111
121
|
|
|
112
|
-
|
|
122
|
+
// biome-ignore lint/suspicious/noExplicitAny: the value type follows `field.kind` at runtime
|
|
123
|
+
const value = computed<any>(() => {
|
|
113
124
|
return model.value;
|
|
114
125
|
});
|
|
115
126
|
|
|
@@ -128,20 +139,29 @@ const sharedChildrenProps = computed(() => ({
|
|
|
128
139
|
const selectProps = computed(() => ({
|
|
129
140
|
clearable: true,
|
|
130
141
|
dataKey: 'id',
|
|
131
|
-
searchMethod:
|
|
142
|
+
searchMethod: loadLookupList(props.field.lookup),
|
|
132
143
|
}));
|
|
133
144
|
|
|
134
145
|
const multiselectProps = computed(() => ({
|
|
135
146
|
...selectProps.value,
|
|
136
147
|
}));
|
|
137
148
|
|
|
138
|
-
|
|
149
|
+
interface LookupOption {
|
|
150
|
+
id?: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const setValue = (value: unknown) => {
|
|
139
155
|
model.value = value;
|
|
140
156
|
};
|
|
141
157
|
|
|
142
|
-
const loadLookupList = ({
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
const loadLookupList = ({
|
|
159
|
+
path = '',
|
|
160
|
+
display = '',
|
|
161
|
+
primary = '',
|
|
162
|
+
}: WebitelProtoDataTypeLookup = {}) => {
|
|
163
|
+
return (params: Record<string, unknown>) => {
|
|
164
|
+
return SysTypesAPI.getLookup({
|
|
145
165
|
...params,
|
|
146
166
|
path,
|
|
147
167
|
display,
|
|
@@ -150,20 +170,21 @@ const loadLookupList = ({ path, display, primary }) => {
|
|
|
150
170
|
};
|
|
151
171
|
};
|
|
152
172
|
|
|
153
|
-
const selectElement = (value) => {
|
|
154
|
-
|
|
173
|
+
const selectElement = (value: unknown) => {
|
|
174
|
+
const option = (value ?? {}) as LookupOption;
|
|
175
|
+
if (Object.values(option).length === 0) {
|
|
155
176
|
return setValue(null);
|
|
156
177
|
}
|
|
157
178
|
|
|
158
179
|
setValue({
|
|
159
|
-
id:
|
|
160
|
-
name:
|
|
180
|
+
id: option.id,
|
|
181
|
+
name: option.name,
|
|
161
182
|
});
|
|
162
183
|
};
|
|
163
184
|
|
|
164
|
-
const selectElements = (value) => {
|
|
185
|
+
const selectElements = (value: unknown) => {
|
|
165
186
|
setValue(
|
|
166
|
-
value.map((item) => ({
|
|
187
|
+
(value as LookupOption[]).map((item) => ({
|
|
167
188
|
id: item.id,
|
|
168
189
|
name: item.name,
|
|
169
190
|
})),
|
|
@@ -61,16 +61,16 @@ import type { BadgeSeverity } from '../wt-badge-new/types/WtBadge';
|
|
|
61
61
|
import WtBadge from '../wt-badge-new/wt-badge.vue';
|
|
62
62
|
import WtIcon from '../wt-icon/wt-icon.vue';
|
|
63
63
|
|
|
64
|
-
const primevueSizeMap = {
|
|
64
|
+
const primevueSizeMap: Record<string, string> = {
|
|
65
65
|
[ComponentSize.XS]: 'extra-small',
|
|
66
66
|
[ComponentSize.SM]: 'small',
|
|
67
67
|
[ComponentSize.MD]: 'medium',
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
const iconButtonSizeMap = {
|
|
71
|
-
[ComponentSize.XS]:
|
|
72
|
-
[ComponentSize.SM]:
|
|
73
|
-
[ComponentSize.MD]:
|
|
70
|
+
const iconButtonSizeMap: Record<string, ComponentSize> = {
|
|
71
|
+
[ComponentSize.XS]: ComponentSize.SM,
|
|
72
|
+
[ComponentSize.SM]: ComponentSize.SM,
|
|
73
|
+
[ComponentSize.MD]: ComponentSize.MD,
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
interface WtButtonProps extends /* @vue-ignore */ ButtonProps {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
22
|
import type { CheckboxProps } from 'primevue/checkbox';
|
|
23
|
-
import { computed,
|
|
23
|
+
import { computed, useSlots } from 'vue';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @emits {boolean | string[]} change - Fires when checkbox value changes. Emits selected value (Boolean or Array)
|
|
@@ -74,7 +74,9 @@ const isChecked = computed(() => {
|
|
|
74
74
|
if (isSingle.value) {
|
|
75
75
|
return model.value;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return Array.isArray(model.value)
|
|
78
|
+
? model.value.includes(String(props.value))
|
|
79
|
+
: false;
|
|
78
80
|
});
|
|
79
81
|
|
|
80
82
|
const checkboxIcon = computed(() => {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
input-class="typo-body-1"
|
|
17
17
|
:required="required"
|
|
18
18
|
:disabled="disabled"
|
|
19
|
-
:invalid="invalid"
|
|
19
|
+
:invalid="invalid ?? undefined"
|
|
20
20
|
:show-time="showTime"
|
|
21
21
|
:min-date="minDate"
|
|
22
22
|
:max-date="maxDate"
|
|
23
23
|
:placeholder="getPlaceholder"
|
|
24
|
-
:show-clear="clearable && modelValue"
|
|
24
|
+
:show-clear="!!(clearable && modelValue)"
|
|
25
25
|
show-button-bar
|
|
26
26
|
fluid
|
|
27
27
|
:pt="{
|
|
@@ -98,25 +98,25 @@
|
|
|
98
98
|
</template>
|
|
99
99
|
|
|
100
100
|
<template #hourincrementbutton="{ callbacks }">
|
|
101
|
-
<span @mousedown="callbacks.mousedown" @mouseup="callbacks.mouseup" @mouseleave="callbacks.mouseleave">
|
|
101
|
+
<span @mousedown="spinnerCallbacks(callbacks).mousedown" @mouseup="spinnerCallbacks(callbacks).mouseup" @mouseleave="spinnerCallbacks(callbacks).mouseleave">
|
|
102
102
|
<wt-icon-btn icon="arrow-up" />
|
|
103
103
|
</span>
|
|
104
104
|
</template>
|
|
105
105
|
|
|
106
106
|
<template #hourdecrementbutton="{ callbacks }">
|
|
107
|
-
<span @mousedown="callbacks.mousedown" @mouseup="callbacks.mouseup" @mouseleave="callbacks.mouseleave">
|
|
107
|
+
<span @mousedown="spinnerCallbacks(callbacks).mousedown" @mouseup="spinnerCallbacks(callbacks).mouseup" @mouseleave="spinnerCallbacks(callbacks).mouseleave">
|
|
108
108
|
<wt-icon-btn icon="arrow-down" />
|
|
109
109
|
</span>
|
|
110
110
|
</template>
|
|
111
111
|
|
|
112
112
|
<template #minuteincrementbutton="{ callbacks }">
|
|
113
|
-
<span @mousedown="callbacks.mousedown" @mouseup="callbacks.mouseup" @mouseleave="callbacks.mouseleave">
|
|
113
|
+
<span @mousedown="spinnerCallbacks(callbacks).mousedown" @mouseup="spinnerCallbacks(callbacks).mouseup" @mouseleave="spinnerCallbacks(callbacks).mouseleave">
|
|
114
114
|
<wt-icon-btn icon="arrow-up" />
|
|
115
115
|
</span>
|
|
116
116
|
</template>
|
|
117
117
|
|
|
118
118
|
<template #minutedecrementbutton="{ callbacks }">
|
|
119
|
-
<span @mousedown="callbacks.mousedown" @mouseup="callbacks.mouseup" @mouseleave="callbacks.mouseleave">
|
|
119
|
+
<span @mousedown="spinnerCallbacks(callbacks).mousedown" @mouseup="spinnerCallbacks(callbacks).mouseup" @mouseleave="spinnerCallbacks(callbacks).mouseleave">
|
|
120
120
|
<wt-icon-btn icon="arrow-down" />
|
|
121
121
|
</span>
|
|
122
122
|
</template>
|
|
@@ -138,14 +138,7 @@ import PDatepicker, {
|
|
|
138
138
|
DatePickerEmitsOptions,
|
|
139
139
|
DatePickerProps,
|
|
140
140
|
} from 'primevue/datepicker';
|
|
141
|
-
import {
|
|
142
|
-
computed,
|
|
143
|
-
defineModel,
|
|
144
|
-
defineProps,
|
|
145
|
-
nextTick,
|
|
146
|
-
toRefs,
|
|
147
|
-
useTemplateRef,
|
|
148
|
-
} from 'vue';
|
|
141
|
+
import { computed, nextTick, toRefs, useTemplateRef } from 'vue';
|
|
149
142
|
import { useI18n } from 'vue-i18n';
|
|
150
143
|
import {
|
|
151
144
|
ButtonColor,
|
|
@@ -154,6 +147,11 @@ import {
|
|
|
154
147
|
MessageVariant,
|
|
155
148
|
} from '../../enums';
|
|
156
149
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
150
|
+
import type {
|
|
151
|
+
CompatCustomValidator,
|
|
152
|
+
VuelidateFieldLike,
|
|
153
|
+
} from '../../mixins/validationMixin/vuelidate/useVuelidateValidation';
|
|
154
|
+
import type { PrimevueOverlayInstance } from '../_internals/types/PrimevueInstance';
|
|
157
155
|
import { useDatepicker } from './_internals/composables/useDatepicker';
|
|
158
156
|
|
|
159
157
|
interface Props extends DatePickerProps {
|
|
@@ -167,8 +165,8 @@ interface Props extends DatePickerProps {
|
|
|
167
165
|
required?: boolean;
|
|
168
166
|
clearable?: boolean;
|
|
169
167
|
timezone?: string;
|
|
170
|
-
v?:
|
|
171
|
-
customValidators?:
|
|
168
|
+
v?: VuelidateFieldLike;
|
|
169
|
+
customValidators?: CompatCustomValidator[];
|
|
172
170
|
}
|
|
173
171
|
|
|
174
172
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -203,13 +201,25 @@ const modelValue = computed({
|
|
|
203
201
|
},
|
|
204
202
|
});
|
|
205
203
|
|
|
206
|
-
|
|
204
|
+
interface DatePickerRef extends PrimevueOverlayInstance {
|
|
205
|
+
rawValue: Date | null;
|
|
206
|
+
updateModel: (v: Date) => void;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const datepicker = useTemplateRef<DatePickerRef>('datepicker');
|
|
210
|
+
|
|
211
|
+
/** PrimeVue types the spinner slot's `callbacks` as a bare `object`. */
|
|
212
|
+
const spinnerCallbacks = (callbacks: object) =>
|
|
213
|
+
callbacks as Record<
|
|
214
|
+
'mousedown' | 'mouseup' | 'mouseleave',
|
|
215
|
+
(e: Event) => void
|
|
216
|
+
>;
|
|
207
217
|
|
|
208
218
|
const datepickerId = `datepicker-${Math.random().toString(36).slice(2, 11)}`;
|
|
209
219
|
|
|
210
220
|
const { onBlur, lockOverlay, unlockOverlay } = useDatepicker(
|
|
211
|
-
() => datepicker.value?.$el?.querySelector('input'),
|
|
212
|
-
() => datepicker.value,
|
|
221
|
+
() => datepicker.value?.$el?.querySelector('input') ?? null,
|
|
222
|
+
() => datepicker.value ?? null,
|
|
213
223
|
() => !!props.showTime,
|
|
214
224
|
() => !!props.clearable,
|
|
215
225
|
);
|
|
@@ -230,7 +240,7 @@ const onPanelShow = () => {
|
|
|
230
240
|
|
|
231
241
|
// align overlay, because on first render it is not aligned correctly
|
|
232
242
|
setTimeout(() => {
|
|
233
|
-
datepicker.value?.alignOverlay();
|
|
243
|
+
datepicker.value?.alignOverlay?.();
|
|
234
244
|
const panel = datepicker.value?.overlay;
|
|
235
245
|
if (!panel) return;
|
|
236
246
|
panel.style.minWidth = '';
|
|
@@ -21,7 +21,7 @@ v-if="!disableResize" :action="sidePanelCollapsed ? IconAction.EXPAND : IconActi
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script setup>
|
|
24
|
-
import { computed,
|
|
24
|
+
import { computed, ref } from 'vue';
|
|
25
25
|
|
|
26
26
|
import { ComponentSize, IconAction } from '../../enums';
|
|
27
27
|
|
|
@@ -104,16 +104,7 @@
|
|
|
104
104
|
<script setup lang="ts">
|
|
105
105
|
import { useDeleteConfirmationPopup } from '@webitel/ui-sdk/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup';
|
|
106
106
|
import type { GalleriaProps } from 'primevue';
|
|
107
|
-
import {
|
|
108
|
-
computed,
|
|
109
|
-
defineModel,
|
|
110
|
-
defineProps,
|
|
111
|
-
nextTick,
|
|
112
|
-
onMounted,
|
|
113
|
-
onUnmounted,
|
|
114
|
-
ref,
|
|
115
|
-
watch,
|
|
116
|
-
} from 'vue';
|
|
107
|
+
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
|
|
117
108
|
import DeleteConfirmationPopup from '../../modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue';
|
|
118
109
|
import {
|
|
119
110
|
useGalleriaFullscreen,
|
|
@@ -186,7 +177,6 @@ const onImageLoad = () => {
|
|
|
186
177
|
const handleDelete = () => {
|
|
187
178
|
if (fullScreen.value) toggleFullScreen();
|
|
188
179
|
askDeleteConfirmation({
|
|
189
|
-
deleteCount: 1,
|
|
190
180
|
callback: () => emit('delete', activeIndex),
|
|
191
181
|
});
|
|
192
182
|
};
|
|
@@ -22,7 +22,7 @@ class="wt-image" :style="{
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts">
|
|
25
|
-
import { computed
|
|
25
|
+
import { computed } from 'vue';
|
|
26
26
|
|
|
27
27
|
import { IconColor } from '../../enums';
|
|
28
28
|
|
|
@@ -60,7 +60,7 @@ const width = computed(() => {
|
|
|
60
60
|
const width = props.size ? sizeToUnits[props.size] : props.width;
|
|
61
61
|
|
|
62
62
|
// if converted to Number without an error, it has no units in it
|
|
63
|
-
if (+width) {
|
|
63
|
+
if (width && +width) {
|
|
64
64
|
return `${width}px`;
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -73,7 +73,7 @@ const height = computed(() => {
|
|
|
73
73
|
const height = props.size ? sizeToUnits[props.size] : props.height;
|
|
74
74
|
|
|
75
75
|
// if converted to Number without an error, it has no units in it
|
|
76
|
-
if (+height) {
|
|
76
|
+
if (height && +height) {
|
|
77
77
|
return `${height}px`;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -77,17 +77,13 @@
|
|
|
77
77
|
<script setup lang="ts">
|
|
78
78
|
import type { SuperCompatibleRegleFieldStatus } from '@regle/core';
|
|
79
79
|
import type { InputNumberProps } from 'primevue';
|
|
80
|
-
import {
|
|
81
|
-
|
|
82
|
-
defineEmits,
|
|
83
|
-
defineModel,
|
|
84
|
-
onMounted,
|
|
85
|
-
toRefs,
|
|
86
|
-
useSlots,
|
|
87
|
-
useTemplateRef,
|
|
88
|
-
} from 'vue';
|
|
89
|
-
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
80
|
+
import { computed, onMounted, toRefs, useSlots, useTemplateRef } from 'vue';
|
|
81
|
+
import { ComponentSize, MessageVariant } from '../../enums';
|
|
90
82
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
83
|
+
import type {
|
|
84
|
+
CompatCustomValidator,
|
|
85
|
+
VuelidateFieldLike,
|
|
86
|
+
} from '../../mixins/validationMixin/vuelidate/useVuelidateValidation';
|
|
91
87
|
import { useInputControl } from '../_internals/composables';
|
|
92
88
|
|
|
93
89
|
interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
|
|
@@ -103,9 +99,9 @@ interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
|
|
|
103
99
|
minFractionDigits?: number;
|
|
104
100
|
maxFractionDigits?: number;
|
|
105
101
|
showButtons?: boolean;
|
|
106
|
-
v?:
|
|
102
|
+
v?: VuelidateFieldLike;
|
|
107
103
|
regleValidation?: SuperCompatibleRegleFieldStatus;
|
|
108
|
-
customValidators?:
|
|
104
|
+
customValidators?: CompatCustomValidator[];
|
|
109
105
|
hideInputInfo?: boolean;
|
|
110
106
|
}
|
|
111
107
|
|
|
@@ -123,7 +119,6 @@ const props = withDefaults(defineProps<WtInputNumberProps>(), {
|
|
|
123
119
|
maxFractionDigits: undefined,
|
|
124
120
|
showButtons: true,
|
|
125
121
|
v: null,
|
|
126
|
-
regleValidation: null,
|
|
127
122
|
customValidators: () => [],
|
|
128
123
|
hideInputInfo: false,
|
|
129
124
|
});
|
|
@@ -32,9 +32,8 @@
|
|
|
32
32
|
class="wt-input-text__input typo-body-1"
|
|
33
33
|
:class="{ 'wt-input-text__input--masked': isInputMasked }"
|
|
34
34
|
:inputmode="type"
|
|
35
|
-
:size="primevueSizeMap[size]"
|
|
35
|
+
:size="size ? primevueSizeMap[size] : undefined"
|
|
36
36
|
v-bind="$attrs"
|
|
37
|
-
v-on="$listeners"
|
|
38
37
|
@update:model-value="inputHandler"
|
|
39
38
|
@keyup="handleKeyup"
|
|
40
39
|
/>
|
|
@@ -65,19 +64,19 @@
|
|
|
65
64
|
<script setup lang="ts">
|
|
66
65
|
import type { SuperCompatibleRegleFieldStatus } from '@regle/core';
|
|
67
66
|
import type { InputTextProps } from 'primevue';
|
|
68
|
-
import {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
ref,
|
|
72
|
-
toRefs,
|
|
73
|
-
useSlots,
|
|
74
|
-
useTemplateRef,
|
|
75
|
-
} from 'vue';
|
|
76
|
-
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
67
|
+
import type { InputHTMLAttributes } from 'vue';
|
|
68
|
+
import { computed, ref, toRefs, useSlots, useTemplateRef } from 'vue';
|
|
69
|
+
import { ComponentSize, MessageVariant } from '../../enums';
|
|
77
70
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
71
|
+
import type {
|
|
72
|
+
CompatCustomValidator,
|
|
73
|
+
VuelidateFieldLike,
|
|
74
|
+
} from '../../mixins/validationMixin/vuelidate/useVuelidateValidation';
|
|
78
75
|
import { useInputControl } from '../_internals/composables';
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
/** native attrs are omitted: keeping them overflows prop inference (TS2590) */
|
|
78
|
+
interface WtInputTextProps
|
|
79
|
+
extends /* @vue-ignore */ Omit<InputTextProps, keyof InputHTMLAttributes> {
|
|
81
80
|
label?: string;
|
|
82
81
|
labelProps?: Record<string, unknown>;
|
|
83
82
|
type?: string;
|
|
@@ -86,9 +85,9 @@ interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
|
|
|
86
85
|
disabled?: boolean;
|
|
87
86
|
required?: boolean;
|
|
88
87
|
preventTrim?: boolean;
|
|
89
|
-
v?:
|
|
88
|
+
v?: VuelidateFieldLike;
|
|
90
89
|
regleValidation?: SuperCompatibleRegleFieldStatus;
|
|
91
|
-
customValidators?:
|
|
90
|
+
customValidators?: CompatCustomValidator[];
|
|
92
91
|
hideInputInfo?: boolean;
|
|
93
92
|
hideInputValue?: boolean;
|
|
94
93
|
}
|
|
@@ -103,13 +102,12 @@ const props = withDefaults(defineProps<WtInputTextProps>(), {
|
|
|
103
102
|
required: false,
|
|
104
103
|
preventTrim: false,
|
|
105
104
|
v: null,
|
|
106
|
-
regleValidation: null,
|
|
107
105
|
customValidators: () => [],
|
|
108
106
|
hideInputInfo: false,
|
|
109
107
|
hideInputValue: false,
|
|
110
108
|
});
|
|
111
109
|
|
|
112
|
-
const primevueSizeMap = {
|
|
110
|
+
const primevueSizeMap: Record<string, string> = {
|
|
113
111
|
[ComponentSize.SM]: 'small',
|
|
114
112
|
[ComponentSize.LG]: 'large',
|
|
115
113
|
};
|
|
@@ -148,7 +146,7 @@ const requiredLabel = computed(() => {
|
|
|
148
146
|
return isRequired ? `${props.label}*` : props.label;
|
|
149
147
|
});
|
|
150
148
|
|
|
151
|
-
const inputHandler = (value) => {
|
|
149
|
+
const inputHandler = (value: string) => {
|
|
152
150
|
const handledValue = props.preventTrim ? value : value.trim();
|
|
153
151
|
emit('update:modelValue', handledValue);
|
|
154
152
|
};
|
|
@@ -32,7 +32,7 @@ withDefaults(defineProps<WtMessageProps>(), {
|
|
|
32
32
|
size: ComponentSize.MD,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
const primevueSizeMap = {
|
|
35
|
+
const primevueSizeMap: Record<string, string> = {
|
|
36
36
|
[ComponentSize.SM]: 'small',
|
|
37
37
|
[ComponentSize.MD]: 'normal',
|
|
38
38
|
[ComponentSize.LG]: 'large',
|