prlg-ui 1.8.158 → 1.8.159

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 { defineComponent as W, computed as T, resolveComponent as il, createBlock as U, openBlock as f, resolveDynamicComponent as Pe, normalizeClass as H, withCtx as oe, createCommentVNode as D, createElementBlock as g, renderSlot as ee, Fragment as se, createTextVNode as ve, toDisplayString as q, ref as M, useTemplateRef as Ze, onMounted as me, createElementVNode as w, createVNode as j, renderList as he, unref as C, mergeModels as ae, useModel as ie, watch as J, shallowRef as De, getCurrentScope as Ml, onScopeDispose as Al, shallowReadonly as We, toRefs as Dl, useId as at, onUnmounted as Ve, Transition as Ie, normalizeStyle as ne, nextTick as fe, withModifiers as ge, withDirectives as be, vModelRadio as Ol, vModelText as ze, provide as $e, toRef as je, useSlots as ul, inject as ye, vModelCheckbox as cl, vModelDynamic as Bl, toValue as Ye, isRef as El, vModelSelect as Ll, createStaticVNode as zl, Teleport as Ee, reactive as Rt, TransitionGroup as Hl, vShow as dl, useCssVars as Kl, createApp as Fl } from "vue";
1
+ import { defineComponent as W, computed as T, resolveComponent as il, createBlock as U, openBlock as f, resolveDynamicComponent as Pe, normalizeClass as H, withCtx as oe, createCommentVNode as D, createElementBlock as g, renderSlot as J, Fragment as se, createTextVNode as ve, toDisplayString as q, ref as M, useTemplateRef as Ze, onMounted as me, createElementVNode as w, createVNode as j, renderList as he, unref as C, mergeModels as ae, useModel as ie, watch as ee, shallowRef as De, getCurrentScope as Ml, onScopeDispose as Al, shallowReadonly as We, toRefs as Dl, useId as at, onUnmounted as Ve, Transition as Ie, normalizeStyle as ne, nextTick as fe, withModifiers as ge, withDirectives as be, vModelRadio as Ol, vModelText as ze, provide as $e, toRef as je, useSlots as ul, inject as ye, vModelCheckbox as cl, vModelDynamic as Bl, toValue as Ye, isRef as El, vModelSelect as Ll, createStaticVNode as zl, Teleport as Ee, reactive as Rt, TransitionGroup as Hl, vShow as dl, useCssVars as Kl, createApp as Fl } from "vue";
2
2
  import { P as fl, h as ql, i as Nl, I as vl, e as nt, C as yt, A as Wl, a as ml, f as Yl, M as jl, S as Ul, g as Zl, b as Ql, c as Xl, E as Gl, B as Jl, d as en, Q as tn, W as qt } from "./QuestionIcon-tK1kUB_h.js";
3
3
  import { o as ln, d as re } from "./parseFileSize.util-CxVk4CvB.js";
4
4
  import { _ as ue, C as tt, a as nn } from "./FileIcon-maHE2Nhr.js";
@@ -47,7 +47,7 @@ const an = {
47
47
  class: "button__icon"
48
48
  })) : D("", !0),
