@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.
@@ -1,4 +1,4 @@
1
- import "./components-COWAuGBm.js";
1
+ import "./components-BqXO2X92.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-dC4nOW56.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-COWAuGBm.js";
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-COWAuGBm.js";
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
@@ -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-COWAuGBm.js";
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";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-COWAuGBm.js";
1
+ import { w as e } from "./components-BqXO2X92.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-dC4nOW56.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.89",
3
+ "version": "26.6.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -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,