voiptime-components 1.9.4 → 1.9.5

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as a, openBlock as s, createElementVNode as l, createStaticVNode as tt, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as Y, resolveDynamicComponent as ft, normalizeStyle as Ee, useSlots as at, resolveDirective as xt, withDirectives as ot, normalizeClass as U, renderSlot as De, Teleport as lt, withModifiers as Le, toDisplayString as E, createTextVNode as xe, ref as L, onUnmounted as Ge, nextTick as Te, watch as $e, onMounted as Ye, createVNode as Q, Fragment as ne, renderList as pe, provide as ut, unref as O, Transition as it, withCtx as Ve, inject as ct, onBeforeUnmount as qt, createApp as Ut, h as gt, mergeModels as Lt, useModel as a1, reactive as Kt, toRef as rt, toRefs as u1, vShow as Qt, TransitionGroup as c1 } from "vue";
1
+ import { createElementBlock as a, openBlock as s, createElementVNode as l, createStaticVNode as tt, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as Y, resolveDynamicComponent as ft, normalizeStyle as Ee, useSlots as at, resolveDirective as Vt, withDirectives as ot, normalizeClass as U, renderSlot as De, Teleport as lt, withModifiers as Le, toDisplayString as E, createTextVNode as xe, ref as L, onUnmounted as Ge, nextTick as Te, watch as $e, onMounted as Ye, createVNode as Q, Fragment as ne, renderList as pe, provide as ut, unref as O, Transition as it, withCtx as Ve, inject as ct, onBeforeUnmount as qt, createApp as Ut, h as gt, mergeModels as Dt, useModel as a1, reactive as Kt, toRef as rt, toRefs as u1, vShow as Qt, TransitionGroup as c1 } from "vue";
2
2
  const M = (n, t) => {
3
3
  const u = n.__vccOpts || n;
4
4
  for (const [e, i] of t)
@@ -2371,7 +2371,7 @@ const pt = /* @__PURE__ */ M(Ma, [["render", xa]]), Va = ["disabled", "type", "d
2371
2371
  !u.disabled && !u.loading && e("click", d);
2372
2372
  };
2373
2373
  return (d, C) => {
2374
- const o = xt("tooltip");
2374
+ const o = Vt("tooltip");
2375
2375
  return ot((s(), a("button", {
2376
2376
  class: U(p.value),
2377
2377
  disabled: u.disabled || u.loading,
@@ -2595,7 +2595,7 @@ const pt = /* @__PURE__ */ M(Ma, [["render", xa]]), Va = ["disabled", "type", "d
2595
2595
  ], 2)) : Y("", !0)
2596
2596
  ], 10, Ia));
2597
2597
  }
2598
- }), Dt = (n) => {
2598
+ }), Ht = (n) => {
2599
2599
  if (!n) return !1;
2600
2600
  const t = n.getBoundingClientRect();
2601
2601
  if (t.width === 0 && t.height === 0) return !1;
@@ -2661,7 +2661,7 @@ function mt(n, t, u = {}) {
2661
2661
  transformOrigin: "center top"
2662
2662
  }), H = () => {
2663
2663
  if (!n.value) return;
2664
- const he = Dt(n.value);
2664
+ const he = Ht(n.value);
2665
2665
  o.value !== he && (o.value = he, !he && C.value ? ($.value = !0, C.value = !1, v == null || v(!1)) : he && $.value && !C.value && ($.value = !1, C.value = !0, R(), v == null || v(!0)));
2666
2666
  }, R = async () => {
2667
2667
  if (await Te(), !n.value || !t.value) return;
@@ -2681,7 +2681,7 @@ function mt(n, t, u = {}) {
2681
2681
  he.removeEventListener("scroll", G);
2682
2682
  }), window.removeEventListener("resize", G), K.value = [];
