redmine-ui-kit 1.3.17 → 1.3.18

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 Oe, openBlock as m, createElementBlock as w, normalizeStyle as st, createElementVNode as E, useSlots as Er, computed as H, normalizeClass as pe, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as q, withDirectives as Ue, vShow as bt, unref as c, isRef as lt, vModelCheckbox as Zi, createCommentVNode as $, ref as W, onMounted as et, nextTick as Mt, withKeys as ce, withModifiers as Ye, vModelText as Bo, createBlock as ye, Teleport as wo, createVNode as Ce, Transition as Je, withCtx as ne, watchEffect as Gi, watch as ft, renderList as Ae, reactive as Gt, toRef as oa, onUnmounted as Oo, mergeProps as Be, createSlots as Ze, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as ln, onBeforeUpdate as Ji, getCurrentScope as eu, onScopeDispose as tu } from "vue";
1
+ import { defineComponent as Oe, openBlock as m, createElementBlock as w, normalizeStyle as mt, createElementVNode as E, useSlots as Er, computed as H, normalizeClass as pe, Fragment as ve, createTextVNode as Ge, toDisplayString as me, renderSlot as q, withDirectives as Ue, vShow as bt, unref as c, isRef as lt, vModelCheckbox as Zi, createCommentVNode as $, ref as W, onMounted as et, nextTick as Mt, withKeys as ce, withModifiers as Ye, vModelText as Bo, createBlock as ye, Teleport as wo, createVNode as Ce, Transition as Je, withCtx as ne, watchEffect as Gi, watch as ct, renderList as Ae, reactive as Gt, toRef as oa, onUnmounted as Oo, mergeProps as Be, createSlots as Ze, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as ln, onBeforeUpdate as Ji, getCurrentScope as eu, onScopeDispose as tu } from "vue";
2
2
  const nu = /* @__PURE__ */ E("span", null, null, -1), ru = [
3
3
  nu
4
4
  ], M0 = /* @__PURE__ */ Oe({
@@ -10,7 +10,7 @@ const nu = /* @__PURE__ */ E("span", null, null, -1), ru = [
10
10
  setup(e) {
11
11
  return (t, n) => (m(), w("div", {
12
12
  class: "rm-skeleton",
13
- style: st({
13
+ style: mt({
14
14
  backgroundColor: e.color,
15
15
  minHeight: `${e.minHeight}px`
16
16
  })
@@ -72,7 +72,7 @@ const iu = { class: "rm-progress" }, uu = { class: "rm-progress-line" }, su = /*
72
72
  E("div", uu, [
73
73
  E("div", {
74
74
  class: "rm-progress-line__done",
75
- style: st(`max-width:${c(n)}%`)
75
+ style: mt(`max-width:${c(n)}%`)
76
76
  }, null, 4),
77
77
  su
78
78
  ])
@@ -561,7 +561,7 @@ const Lu = (e, t = 150) => {
561
561
  }), O = H(() => o.value ? n.options.filter(({ name: M }) => M.toLowerCase().includes(o.value.toLowerCase())) : n.options);
562
562
  Gi(() => {
563
563
  n.selectedOptions && (a.value = n.selectedOptions);
564
- }), ft(() => n.closable, (M) => r.value = !M), ft(r, (M) => {
564
+ }), ct(() => n.closable, (M) => r.value = !M), ct(r, (M) => {
565
565
  M && (F(), t("close"));
566
566
  }), et(() => {
567
567
  var M, V;
@@ -603,7 +603,7 @@ const Lu = (e, t = 150) => {
603
603
  E("div", Xu, [
604
604
  E("div", {
605
605
  class: "rm-select-container",
606
- style: st({
606
+ style: mt({
607
607
  display: e.useChips ? "flex" : "block"
608
608
  }),
609
609
  onClick: V[2] || (V[2] = Ye((R) => r.value = !0, ["self"]))
@@ -749,7 +749,7 @@ const ys = /* @__PURE__ */ is(us, [["render", ps]]), ms = {
749
749
  emits: ["change"],
750
750
  setup(e, { emit: t }) {
751
751
  const n = e, r = W(!1), a = W(n.value);
752
- ft(() => n.value, (f) => a.value = f);
752
+ ct(() => n.value, (f) => a.value = f);
753
753
  function o() {
754
754
  t("change", a.value), y();
755
755
  }
@@ -975,7 +975,7 @@ function gt(e, t) {
975
975
  var n = ie(e), r = oe(t);
976
976
  return isNaN(r) ? new Date(NaN) : (r && n.setDate(n.getDate() + r), n);
977
977
  }
978
- function ct(e, t) {
978
+ function st(e, t) {
979
979
  J(2, arguments);
980
980
  var n = ie(e), r = oe(t);
981
981
  if (isNaN(r))
@@ -997,7 +997,7 @@ function sn(e) {
997
997
  function gi(e, t) {
998
998
  if (J(2, arguments), !t || sn(t) !== "object")
999
999
  return new Date(NaN);
1000
- var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = ie(e), O = r || n ? ct(y, r + n * 12) : y, f = o || a ? gt(O, o + a * 7) : O, s = u + l * 60, _ = d + s * 60, C = _ * 1e3, S = new Date(f.getTime() + C);
1000
+ var n = t.years ? oe(t.years) : 0, r = t.months ? oe(t.months) : 0, a = t.weeks ? oe(t.weeks) : 0, o = t.days ? oe(t.days) : 0, l = t.hours ? oe(t.hours) : 0, u = t.minutes ? oe(t.minutes) : 0, d = t.seconds ? oe(t.seconds) : 0, y = ie(e), O = r || n ? st(y, r + n * 12) : y, f = o || a ? gt(O, o + a * 7) : O, s = u + l * 60, _ = d + s * 60, C = _ * 1e3, S = new Date(f.getTime() + C);
1001
1001
  return S;
1002
1002
  }
1003
1003
  function As(e, t) {
@@ -1057,7 +1057,7 @@ function Us(e, t) {
1057
1057
  function wi(e, t) {
1058
1058
  J(2, arguments);
1059
1059
  var n = oe(t);
1060
- return ct(e, n * 12);
1060
+ return st(e, n * 12);
1061
1061
  }
1062
1062
  var $o = 6e4, ko = 36e5, Ls = 1e3;
1063
1063
  function cn(e) {
@@ -2345,7 +2345,7 @@ function qc(e) {
2345
2345
  var t = ie(e), n = t.getFullYear(), r = t.getMonth(), a = new Date(0);
2346
2346
  return a.setFullYear(n, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
2347
2347
  }
2348
- function yt(e) {
2348
+ function pt(e) {
2349
2349
  J(1, arguments);
2350
2350
  var t = ie(e), n = t.getHours();
2351
2351
  return n;
@@ -2356,7 +2356,7 @@ function Xc(e) {
2356
2356
  var t = ie(e), n = Xn(t).getTime() - Bs(t).getTime();
2357
2357
  return Math.round(n / Kc) + 1;
2358
2358
  }
2359
- function mt(e) {
2359
+ function yt(e) {
2360
2360
  J(1, arguments);
2361
2361
  var t = ie(e), n = t.getMinutes();
2362
2362
  return n;
@@ -6628,7 +6628,7 @@ function St(e, t) {
6628
6628
  function Et(e, t) {
6629
6629
  J(2, arguments);
6630
6630
  var n = oe(t);
6631
- return ct(e, -n);
6631
+ return st(e, -n);
6632
6632
  }
6633
6633
  function qn(e) {
6634
6634
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? qn = function(n) {
@@ -6777,13 +6777,13 @@ const Wi = /* @__PURE__ */ Ct(gv, [["render", kv]]), ni = (e, t) => {
6777
6777
  e.getUTCSeconds()
6778
6778
  );
6779
6779
  return new Date(n).toISOString();
6780
- }, dt = (e) => {
6780
+ }, ft = (e) => {
6781
6781
  let t = I(JSON.parse(JSON.stringify(e)));
6782
6782
  return t = Ui(t, 0), t = Li(t, 0), t = Vi(t, 0), t = Co(t, 0), t;
6783
6783
  }, at = (e, t, n, r) => {
6784
6784
  let a = e ? I(e) : I();
6785
6785
  return (t || t === 0) && (a = Ui(a, +t)), (n || n === 0) && (a = Li(a, +n)), (r || r === 0) && (a = Vi(a, +r)), Co(a, 0);
6786
- }, We = (e, t) => !e || !t ? !1 : Do(dt(e), dt(t)), Se = (e, t) => !e || !t ? !1 : Mi(dt(e), dt(t)), Xe = (e, t) => !e || !t ? !1 : To(dt(e), dt(t)), ji = (e, t, n) => e && e[0] && e[1] ? Xe(n, e[0]) && We(n, e[1]) : e && e[0] && t ? Xe(n, e[0]) && We(n, t) || We(n, e[0]) && Xe(n, t) : !1, zt = Gt({
6786
+ }, We = (e, t) => !e || !t ? !1 : Do(ft(e), ft(t)), Se = (e, t) => !e || !t ? !1 : Mi(ft(e), ft(t)), Xe = (e, t) => !e || !t ? !1 : To(ft(e), ft(t)), ji = (e, t, n) => e && e[0] && e[1] ? Xe(n, e[0]) && We(n, e[1]) : e && e[0] && t ? Xe(n, e[0]) && We(n, t) || We(n, e[0]) && Xe(n, t) : !1, zt = Gt({
6787
6787
  menuFocused: !1,
6788
6788
  shiftKeyInMenu: !1
6789
6789
  }), zi = () => {
@@ -7296,8 +7296,8 @@ const Gv = (e, t = 3) => {
7296
7296
  return !(v || T || D || U || b || h || G);
7297
7297
  }, f = (i) => {
7298
7298
  const v = {
7299
- hours: yt(I()),
7300
- minutes: mt(I()),
7299
+ hours: pt(I()),
7300
+ minutes: yt(I()),
7301
7301
  seconds: Yt(I())
7302
7302
  };
7303
7303
  return Object.assign(v, i);
@@ -7307,7 +7307,7 @@ const Gv = (e, t = 3) => {
7307
7307
  }, M = (i, v) => Array.isArray(v) ? v.some((T) => Se(u(I(T)), u(i))) : v(i), V = (i, v, T) => {
7308
7308
  let D = i ? I(i) : I();
7309
7309
  return (v || v === 0) && (D = Qt(D, v)), T && (D = St(D, T)), D;
7310
- }, R = (i) => qe(I(), { hours: yt(i), minutes: mt(i), seconds: Yt(i) }), j = (i) => qe(I(), {
7310
+ }, R = (i) => qe(I(), { hours: pt(i), minutes: yt(i), seconds: Yt(i) }), j = (i) => qe(I(), {
7311
7311
  hours: +i.hours || 0,
7312
7312
  minutes: +i.minutes || 0,
7313
7313
  seconds: +i.seconds || 0
@@ -7347,7 +7347,7 @@ const Gv = (e, t = 3) => {
7347
7347
  const T = [], D = I(u(new Date(v, i))), U = I(u(new Date(v, i + 1, 0))), h = la(D, { weekStartsOn: e.weekStart }), G = (fe) => {
7348
7348
  const b = L(fe, i);
7349
7349
  if (T.push({ days: b }), !T[T.length - 1].days.some(
7350
- (B) => Se(dt(B.value), dt(U))
7350
+ (B) => Se(ft(B.value), ft(U))
7351
7351
  )) {
7352
7352
  const B = gt(fe, 7);
7353
7353
  G(B);
@@ -7474,12 +7474,12 @@ const Gv = (e, t = 3) => {
7474
7474
  !e.readonly && !e.disabled && t("update:internal-model-value", p);
7475
7475
  }
7476
7476
  }), _ = W([]);
7477
- ft(s, () => {
7477
+ ct(s, () => {
7478
7478
  e.multiCalendars || te();
7479
7479
  });
7480
7480
  const C = W([{ month: Te(I()), year: De(I()) }]), S = Gt({
7481
- hours: e.range ? [yt(I()), yt(I())] : yt(I()),
7482
- minutes: e.range ? [mt(I()), mt(I())] : mt(I()),
7481
+ hours: e.range ? [pt(I()), pt(I())] : pt(I()),
7482
+ minutes: e.range ? [yt(I()), yt(I())] : yt(I()),
7483
7483
  seconds: e.range ? [0, 0] : 0
7484
7484
  }), F = H(
7485
7485
  () => (p) => C.value[p] ? C.value[p].month : 0
@@ -7512,14 +7512,14 @@ const Gv = (e, t = 3) => {
7512
7512
  C.value[ee] = { month: Te($e), year: De($e) };
7513
7513
  }
7514
7514
  }, P = (p) => {
7515
- k(p), j("hours", yt(p)), j("minutes", mt(p)), j("seconds", Yt(p));
7515
+ k(p), j("hours", pt(p)), j("minutes", yt(p)), j("seconds", Yt(p));
7516
7516
  }, N = (p, A) => {
7517
7517
  k(p[0], A);
7518
7518
  const ee = (re, $e) => [
7519
7519
  re(p[0]),
7520
7520
  p[1] ? re(p[1]) : S[$e][1]
7521
7521
  ];
7522
- j("hours", ee(yt, "hours")), j("minutes", ee(mt, "minutes")), j("seconds", ee(Yt, "seconds"));
7522
+ j("hours", ee(pt, "hours")), j("minutes", ee(yt, "minutes")), j("seconds", ee(Yt, "seconds"));
7523
7523
  }, K = (p, A) => {
7524
7524
  if ((e.range || e.weekPicker) && !e.multiDates)
7525
7525
  return N(p, A);
@@ -7553,12 +7553,12 @@ const Gv = (e, t = 3) => {
7553
7553
  }, z = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null, i = () => {
7554
7554
  if (Array.isArray(s.value) && s.value.length === 2) {
7555
7555
  const p = I(
7556
- I(s.value[1] ? s.value[1] : ct(s.value[0], 1))
7556
+ I(s.value[1] ? s.value[1] : st(s.value[0], 1))
7557
7557
  ), [A, ee] = [Te(s.value[0]), De(s.value[0])], [re, $e] = [Te(s.value[1]), De(s.value[1])];
7558
7558
  (A !== re || A === re && ee !== $e) && e.multiCalendarsSolo && R(1, Te(p), De(p));
7559
7559
  }
7560
7560
  }, v = (p) => {
7561
- const A = ct(p, 1);
7561
+ const A = st(p, 1);
7562
7562
  return { month: Te(A), year: De(A) };
7563
7563
  }, T = (p) => {
7564
7564
  const A = Te(I(p)), ee = De(I(p));
@@ -7629,7 +7629,7 @@ const Gv = (e, t = 3) => {
7629
7629
  return he(p);
7630
7630
  Tt(S.hours) && Tt(S.minutes) && !e.multiDates && (de(p, A), be());
7631
7631
  }
7632
- }, pt = (p) => {
7632
+ }, dt = (p) => {
7633
7633
  const A = p.find((ee) => ee.current);
7634
7634
  return A ? Xc(A.value) : "";
7635
7635
  }, Lt = (p) => {
@@ -7638,7 +7638,7 @@ const Gv = (e, t = 3) => {
7638
7638
  R(A, Te(ee), De(ee));
7639
7639
  }
7640
7640
  for (let A = p + 1; A <= f.value.multiCalendars - 1; A++) {
7641
- const ee = ct(qe(I(), { month: F.value(A - 1), year: M.value(A - 1) }), 1);
7641
+ const ee = st(qe(I(), { month: F.value(A - 1), year: M.value(A - 1) }), 1);
7642
7642
  R(A, Te(ee), De(ee));
7643
7643
  }
7644
7644
  }, kt = (p) => y(I(), F.value(p), M.value(p)), Vt = (p) => at(p, S.hours, S.minutes, Y()), Ur = (p, A) => {
@@ -7660,7 +7660,7 @@ const Gv = (e, t = 3) => {
7660
7660
  }
7661
7661
  n();
7662
7662
  }, en = (p, A) => {
7663
- const ee = qe(I(), { month: F.value(A), year: M.value(A) }), re = p < 0 ? ct(ee, 1) : Et(ee, 1);
7663
+ const ee = qe(I(), { month: F.value(A), year: M.value(A) }), re = p < 0 ? st(ee, 1) : Et(ee, 1);
7664
7664
  O(Te(re), De(re), p < 0, e.preventMinMaxNavigation) && (R(A, Te(re), De(re)), f.value.multiCalendars && !e.multiCalendarsSolo && Lt(A), t("update-month-year", { instance: A, month: Te(re), year: De(re) }), r());
7665
7665
  }, Ht = (p) => {
7666
7666
  pi(p) && pi(s.value) && Tt(S.hours) && Tt(S.minutes) ? (p[0] && s.value[0] && (s.value[0] = at(p[0], S.hours[0], S.minutes[0], Y())), p[1] && s.value[1] && (s.value[1] = at(p[1], S.hours[1], S.minutes[1], Y(!1)))) : e.multiDates && Array.isArray(s.value) ? s.value[s.value.length - 1] = Vt(p) : !e.range && !yi(p) && (s.value = Vt(p)), t("time-update");
@@ -7696,7 +7696,7 @@ const Gv = (e, t = 3) => {
7696
7696
  monthYearSelect: Lr,
7697
7697
  isDisabled: l,
7698
7698
  updateTime: Vr,
7699
- getWeekNum: pt,
7699
+ getWeekNum: dt,
7700
7700
  selectDate: Ut,
7701
7701
  updateMonthYear: Ur,
7702
7702
  handleScroll: Hr,
@@ -7722,14 +7722,14 @@ const Gv = (e, t = 3) => {
7722
7722
  setDateMonthOrYear: f,
7723
7723
  defaults: s
7724
7724
  } = rt(t), _ = W("");
7725
- ft(r, () => {
7725
+ ct(r, () => {
7726
7726
  e("internal-model-change", r.value);
7727
7727
  });
7728
7728
  const C = (h) => {
7729
7729
  const G = h || I();
7730
7730
  return {
7731
- hours: yt(G),
7732
- minutes: mt(G),
7731
+ hours: pt(G),
7732
+ minutes: yt(G),
7733
7733
  seconds: t.enableSeconds ? Yt(G) : 0
7734
7734
  };
7735
7735
  }, S = (h) => ({ month: Te(h), year: De(h) }), F = (h) => Array.isArray(h) ? d(() => [
@@ -7801,20 +7801,20 @@ const Gv = (e, t = 3) => {
7801
7801
  }, dh = (e, t) => {
7802
7802
  const { validateMonthYearInRange: n, validateMaxDate: r, validateMinDate: a, defaults: o } = rt(e), l = (f, s) => {
7803
7803
  let _ = f;
7804
- return o.value.filters.months.includes(Te(_)) ? (_ = s ? ct(f, 1) : Et(f, 1), l(_, s)) : _;
7804
+ return o.value.filters.months.includes(Te(_)) ? (_ = s ? st(f, 1) : Et(f, 1), l(_, s)) : _;
7805
7805
  }, u = (f, s) => {
7806
7806
  let _ = f;
7807
7807
  return o.value.filters.years.includes(De(_)) ? (_ = s ? wi(f, 1) : Bm(f, 1), u(_, s)) : _;
7808
7808
  }, d = (f) => {
7809
7809
  const s = qe(new Date(), { month: e.month, year: e.year });
7810
- let _ = f ? ct(s, 1) : Et(s, 1), C = Te(_), S = De(_);
7810
+ let _ = f ? st(s, 1) : Et(s, 1), C = Te(_), S = De(_);
7811
7811
  o.value.filters.months.includes(C) && (_ = l(_, f), C = Te(_), S = De(_)), o.value.filters.years.includes(S) && (_ = u(_, f), S = De(_)), n(C, S, f, e.preventMinMaxNavigation) && y(C, S);
7812
7812
  }, y = (f, s) => {
7813
7813
  t("update-month-year", { month: f, year: s });
7814
7814
  }, O = H(() => (f) => {
7815
7815
  if (!e.preventMinMaxNavigation || f && !e.maxDate || !f && !e.minDate)
7816
7816
  return !1;
7817
- const s = qe(new Date(), { month: e.month, year: e.year }), _ = f ? ct(s, 1) : Et(s, 1), C = [Te(_), De(_)];
7817
+ const s = qe(new Date(), { month: e.month, year: e.year }), _ = f ? st(s, 1) : Et(s, 1), C = [Te(_), De(_)];
7818
7818
  return f ? !r(...C) : !a(...C);
7819
7819
  });
7820
7820
  return { handleMonthYearChange: d, isDisabled: O, updateMonthYear: y };
@@ -7826,7 +7826,7 @@ const ph = (e, t, n, r) => {
7826
7826
  left: "0",
7827
7827
  transform: "none"
7828
7828
  }), o = W(!1), l = oa(r, "teleportCenter");
7829
- ft(l, () => {
7829
+ ct(l, () => {
7830
7830
  F();
7831
7831
  });
7832
7832
  const u = (P) => {
@@ -8260,7 +8260,7 @@ const ph = (e, t, n, r) => {
8260
8260
  };
8261
8261
  return (R, j) => (m(), w("div", {
8262
8262
  class: "dp__action_row",
8263
- style: st(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
8263
+ style: mt(e.calendarWidth ? { width: `${e.calendarWidth}px` } : {})
8264
8264
  }, [
8265
8265
  R.$slots["action-row"] ? q(R.$slots, "action-row", nt(Be({ key: 0 }, {
8266
8266
  internalModelValue: e.internalModelValue,
@@ -8355,8 +8355,8 @@ const ph = (e, t, n, r) => {
8355
8355
  });
8356
8356
  const S = (g) => g ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", F = (g, z) => {
8357
8357
  if (r.transitions) {
8358
- const i = dt(o(I(), r.month, r.year));
8359
- s.value = Xe(dt(o(I(), g, z)), i) ? l.value.transitions[S(!0)] : l.value.transitions[S(!1)], f.value = !1, Mt(() => {
8358
+ const i = ft(o(I(), r.month, r.year));
8359
+ s.value = Xe(ft(o(I(), g, z)), i) ? l.value.transitions[S(!0)] : l.value.transitions[S(!1)], f.value = !1, Mt(() => {
8360
8360
  f.value = !0;
8361
8361
  });
8362
8362
  }
@@ -8409,7 +8409,7 @@ const ph = (e, t, n, r) => {
8409
8409
  class: pe(c(j))
8410
8410
  }, [
8411
8411
  E("div", {
8412
- style: st(c(k))
8412
+ style: mt(c(k))
8413
8413
  }, [
8414
8414
  e.specificMode ? $("", !0) : (m(), w("div", {
8415
8415
  key: 0,
@@ -8494,12 +8494,12 @@ const ph = (e, t, n, r) => {
8494
8494
  U.marker && c(te)(U) ? (m(), w("div", {
8495
8495
  key: 2,
8496
8496
  class: pe(c(V)(U.marker)),
8497
- style: st(U.marker.color ? { backgroundColor: U.marker.color } : {})
8497
+ style: mt(U.marker.color ? { backgroundColor: U.marker.color } : {})
8498
8498
  }, null, 6)) : $("", !0),
8499
8499
  c(R)(U.value) ? (m(), w("div", {
8500
8500
  key: 3,
8501
8501
  class: "dp__marker_tooltip",
8502
- style: st(d.value)
8502
+ style: mt(d.value)
8503
8503
  }, [
8504
8504
  (b = U.marker) != null && b.tooltip ? (m(), w("div", {
8505
8505
  key: 0,
@@ -8519,7 +8519,7 @@ const ph = (e, t, n, r) => {
8519
8519
  g.$slots["marker-tooltip"] ? $("", !0) : (m(), w(ve, { key: 1 }, [
8520
8520
  E("div", {
8521
8521
  class: "dp__tooltip_mark",
8522
- style: st(B.color ? { backgroundColor: B.color } : {})
8522
+ style: mt(B.color ? { backgroundColor: B.color } : {})
8523
8523
  }, null, 4),
8524
8524
  E("div", null, me(B.text), 1)
8525
8525
  ], 64))
@@ -9284,7 +9284,7 @@ const ph = (e, t, n, r) => {
9284
9284
  return T && D ? i < T || i > D : T ? i < T : D ? i > D : !1;
9285
9285
  }, P = H(() => (i) => te(i).flat().map((v) => v.value).filter((v) => k(v, i))), N = (i) => r[`no${i[0].toUpperCase() + i.slice(1)}Overlay`], K = (i) => {
9286
9286
  N(i) || (y[i] = !y[i], y[i] || n("overlay-closed"));
9287
- }, X = (i) => i === "hours" ? yt : i === "minutes" ? mt : Yt, L = (i, v = !0) => {
9287
+ }, X = (i) => i === "hours" ? pt : i === "minutes" ? yt : Yt, L = (i, v = !0) => {
9288
9288
  const T = v ? S : F;
9289
9289
  (v ? _.value(i) : C.value(i)) || n(
9290
9290
  `update:${i}`,
@@ -9727,7 +9727,7 @@ const ph = (e, t, n, r) => {
9727
9727
  }), s = W([]), _ = W([]), C = W(null), S = W(null), F = W(0), M = W(!1), V = W(0);
9728
9728
  et(() => {
9729
9729
  var x;
9730
- M.value = !0, !((x = r.presetRanges) != null && x.length) && !y["left-sidebar"] && !y["right-sidebar"] && pt();
9730
+ M.value = !0, !((x = r.presetRanges) != null && x.length) && !y["left-sidebar"] && !y["right-sidebar"] && dt();
9731
9731
  const Z = He(S);
9732
9732
  if (Z && !r.textInput && !r.inline && (a(!0), N()), Z) {
9733
9733
  const je = (Qe) => {
@@ -9735,9 +9735,9 @@ const ph = (e, t, n, r) => {
9735
9735
  };
9736
9736
  Z.addEventListener("pointerdown", je), Z.addEventListener("mousedown", je);
9737
9737
  }
9738
- window.addEventListener("resize", pt);
9738
+ window.addEventListener("resize", dt);
9739
9739
  }), Oo(() => {
9740
- window.removeEventListener("resize", pt);
9740
+ window.removeEventListener("resize", dt);
9741
9741
  });
9742
9742
  const { arrowRight: R, arrowLeft: j, arrowDown: te, arrowUp: k } = Ot(), P = (x) => {
9743
9743
  x || x === 0 ? _.value[x].triggerTransition(
@@ -9772,7 +9772,7 @@ const ph = (e, t, n, r) => {
9772
9772
  selectCurrentDate: b,
9773
9773
  presetDateRange: B
9774
9774
  } = ch(r, n, K, P, V), { setHoverDate: xe, clearHoverDate: he, getDayClassData: ue } = i0(Q, r);
9775
- ft(
9775
+ ct(
9776
9776
  L,
9777
9777
  () => {
9778
9778
  r.openOnTop && setTimeout(() => {
@@ -9781,7 +9781,7 @@ const ph = (e, t, n, r) => {
9781
9781
  },
9782
9782
  { deep: !0 }
9783
9783
  );
9784
- const Re = xt(y, "calendar"), tt = xt(y, "action"), se = xt(y, "timePicker"), de = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => eh(r.yearRange)), Ut = H(() => th(r.locale, r.monthNameFormat)), pt = () => {
9784
+ const Re = xt(y, "calendar"), tt = xt(y, "action"), se = xt(y, "timePicker"), de = xt(y, "monthYear"), ke = H(() => r.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), be = H(() => eh(r.yearRange)), Ut = H(() => th(r.locale, r.monthNameFormat)), dt = () => {
9785
9785
  const x = He(O);
9786
9786
  x && (F.value = x.getBoundingClientRect().width);
9787
9787
  }, Lt = H(() => (x) => u(le.value(x), Y.value(x))), kt = H(
@@ -9892,7 +9892,7 @@ const ph = (e, t, n, r) => {
9892
9892
  (nn = x.presetRanges) != null && nn.length ? (m(), w("div", c0, [
9893
9893
  (m(!0), w(ve, null, Ae(x.presetRanges, (ae, Nt) => (m(), w("div", {
9894
9894
  key: Nt,
9895
- style: st(ae.style || {}),
9895
+ style: mt(ae.style || {}),
9896
9896
  class: "dp__preset_range",
9897
9897
  onClick: (_e) => c(B)(ae.range, !!ae.slot)
9898
9898
  }, [
@@ -10050,7 +10050,7 @@ const ph = (e, t, n, r) => {
10050
10050
  if (!e)
10051
10051
  return aa;
10052
10052
  let a = aa;
10053
- const o = ft(
10053
+ const o = ct(
10054
10054
  () => c(e),
10055
10055
  (u) => {
10056
10056
  a(), u && (u.addEventListener(t, n, r), a = () => {
@@ -10095,7 +10095,7 @@ const ph = (e, t, n, r) => {
10095
10095
  r.inline || (window.removeEventListener("scroll", g), window.removeEventListener("resize", z));
10096
10096
  });
10097
10097
  const M = xt(a, "all", r.presetRanges), V = xt(a, "input");
10098
- ft(
10098
+ ct(
10099
10099
  [l, u],
10100
10100
  () => {
10101
10101
  K(l.value);
@@ -10200,8 +10200,8 @@ const ph = (e, t, n, r) => {
10200
10200
  }), Ze({ _: 2 }, [
10201
10201
  Ae(c(V), (be, Ut) => ({
10202
10202
  name: be,
10203
- fn: ne((pt) => [
10204
- q(de.$slots, be, nt(vt(pt)))
10203
+ fn: ne((dt) => [
10204
+ q(de.$slots, be, nt(vt(dt)))
10205
10205
  ])
10206
10206
  }))
10207
10207
  ]), 1040, ["is-menu-open", "input-value", "onSetEmptyDate"]),
@@ -10231,8 +10231,8 @@ const ph = (e, t, n, r) => {
10231
10231
  }), Ze({ _: 2 }, [
10232
10232
  Ae(c(M), (be, Ut) => ({
10233
10233
  name: be,
10234
- fn: ne((pt) => [
10235
- q(de.$slots, be, nt(vt({ ...pt })))
10234
+ fn: ne((dt) => [
10235
+ q(de.$slots, be, nt(vt({ ...dt })))
10236
10236
  ])
10237
10237
  }))
10238
10238
  ]), 1040, ["class", "style", "open-on-top", "internal-model-value", "onRecalculatePosition"])) : $("", !0)
@@ -10319,7 +10319,7 @@ const O0 = {
10319
10319
  function r() {
10320
10320
  t.dynamic || (n.value = !n.value);
10321
10321
  }
10322
- return ft(() => t.visible, () => {
10322
+ return ct(() => t.visible, () => {
10323
10323
  t.dynamic && (n.value = !0, setTimeout(() => {
10324
10324
  n.value = !1;
10325
10325
  }, +t.duration));
@@ -10350,7 +10350,7 @@ const k0 = { class: "rm-avatar__overlay" }, P0 = ["src"], F0 = /* @__PURE__ */ O
10350
10350
  small: { type: Boolean, default: !1 },
10351
10351
  avatar: { default: null },
10352
10352
  labelBordered: { type: Boolean, default: !0 },
10353
- labelBorderColor: { default: "#FFFFFF" }
10353
+ labelBorderColor: null
10354
10354
  },
10355
10355
  setup(e) {
10356
10356
  const t = e, n = H(() => t.label.trim().replace(/\s+/g, " ").split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, 2));
@@ -10377,13 +10377,10 @@ const k0 = { class: "rm-avatar__overlay" }, P0 = ["src"], F0 = /* @__PURE__ */ O
10377
10377
  {
10378
10378
  "rm-avatar__label--bordered": e.labelBordered
10379
10379
  }
10380
- ]),
10381
- style: st({
10382
- borderColor: e.labelBorderColor
10383
- })
10380
+ ])
10384
10381
  }, [
10385
10382
  E("span", null, me(e.staticLabel || c(n)), 1)
10386
- ], 6)
10383
+ ], 2)
10387
10384
  ], 2));
10388
10385
  }
10389
10386
  });