@webitel/ui-sdk 26.6.89 → 26.6.90
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/{components-COWAuGBm.js → components-BqXO2X92.js} +395 -393
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +274 -274
- package/dist/{wt-chat-emoji-DiA3YxyK.js → wt-chat-emoji-DMGWnSDG.js} +1 -1
- package/dist/{wt-display-chip-items-BN8K7NHE.js → wt-display-chip-items-CL9lPf4i.js} +1 -1
- package/dist/{wt-send-message-popup-DcFoPulz.js → wt-send-message-popup-BV_3DOj4.js} +1 -1
- package/dist/{wt-type-extension-value-input-BICQ_NeQ.js → wt-type-extension-value-input-Cb_PUwOS.js} +1 -1
- package/dist/{wt-vidstack-player-Dl1GJcn_.js → wt-vidstack-player-DlSB9Hkq.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-popup/wt-popup.vue +14 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components-
|
|
1
|
+
import { C as e, i as t } from "./components-BqXO2X92.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./displayText-CtaxzaBz.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t } from "./clients-IxWZVjVW.js";
|
|
2
|
-
import { n } from "./components-
|
|
2
|
+
import { n } from "./components-BqXO2X92.js";
|
|
3
3
|
import { t as r } from "./vue-i18n-Db_oYfO8.js";
|
|
4
4
|
import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
5
|
//#endregion
|
package/dist/{wt-type-extension-value-input-BICQ_NeQ.js → wt-type-extension-value-input-Cb_PUwOS.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clients-IxWZVjVW.js";
|
|
2
|
-
import { a as t, o as n, r, s as i } from "./components-
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components-BqXO2X92.js";
|
|
3
3
|
import { t as a } from "./enums-De8CDKZ1.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@ v-show="showPopupComponent" :class="[`wt-popup--size-${size}`, { 'wt-popup--over
|
|
|
39
39
|
|
|
40
40
|
<script lang="ts" setup>
|
|
41
41
|
import { TransitionSlide } from '@morev/vue-transitions';
|
|
42
|
+
import { useScrollLock } from '@vueuse/core';
|
|
42
43
|
import { computed, defineEmits, defineProps, ref, watch } from 'vue';
|
|
43
44
|
|
|
44
45
|
import { ComponentSize } from '../../enums/ComponentSize/ComponentSize';
|
|
@@ -123,6 +124,19 @@ const showPopupComponent = computed(() => {
|
|
|
123
124
|
return wrapperShown.value || isCloseAnimationPlaying.value;
|
|
124
125
|
});
|
|
125
126
|
|
|
127
|
+
// lock page (body) scroll while the popup overlay is visible
|
|
128
|
+
const isBodyScrollLocked = useScrollLock(document.body);
|
|
129
|
+
|
|
130
|
+
watch(
|
|
131
|
+
showPopupComponent,
|
|
132
|
+
(isVisible) => {
|
|
133
|
+
isBodyScrollLocked.value = isVisible;
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
immediate: true,
|
|
137
|
+
},
|
|
138
|
+
);
|
|
139
|
+
|
|
126
140
|
// overlay should be shown before popup to show animation properly
|
|
127
141
|
watch(
|
|
128
142
|
() => props.shown,
|