@webitel/ui-sdk 26.6.68 → 26.6.69

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-rjTUkhKS.js";
1
+ import "./components-Ba1lcvXA.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-CoY-pIuZ.js";
4
4
  import { t as n } from "./wt-button-uY5Q1GAg.js";
@@ -153,6 +153,8 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
153
153
  }
154
154
  setTimeout(() => {
155
155
  x.value?.alignOverlay();
156
+ let e = x.value?.overlay;
157
+ e && (e.style.minWidth = "");
156
158
  }, 0);
157
159
  }, K = f(() => o.required ? `${o.label}*` : o.label), { v: q, customValidators: J } = k(o), { isValidation: Y, invalid: X, validationText: Z, validationTextColor: Q } = d({
158
160
  v: q,
@@ -190,7 +192,8 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
190
192
  tableHeaderCell: { class: "typo-body-2-bold" },
191
193
  day: { class: "typo-body-2" },
192
194
  hour: { class: "typo-body-2" },
193
- minute: { class: "typo-body-2" }
195
+ minute: { class: "typo-body-2" },
196
+ panel: { style: { maxWidth: "380px" } }
194
197
  },
195
198
  onShow: G
196
199
  }, {
@@ -281,6 +284,6 @@ var R = { class: "wt-datepicker" }, z = { class: "wt-datepicker__button-bar" },
281
284
  ]);
282
285
  };
283
286
  }
284
- }), [["__scopeId", "data-v-07d7fc7e"]]);
287
+ }), [["__scopeId", "data-v-8518d071"]]);
285
288
  //#endregion
286
289
  export { W as default };
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-rjTUkhKS.js";
1
+ import { C as e, i as t } from "./components-Ba1lcvXA.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";
@@ -3,7 +3,7 @@ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CoY-pIuZ.js";
4
4
  import { t as r } from "./wt-button-uY5Q1GAg.js";
5
5
  import { n as i, t as a } from "./useVidstackSrc-epUQZhkL.js";
6
- import { t as o } from "./wt-popover-BdwrokVy.js";
6
+ import { t as o } from "./wt-popover-ChCN6b1o.js";
7
7
  import { t as s } from "./wt-slider-BPzRTeYU.js";
8
8
  import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, toRefs as S, unref as C, watch as w, withCtx as T } from "vue";
9
9
  //#region src/components/_shared/settings-panel/components/speed-settings/speed-settings.vue?vue&type=script&setup=true&lang.ts
@@ -4,7 +4,7 @@ import { createElementBlock as t, createVNode as n, defineComponent as r, guardR
4
4
  var _ = (e, t) => {
5
5
  let n = (n) => {
6
6
  let r = n.target;
7
- if (r?.closest(".p-select-overlay, .p-multiselect-overlay")) {
7
+ if (r?.closest(".p-select-overlay, .p-multiselect-overlay, .p-datepicker-panel")) {
8
8
  let t = e.value?.outsideClickListener;
9
9
  if (!t) return;
10
10
  document.removeEventListener("click", t), document.addEventListener("click", () => {
@@ -1,4 +1,4 @@
1
- import { n as e } from "./components-rjTUkhKS.js";
1
+ import { n as e } from "./components-Ba1lcvXA.js";
2
2
  import { t } from "./vue-i18n-lTFLGg_9.js";
3
3
  import { n, r } from "./clients-B1AOAvEK.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";
@@ -1,4 +1,4 @@
1
- import { a as e, o as t, r as n, s as r } from "./components-rjTUkhKS.js";
1
+ import { a as e, o as t, r as n, s as r } from "./components-Ba1lcvXA.js";
2
2
  import { t as i } from "./enums-CoY-pIuZ.js";
3
3
  import { t as a } from "./vue-i18n-lTFLGg_9.js";
4
4
  import { t as o } from "./clients-B1AOAvEK.js";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-rjTUkhKS.js";
1
+ import { w as e } from "./components-Ba1lcvXA.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-CoY-pIuZ.js";
4
4
  import "./wt-button-uY5Q1GAg.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.68",
3
+ "version": "26.6.69",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -40,6 +40,11 @@
40
40
  },
41
41
  minute: {
42
42
  class: 'typo-body-2'
43
+ },
44
+ panel: {
45
+ style: {
46
+ maxWidth: '380px',
47
+ }
43
48
  }
44
49
  }"
45
50
  @show="onPanelShow"
@@ -207,6 +212,8 @@ const onPanelShow = () => {
207
212
  // align overlay, because on first render it is not aligned correctly
208
213
  setTimeout(() => {
209
214
  datepicker.value?.alignOverlay();
215
+ const panel = datepicker.value?.overlay;
216
+ if (panel) panel.style.minWidth = '';
210
217
  }, 0);
211
218
  };
212
219
 
@@ -29,7 +29,11 @@ export const usePopoverOverlayFix = (
29
29
  const onDocumentPointerdown = (event: PointerEvent) => {
30
30
  const target = event.target as Element;
31
31
 
32
- if (target?.closest('.p-select-overlay, .p-multiselect-overlay')) {
32
+ if (
33
+ target?.closest(
34
+ '.p-select-overlay, .p-multiselect-overlay, .p-datepicker-panel',
35
+ )
36
+ ) {
33
37
  const outsideClickListener = innerPopover.value?.outsideClickListener;
34
38
  if (!outsideClickListener) return;
35
39
  document.removeEventListener('click', outsideClickListener);