prlg-ui 1.8.353 → 1.8.355

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,5 +1,5 @@
1
1
  import * as hr from "vue";
2
- import { onMounted as ne, nextTick as ie, getCurrentInstance as Ze, hasInjectionContext as Zr, inject as El, watch as le, getCurrentScope as Xr, onScopeDispose as Vl, shallowRef as He, computed as q, toValue as qe, watchEffect as ke, unref as r, h as it, provide as Jr, Fragment as ge, customRef as Qr, readonly as Ml, effectScope as eo, onBeforeUnmount as to, isRef as mt, reactive as ta, toRefs as ye, ref as O, onUpdated as ns, toHandlerKey as ss, camelize as ao, toRef as aa, onUnmounted as Te, defineComponent as g, Comment as lo, mergeProps as B, cloneVNode as ro, createBlock as y, openBlock as p, withCtx as m, renderSlot as b, createVNode as F, createCommentVNode as H, withKeys as Oe, normalizeStyle as Pe, Teleport as sa, normalizeProps as z, guardReactiveProps as W, withModifiers as be, createElementVNode as K, toDisplayString as oe, createTextVNode as de, markRaw as is, createElementBlock as R, renderList as Ie, watchPostEffect as oo, mergeDefaults as no, watchSyncEffect as us, withMemo as ds, triggerRef as _r, useSlots as so, resolveDynamicComponent as Ue, toHandlers as La, onBeforeMount as cs, normalizeClass as De, useCssVars as Xe, resolveComponent as io, resolveDirective as Fl, withDirectives as St, useModel as Ke, Transition as _l, mergeModels as Ve, useId as ia, vModelRadio as ps, vModelText as Nl, vModelDynamic as fs, useTemplateRef as Ll, createApp as vs } from "vue";
2
+ import { onMounted as ne, nextTick as ie, getCurrentInstance as Ze, hasInjectionContext as Zr, inject as El, watch as le, getCurrentScope as Xr, onScopeDispose as Vl, shallowRef as He, computed as q, toValue as qe, watchEffect as ke, unref as r, h as it, provide as Jr, Fragment as ge, customRef as Qr, readonly as Ml, effectScope as eo, onBeforeUnmount as to, isRef as mt, reactive as ta, toRefs as ye, ref as O, onUpdated as ns, toHandlerKey as ss, camelize as ao, toRef as aa, onUnmounted as Te, defineComponent as g, Comment as lo, mergeProps as B, cloneVNode as ro, createBlock as y, openBlock as p, withCtx as m, renderSlot as b, createVNode as F, createCommentVNode as H, withKeys as Oe, normalizeStyle as Pe, Teleport as sa, normalizeProps as z, guardReactiveProps as W, withModifiers as be, createElementVNode as K, toDisplayString as oe, createTextVNode as de, markRaw as is, createElementBlock as R, renderList as Ie, watchPostEffect as oo, mergeDefaults as no, watchSyncEffect as us, withMemo as ds, triggerRef as _r, useSlots as so, resolveDynamicComponent as Ue, toHandlers as La, onBeforeMount as cs, normalizeClass as De, useCssVars as at, resolveComponent as io, resolveDirective as Fl, withDirectives as St, useModel as Ke, Transition as _l, mergeModels as Ve, useId as ia, vModelRadio as ps, vModelText as Nl, vModelDynamic as fs, useTemplateRef as Ll, createApp as vs } from "vue";
3
3
  import { d as dt, l as ms, r as ys, i as gs, a as hs, b as _s, c as bs, e as Cs, f as ws, g as Ss, h as uo } from "../parseFileSize.util-CaHpLGi2.js";
4
4
  import { C as co, I as qs, A as ua, a as da, S as Ds, d as Ps, c as zl, Q as Bs, W as bl, M as ks, P as xs, E as $s, B as Os, b as Is } from "../QuestionIcon-C4O35j-7.js";
5
5
  import { _ as N, C as $t, F as Ts, E as As, W as Rs, P as Es, a as po } from "../FileIcon-maHE2Nhr.js";