49
49
  n.iconOnly ? D("", !0) : (f(), g("div", an, [
50
- ee(n.$slots, "default"),
50
+ J(n.$slots, "default"),
51
51
  n.label && !n.$slots.default ? (f(), g(se, { key: 0 }, [
52
52
  ve(q(n.label), 1)
53
53
  ], 64)) : D("", !0)
@@ -145,7 +145,7 @@ const an = {
145
145
  emits: /* @__PURE__ */ ae(["change", "update:modelValue", "update:checked", "update:indeterminate"], ["update:modelValue"]),
146
146
  setup(e, { emit: l }) {
147
147
  const t = l, n = ie(e, "modelValue"), o = M(e.indeterminate);
148
- e.checked !== void 0 && (e.value !== void 0 && n.value === void 0 ? n.value = e.checked ? [e.value] : [] : e.value === void 0 && (e.checked ? n.value = e.trueValue !== !0 ? e.trueValue : !0 : n.value = e.falseValue !== !1 ? e.falseValue : !1)), J(
148
+ e.checked !== void 0 && (e.value !== void 0 && n.value === void 0 ? n.value = e.checked ? [e.value] : [] : e.value === void 0 && (e.checked ? n.value = e.trueValue !== !0 ? e.trueValue : !0 : n.value = e.falseValue !== !1 ? e.falseValue : !1)), ee(
149
149
  () => e.checked,
150
150
  (v) => {
151
151
  v !== void 0 && (v ? n.value = e.trueValue !== !0 ? e.trueValue : !0 : n.value = e.falseValue !== !1 ? e.falseValue : !1);
@@ -176,12 +176,12 @@ const an = {
176
176
  } else e.trueValue !== !0 || e.falseValue !== !1 ? k = h ? e.trueValue : e.falseValue : e.value !== void 0 ? k = h ? e.value : null : k = h;
177
177
  n.value = k, t("update:modelValue", k), t("change", k), t("update:checked", h), o.value && (o.value = !1, t("update:indeterminate", !1));
178
178
  };
179
- return J(
179
+ return ee(
180
180
  n,
181
181
  () => {
182
182
  },
183
183
  { immediate: !0 }
184
- ), J(
184
+ ), ee(
185
185
  () => e.indeterminate,
186
186
  (v) => {
187
187
  o.value = v;
@@ -219,7 +219,7 @@ const an = {
219
219
  ]),
220
220
  v.label || v.$slots.label ? (f(), g("span", gn, [
221
221
  ve(q(v.label) + " ", 1),
222
- ee(v.$slots, "label")
222
+ J(v.$slots, "label")
223
223
  ])) : D("", !0),
224
224
  v.error && v.errorText ? (f(), g("span", hn, q(v.errorText), 1)) : D("", !0)
225
225
  ], 10, cn));
@@ -1384,11 +1384,11 @@ function tl(e, l, t) {
1384
1384
  function y() {
1385
1385
  o.value || (S.value = !1);
1386
1386
  }
1387
- return J([u, a, s, o], P, {
1387
+ return ee([u, a, s, o], P, {
1388
1388
  flush: "sync"
1389
- }), J([i, c], I, {
1389
+ }), ee([i, c], I, {
1390
1390
  flush: "sync"
1391
- }), J(o, y, {
1391
+ }), ee(o, y, {
1392
1392
  flush: "sync"
1393
1393
  }), Ml() && Al(A), {
1394
1394
  x: We(v),
@@ -1510,9 +1510,9 @@ const mo = {
1510
1510
  };
1511
1511
  }
1512
1512
  });
1513
- return J(V, (le) => {
1513
+ return ee(V, (le) => {
1514
1514
  K.value || (E.value = le.hide?.referenceHidden === !1);
1515
- }), J(
1515
+ }), ee(
1516
1516
  E,
1517
1517
  async (le) => {
1518
1518
  le || (Z(), O.value = !1), le && s.value === "button-only" ? (F(), setTimeout(() => {
@@ -1524,7 +1524,7 @@ const mo = {
1524
1524
  }, 0);
1525
1525
  },
1526
1526
  { immediate: !0 }
1527
- ), J(
1527
+ ), ee(
1528
1528
  n,
1529
1529
  () => {
1530
1530
  P();
@@ -1577,7 +1577,7 @@ const mo = {
1577
1577
  ref: "reference",
1578
1578
  onClick: Y
1579
1579
  }, [
1580
- ee(le.$slots, "trigger", {}, void 0, !0)
1580
+ J(le.$slots, "trigger", {}, void 0, !0)
1581
1581
  ], 2),
1582
1582
  w("div", null, [
1583
1583
  j(Ie, { name: "fade" }, {
@@ -1600,12 +1600,12 @@ const mo = {
1600
1600
  }, [
1601
1601
  w("div", po, [
1602
1602
  C(a) ? (f(), g("div", go, [
1603
- ee(le.$slots, "default", {
1603
+ J(le.$slots, "default", {
1604
1604
  openSecondScreen: G,
1605
1605
  closeSecondScreen: Z,
1606
1606
  close: _
1607
1607
  }, void 0, !0)
1608
- ])) : ee(le.$slots, "default", {
1608
+ ])) : J(le.$slots, "default", {
1609
1609
  key: 1,
1610
1610
  openSecondScreen: G,
1611
1611
  closeSecondScreen: Z,
@@ -1630,7 +1630,7 @@ const mo = {
1630
1630
  ref: "second-screen",
1631
1631
  style: ne({ ...C(y) })
1632
1632
  }, [
1633
- ee(le.$slots, "second-screen", { closeSecondScreen: Z }, void 0, !0)
1633
+ J(le.$slots, "second-screen", { closeSecondScreen: Z }, void 0, !0)
1634
1634
  ], 4)) : D("", !0)
1635
1635
  ]),
1636
1636
  _: 3
@@ -1939,7 +1939,7 @@ const mo = {
1939
1939
  (f(), U(Pe(o.icon)))
1940
1940
  ])) : D("", !0),
1941
1941
  w("div", Bo, [
1942
- ee(o.$slots, "default")
1942
+ J(o.$slots, "default")
1943
1943
  ])
1944
1944
  ]),
1945
1945
  o.removable ? (f(), g("button", {
@@ -1994,7 +1994,7 @@ const mo = {
1994
1994
  }, [
1995
1995
  a.label ? (f(), g(se, { key: 0 }, [
1996
1996
  ve(q(a.label), 1)
1997
- ], 64)) : ee(a.$slots, "default", { key: 1 })
1997
+ ], 64)) : J(a.$slots, "default", { key: 1 })
1998
1998
  ], 8, Lo)) : D("", !0)
1999
1999
  ], 2));
2000
2000
  }
@@ -2145,11 +2145,11 @@ const mo = {
2145
2145
  const K = x.target, E = s.value, X = a.value.contains(K), _ = E && E.contains(K);
2146
2146
  !X && !_ && (o.value = !1);
2147
2147
  }
2148
- return J(o, (x) => {
2148
+ return ee(o, (x) => {
2149
2149
  x ? (z(), t.searchable && fe(() => {
2150
2150
  r.value?.focus();
2151
2151
  })) : u.value = "";
2152
- }), J(
2152
+ }), ee(
2153
2153
  () => t.options,
2154
2154
  () => {
2155
2155
  o.value && z();
@@ -2198,7 +2198,7 @@ const mo = {
2198
2198
  _: 1
2199
2199
  })) : D("", !0)
2200
2200
  ])) : (f(), g(se, { key: 1 }, [
2201
- h.value ? ee(x.$slots, "input", {
2201
+ h.value ? J(x.$slots, "input", {
2202
2202
  key: 0,
2203
2203
  value: h.value,
2204
2204
  selectedOption: p.value[0]
@@ -2274,7 +2274,7 @@ const mo = {
2274
2274
  for: x.multiple ? `dropdown-checkbox-${I(E)}` : `dropdown-radio-${I(E)}`
2275
2275
  }, [
2276
2276
  x.$slots.option ? D("", !0) : (f(), g("span", Qo, q(y(E)), 1)),
2277
- ee(x.$slots, "option", {
2277
+ J(x.$slots, "option", {
2278
2278
  option: E,
2279
2279
  selected: x.multiple ? V.value.includes(A(E)) : P.value === A(E),
2280
2280
  multiple: x.multiple,
@@ -2285,7 +2285,7 @@ const mo = {
2285
2285
  ], 2))), 128)),
2286
2286
  L.value.length ? D("", !0) : (f(), g("div", Xo, " Ничего не найдено ")),
2287
2287
  x.$slots.footer ? (f(), g("div", Go, [
2288
- ee(x.$slots, "footer", {}, void 0, !0)
2288
+ J(x.$slots, "footer", {}, void 0, !0)
2289
2289
  ])) : D("", !0)
2290
2290
  ], 64))
2291
2291
  ])
@@ -2574,7 +2574,7 @@ const mo = {
2574
2574
  V.value = [...m, ...R];
2575
2575
  }
2576
2576
  };
2577
- return J(i, (m, b) => {
2577
+ return ee(i, (m, b) => {
2578
2578
  m !== b && m !== void 0 && b !== void 0 && fe(() => {
2579
2579
  p();
2580
2580
  });
@@ -2589,7 +2589,7 @@ const mo = {
2589
2589
  ref: r,
2590
2590
  class: H($.value)
2591
2591
  }, [
2592
- ee(m.$slots, "default", {}, void 0, !0),
2592
+ J(m.$slots, "default", {}, void 0, !0),
2593
2593
  j(ll, {
2594
2594
  size: m.size,
2595
2595
  columns: C(n),
@@ -2635,7 +2635,7 @@ const mo = {
2635
2635
  colspan: C(n).length,
2636
2636
  class: "table-empty__cell"
2637
2637
  }, [
2638
- ee(m.$slots, "empty", {}, void 0, !0)
2638
+ J(m.$slots, "empty", {}, void 0, !0)
2639
2639
  ], 8, ya)
2640
2640
  ])
2641
2641
  ]))
@@ -2657,7 +2657,7 @@ const mo = {
2657
2657
  ref: r,
2658
2658
  class: H($.value)
2659
2659
  }, [
2660
- ee(m.$slots, "default", {}, void 0, !0),
2660
+ J(m.$slots, "default", {}, void 0, !0),
2661
2661
  j(ll, {
2662
2662
  size: m.size,
2663
2663
  columns: C(n),
@@ -2703,7 +2703,7 @@ const mo = {
2703
2703
  colspan: C(n).length,
2704
2704
  class: "table-empty__cell"
2705
2705
  }, [
2706
- ee(m.$slots, "empty", {}, void 0, !0)
2706
+ J(m.$slots, "empty", {}, void 0, !0)
2707
2707
  ], 8, Sa)
2708
2708
  ])
2709
2709
  ])),
@@ -2748,7 +2748,7 @@ const mo = {
2748
2748
  bodySlot: n.body ? n.body : null,
2749
2749
  footerSlot: n.footer ? n.footer : null
2750
2750
  }));
2751
- return J(
2751
+ return ee(
2752
2752
  l,
2753
2753
  () => {
2754
2754
  u && u(a.value);
@@ -2933,7 +2933,7 @@ const mo = {
2933
2933
  const B = _.target, Y = i.value, G = r.value.contains(B), Z = Y && Y.contains(B);
2934
2934
  !G && !Z && (o.value = !1);
2935
2935
  }
2936
- return J(() => t.modelValue, (_) => {
2936
+ return ee(() => t.modelValue, (_) => {
2937
2937
  if (!t.multiple && _)
2938
2938
  if (typeof _ == "object")
2939
2939
  a.value = N(_);
@@ -2942,11 +2942,11 @@ const mo = {
2942
2942
  a.value = B ? N(B) : String(_);
2943
2943
  }
2944
2944
  else !t.multiple && !_ && (a.value = "");
2945
- }, { immediate: !0 }), J(o, (_) => {
2945
+ }, { immediate: !0 }), ee(o, (_) => {
2946
2946
  _ && E();
2947
- }), J(() => t.options, (_) => {
2947
+ }), ee(() => t.options, (_) => {
2948
2948
  _ && _.length > 0 && a.value.length >= t.minQueryLength && (o.value = !0), o.value && E();
2949
- }), J(() => t.loading, (_) => {
2949
+ }), ee(() => t.loading, (_) => {
2950
2950
  _ && a.value.length >= t.minQueryLength && (o.value = !0), o.value && E();
2951
2951
  }), me(() => {
2952
2952
  document.addEventListener("click", X), window.addEventListener("resize", E), window.addEventListener("scroll", E);
@@ -3120,7 +3120,7 @@ const mo = {
3120
3120
  ]), s = T(() => e.type === "password" ? u.value ? "text" : "password" : e.type), r = () => {
3121
3121
  n.value = "", t("clear");
3122
3122
  };
3123
- return J(
3123
+ return ee(
3124
3124
  () => e.required,
3125
3125
  () => {
3126
3126
  console.log(e.required);
@@ -3463,9 +3463,9 @@ function ja(e, l) {
3463
3463
  function I() {
3464
3464
  s.value = !1, o && !$(a.value) ? (a.value = "", e.value = "") : Ye(e) || S();
3465
3465
  }
3466
- return S(), J(() => Ye(e), (y, d) => {
3466
+ return S(), ee(() => Ye(e), (y, d) => {
3467
3467
  y !== d && S();
3468
- }, { immediate: !0 }), J(s, (y, d) => {
3468
+ }, { immediate: !0 }), ee(s, (y, d) => {
3469
3469
  y !== d && S();
3470
3470
  }), {
3471
3471
  displayValue: a,
@@ -3541,7 +3541,7 @@ const mi = /* @__PURE__ */ W({
3541
3541
  }, [
3542
3542
  (f(), U(Pe(t.icon), { class: "icon-field__icon" })),
3543
3543
  w("div", Ua, [
3544
- ee(t.$slots, "default")
3544
+ J(t.$slots, "default")
3545
3545
  ])
3546
3546
  ], 2));
3547
3547
  }
@@ -3564,7 +3564,7 @@ const mi = /* @__PURE__ */ W({
3564
3564
  const t = ie(e, "modelValue"), n = l, o = M(
3565
3565
  e.formatter ? e.formatter(t.value) : t.value
3566
3566
  );
3567
- J(t, (i) => {
3567
+ ee(t, (i) => {
3568
3568
  o.value = e.formatter ? e.formatter(i) : i;
3569
3569
  });
3570
3570
  const u = (i) => {
@@ -3716,11 +3716,16 @@ const mi = /* @__PURE__ */ W({
3716
3716
  ]),
3717
3717
  key: typeof s == "object" ? s[u.optionValue] : s,
3718
3718
  onClick: (r) => o(s)
3719
- }, q(typeof s == "object" ? s[u.optionLabel] : s), 11, Ga))), 128))
3719
+ }, [
3720
+ u.$slots.option ? D("", !0) : (f(), g(se, { key: 0 }, [
3721
+ ve(q(typeof s == "object" ? s[u.optionLabel] : s), 1)
3722
+ ], 64)),
3723
+ J(u.$slots, "option", { option: s }, void 0, !0)
3724
+ ], 10, Ga))), 128))
3720
3725
  ])
3721
3726
  ], 2));
3722
3727
  }