2683
2683
  }, re = () => {
2684
- p || C.value || !n.value || !Dt(n.value) || (_.value = window.setTimeout(
2684
+ p || C.value || !n.value || !Ht(n.value) || (_.value = window.setTimeout(
2685
2685
  async () => {
2686
2686
  C.value = !0, o.value = !0, $.value = !1, await R(), P(), v == null || v(!0);
2687
2687
  },
@@ -2720,7 +2720,7 @@ const Gt = Symbol("VtSelectContext");
2720
2720
  function et(n, t, u) {
2721
2721
  return u && typeof n == "object" && typeof t == "object" ? (n == null ? void 0 : n[u]) === (t == null ? void 0 : t[u]) : typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
2722
2722
  }
2723
- function Ht(n, t, u) {
2723
+ function Tt(n, t, u) {
2724
2724
  return t.find((e) => et(e.value, n, u));
2725
2725
  }
2726
2726
  function Pa(n, t, u, e) {
@@ -2729,8 +2729,8 @@ function Pa(n, t, u, e) {
2729
2729
  function Ra(n, t, u, e) {
2730
2730
  if (!t.length) return [];
2731
2731
  if (u)
2732
- return Array.isArray(n) ? n.map((c) => Ht(c, t, e)).filter(Boolean) : [];
2733
- const i = Ht(n, t, e);
2732
+ return Array.isArray(n) ? n.map((c) => Tt(c, t, e)).filter(Boolean) : [];
2733
+ const i = Tt(n, t, e);
2734
2734
  return i ? [i] : [];
2735
2735
  }
2736
2736
  function ja(n, t, u, e) {
@@ -3167,7 +3167,7 @@ const Na = ["for"], Wa = {
3167
3167
  }, C3 = { key: 0 }, _3 = { key: 1 }, g3 = ["aria-disabled", "aria-selected", "onClick"], w3 = { class: "vt-option__text" }, k3 = { key: 1 }, b3 = {
3168
3168
  key: 0,
3169
3169
  class: "vt-select-dropdown__loading"
3170
- }, Tt = 300, e1 = /* @__PURE__ */ ke({
3170
+ }, It = 300, e1 = /* @__PURE__ */ ke({
3171
3171
  __name: "VSelect",
3172
3172
  props: {
3173
3173
  modelValue: {},
@@ -3235,7 +3235,7 @@ const Na = ["for"], Wa = {
3235
3235
  }), oe = x(() => !e.filterable || !o.filterQuery.value.trim() || e.allowRemoteFilter ? re.value : re.value.filter((r) => te(r, o.filterQuery.value))), ve = L(0), he = (r) => {
3236
3236
  const f = r.target;
3237
3237
  if (!f) return;
3238
- const q = f.scrollTop, z = f.scrollHeight, _e = f.clientHeight, be = q + _e >= z - 50, Se = Date.now(), Fe = !e.loading && oe.value.length > 0 && Se - ve.value > Tt;
3238
+ const q = f.scrollTop, z = f.scrollHeight, _e = f.clientHeight, be = q + _e >= z - 50, Se = Date.now(), Fe = !e.loading && oe.value.length > 0 && Se - ve.value > It;
3239
3239
  be && Fe && (ve.value = Se, i("scrolled"));
3240
3240
  }, D = () => {
3241
3241
  Te(() => {
@@ -3243,7 +3243,7 @@ const Na = ["for"], Wa = {
3243
3243
  const r = d.value, f = r.scrollHeight, q = r.clientHeight, z = r.scrollTop, _e = f <= q, ae = z + q >= f - 10;
3244
3244
  if ((_e || ae) && oe.value.length > 0 && !e.loading) {
3245
3245
  const be = Date.now();
3246
- be - ve.value > Tt && (ve.value = be, i("scrolled"));
3246
+ be - ve.value > It && (ve.value = be, i("scrolled"));
3247
3247
  }
3248
3248
  });
3249
3249
  }, {
@@ -3447,7 +3447,7 @@ const Na = ["for"], Wa = {
3447
3447
  }), Ge(() => {
3448
3448
  document.removeEventListener("click", j), window.removeEventListener("resize", ee);
3449
3449
  }), (r, f) => {
3450
- const q = xt("tooltip");
3450
+ const q = Vt("tooltip");
3451
3451
  return s(), a("div", {
3452
3452
  ref_key: "selectRef",
3453
3453
  ref: c,
@@ -4020,16 +4020,16 @@ const j3 = (n, t, u = "asc") => {
4020
4020
  if (n === t) return 0;
4021
4021
  let e = 0;
4022
4022
  const i = Number(n), c = Number(t);
4023
- return !isNaN(i) && !isNaN(c) ? e = i - c : It(n) && It(t) ? e = new Date(n).getTime() - new Date(t).getTime() : typeof n == "boolean" && typeof t == "boolean" ? e = n === t ? 0 : n ? -1 : 1 : e = String(n).localeCompare(String(t), void 0, {
4023
+ return !isNaN(i) && !isNaN(c) ? e = i - c : Bt(n) && Bt(t) ? e = new Date(n).getTime() - new Date(t).getTime() : typeof n == "boolean" && typeof t == "boolean" ? e = n === t ? 0 : n ? -1 : 1 : e = String(n).localeCompare(String(t), void 0, {
4024
4024
  numeric: !0,
4025
4025
  sensitivity: "base"
4026
4026
  }), u === "desc" ? -e : e;
4027
- }, It = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, F3 = (n, t, u) => {
4027
+ }, Bt = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, F3 = (n, t, u) => {
4028
4028
  n.sortable && u({
4029
4029
  prop: n.prop,
4030
4030
  direction: t
4031
4031
  });
4032
- }, Bt = (n, t) => {
4032
+ }, Et = (n, t) => {
4033
4033
  const u = (t == null ? void 0 : t.prop) === n.prop, e = t == null ? void 0 : t.direction;
4034
4034
  return {
4035
4035
  asc: ["vt-th__sort-icon", u && e === "asc" && "vt-th__sortable-active"].filter(Boolean).join(" "),
@@ -4147,7 +4147,7 @@ const j3 = (n, t, u = "asc") => {
4147
4147
  ])) : Y("", !0)
4148
4148
  ], 544));
4149
4149
  }
4150
- }), yt = /* @__PURE__ */ ke({
4150
+ }), Mt = /* @__PURE__ */ ke({
4151
4151
  __name: "VDropdownItem",
4152
4152
  props: {
4153
4153
  command: {},
@@ -4534,7 +4534,7 @@ const Qe = new z3(), Y3 = {
4534
4534
  onCommand: c
4535
4535
  }, {
4536
4536
  dropdown: Ve(() => [
4537
- Q(yt, { command: "pin" }, {
4537
+ Q(Mt, { command: "pin" }, {
4538
4538
  default: Ve(() => [
4539
4539
  Q(fe, {
4540
4540
  name: i() ? "unfreeze" : "freeze"
@@ -4543,7 +4543,7 @@ const Qe = new z3(), Y3 = {
4543
4543
  ]),
4544
4544
  _: 1
4545
4545
  }),
4546
- Q(yt, { command: "columns" }, {
4546
+ Q(Mt, { command: "columns" }, {
4547
4547
  default: Ve(() => [
4548
4548
  Q(fe, { name: "columnInsert" }),
4549
4549
  C[0] || (C[0] = l("div", null, "Колонки", -1))
@@ -4571,7 +4571,7 @@ const Qe = new z3(), Y3 = {
4571
4571
  class: "vt-table__summary"
4572
4572
  }, g2 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, wt = 50, w2 = /* @__PURE__ */ ke({
4573
4573
  __name: "VTable",
4574
- props: /* @__PURE__ */ Lt({
4574
+ props: /* @__PURE__ */ Dt({
4575
4575
  data: {},
4576
4576
  maxHeight: { default: void 0 },
4577
4577
  rowKey: { default: "id" },
@@ -4596,7 +4596,7 @@ const Qe = new z3(), Y3 = {
4596
4596
  },
4597
4597
  columnsModifiers: {}
4598
4598
  }),
4599
- emits: /* @__PURE__ */ Lt(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4599
+ emits: /* @__PURE__ */ Dt(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4600
4600
  setup(n, { expose: t, emit: u }) {
4601
4601
  const e = n, i = u, c = a1(n, "columns"), h = L({}), p = L(), m = Kt([]), v = L(e.defaultSort || null), d = x(() => Z3(e.data || [], v.value, m)), C = x(() => c.value !== void 0), o = x(() => e.data && e.data.length > 0), $ = L(!1), _ = L(0);
4602
4602
  let K;
@@ -4751,7 +4751,7 @@ const Qe = new z3(), Y3 = {
4751
4751
  resetInfinityScroll: B
4752
4752
  }), (I, W) => {
4753
4753
  var de, ee, k, b;
4754
- const se = xt("tooltip");
4754
+ const se = Vt("tooltip");
4755
4755
  return s(), a("div", {
4756
4756
  ref_key: "tableWrapperRef",
4757
4757
  ref: p,
@@ -4803,12 +4803,12 @@ const Qe = new z3(), Y3 = {
4803
4803
  ]),
4804
4804
  r.sortable ? (s(), a("div", a2, [
4805
4805
  Q(fe, {
4806
- class: U(O(Bt)(r, v.value).asc),
4806
+ class: U(O(Et)(r, v.value).asc),
4807
4807
  name: "arrowTop",
4808
4808
  onClick: Le((q) => F(r, "asc"), ["stop"])
4809
4809
  }, null, 8, ["class", "onClick"]),
4810
4810
  Q(fe, {
4811
- class: U(O(Bt)(r, v.value).desc),
4811
+ class: U(O(Et)(r, v.value).desc),
4812
4812
  name: "arrowDown",
4813
4813
  onClick: Le((q) => F(r, "desc"), ["stop"])
4814
4814
  }, null, 8, ["class", "onClick"])
@@ -5014,7 +5014,7 @@ const Qe = new z3(), Y3 = {
5014
5014
  }
5015
5015
  }), (h, p) => null;
5016
5016
  }
5017
- }), K6 = {
5017
+ }), U6 = {
5018
5018
  yyyy: {
5019
5019
  pattern: /yyyy/g,
5020
5020
  replacement: (n) => String(n.getFullYear())
@@ -5072,7 +5072,7 @@ const Qe = new z3(), Y3 = {
5072
5072
  "Жовтень",
5073
5073
  "Листопад",
5074
5074
  "Грудень"
5075
- ], l1 = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], Q6 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], kt = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], y2 = {
5075
+ ], l1 = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], K6 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], kt = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], y2 = {
5076
5076
  date: "yyyy-MM-dd",
5077
5077
  datetime: "yyyy-MM-dd HH:mm:ss",
5078
5078
  daterange: "yyyy-MM-dd",
@@ -5081,7 +5081,7 @@ const Qe = new z3(), Y3 = {
5081
5081
  monthrange: "yyyy-MM",
5082
5082
  year: "yyyy",
5083
5083
  yearrange: "yyyy"
5084
- }, Et = (n) => {
5084
+ }, At = (n) => {
5085
5085
  if (n instanceof Date)
5086
5086
  return !isNaN(n.getTime());
5087
5087
  if (typeof n == "string" || typeof n == "number") {
@@ -5096,12 +5096,12 @@ const Qe = new z3(), Y3 = {
5096
5096
  if (n.length !== 2)
5097
5097
  e.push("Діапазон повинен містити дві дати");
5098
5098
  else if (n.forEach((c, h) => {
5099
- c && !Et(c) && e.push(`Некоректний формат дати ${h + 1}`);
5099
+ c && !At(c) && e.push(`Некоректний формат дати ${h + 1}`);
5100
5100
  }), n[0] && n[1]) {
5101
5101
  const c = new Date(n[0]), h = new Date(n[1]);
5102
5102
  c > h && e.push("Початкова дата не може бути пізніше кінцевої");
5103
5103
  }
5104
- } else Et(n) || e.push("Некоректний формат дати");
5104
+ } else At(n) || e.push("Некоректний формат дати");
5105
5105
  return {
5106
5106
  isValid: e.length === 0,
5107
5107
  errors: e
@@ -5169,7 +5169,7 @@ const Qe = new z3(), Y3 = {
5169
5169
  formatDate: c,
5170
5170
  parseDate: h
5171
5171
  };
5172
- }, At = (n) => {
5172
+ }, Pt = (n) => {
5173
5173
  const t = x(() => {
5174
5174
  const $ = n.value.getFullYear(), _ = n.value.getMonth(), K = new Date($, _, 1), A = new Date(K);
5175
5175
  A.setDate(A.getDate() - K.getDay());
@@ -5224,7 +5224,7 @@ const Qe = new z3(), Y3 = {
5224
5224
  "24h_no_seconds": "HH:mm",
5225
5225
  "12h": "hh:mm:ss A",
5226
5226
  "12h_no_seconds": "hh:mm A"
5227
- }, Mt = (n) => n ? [
5227
+ }, $t = (n) => n ? [
5228
5228
  /^([01]?\d|2[0-3]):([0-5]\d):([0-5]\d)$/,
5229
5229
  // HH:mm:ss (24h)
5230
5230
  /^([01]?\d|2[0-3]):([0-5]\d)$/,
@@ -5238,17 +5238,17 @@ const Qe = new z3(), Y3 = {
5238
5238
  if (u && (n ? i && Array.isArray(n) && (n.length !== 2 || !n[0] || !n[1]) && e.push("Необхідно вибрати початковий та кінцевий час") : e.push("Це поле є обов'язковим")), n)
5239
5239
  if (i && !Array.isArray(n) ? e.push("Для діапазону очікується масив з двох значень часу") : !i && Array.isArray(n) && e.push("Для одиночного вибору очікується одне значення часу"), Array.isArray(n)) {
5240
5240
  if (n.forEach((c, h) => {
5241
- c && (typeof c == "string" && !Mt(c) ? e.push(`Некоректний формат часу ${h + 1}`) : c instanceof Date && isNaN(c.getTime()) && e.push(`Некоректне значення часу ${h + 1}`));
5241
+ c && (typeof c == "string" && !$t(c) ? e.push(`Некоректний формат часу ${h + 1}`) : c instanceof Date && isNaN(c.getTime()) && e.push(`Некоректне значення часу ${h + 1}`));
5242
5242
  }), n.length === 2 && n[0] && n[1]) {
5243
- const c = Pt(n[0]), h = Pt(n[1]);
5243
+ const c = Rt(n[0]), h = Rt(n[1]);
5244
5244
  c !== null && h !== null && c >= h && e.push("Початковий час повинен бути раніше кінцевого");
5245
5245
  }
5246
- } else n && (typeof n == "string" && !Mt(n) ? e.push("Некоректний формат часу") : n instanceof Date && isNaN(n.getTime()) && e.push("Некоректне значення часу"));
5246
+ } else n && (typeof n == "string" && !$t(n) ? e.push("Некоректний формат часу") : n instanceof Date && isNaN(n.getTime()) && e.push("Некоректне значення часу"));
5247
5247
  return {
5248
5248
  isValid: e.length === 0,
5249
5249
  errors: e
5250
5250
  };
5251
- }, Pt = (n) => {
5251
+ }, Rt = (n) => {
5252
5252
  var t;
5253
5253
  if (!n) return null;
5254
5254
  if (n instanceof Date)
@@ -5378,7 +5378,7 @@ const Qe = new z3(), Y3 = {
5378
5378
  hour: k.getHours(),
5379
5379
  minute: k.getMinutes(),
5380
5380
  second: k.getSeconds()
5381
- } : typeof k == "string" && Mt(k) ? D2(k) : null : null, $ = (k, b = !1) => S2(k, e.type, b), _ = x(() => e.modelValue ? d.value ? Array.isArray(e.modelValue) && e.modelValue.length === 2 ? [o(e.modelValue[0]), o(e.modelValue[1])] : [null, null] : o(e.modelValue) : d.value ? [null, null] : null), K = x(() => {
5381
+ } : typeof k == "string" && $t(k) ? D2(k) : null : null, $ = (k, b = !1) => S2(k, e.type, b), _ = x(() => e.modelValue ? d.value ? Array.isArray(e.modelValue) && e.modelValue.length === 2 ? [o(e.modelValue[0]), o(e.modelValue[1])] : [null, null] : o(e.modelValue) : d.value ? [null, null] : null), K = x(() => {
5382
5382
  if (d.value) {
5383
5383
  const [k, b] = _.value;
5384
5384
  return k && b ? [C(k), C(b)] : k ? [C(k), ""] : ["", ""];
@@ -6024,12 +6024,12 @@ const Qe = new z3(), Y3 = {
6024
6024
  navigateMonth: S,
6025
6025
  navigateYear: B,
6026
6026
  navigateDecade: F
6027
- } = At(o.currentDate), {
6027
+ } = Pt(o.currentDate), {
6028
6028
  calendarDates: le,
6029
6029
  isDateInCurrentMonth: J,
6030
6030
  navigateYear: X,
6031
6031
  navigateDecade: ce
6032
- } = At(o.rightCurrentDate), ze = (y) => {
6032
+ } = Pt(o.rightCurrentDate), ze = (y) => {
6033
6033
  switch (y) {
6034
6034
  case "year":
6035
6035
  case "yearrange":
@@ -6278,13 +6278,13 @@ const Qe = new z3(), Y3 = {
6278
6278
  H.value && o.isSelectingEnd.value && o.startDate.value && (o.hoverDate.value = new Date(y, 0, 1));
6279
6279
  }, i1 = () => {
6280
6280
  H.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6281
- }, Vt = () => {
6281
+ }, St = () => {
6282
6282
  o.viewMode.value === "year" ? (F("prev"), ce("prev")) : o.viewMode.value === "month" ? (B("prev"), X("prev")) : (S("prev"), o.rightCurrentDate.value = new Date(
6283
6283
  o.currentDate.value.getFullYear(),
6284
6284
  o.currentDate.value.getMonth() + 1,
6285
6285
  1
6286
6286
  ));
6287
- }, St = () => {
6287
+ }, Lt = () => {
6288
6288
  o.viewMode.value === "year" ? (F("next"), ce("next")) : o.viewMode.value === "month" ? (B("next"), X("next")) : (S("next"), o.rightCurrentDate.value = new Date(
6289
6289
  o.currentDate.value.getFullYear(),
6290
6290
  o.currentDate.value.getMonth() + 1,
@@ -6442,7 +6442,7 @@ const Qe = new z3(), Y3 = {
6442
6442
  l("div", R5, [
6443
6443
  l("button", {
6444
6444
  class: "vt-datepicker__nav-btn",
6445
- onClick: Vt
6445
+ onClick: St
6446
6446
  }, [
6447
6447
  Q(fe, { name: "arrowLeft" })
6448
6448
  ]),
@@ -6518,7 +6518,7 @@ const Qe = new z3(), Y3 = {
6518
6518
  ]),
6519
6519
  l("button", {
6520
6520
  class: "vt-datepicker__nav-btn",
6521
- onClick: St
6521
+ onClick: Lt
6522
6522
  }, [
6523
6523
  Q(fe, { name: "arrowRight" })
6524
6524
  ])
@@ -6580,7 +6580,7 @@ const Qe = new z3(), Y3 = {
6580
6580
  l("div", n6, [
6581
6581
  l("button", {
6582
6582
  class: "vt-datepicker__nav-btn",
6583
- onClick: Vt
6583
+ onClick: St
6584
6584
  }, [
6585
6585
  Q(fe, { name: "arrowLeft" })
6586
6586
  ]),
@@ -6597,7 +6597,7 @@ const Qe = new z3(), Y3 = {
6597
6597
  ]),
6598
6598
  l("button", {
6599
6599
  class: "vt-datepicker__nav-btn",
6600
- onClick: St
6600
+ onClick: Lt
6601
6601
  }, [
6602
6602
  Q(fe, { name: "arrowRight" })
6603
6603
  ])
@@ -6888,7 +6888,7 @@ const Qe = new z3(), Y3 = {
6888
6888
  [Qt, e.value]
6889
6889
  ]);
6890
6890
  }
6891
- }), Rt = (n, t) => {
6891
+ }), jt = (n, t) => {
6892
6892
  const u = document.createElement("div");
6893
6893
  u.className = `vt-tooltip vt-tooltip--${t}`, u.innerText = n, Object.assign(u.style, {
6894
6894
  position: "absolute",
@@ -6954,7 +6954,7 @@ const Qe = new z3(), Y3 = {
6954
6954
  break;
6955
6955
  }
6956
6956
  return u.appendChild(e), u;
6957
- }, $t = (n, t, u) => {
6957
+ }, xt = (n, t, u) => {
6958
6958
  const e = t.getBoundingClientRect(), i = n.getBoundingClientRect(), c = window.pageXOffset || document.documentElement.scrollLeft, h = window.pageYOffset || document.documentElement.scrollTop;
6959
6959
  let p = 0, m = 0;
6960
6960
  switch (u) {
@@ -6973,25 +6973,25 @@ const Qe = new z3(), Y3 = {
6973
6973
  }
6974
6974
  const v = window.innerWidth, d = window.innerHeight;
6975
6975
  m < 8 ? m = 8 : m + i.width > v - 8 && (m = v - i.width - 8), p < h + 8 ? u === "top" ? p = e.bottom + h + 8 : p = h + 8 : p + i.height > h + d - 8 && (u === "bottom" ? p = e.top + h - i.height - 8 : p = h + d - i.height - 8), n.style.top = `${p}px`, n.style.left = `${m}px`;
6976
- }, jt = (n, t, u) => {
6977
- n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", $t(n, t, u), requestAnimationFrame(() => {
6976
+ }, Ft = (n, t, u) => {
6977
+ n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", xt(n, t, u), requestAnimationFrame(() => {
6978
6978
  n.style.opacity = "1";
6979
6979
  });
6980
- }, Ft = (n) => {
6980
+ }, Zt = (n) => {
6981
6981
  n.style.opacity = "0", n.style.visibility = "hidden";
6982
- }, Zt = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, zt = (n) => !!n.closest(".vt-table, table"), H6 = {
6982
+ }, zt = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, Yt = (n) => !!n.closest(".vt-table, table"), H6 = {
6983
6983
  mounted(n, t) {
6984
6984
  var m;
6985
6985
  const u = (m = t.value) == null ? void 0 : m.trim();
6986
6986
  if (!u) return;
6987
- const e = n.dataset.placement || "top", i = Rt(u, e);
6987
+ const e = n.dataset.placement || "top", i = jt(u, e);
6988
6988
  n.__tooltipEl = i;
6989
6989
  const c = () => {
6990
- (zt(n) ? Zt(n) : !0) && jt(i, n, e);
6990
+ (Yt(n) ? zt(n) : !0) && Ft(i, n, e);
6991
6991
  }, h = () => {
6992
- Ft(i);
6992
+ Zt(i);
6993
6993
  }, p = () => {
6994
- i.style.opacity === "1" && $t(i, n, e);
6994
+ i.style.opacity === "1" && xt(i, n, e);
6995
6995
  };
6996
6996
  n.__mouseenterHandler = c, n.__mouseleaveHandler = h, n.__scrollHandler = p, n.addEventListener("mouseenter", c), n.addEventListener("mouseleave", h), window.addEventListener("scroll", p, !0), window.addEventListener("resize", p);
6997
6997
  },
@@ -7001,14 +7001,14 @@ const Qe = new z3(), Y3 = {
7001
7001
  if (n.__tooltipEl)
7002
7002
  u ? n.__tooltipEl.firstChild.textContent = u : (n.__tooltipEl.parentElement && n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl);
7003
7003
  else if (u) {
7004
- const i = n.dataset.placement || "top", c = Rt(u, i);
7004
+ const i = n.dataset.placement || "top", c = jt(u, i);
7005
7005
  n.__tooltipEl = c;
7006
7006
  const h = () => {
7007
- (zt(n) ? Zt(n) : !0) && jt(c, n, i);
7007
+ (Yt(n) ? zt(n) : !0) && Ft(c, n, i);
7008
7008
  }, p = () => {
7009
- Ft(c);
7009
+ Zt(c);
7010
7010
  }, m = () => {
7011
- c.style.opacity === "1" && $t(c, n, i);
7011
+ c.style.opacity === "1" && xt(c, n, i);
7012
7012
  };
7013
7013
  n.__mouseenterHandler = h, n.__mouseleaveHandler = p, n.__scrollHandler = m, n.addEventListener("mouseenter", h), n.addEventListener("mouseleave", p), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m);
7014
7014
  }
@@ -7016,38 +7016,36 @@ const Qe = new z3(), Y3 = {
7016
7016
  beforeUnmount(n) {
7017
7017
  n.__tooltipEl && n.__tooltipEl.parentElement && (n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl), n.__mouseenterHandler && (n.removeEventListener("mouseenter", n.__mouseenterHandler), delete n.__mouseenterHandler), n.__mouseleaveHandler && (n.removeEventListener("mouseleave", n.__mouseleaveHandler), delete n.__mouseleaveHandler), n.__scrollHandler && (window.removeEventListener("scroll", n.__scrollHandler, !0), window.removeEventListener("resize", n.__scrollHandler), delete n.__scrollHandler);
7018
7018
  }
7019
- }, T6 = `
7020
- <div class="vt-loader-base__overlay">
7021
- <span class="vt-loader-base"></span>
7022
- </div>
7023
- `, I6 = {
7019
+ }, T6 = {
7024
7020
  mounted(n, t) {
7025
- t.value && Ot(n);
7021
+ yt(t.value) && Ot(n);
7026
7022
  },
7027
7023
  updated(n, t) {
7028
- const u = Yt(t.value), e = Yt(t.oldValue);
7024
+ const u = yt(t.value), e = yt(t.oldValue);
7029
7025
  u !== e && (u ? Ot(n) : Nt(n));
7030
7026
  },
7031
7027
  unmounted(n) {
7032
7028
  Nt(n);
7033
7029
  }
7034
7030
  };
7035
- function Yt(n) {
7031
+ function yt(n) {
7036
7032
  return typeof n == "object" && n !== null && "value" in n ? n.value : n;
7037
7033
  }
7038
7034
  function Ot(n) {
7039
- if (n.querySelector(".vt-loader__overlay")) return;
7040
- const t = getComputedStyle(n).position;
7041
- (t === "static" || !t) && (n.style.position = "relative"), n.insertAdjacentHTML("beforeend", T6);
7035
+ if (n._loaderEl) return;
7036
+ const t = document.createElement("div");
7037
+ t.className = "v-loader__overlay", t.innerHTML = '<span class="v-loader"></span>';
7038
+ const u = getComputedStyle(n).position;
7039
+ (u === "static" || !u) && (n.style.position = "relative"), n.appendChild(t), n._loaderEl = t;
7042
7040
  }
7043
7041
  function Nt(n) {
7044
- const t = n.querySelector(".vt-loader__overlay");
7045
- t && t.remove();
7042
+ const t = n._loaderEl;
7043
+ t && (t.remove(), delete n._loaderEl);
7046
7044
  }
7047
- const B6 = { class: "vt-message-container" }, E6 = { class: "vt-message-icon" }, A6 = { class: "vt-message-content" }, P6 = ["innerHTML"], R6 = {
7045
+ const I6 = { class: "vt-message-container" }, B6 = { class: "vt-message-icon" }, E6 = { class: "vt-message-content" }, A6 = ["innerHTML"], P6 = {
7048
7046
  key: 1,
7049
7047
  class: "vt-message-text"
7050
- }, j6 = ["onClick"], F6 = /* @__PURE__ */ ke({
7048
+ }, R6 = ["onClick"], j6 = /* @__PURE__ */ ke({
7051
7049
  __name: "VMessage",
7052
7050
  setup(n, { expose: t }) {
7053
7051
  const u = L([]);
@@ -7077,7 +7075,7 @@ const B6 = { class: "vt-message-container" }, E6 = { class: "vt-message-icon" },
7077
7075
  addMessage: c,
7078
7076
  removeMessage: h
7079
7077
  }), (p, m) => (s(), we(lt, { to: "body" }, [
7080
- l("div", B6, [
7078
+ l("div", I6, [
7081
7079
  Q(c1, {
7082
7080
  name: "vt-message",
7083
7081
  tag: "div"
@@ -7091,18 +7089,18 @@ const B6 = { class: "vt-message-container" }, E6 = { class: "vt-message-icon" },
7091
7089
  { "vt-message-item--closable": v.showClose }
7092
7090
  ])
7093
7091
  }, [
7094
- l("div", E6, [
7092
+ l("div", B6, [
7095
7093
  Q(fe, {
7096
7094
  color: v.type === "primary" ? "#00475A" : "",
7097
7095
  name: i(v.type)
7098
7096
  }, null, 8, ["color", "name"])
7099
7097
  ]),
7100
- l("div", A6, [
7098
+ l("div", E6, [
7101
7099
  v.dangerouslyUseHTMLString ? (s(), a("div", {
7102
7100
  key: 0,
7103
7101
  class: "vt-message-text",
7104
7102
  innerHTML: v.message
7105
- }, null, 8, P6)) : (s(), a("div", R6, E(v.message), 1))
7103
+ }, null, 8, A6)) : (s(), a("div", P6, E(v.message), 1))
7106
7104
  ]),
7107
7105
  v.showClose ? (s(), a("button", {
7108
7106
  key: 0,
@@ -7111,7 +7109,7 @@ const B6 = { class: "vt-message-container" }, E6 = { class: "vt-message-icon" },
7111
7109
  onClick: (d) => h(v.id)
7112
7110
  }, [
7113
7111
  Q(fe, { name: "close" })
7114
- ], 8, j6)) : Y("", !0)
7112
+ ], 8, R6)) : Y("", !0)
7115
7113
  ], 2))), 128))
7116
7114
  ]),
7117
7115
  _: 1
@@ -7120,7 +7118,7 @@ const B6 = { class: "vt-message-container" }, E6 = { class: "vt-message-icon" },
7120
7118
  ]));
7121
7119
  }
7122
7120
  });
7123
- class Z6 {
7121
+ class F6 {
7124
7122
  constructor() {
7125
7123
  this.messageInstance = null, this.app = null, this.container = null;
7126
7124
  }
@@ -7157,10 +7155,10 @@ class Z6 {
7157
7155
  return this.messageInstance ? this.messageInstance.messages.length : 0;
7158
7156
  }
7159
7157
  ensureInstance() {
7160
- return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = Ut(F6), this.messageInstance = this.app.mount(this.container), this.messageInstance);
7158
+ return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = Ut(j6), this.messageInstance = this.app.mount(this.container), this.messageInstance);
7161
7159
  }
7162
7160
  }
7163
- const Ne = new Z6(), Wt = Object.assign(
7161
+ const Ne = new F6(), Wt = Object.assign(
7164
7162
  (n = {}) => Ne.call(n),
7165
7163
  {
7166
7164
  success: (n, t = {}) => Ne.success(n, t),
@@ -7174,7 +7172,7 @@ const Ne = new Z6(), Wt = Object.assign(
7174
7172
  Ne.closeAll();
7175
7173
  }
7176
7174
  }
7177
- ), z6 = {
7175
+ ), Z6 = {
7178
7176
  install(n) {
7179
7177
  n.config.globalProperties.$message = Wt, n.provide("$message", Wt), n.config.globalProperties.$messageStack = {
7180
7178
  closeAll: () => Ne.closeAll(),
@@ -7182,25 +7180,25 @@ const Ne = new Z6(), Wt = Object.assign(
7182
7180
  closeById: (t) => Ne.close(t)
7183
7181
  };
7184
7182
  }
7185
- }, X6 = {
7183
+ }, Q6 = {
7186
7184
  sortable: !0,
7187
7185
  actionColumn: !1,
7188
7186
  showOverflowTooltip: !0,
7189
7187
  visible: !0,
7190
7188
  pinnedLeft: !1,
7191
7189
  pinnedRight: !1
7192
- }, Y6 = {
7190
+ }, z6 = {
7193
7191
  install(n, t = {}) {
7194
7192
  const { prefix: u = "V", modal: e = !0, message: i = !0 } = t;
7195
- n.component(`${u}Button`, Xe), n.component(`${u}Icon`, fe), n.component(`${u}Loader`, pt), n.component(`${u}Modal`, Xt), n.component(`${u}Pagination`, H3), n.component(`${u}Checkbox`, Je), n.component(`${u}Radiobox`, B3), n.component(`${u}Table`, w2), n.component(`${u}TableColumn`, k2), n.component(`${u}Dropdown`, o1), n.component(`${u}DropdownItem`, yt), n.component(`${u}Input`, Jt), n.component(`${u}Select`, e1), n.component(`${u}Option`, t1), n.component(`${u}DatePicker`, f6), n.component(`${u}TimePicker`, ht), n.component(`${u}Collapse`, C6), n.component(`${u}CollapseItem`, k6), n.component(`${u}Tabs`, S6), n.component(`${u}TabItem`, D6), n.directive("tooltip", H6), n.directive("loader", I6), e && n.use(Y3), i && n.use(z6);
7193
+ n.component(`${u}Button`, Xe), n.component(`${u}Icon`, fe), n.component(`${u}Loader`, pt), n.component(`${u}Modal`, Xt), n.component(`${u}Pagination`, H3), n.component(`${u}Checkbox`, Je), n.component(`${u}Radiobox`, B3), n.component(`${u}Table`, w2), n.component(`${u}TableColumn`, k2), n.component(`${u}Dropdown`, o1), n.component(`${u}DropdownItem`, Mt), n.component(`${u}Input`, Jt), n.component(`${u}Select`, e1), n.component(`${u}Option`, t1), n.component(`${u}DatePicker`, f6), n.component(`${u}TimePicker`, ht), n.component(`${u}Collapse`, C6), n.component(`${u}CollapseItem`, k6), n.component(`${u}Tabs`, S6), n.component(`${u}TabItem`, D6), n.directive("tooltip", H6), n.directive("loader", T6), e && n.use(Y3), i && n.use(Z6);
7196
7194
  }
7197
- }, G6 = Y6.install;
7195
+ }, X6 = z6.install;
7198
7196
  export {
7199
- X6 as DEFAULT_COLUMN_CONFIG,
7197
+ Q6 as DEFAULT_COLUMN_CONFIG,
7200
7198
  y2 as DEFAULT_FORMATS,
7201
7199
  vt as DEFAULT_TIME_FORMATS,
7202
7200
  n1 as DropdownContextKey,
7203
- K6 as FORMAT_TOKENS,
7201
+ U6 as FORMAT_TOKENS,
7204
7202
  b2 as MONTH_NAMES,
7205
7203
  l1 as MONTH_NAMES_SHORT,
7206
7204
  Xe as VButton,
@@ -7209,12 +7207,12 @@ export {
7209
7207
  k6 as VCollapseItem,
7210
7208
  f6 as VDatePicker,
7211
7209
  o1 as VDropdown,
7212
- yt as VDropdownItem,
7210
+ Mt as VDropdownItem,
7213
7211
  fe as VIcon,
7214
7212
  Jt as VInput,
7215
7213
  pt as VLoader,
7216
7214
  Wt as VMessage,
7217
- z6 as VMessagePlugin,
7215
+ Z6 as VMessagePlugin,
7218
7216
  Xt as VModal,
7219
7217
  Y3 as VModalPlugin,
7220
7218
  t1 as VOption,
@@ -7227,15 +7225,15 @@ export {
7227
7225
  S6 as VTabs,
7228
7226
  ht as VTimePicker,
7229
7227
  Gt as VtSelectContextKey,
7230
- Q6 as WEEKDAY_NAMES,
7228
+ K6 as WEEKDAY_NAMES,
7231
7229
  kt as WEEKDAY_NAMES_SHORT,
7232
- Y6 as default,
7230
+ z6 as default,
7233
7231
  L2 as formatTime,
7234
7232
  bt as generateTimeOptions,
7235
- G6 as install,
7236
- Et as isValidDate,
7237
- Mt as isValidTimeString,
7238
- I6 as loaderDirective,
7233
+ X6 as install,
7234
+ At as isValidDate,
7235
+ $t as isValidTimeString,
7236
+ T6 as loaderDirective,
7239
7237
  Ne as messageManager,
7240
7238
  Qe as modalManager,
7241
7239
  D2 as parseTimeString,