@@ -875,7 +875,7 @@ function ya(e) {
875
875
  function la(e) {
876
876
  return $o(e) || ya(e);
877
877
  }
878
- function at(e) {
878
+ function tt(e) {
879
879
  if (e instanceof Date) {
880
880
  const a = e.getFullYear(), t = e.getMonth() + 1;
881
881
  return new Date(a, t, 0).getDate();
@@ -987,7 +987,7 @@ function Dl(e, a) {
987
987
  return t;
988
988
  }
989
989
  function dl(e) {
990
- const { dateObj: a, weekStartsOn: t, fixedWeeks: l, locale: o } = e, n = at(a), s = Array.from({ length: n }, (w, D) => a.set({ day: D + 1 })), i = Xs(a), u = br(a), c = au(i, t, o), d = lu(u, t, o), f = Dl(c.subtract({ days: 1 }), i), v = Dl(u, d.add({ days: 1 })), _ = f.length + s.length + v.length;
990
+ const { dateObj: a, weekStartsOn: t, fixedWeeks: l, locale: o } = e, n = tt(a), s = Array.from({ length: n }, (w, D) => a.set({ day: D + 1 })), i = Xs(a), u = br(a), c = au(i, t, o), d = lu(u, t, o), f = Dl(c.subtract({ days: 1 }), i), v = Dl(u, d.add({ days: 1 })), _ = f.length + s.length + v.length;
991
991
  if (l && _ < 42) {
992
992
  const w = 42 - _;
993
993
  let D = v[v.length - 1];
@@ -2331,7 +2331,7 @@ function ed(e, a, t = !0) {
2331
2331
  }
2332
2332
  };
2333
2333
  }
2334
- const et = ta({
2334
+ const Qe = ta({
2335
2335
  layersRoot: /* @__PURE__ */ new Set(),
2336
2336
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2337
2337
  branches: /* @__PURE__ */ new Set()
@@ -2361,26 +2361,26 @@ var td = /* @__PURE__ */ g({
2361
2361
  "dismiss"
2362
2362
  ],
2363
2363
  setup(e, { emit: a }) {
2364
- const t = e, l = a, { forwardRef: o, currentElement: n } = A(), s = q(() => n.value?.ownerDocument ?? globalThis.document), i = q(() => et.layersRoot), u = q(() => n.value ? Array.from(i.value).indexOf(n.value) : -1), c = q(() => et.layersWithOutsidePointerEventsDisabled.size > 0), d = q(() => {
2365
- const h = Array.from(i.value), [C] = [...et.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(C);
2364
+ const t = e, l = a, { forwardRef: o, currentElement: n } = A(), s = q(() => n.value?.ownerDocument ?? globalThis.document), i = q(() => Qe.layersRoot), u = q(() => n.value ? Array.from(i.value).indexOf(n.value) : -1), c = q(() => Qe.layersWithOutsidePointerEventsDisabled.size > 0), d = q(() => {
2365
+ const h = Array.from(i.value), [C] = [...Qe.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(C);
2366
2366
  return u.value >= w;
2367
2367
  }), f = Qu(async (h) => {
2368
- const C = [...et.branches].some((w) => w?.contains(h.target));
2368
+ const C = [...Qe.branches].some((w) => w?.contains(h.target));
2369
2369
  !d.value || C || (l("pointerDownOutside", h), l("interactOutside", h), await ie(), h.defaultPrevented || l("dismiss"));
2370
2370
  }, n), v = ed((h) => {
2371
- [...et.branches].some((w) => w?.contains(h.target)) || (l("focusOutside", h), l("interactOutside", h), h.defaultPrevented || l("dismiss"));
2371
+ [...Qe.branches].some((w) => w?.contains(h.target)) || (l("focusOutside", h), l("interactOutside", h), h.defaultPrevented || l("dismiss"));
2372
2372
  }, n);
2373
2373
  Gl("Escape", (h) => {
2374
2374
  u.value === i.value.size - 1 && (l("escapeKeyDown", h), h.defaultPrevented || l("dismiss"));
2375
2375
  });
2376
2376
  let _;
2377
2377
  return ke((h) => {
2378
- n.value && (t.disableOutsidePointerEvents && (et.layersWithOutsidePointerEventsDisabled.size === 0 && (_ = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), et.layersWithOutsidePointerEventsDisabled.add(n.value)), i.value.add(n.value), h(() => {
2379
- t.disableOutsidePointerEvents && et.layersWithOutsidePointerEventsDisabled.size === 1 && (s.value.body.style.pointerEvents = _);
2378
+ n.value && (t.disableOutsidePointerEvents && (Qe.layersWithOutsidePointerEventsDisabled.size === 0 && (_ = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), Qe.layersWithOutsidePointerEventsDisabled.add(n.value)), i.value.add(n.value), h(() => {
2379
+ t.disableOutsidePointerEvents && Qe.layersWithOutsidePointerEventsDisabled.size === 1 && (s.value.body.style.pointerEvents = _);
2380
2380
  }));
2381
2381
  }), ke((h) => {
2382
2382
  h(() => {
2383
- n.value && (i.value.delete(n.value), et.layersWithOutsidePointerEventsDisabled.delete(n.value));
2383
+ n.value && (i.value.delete(n.value), Qe.layersWithOutsidePointerEventsDisabled.delete(n.value));
2384
2384
  });
2385
2385
  }), (h, C) => (p(), y(r(E), {
2386
2386
  ref: r(o),
@@ -2418,9 +2418,9 @@ var td = /* @__PURE__ */ g({
2418
2418
  setup(e) {
2419
2419
  const a = e, { forwardRef: t, currentElement: l } = A();
2420
2420
  return ne(() => {
2421
- et.branches.add(l.value);
2421
+ Qe.branches.add(l.value);
2422
2422
  }), Te(() => {
2423
- et.branches.delete(l.value);
2423
+ Qe.branches.delete(l.value);
2424
2424
  }), (o, n) => (p(), y(r(E), B({ ref: r(t) }, a), {
2425
2425
  default: m(() => [b(o.$slots, "default")]),
2426
2426
  _: 3
@@ -3947,7 +3947,7 @@ function Pt(e) {
3947
3947
  };
3948
3948
  }
3949
3949
  function pc(e) {
3950
- const { segmentValues: a, placeholder: t } = e, l = a.day === null, o = a.day ? t.set({ day: a.day }) : t, n = o.day, s = 1, i = at(o), u = l ? "Empty" : `${n}`;
3950
+ const { segmentValues: a, placeholder: t } = e, l = a.day === null, o = a.day ? t.set({ day: a.day }) : t, n = o.day, s = 1, i = tt(o), u = l ? "Empty" : `${n}`;
3951
3951
  return {
3952
3952
  ...Pt(e),
3953
3953
  "aria-label": "day,",
@@ -4203,7 +4203,7 @@ function or(e) {
4203
4203
  return;
4204
4204
  }
4205
4205
  if (xt(S.key)) {
4206
- const $ = Number.parseInt(S.key), I = e.segmentValues.value.month, T = I ? at(e.placeholder.value.set({ month: I })) : 31, { value: V, moveToNext: x } = n(T, $, P);
4206
+ const $ = Number.parseInt(S.key), I = e.segmentValues.value.month, T = I ? tt(e.placeholder.value.set({ month: I })) : 31, { value: V, moveToNext: x } = n(T, $, P);
4207
4207
  e.segmentValues.value.day = V, x && e.focusNext();
4208
4208
  }
4209
4209
  S.key === a.BACKSPACE && (e.hasLeftFocus.value = !1, e.segmentValues.value.day = l(P));
@@ -4364,11 +4364,11 @@ function Sc(e) {
4364
4364
  }
4365
4365
  function qc(e, a) {
4366
4366
  const t = a(e), l = t.compare(e), o = {};
4367
- return l >= 7 && (o.day = 1), l >= at(e) && (o.month = 1), t.set({ ...o });
4367
+ return l >= 7 && (o.day = 1), l >= tt(e) && (o.month = 1), t.set({ ...o });
4368
4368
  }
4369
4369
  function Dc(e, a) {
4370
4370
  const t = a(e), l = e.compare(t), o = {};
4371
- return l >= 7 && (o.day = 35), l >= at(e) && (o.month = 13), t.set({ ...o });
4371
+ return l >= 7 && (o.day = 35), l >= tt(e) && (o.month = 13), t.set({ ...o });
4372
4372
  }
4373
4373
  function Pc(e, a) {
4374
4374
  return a(e);
@@ -4438,7 +4438,7 @@ function Uo(e) {
4438
4438
  const S = {};
4439
4439
  if (!C) {
4440
4440
  const P = k[0].value.compare(w);
4441
- P >= at(w) && (S.day = 1), P >= 365 && (S.month = 1);
4441
+ P >= tt(w) && (S.day = 1), P >= 365 && (S.month = 1);
4442
4442
  }
4443
4443
  e.placeholder.value = k[0].value.set({ ...S });
4444
4444
  }, v = (C) => {
@@ -4465,7 +4465,7 @@ function Uo(e) {
4465
4465
  const S = {};
4466
4466
  if (!C) {
4467
4467
  const P = w.compare(k[0].value);
4468
- P >= at(w) && (S.day = 1), P >= 365 && (S.month = 1);
4468
+ P >= tt(w) && (S.day = 1), P >= 365 && (S.month = 1);
4469
4469
  }
4470
4470
  e.placeholder.value = k[0].value.set({ ...S });
4471
4471
  };
@@ -4902,7 +4902,7 @@ var Rc = /* @__PURE__ */ g({
4902
4902
  const X = Nt(S);
4903
4903
  if (!X.length) return;
4904
4904
  if (!l.pagedNavigation.value && l.numberOfMonths.value > 1) {
4905
- const ae = at(l.placeholder.value) - Math.abs(G);
4905
+ const ae = tt(l.placeholder.value) - Math.abs(G);
4906
4906
  X[ae].hasAttribute("data-disabled") && I(X[ae], V);
4907
4907
  const fe = X[ae].getAttribute("data-value");
4908
4908
  X[ae].focus(), l.onPlaceholderChange(nt(fe, l.placeholder.value));
@@ -4921,7 +4921,7 @@ var Rc = /* @__PURE__ */ g({
4921
4921
  const X = Nt(S);
4922
4922
  if (!X.length) return;
4923
4923
  if (!l.pagedNavigation.value && l.numberOfMonths.value > 1) {
4924
- const te = at(l.placeholder.value.add({ months: l.numberOfMonths.value - 1 })), ae = G - x.length + (X.length - te);
4924
+ const te = tt(l.placeholder.value.add({ months: l.numberOfMonths.value - 1 })), ae = G - x.length + (X.length - te);
4925
4925
  X[ae].hasAttribute("data-disabled") && I(X[ae], V);
4926
4926
  const fe = X[ae].getAttribute("data-value");
4927
4927
  l.onPlaceholderChange(nt(fe, l.placeholder.value)), X[ae].focus();
@@ -12019,18 +12019,18 @@ var Cm = /* @__PURE__ */ g({
12019
12019
  fixedDate: x,
12020
12020
  maximumDays: M
12021
12021
  });
12022
- le(re, (he, Je) => {
12023
- (!Je?.start && he?.start || !he || !he.start || me.value && !Le(he.start, me.value)) && (me.value = he?.start?.copy?.()), (!Je?.end && he.end || !he || !he.end || ce.value && !Le(he.end, ce.value)) && (ce.value = he?.end?.copy?.());
12022
+ le(re, (he, Xe) => {
12023
+ (!Xe?.start && he?.start || !he || !he.start || me.value && !Le(he.start, me.value)) && (me.value = he?.start?.copy?.()), (!Xe?.end && he.end || !he || !he.end || ce.value && !Le(he.end, ce.value)) && (ce.value = he?.end?.copy?.());
12024
12024
  }), le(me, (he) => {
12025
12025
  he && !Le(he, Se.value) && Z(he), l("update:startValue", he);
12026
- }), le([me, ce], ([he, Je]) => {
12026
+ }), le([me, ce], ([he, Xe]) => {
12027
12027
  const Zt = re.value;
12028
- Zt && Zt.start && Zt.end && he && Je && Le(Zt.start, he) && Le(Zt.end, Je) || (fe.value = !0, Je && he ? (ze(Je, he) ? re.value = {
12029
- start: Je.copy(),
12028
+ Zt && Zt.start && Zt.end && he && Xe && Le(Zt.start, he) && Le(Zt.end, Xe) || (fe.value = !0, Xe && he ? (ze(Xe, he) ? re.value = {
12029
+ start: Xe.copy(),
12030
12030
  end: he.copy()
12031
12031
  } : re.value = {
12032
12032
  start: he.copy(),
12033
- end: Je.copy()
12033
+ end: Xe.copy()
12034
12034
  }, fe.value = !1, ee.value = {
12035
12035
  start: re.value.start?.copy(),
12036
12036
  end: re.value.end?.copy()
@@ -12038,7 +12038,7 @@ var Cm = /* @__PURE__ */ g({
12038
12038
  start: he.copy(),
12039
12039
  end: void 0
12040
12040
  } : re.value = {
12041
- start: Je?.copy(),
12041
+ start: Xe?.copy(),
12042
12042
  end: void 0
12043
12043
  });
12044
12044
  });
@@ -12093,7 +12093,7 @@ var Cm = /* @__PURE__ */ g({
12093
12093
  maxValue: D
12094
12094
  }), ne(() => {
12095
12095
  s.value && Wa(X.value);
12096
- }), (he, Je) => (p(), y(r(E), {
12096
+ }), (he, Xe) => (p(), y(r(E), {
12097
12097
  ref_key: "primitiveElement",
12098
12098
  ref: G,
12099
12099
  as: he.as,
@@ -12321,7 +12321,7 @@ var Cm = /* @__PURE__ */ g({
12321
12321
  const ee = Nt(M);
12322
12322
  if (!ee.length) return;
12323
12323
  if (!t.pagedNavigation.value && t.numberOfMonths.value > 1) {
12324
- const Se = at(t.placeholder.value) - Math.abs(re);
12324
+ const Se = tt(t.placeholder.value) - Math.abs(re);
12325
12325
  ee[Se].hasAttribute("data-disabled") && j(ee[Se], te);
12326
12326
  const Z = ee[Se].getAttribute("data-value");
12327
12327
  t.onPlaceholderChange(nt(Z, t.placeholder.value)), ee[Se].focus();
@@ -12340,7 +12340,7 @@ var Cm = /* @__PURE__ */ g({
12340
12340
  const ee = Nt(M);
12341
12341
  if (!ee.length) return;
12342
12342
  if (!t.pagedNavigation.value && t.numberOfMonths.value > 1) {
12343
- const ce = at(t.placeholder.value.add({ months: t.numberOfMonths.value - 1 })), Se = re - ae.length + (ee.length - ce);
12343
+ const ce = tt(t.placeholder.value.add({ months: t.numberOfMonths.value - 1 })), Se = re - ae.length + (ee.length - ce);
12344
12344
  ee[Se].hasAttribute("data-disabled") && j(ee[Se], te);
12345
12345
  const Z = ee[Se].getAttribute("data-value");
12346
12346
  t.onPlaceholderChange(nt(Z, t.placeholder.value)), ee[Se].focus();
@@ -15140,7 +15140,7 @@ const Hg = [
15140
15140
  "Enter",
15141
15141
  "ArrowUp",
15142
15142
  "ArrowDown"
15143
- ], Wg = [" ", "Enter"], tt = 10;
15143
+ ], Wg = [" ", "Enter"], et = 10;
15144
15144
  function oa(e, a, t) {
15145
15145
  return e === void 0 ? !1 : Array.isArray(e) ? e.some((l) => Il(l, a, t)) : Il(e, a, t);
15146
15146
  }
@@ -15328,7 +15328,7 @@ var Ug = /* @__PURE__ */ g({
15328
15328
  collisionPadding: {
15329
15329
  type: [Number, Object],
15330
15330
  required: !1,
15331
- default: tt
15331
+ default: et
15332
15332
  },
15333
15333
  arrowPadding: {
15334
15334
  type: Number,
@@ -15645,13 +15645,13 @@ var th = /* @__PURE__ */ g({
15645
15645
  if (n.triggerElement.value && n.valueElement.value && c.value && f.value && v?.value && _?.value && h?.value) {
15646
15646
  const S = n.triggerElement.value.getBoundingClientRect(), P = f.value.getBoundingClientRect(), $ = n.valueElement.value.getBoundingClientRect(), I = h.value.getBoundingClientRect();
15647
15647
  if (n.dir.value !== "rtl") {
15648
- const Q = I.left - P.left, se = $.left - Q, pe = S.left - se, we = S.width + pe, Ne = Math.max(we, P.width), _e = window.innerWidth - tt, Re = wl(se, tt, Math.max(tt, _e - Ne));
15648
+ const Q = I.left - P.left, se = $.left - Q, pe = S.left - se, we = S.width + pe, Ne = Math.max(we, P.width), _e = window.innerWidth - et, Re = wl(se, et, Math.max(et, _e - Ne));
15649
15649
  c.value.style.minWidth = `${we}px`, c.value.style.left = `${Re}px`;
15650
15650
  } else {
15651
- const Q = P.right - I.right, se = window.innerWidth - $.right - Q, pe = window.innerWidth - S.right - se, we = S.width + pe, Ne = Math.max(we, P.width), _e = window.innerWidth - tt, Re = wl(se, tt, Math.max(tt, _e - Ne));
15651
+ const Q = P.right - I.right, se = window.innerWidth - $.right - Q, pe = window.innerWidth - S.right - se, we = S.width + pe, Ne = Math.max(we, P.width), _e = window.innerWidth - et, Re = wl(se, et, Math.max(et, _e - Ne));
15652
15652
  c.value.style.minWidth = `${we}px`, c.value.style.right = `${Re}px`;
15653
15653
  }
15654
- const T = o().map((Q) => Q.ref), V = window.innerHeight - tt * 2, x = v.value.scrollHeight, M = window.getComputedStyle(f.value), G = Number.parseInt(M.borderTopWidth, 10), X = Number.parseInt(M.paddingTop, 10), j = Number.parseInt(M.borderBottomWidth, 10), Y = Number.parseInt(M.paddingBottom, 10), te = G + X + x + Y + j, ae = Math.min(_.value.offsetHeight * 5, te), fe = window.getComputedStyle(v.value), re = Number.parseInt(fe.paddingTop, 10), ee = Number.parseInt(fe.paddingBottom, 10), U = S.top + S.height / 2 - tt, me = V - U, ce = _.value.offsetHeight / 2, Se = _.value.offsetTop + ce, Z = G + X + Se, J = te - Z;
15654
+ const T = o().map((Q) => Q.ref), V = window.innerHeight - et * 2, x = v.value.scrollHeight, M = window.getComputedStyle(f.value), G = Number.parseInt(M.borderTopWidth, 10), X = Number.parseInt(M.paddingTop, 10), j = Number.parseInt(M.borderBottomWidth, 10), Y = Number.parseInt(M.paddingBottom, 10), te = G + X + x + Y + j, ae = Math.min(_.value.offsetHeight * 5, te), fe = window.getComputedStyle(v.value), re = Number.parseInt(fe.paddingTop, 10), ee = Number.parseInt(fe.paddingBottom, 10), U = S.top + S.height / 2 - et, me = V - U, ce = _.value.offsetHeight / 2, Se = _.value.offsetTop + ce, Z = G + X + Se, J = te - Z;
15655
15655
  if (Z <= U) {
15656
15656
  const Q = _.value === T[T.length - 1];
15657
15657
  c.value.style.bottom = "0px";
@@ -15663,7 +15663,7 @@ var th = /* @__PURE__ */ g({
15663
15663
  const pe = Math.max(U, G + v.value.offsetTop + (Q ? re : 0) + ce) + J;
15664
15664
  c.value.style.height = `${pe}px`, v.value.scrollTop = Z - U + v.value.offsetTop;
15665
15665
  }
15666
- c.value.style.margin = `${tt}px 0`, c.value.style.minHeight = `${ae}px`, c.value.style.maxHeight = `${V}px`, l("placed"), requestAnimationFrame(() => i.value = !0);
15666
+ c.value.style.margin = `${et}px 0`, c.value.style.minHeight = `${ae}px`, c.value.style.maxHeight = `${V}px`, l("placed"), requestAnimationFrame(() => i.value = !0);
15667
15667
  }
15668
15668
  }
15669
15669
  const D = O("");
@@ -16382,7 +16382,7 @@ var fh = /* @__PURE__ */ g({
16382
16382
  if (v?.value && _?.value) {
16383
16383
  const h = Math.abs(u.value - f.scrollTop);
16384
16384
  if (h > 0) {
16385
- const C = window.innerHeight - tt * 2, w = Number.parseFloat(_.value.style.minHeight), D = Number.parseFloat(_.value.style.height), k = Math.max(w, D);
16385
+ const C = window.innerHeight - et * 2, w = Number.parseFloat(_.value.style.minHeight), D = Number.parseFloat(_.value.style.height), k = Math.max(w, D);
16386
16386
  if (k < C) {
16387
16387
  const S = k + h, P = Math.min(C, S), $ = S - P;
16388
16388
  _.value.style.height = `${P}px`, _.value.style.bottom === "0px" && (f.scrollTop = $ > 0 ? $ : 0, _.value.style.justifyContent = "flex-end");
@@ -18856,7 +18856,7 @@ const pq = /* @__PURE__ */ g({
18856
18856
  as: {}
18857
18857
  },
18858
18858
  setup(e) {
18859
- Xe((l) => ({
18859
+ at((l) => ({
18860
18860
  "08f0815e": t.value
18861
18861
  }));
18862
18862
  const a = e, t = q(() => `${a.width}px`);
@@ -19245,7 +19245,7 @@ const pq = /* @__PURE__ */ g({
19245
19245
  as: {}
19246
19246
  },
19247
19247
  setup(e) {
19248
- Xe((n) => ({
19248
+ at((n) => ({
19249
19249
  "29c76a77": o.value
19250
19250
  }));
19251
19251
  const t = L(e), l = It(), o = q(() => `span ${l.numberOfMonths.value}`);
@@ -20111,7 +20111,7 @@ const pq = /* @__PURE__ */ g({
20111
20111
  let _ = "";
20112
20112
  for (const h of f.getHeaderGroups()[0].headers)
20113
20113
  h.column.columnDef.meta?.autoSize ? _ += "1fr " : _ += `${h.column.getSize()}px `;
20114
- return console.log(_), _;
20114
+ return _;
20115
20115
  });
20116
20116
  return (_, h) => {
20117
20117
  const C = Fl("loading");
@@ -20159,7 +20159,7 @@ const pq = /* @__PURE__ */ g({
20159
20159
  ]);
20160
20160
  };
20161
20161
  }
20162
- }), jq = /* @__PURE__ */ N(wC, [["__scopeId", "data-v-857cc6ee"]]), SC = /* @__PURE__ */ g({
20162
+ }), jq = /* @__PURE__ */ N(wC, [["__scopeId", "data-v-a96ca4ab"]]), SC = /* @__PURE__ */ g({
20163
20163
  __name: "DatePickerCellTrigger",
20164
20164
  props: {
20165
20165
  day: {},
@@ -20403,7 +20403,7 @@ const pq = /* @__PURE__ */ g({
20403
20403
  size: { default: "default" }
20404
20404
  },
20405
20405
  setup(e) {
20406
- Xe((n) => ({
20406
+ at((n) => ({
20407
20407
  "8c59ddec": o.value
20408
20408
  }));
20409
20409
  const a = e, t = L(a), l = Xa(), o = q(() => `${a.width}px`);
@@ -20500,7 +20500,7 @@ const pq = /* @__PURE__ */ g({
20500
20500
  closable: { type: Boolean, default: !1 }
20501
20501
  },
20502
20502
  setup(e) {
20503
- Xe((i) => ({
20503
+ at((i) => ({
20504
20504
  "5c920836": o.value
20505
20505
  }));
20506
20506
  const a = e, t = L(a), l = Ja(), o = q(() => `${a.width}px`), n = q(() => {
@@ -20870,7 +20870,7 @@ const pq = /* @__PURE__ */ g({
20870
20870
  },
20871
20871
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
20872
20872
  setup(e, { emit: a }) {
20873
- Xe((u) => ({
20873
+ at((u) => ({
20874
20874
  "02da5f06": i.value
20875
20875
  }));
20876
20876
  const t = e, o = Ce(t, a), n = rt(), s = q(() => t.title && t.title.text ? "h2" : "div"), i = q(() => `${t.width}px`);
@@ -20937,17 +20937,17 @@ const pq = /* @__PURE__ */ g({
20937
20937
  size: { default: 1 }
20938
20938
  },
20939
20939
  setup(e) {
20940
- Xe((l) => ({
20941
- "1478a853": t.value
20940
+ const a = q(() => ["divider", `divider--${e.layouts}`, `divider--${e.type}`, `divider--${e.align}`]), t = q(() => ({
20941
+ "--sizePx": `${e.size}px`
20942
20942
  }));
20943
- const a = q(() => ["divider", `divider--${e.layouts}`, `divider--${e.type}`, `divider--${e.align}`]), t = q(() => `${e.size}px`);
20944
20943
  return (l, o) => (p(), R("div", {
20945
- class: De(a.value)
20944
+ class: De(a.value),
20945
+ style: Pe(t.value)
20946
20946
  }, [
20947
20947
  l.$slots.default ? (p(), R("div", ew, [
20948
20948
  b(l.$slots, "default")
20949
20949
  ])) : H("", !0)
20950
- ], 2));
20950
+ ], 6));
20951
20951
  }
20952
20952
  }), tw = /* @__PURE__ */ g({
20953
20953
  __name: "DropdownMenuContent",
@@ -20977,7 +20977,7 @@ const pq = /* @__PURE__ */ g({
20977
20977
  },
20978
20978
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
20979
20979
  setup(e, { emit: a }) {
20980
- Xe((s) => ({
20980
+ at((s) => ({
20981
20981
  "2c558c52": n.value
20982
20982
  }));
20983
20983
  const t = e, o = Ce(t, a), n = q(() => `${t.width}px`);
@@ -21037,7 +21037,7 @@ const pq = /* @__PURE__ */ g({
21037
21037
  },
21038
21038
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
21039
21039
  setup(e, { emit: a }) {
21040
- Xe((s) => ({
21040
+ at((s) => ({
21041
21041
  "303c4c80": n.value
21042
21042
  }));
21043
21043
  const t = e, o = Ce(t, a), n = q(() => `${t.width}px`);
@@ -21119,7 +21119,7 @@ const pq = /* @__PURE__ */ g({
21119
21119
  },
21120
21120
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
21121
21121
  setup(e, { emit: a }) {
21122
- Xe((s) => ({
21122
+ at((s) => ({
21123
21123
  "0acf498c": n.value
21124
21124
  }));
21125
21125
  const t = e, o = Ce(t, a), n = q(() => `${t.width}px`);
@@ -21790,7 +21790,7 @@ const $w = { class: "input__wrapper" }, Ow = ["id", "placeholder", "name", "disa
21790
21790
  },
21791
21791
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
21792
21792
  setup(e, { emit: a }) {
21793
- Xe((s) => ({
21793
+ at((s) => ({
21794
21794
  "6ceffeb6": n.value
21795
21795
  }));
21796
21796
  const t = e, o = Ce(t, a), n = q(() => `${t.width}px`);
@@ -22342,27 +22342,27 @@ function Ur(e) {
22342
22342
  }, D0);
22343
22343
  hl.set(e, a);
22344
22344
  }
22345
- const Qe = O({
22345
+ const Je = O({
22346
22346
  toasts: []
22347
22347
  });
22348
22348
  function ea(e) {
22349
22349
  switch (console.log(e), e.type) {
22350
22350
  case vt.ADD_TOAST:
22351
- Qe.value.toasts = [e.toast, ...Qe.value.toasts].slice(
22351
+ Je.value.toasts = [e.toast, ...Je.value.toasts].slice(
22352
22352
  0,
22353
22353
  q0
22354
22354
  );
22355
22355
  break;
22356
22356
  case vt.UPDATE_TOAST:
22357
- Qe.value.toasts = Qe.value.toasts.map(
22357
+ Je.value.toasts = Je.value.toasts.map(
22358
22358
  (a) => a.id === e.toast.id ? { ...a, ...e.toast } : a
22359
22359
  );
22360
22360
  break;
22361
22361
  case vt.DISMISS_TOAST: {
22362
22362
  const { toastId: a } = e;
22363
- a ? Ur(a) : Qe.value.toasts.forEach((t) => {
22363
+ a ? Ur(a) : Je.value.toasts.forEach((t) => {
22364
22364
  Ur(t.id);
22365
- }), Qe.value.toasts = Qe.value.toasts.map(
22365
+ }), Je.value.toasts = Je.value.toasts.map(
22366
22366
  (t) => t.id === a || a === void 0 ? {
22367
22367
  ...t,
22368
22368
  open: !1
@@ -22371,7 +22371,7 @@ function ea(e) {
22371
22371
  break;
22372
22372
  }
22373
22373
  case vt.REMOVE_TOAST:
22374
- e.toastId === void 0 ? Qe.value.toasts = [] : Qe.value.toasts = Qe.value.toasts.filter(
22374
+ e.toastId === void 0 ? Je.value.toasts = [] : Je.value.toasts = Je.value.toasts.filter(
22375
22375
  (a) => a.id !== e.toastId
22376
22376
  );
22377
22377
  break;
@@ -22379,7 +22379,7 @@ function ea(e) {
22379
22379
  }
22380
22380
  function B0() {
22381
22381
  return {
22382
- toasts: q(() => Qe.value.toasts),
22382
+ toasts: q(() => Je.value.toasts),
22383
22383
  toast: k0,
22384
22384
  dismiss: (e) => ea({ type: vt.DISMISS_TOAST, toastId: e })
22385
22385
  };
@@ -22660,7 +22660,7 @@ const lD = /* @__PURE__ */ g({
22660
22660
  as: {}
22661
22661
  },
22662
22662
  setup(e, { expose: a }) {
22663
- Xe((u) => ({
22663
+ at((u) => ({
22664
22664
  "079784ec": o.value
22665
22665
  }));
22666
22666
  const t = e, l = L(t), o = q(() => typeof t.maxHeight == "string" ? t.maxHeight : `${t.maxHeight}px`), n = Ll("scrollArea");
@@ -22862,7 +22862,7 @@ const lD = /* @__PURE__ */ g({
22862
22862
  size: { default: 48 }
22863
22863
  },
22864
22864
  setup(e) {
22865
- Xe((t) => ({
22865
+ at((t) => ({
22866
22866
  "4fd14812": a.value
22867
22867
  }));
22868
22868
  const a = q(() => `${e.size}px`);
@@ -1,3 +1,5 @@
1
+ @use "sass:map";
2
+
1
3
  /**
2
4
  * Миксин для подключения шрифтов
3
5
  * @param {string} $font-family - Название семейства шрифтов
@@ -17,40 +19,22 @@
17
19
  */
18
20
 
19
21
  @mixin font-face($font-family, $weights) {
22
+ $weight-names: (
23
+ 100: "Thin",
24
+ 200: "ExtraLight",
25
+ 300: "Light",
26
+ 400: "Regular",
27
+ 500: "Medium",
28
+ 600: "SemiBold",
29
+ 700: "Bold",
30
+ 800: "ExtraBold",
31
+ 900: "Black",
32
+ );
33
+
20
34
  @each $weight in $weights {
21
- $weight-name: if(
22
- $weight == 100,
23
- "Thin",
24
- if(
25
- $weight == 200,
26
- "ExtraLight",
27
- if(
28
- $weight == 300,
29
- "Light",
30
- if(
31
- $weight == 400,
32
- "Regular",
33
- if(
34
- $weight == 500,
35
- "Medium",
36
- if(
37
- $weight == 600,
38
- "SemiBold",
39
- if(
40
- $weight == 700,
41
- "Bold",
42
- if(
43
- $weight == 800,
44
- "ExtraBold",
45
- if($weight == 900, "Black", $weight)
46
- )
47
- )
48
- )
49
- )
50
- )
51
- )
52
- )
53
- );
35
+ // Используем новый синтаксис map.get()
36
+ $weight-name: map.get($weight-names, $weight);
37
+
54
38
  @font-face {
55
39
  font-family: "#{$font-family}";
56
40
  font-weight: #{$weight};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.353",
4
+ "version": "1.8.355",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",
Binary file