3723
- }), yi = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-db7c45d9"]]), es = { class: "switch-wrapper" }, ts = ["id", "disabled"], ls = ["for"], bi = /* @__PURE__ */ W({
3728
+ }), yi = /* @__PURE__ */ ue(Ja, [["__scopeId", "data-v-4c6d8d7b"]]), es = { class: "switch-wrapper" }, ts = ["id", "disabled"], ls = ["for"], bi = /* @__PURE__ */ W({
3724
3729
  __name: "Switch",
3725
3730
  props: /* @__PURE__ */ ae({
3726
3731
  label: {},
@@ -3873,7 +3878,7 @@ const mi = /* @__PURE__ */ W({
3873
3878
  };
3874
3879
  me(() => {
3875
3880
  a();
3876
- }), J(() => [e.rows, e.maxHeight], () => {
3881
+ }), ee(() => [e.rows, e.maxHeight], () => {
3877
3882
  a();
3878
3883
  });
3879
3884
  const s = T(() => [
@@ -4263,7 +4268,7 @@ const $s = {
4263
4268
  return t.value === "time" ? "time" : t.value || "day";
4264
4269
  }
4265
4270
  const p = T(() => ["day", "month", "year", "date", "datetime"].includes(t.value || "day")), h = T(() => ["time", "datetime"].includes(t.value || "day")), { calendarCells: k, activeDateInfo: $, goToPreviousPage: S, goToNextPage: L, setCurrentDate: V } = ks(c, n, s, u, a, o);
4266
- J([i, s], () => {
4271
+ ee([i, s], () => {
4267
4272
  t.value === "datetime" && s.value && i.value ? typeof s.value == "string" && (s.value = `${s.value} ${i.value}`) : t.value === "time" && (s.value = i.value);
4268
4273
  });
4269
4274
  const P = T({
@@ -4632,7 +4637,7 @@ const Ds = /* @__PURE__ */ W({
4632
4637
  const m = d.target;
4633
4638
  !r.value.contains(m) && !c.value.contains(m) && (v.value = !1, h && (h(), h = null));
4634
4639
  };
4635
- return J(
4640
+ return ee(
4636
4641
  s,
4637
4642
  (d) => {
4638
4643
  k.value = d;
@@ -4642,7 +4647,7 @@ const Ds = /* @__PURE__ */ W({
4642
4647
  document.addEventListener("mousedown", y);
4643
4648
  }), Ve(() => {
4644
4649
  document.removeEventListener("mousedown", y), h && (h(), h = null);
4645
- }), J(v, (d) => {
4650
+ }), ee(v, (d) => {
4646
4651
  !d && h && (h(), h = null);
4647
4652
  }), (d, m) => (f(), g("div", {
4648
4653
  class: "date-picker",
@@ -4726,7 +4731,7 @@ const Ds = /* @__PURE__ */ W({
4726
4731
  emits: /* @__PURE__ */ ae(["change", "complete", "focus", "blur"], ["update:modelValue"]),
4727
4732
  setup(e, { expose: l, emit: t }) {
4728
4733
  const n = e, o = t, u = ie(e, "modelValue"), a = M([]), s = M([]), r = T(() => n.length);
4729
- J(
4734
+ ee(
4730
4735
  () => u.value,
4731
4736
  ($) => {
4732
4737
  s.value = $.split("").concat(
@@ -4734,7 +4739,7 @@ const Ds = /* @__PURE__ */ W({
4734
4739
  );
4735
4740
  },
4736
4741
  { immediate: !0 }
4737
- ), J(
4742
+ ), ee(
4738
4743
  s,
4739
4744
  ($) => {
4740
4745
  const S = $.join("").slice(0, r.value);
@@ -4988,7 +4993,7 @@ const Vi = {
4988
4993
  (f(), U(Pe(n[l.type])))
4989
4994
  ]),
4990
4995
  w("p", Qs, [
4991
- o.$slots.default ? ee(o.$slots, "default", { key: 0 }, void 0, !0) : (f(), g(se, { key: 1 }, [
4996
+ o.$slots.default ? J(o.$slots, "default", { key: 0 }, void 0, !0) : (f(), g(se, { key: 1 }, [
4992
4997
  ve(q(l.message), 1)
4993
4998
  ], 64))
4994
4999
  ])
@@ -5046,7 +5051,7 @@ const Vi = {
5046
5051
  class: "overlay-badge__badge",
5047
5052
  style: ne(l.value)
5048
5053
  }, null, 8, ["value", "variant", "style"])) : D("", !0),
5049
- ee(t.$slots, "default")
5054
+ J(t.$slots, "default")
5050
5055
  ], 2));
5051
5056
  }
5052
5057
  }), Pi = /* @__PURE__ */ W({
@@ -5136,7 +5141,7 @@ const Vi = {
5136
5141
  }, s = (r) => {
5137
5142
  r.key === "Escape" && (ce.value = null);
5138
5143
  };
5139
- return J(ce, (r) => {
5144
+ return ee(ce, (r) => {
5140
5145
  r?.blockScroll ? l() : t();
5141
5146
  }, { immediate: !0, deep: !0 }), me(() => {
5142
5147
  document.addEventListener("keydown", s);
@@ -5287,7 +5292,7 @@ const Vi = {
5287
5292
  }, p = () => {
5288
5293
  de.value?.target && s();
5289
5294
  };
5290
- return J(de, async (h) => {
5295
+ return ee(de, async (h) => {
5291
5296
  h?.target && (await fe(), s());
5292
5297
  }, { immediate: !0 }), me(() => {
5293
5298
  document.addEventListener("keydown", c), window.addEventListener("scroll", v, !0), window.addEventListener("resize", p);
@@ -5374,7 +5379,7 @@ const Vi = {
5374
5379
  }, v = () => {
5375
5380
  u.value = !1, r("close");
5376
5381
  };
5377
- return J(u, () => {
5382
+ return ee(u, () => {
5378
5383
  u.value ? n() : o();
5379
5384
  }), Ve(() => {
5380
5385
  o();
@@ -5408,7 +5413,7 @@ const Vi = {
5408
5413
  ]),
5409
5414
  w("div", fr, [
5410
5415
  w("div", vr, [
5411
- ee(p.$slots, "mobile-header")
5416
+ J(p.$slots, "mobile-header")
5412
5417
  ]),
5413
5418
  w("div", mr, [
5414
5419
  w("button", {
@@ -5418,7 +5423,7 @@ const Vi = {
5418
5423
  ])
5419
5424
  ])
5420
5425
  ]),
5421
- ee(p.$slots, "default")
5426
+ J(p.$slots, "default")
5422
5427
  ], 6)
5423
5428
  ], 6)) : D("", !0)
5424
5429
  ]),
@@ -5444,7 +5449,7 @@ const Vi = {
5444
5449
  const { zIndex: l } = Fe("modal"), t = M(e.title), n = ie(e, "open"), o = ul(), { unlockScroll: u, lockScroll: a } = st(), s = T(() => ["modal", `modal--${e.position}`]), r = (i) => {
5445
5450
  t.value = i;
5446
5451
  };
5447
- return J(
5452
+ return ee(
5448
5453
  n,
5449
5454
  () => {
5450
5455
  n.value ? a() : u();
@@ -5467,7 +5472,7 @@ const Vi = {
5467
5472
  style: ne(i.style)
5468
5473
  }, [
5469
5474
  w("div", pr, [
5470
- ee(i.$slots, "header"),
5475
+ J(i.$slots, "header"),
5471
5476
  t.value && !o.header ? (f(), g("h2", gr, q(t.value), 1)) : D("", !0),
5472
5477
  w("button", {
5473
5478
  text: "",
@@ -5478,7 +5483,7 @@ const Vi = {
5478
5483
  ])
5479
5484
  ]),
5480
5485
  w("div", hr, [
5481
- ee(i.$slots, "default", { setTitle: r })
5486
+ J(i.$slots, "default", { setTitle: r })
5482
5487
  ])
5483
5488
  ], 4)
5484
5489
  ], 6)) : D("", !0)
@@ -5539,7 +5544,7 @@ const Vi = {
5539
5544
  }, I = () => {
5540
5545
  n.value && (n.value.removeEventListener("touchstart", $), n.value.removeEventListener("touchmove", S));
5541
5546
  };
5542
- return J(l, async (y) => {
5547
+ return ee(l, async (y) => {
5543
5548
  y ? (h(), await fe(), n.value && (i.value = n.value.offsetHeight, A())) : (p(), I(), u.value = 0);
5544
5549
  }), me(() => {
5545
5550
  l.value && n.value && (i.value = n.value.offsetHeight, A());
@@ -5579,7 +5584,7 @@ const Vi = {
5579
5584
  ref_key: "bodyRef",
5580
5585
  ref: o
5581
5586
  }, [
5582
- ee(y.$slots, "default")
5587
+ J(y.$slots, "default")
5583
5588
  ], 512)
5584
5589
  ], 36)) : D("", !0)
5585
5590
  ]),
@@ -5602,21 +5607,21 @@ const Vi = {
5602
5607
  const l = T(() => e.styleView), t = M(
5603
5608
  Array.isArray(e.value) ? e.value : e.value !== void 0 ? [e.value] : []
5604
5609
  );
5605
- J(() => e.value, (o) => {
5610
+ ee(() => e.value, (o) => {
5606
5611
  Array.isArray(o) ? t.value = o : o !== void 0 ? t.value = [o] : t.value = [];
5607
5612
  });
5608
5613
  function n(o) {
5609
5614
  e.multiple ? t.value.includes(o) ? t.value = t.value.filter((u) => u !== o) : t.value.push(o) : t.value = t.value[0] === o ? [] : [o];
5610
5615
  }
5611
5616
  return $e("accordionOpenValues", t), $e("accordionToggle", n), $e("accordionIsMultiple", e.multiple ?? !1), $e("accordionStyle", l), (o, u) => (f(), g("div", yr, [
5612
- ee(o.$slots, "default")
5617
+ J(o.$slots, "default")
5613
5618
  ]));
5614
5619
  }
5615
5620
  }), Hi = /* @__PURE__ */ W({
5616
5621
  __name: "AccordionContent",
5617
5622
  setup(e) {
5618
5623
  const l = ye("panelIsOpen"), t = M(null), n = M("0px"), o = M(l.value);
5619
- return J(l, async (u) => {
5624
+ return ee(l, async (u) => {
5620
5625
  u ? (o.value = !0, await fe(), n.value = t.value?.scrollHeight + "px") : (n.value = t.value?.scrollHeight + "px", await fe(), n.value = "0px", setTimeout(() => o.value = !1, 300));
5621
5626
  }), me(() => {
5622
5627
  l.value && t.value && (n.value = t.value.scrollHeight + "px");
@@ -5634,7 +5639,7 @@ const Vi = {
5634
5639
  ref: t,
5635
5640
  class: "accordion-content"
5636
5641
  }, [
5637
- ee(u.$slots, "default")
5642
+ J(u.$slots, "default")
5638
5643
  ], 512), [
5639
5644
  [dl, o.value]
5640
5645
  ])
@@ -5650,7 +5655,7 @@ const Vi = {
5650
5655
  (...a) => C(t) && C(t)(...a))
5651
5656
  }, [
5652
5657
  w("span", br, [
5653
- ee(o.$slots, "default")
5658
+ J(o.$slots, "default")
5654
5659
  ]),
5655
5660
  w("span", wr, [
5656
5661
  j(C(ml))
@@ -5667,7 +5672,7 @@ const Vi = {
5667
5672
  return $e("panelValue", l.value), $e("panelIsOpen", u), $e("panelToggle", () => n?.(l.value)), (a, s) => (f(), g("div", {
5668
5673
  class: H(["accordion-panel", `accordion-panel--${C(o)}`])
5669
5674
  }, [
5670
- ee(a.$slots, "default")
5675
+ J(a.$slots, "default")
5671
5676
  ], 2));
5672
5677
  }
5673
5678
  }), kr = {
@@ -5690,7 +5695,7 @@ const Vi = {
5690
5695
  class: H(l.value)
5691
5696
  }, [
5692
5697
  n.$slots.default ? (f(), g("div", kr, [
5693
- ee(n.$slots, "default")
5698
+ J(n.$slots, "default")
5694
5699
  ])) : D("", !0)
5695
5700
  ], 2));
5696
5701
  }
@@ -5771,7 +5776,7 @@ const Vi = {
5771
5776
  role: "tab",
5772
5777
  "aria-selected": o.value
5773
5778
  }, [
5774
- ee(u.$slots, "default")
5779
+ J(u.$slots, "default")
5775
5780
  ], 10, Pr));
5776
5781
  }
5777
5782
  }), Rr = { class: "tabs" }, Yi = /* @__PURE__ */ W({
@@ -5782,14 +5787,14 @@ const Vi = {
5782
5787
  emits: ["update:value"],
5783
5788
  setup(e, { emit: l }) {
5784
5789
  const t = e, n = l, o = M(t.value);
5785
- J(() => t.value, (a) => {
5790
+ ee(() => t.value, (a) => {
5786
5791
  o.value = a;
5787
5792
  });
5788
5793
  function u(a) {
5789
5794
  o.value = a, n("update:value", a);
5790
5795
  }
5791
5796
  return $e("tabsValue", o), $e("setTabsValue", u), (a, s) => (f(), g("div", Rr, [
5792
- ee(a.$slots, "default")
5797
+ J(a.$slots, "default")
5793
5798
  ]));
5794
5799
  }
5795
5800
  }), Mr = {
@@ -5803,7 +5808,7 @@ const Vi = {
5803
5808
  setup(e) {
5804
5809
  const l = e, t = ye("tabsValue"), n = T(() => t?.value === l.value);
5805
5810
  return (o, u) => be((f(), g("div", Mr, [
5806
- ee(o.$slots, "default")
5811
+ J(o.$slots, "default")
5807
5812
  ], 512)), [
5808
5813
  [dl, n.value]
5809
5814
  ]);
@@ -5816,7 +5821,7 @@ const Vi = {
5816
5821
  setup(e) {
5817
5822
  return (l, t) => (f(), g("div", Ar, [
5818
5823
  w("div", Dr, [
5819
- ee(l.$slots, "default")
5824
+ J(l.$slots, "default")
5820
5825
  ])
5821
5826
  ]));
5822
5827
  }
@@ -5824,7 +5829,7 @@ const Vi = {
5824
5829
  __name: "TabPanels",
5825
5830
  setup(e) {
5826
5831
  return (l, t) => (f(), g("div", Or, [
5827
- ee(l.$slots, "default")
5832
+ J(l.$slots, "default")
5828
5833
  ]));
5829
5834
  }
5830
5835
  }), Br = /* @__PURE__ */ W({
@@ -6008,9 +6013,9 @@ const Vi = {
6008
6013
  const m = y.contains(I), b = d && d.contains(I);
6009
6014
  !m && !b && (o.value = !1);
6010
6015
  }
6011
- return J(() => t.modelValue, (A) => {
6016
+ return ee(() => t.modelValue, (A) => {
6012
6017
  A ? (r.from = A.from || "", r.to = A.to || "") : (r.from = "", r.to = "");
6013
- }, { deep: !0 }), J(o, (A) => {
6018
+ }, { deep: !0 }), ee(o, (A) => {
6014
6019
  A && V();
6015
6020
  }), me(() => {
6016
6021
  document.addEventListener("click", P, !0), window.addEventListener("resize", V), window.addEventListener("scroll", V);
@@ -6026,7 +6031,7 @@ const Vi = {
6026
6031
  onClick: h
6027
6032
  }, [
6028
6033
  w("div", Lr, [
6029
- v.value ? ee(A.$slots, "input", {
6034
+ v.value ? J(A.$slots, "input", {
6030
6035
  key: 0,
6031
6036
  value: v.value
6032
6037
  }, () => [
@@ -6060,7 +6065,7 @@ const Vi = {
6060
6065
  }, ["stop"]))
6061
6066
  }, [
6062
6067
  w("div", Kr, [
6063
- ee(A.$slots, "content", {
6068
+ J(A.$slots, "content", {
6064
6069
  close: k,
6065
6070
  updateTime: S,
6066
6071
  timeRange: r
@@ -6187,7 +6192,7 @@ const Vi = {
6187
6192
  const y = I.target, d = a.value, m = u.value.contains(y), b = d && d.contains(y);
6188
6193
  !m && !b && (o.value = !1);
6189
6194
  }
6190
- return J(o, (I) => {
6195
+ return ee(o, (I) => {
6191
6196
  I && P();
6192
6197
  }), me(() => {
6193
6198
  document.addEventListener("click", A), window.addEventListener("resize", P), window.addEventListener("scroll", P);
@@ -6207,7 +6212,7 @@ const Vi = {
6207
6212
  onClick: k
6208
6213
  }, [
6209
6214
  w("div", Ur, [
6210
- p.value ? ee(I.$slots, "input", {
6215
+ p.value ? J(I.$slots, "input", {
6211
6216
  key: 0,
6212
6217
  value: p.value
6213
6218
  }, () => [
@@ -6241,7 +6246,7 @@ const Vi = {
6241
6246
  }, ["stop"]))
6242
6247
  }, [
6243
6248
  w("div", Xr, [
6244
- ee(I.$slots, "content", {
6249
+ J(I.$slots, "content", {
6245
6250
  close: $,
6246
6251
  days: i.value,
6247
6252
  toggleDay: S,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.158",
4
+ "version": "1.8.159",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",