voiptime-components 1.11.2 → 1.11.4

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 u, openBlock as r, createElementVNode as s, createStaticVNode as Fe, defineComponent as ke, computed as V, createBlock as we, createCommentVNode as U, resolveDynamicComponent as m1, normalizeStyle as Ee, useSlots as c1, resolveDirective as V1, withDirectives as r1, normalizeClass as Q, renderSlot as Le, Teleport as l1, withModifiers as Se, toDisplayString as R, createTextVNode as Me, ref as H, onUnmounted as t1, nextTick as Te, watch as ye, onMounted as Ze, createVNode as ne, Fragment as ie, renderList as fe, provide as d1, unref as Y, Transition as u1, withCtx as xe, inject as h1, onBeforeUnmount as K1, createApp as X1, h as w1, mergeModels as T1, useModel as ft, reactive as S1, toRef as a1, toRefs as Ct, vShow as Q1, TransitionGroup as mt, isRef as f1 } from "vue";
1
+ import { createElementBlock as u, openBlock as r, createElementVNode as s, createStaticVNode as Fe, defineComponent as ke, computed as V, createBlock as we, createCommentVNode as U, resolveDynamicComponent as g1, normalizeStyle as Ee, useSlots as c1, resolveDirective as S1, withDirectives as r1, normalizeClass as Q, renderSlot as Le, Teleport as l1, withModifiers as Se, toDisplayString as R, createTextVNode as Me, ref as H, onUnmounted as t1, nextTick as Te, watch as ye, onMounted as Ze, createVNode as ne, Fragment as ie, renderList as fe, provide as d1, unref as Y, Transition as u1, withCtx as xe, inject as h1, onBeforeUnmount as K1, createApp as X1, h as k1, mergeModels as T1, useModel as ft, reactive as L1, toRef as a1, toRefs as Ct, vShow as Q1, TransitionGroup as mt, isRef as C1 } from "vue";
2
2
  const M = (n, e) => {
3
3
  const l = n.__vccOpts || n;
4
4
  for (const [t, i] of e)
@@ -2500,7 +2500,7 @@ const d3 = /* @__PURE__ */ M(a3, [["render", c3]]), h3 = {
2500
2500
  ...e.height && { height: typeof e.height == "number" ? `${e.height}px` : e.height },
2501
2501
  color: e.color
2502
2502
  }));
2503
- return (i, c) => l.value ? (r(), we(m1(l.value), {
2503
+ return (i, c) => l.value ? (r(), we(g1(l.value), {
2504
2504
  key: 0,
2505
2505
  style: Ee(t.value)
2506
2506
  }, null, 8, ["style"])) : U("", !0);
@@ -2509,7 +2509,7 @@ const d3 = /* @__PURE__ */ M(a3, [["render", c3]]), h3 = {
2509
2509
  function f3(n, e) {
2510
2510
  return r(), u("span", v3);
2511
2511
  }
2512
- const C1 = /* @__PURE__ */ M(p3, [["render", f3]]), C3 = ["disabled", "type", "data-placement"], m3 = {
2512
+ const m1 = /* @__PURE__ */ M(p3, [["render", f3]]), C3 = ["disabled", "type", "data-placement"], m3 = {
2513
2513
  key: 2,
2514
2514
  class: "vt-button__content"
2515
2515
  }, e1 = /* @__PURE__ */ ke({
@@ -2543,7 +2543,7 @@ const C1 = /* @__PURE__ */ M(p3, [["render", f3]]), C3 = ["disabled", "type", "d
2543
2543
  !l.disabled && !l.loading && t("click", d);
2544
2544
  };
2545
2545
  return (d, _) => {
2546
- const m = V1("tooltip");
2546
+ const m = S1("tooltip");
2547
2547
  return r1((r(), u("button", {
2548
2548
  class: Q(v.value),
2549
2549
  disabled: l.disabled || l.loading,
@@ -2551,7 +2551,7 @@ const C1 = /* @__PURE__ */ M(p3, [["render", f3]]), C3 = ["disabled", "type", "d
2551
2551
  "data-placement": l.tooltipPlacement,
2552
2552
  onClick: p
2553
2553
  }, [
2554
- l.loading ? (r(), we(C1, {
2554
+ l.loading ? (r(), we(m1, {
2555
2555
  key: 0,
2556
2556
  class: "vt-button__icon"
2557
2557
  })) : l.icon ? (r(), we(me, {
@@ -2811,7 +2811,7 @@ const C1 = /* @__PURE__ */ M(p3, [["render", f3]]), C3 = ["disabled", "type", "d
2811
2811
  transformOrigin: "center top"
2812
2812
  };
2813
2813
  };
2814
- function g1(n, e, l = {}) {
2814
+ function _1(n, e, l = {}) {
2815
2815
  const {
2816
2816
  trigger: t = "click",
2817
2817
  placement: i = "bottom-start",
@@ -3421,7 +3421,7 @@ const I3 = ["for"], B3 = {
3421
3421
  hide: A,
3422
3422
  toggle: W,
3423
3423
  updatePosition: ae
3424
- } = g1(h, v, {
3424
+ } = _1(h, v, {
3425
3425
  trigger: "click",
3426
3426
  placement: "bottom-start",
3427
3427
  showTimeout: 250,
@@ -3614,7 +3614,7 @@ const I3 = ["for"], B3 = {
3614
3614
  }), t1(() => {
3615
3615
  document.removeEventListener("click", N), window.removeEventListener("resize", te);
3616
3616
  }), (a, C) => {
3617
- const K = V1("tooltip");
3617
+ const K = S1("tooltip");
3618
3618
  return r(), u("div", {
3619
3619
  ref_key: "selectRef",
3620
3620
  ref: c,
@@ -3672,7 +3672,7 @@ const I3 = ["for"], B3 = {
3672
3672
  ])) : (r(), u("span", G3, R(a.placeholder), 1))
3673
3673
  ]),
3674
3674
  s("div", J3, [
3675
- a.loading ? (r(), we(C1, {
3675
+ a.loading ? (r(), we(m1, {
3676
3676
  key: 0,
3677
3677
  class: "vt-select__loading"
3678
3678
  })) : Oe.value ? (r(), u("button", {
@@ -3769,11 +3769,11 @@ const I3 = ["for"], B3 = {
3769
3769
  onChange: (ge) => $e(z)
3770
3770
  }, null, 8, ["checked", "disabled", "onChange"])) : U("", !0),
3771
3771
  s("span", u2, [
3772
- I(z.value) ? (r(), we(m1(I(z.value)), { key: 0 })) : (r(), u("span", c2, R(z.label || z.value), 1))
3772
+ I(z.value) ? (r(), we(g1(I(z.value)), { key: 0 })) : (r(), u("span", c2, R(z.label || z.value), 1))
3773
3773
  ])
3774
3774
  ], 42, a2))), 128)),
3775
3775
  a.loading ? (r(), u("div", d2, [
3776
- ne(C1, { class: "vt-select-dropdown__loading-icon" }),
3776
+ ne(m1, { class: "vt-select-dropdown__loading-icon" }),
3777
3777
  Me(" " + R(t.loadingText), 1)
3778
3778
  ])) : U("", !0)
3779
3779
  ], 544))
@@ -4231,7 +4231,7 @@ const S2 = (n, e, l = "asc") => {
4231
4231
  },
4232
4232
  emits: ["visible-change", "click", "command"],
4233
4233
  setup(n, { expose: e, emit: l }) {
4234
- const t = n, i = l, c = H(), h = H(), v = H(), f = H(!1), p = H(!1), d = H(null), { visible: _, parentVisible: m, dropdownPosition: b, show: o, hide: O, toggle: B } = g1(
4234
+ const t = n, i = l, c = H(), h = H(), v = H(), f = H(!1), p = H(!1), d = H(null), { visible: _, parentVisible: m, dropdownPosition: b, show: o, hide: O, toggle: B } = _1(
4235
4235
  h,
4236
4236
  v,
4237
4237
  {
@@ -4319,7 +4319,7 @@ const S2 = (n, e, l = "asc") => {
4319
4319
  ])) : U("", !0)
4320
4320
  ], 544));
4321
4321
  }
4322
- }), $1 = /* @__PURE__ */ ke({
4322
+ }), M1 = /* @__PURE__ */ ke({
4323
4323
  __name: "VDropdownItem",
4324
4324
  props: {
4325
4325
  command: {},
@@ -4370,7 +4370,7 @@ class H2 {
4370
4370
  Xe.closeById(l);
4371
4371
  }, 100);
4372
4372
  };
4373
- return () => w1(
4373
+ return () => k1(
4374
4374
  G1,
4375
4375
  {
4376
4376
  modelValue: i.value,
@@ -4383,7 +4383,7 @@ class H2 {
4383
4383
  zIndex: c
4384
4384
  },
4385
4385
  {
4386
- default: () => e.component ? w1(e.component, e.props || {}) : e.content ? w1("div", { innerHTML: e.content }) : null
4386
+ default: () => e.component ? k1(e.component, e.props || {}) : e.content ? k1("div", { innerHTML: e.content }) : null
4387
4387
  }
4388
4388
  );
4389
4389
  }
@@ -4731,7 +4731,7 @@ const Xe = new H2(), T2 = {
4731
4731
  onCommand: c
4732
4732
  }, {
4733
4733
  dropdown: xe(() => [
4734
- ne($1, { command: "pin" }, {
4734
+ ne(M1, { command: "pin" }, {
4735
4735
  default: xe(() => [
4736
4736
  ne(me, {
4737
4737
  name: i() ? "unfreeze" : "freeze"
@@ -4740,7 +4740,7 @@ const Xe = new H2(), T2 = {
4740
4740
  ]),
4741
4741
  _: 1
4742
4742
  }),
4743
- ne($1, { command: "columns" }, {
4743
+ ne(M1, { command: "columns" }, {
4744
4744
  default: xe(() => [
4745
4745
  ne(me, { name: "columnInsert" }),
4746
4746
  _[0] || (_[0] = s("div", null, "Колонки", -1))
@@ -4766,7 +4766,7 @@ const Xe = new H2(), T2 = {
4766
4766
  }, e5 = ["colspan"], t5 = { class: "vt-table__empty-content" }, n5 = ["onClick"], o5 = { class: "vt-table__cell-content" }, s5 = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, r5 = { key: 1 }, l5 = ["data-resizer", "onMousedown"], i5 = {
4767
4767
  key: 1,
4768
4768
  class: "vt-table__summary"
4769
- }, a5 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, k1 = 50, u5 = /* @__PURE__ */ ke({
4769
+ }, a5 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, b1 = 50, u5 = /* @__PURE__ */ ke({
4770
4770
  __name: "VTable",
4771
4771
  props: /* @__PURE__ */ T1({
4772
4772
  data: {},
@@ -4795,7 +4795,7 @@ const Xe = new H2(), T2 = {
4795
4795
  }),
4796
4796
  emits: /* @__PURE__ */ T1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4797
4797
  setup(n, { expose: e, emit: l }) {
4798
- const t = n, i = l, c = ft(n, "columns"), h = H({}), v = H(), f = S1([]), p = H(t.defaultSort || null), d = V(() => D2(t.data || [], p.value, f)), _ = V(() => c.value !== void 0), m = V(() => t.data && t.data.length > 0), b = H(!1), o = H(0);
4798
+ const t = n, i = l, c = ft(n, "columns"), h = H({}), v = H(), f = L1([]), p = H(t.defaultSort || null), d = V(() => D2(t.data || [], p.value, f)), _ = V(() => c.value !== void 0), m = V(() => t.data && t.data.length > 0), b = H(!1), o = H(0);
4799
4799
  let O;
4800
4800
  const B = (Z, X) => t.rowKey && Z[t.rowKey] != null ? String(Z[t.rowKey]) : String(X);
4801
4801
  ye(
@@ -4812,9 +4812,9 @@ const Xe = new H2(), T2 = {
4812
4812
  { deep: !0 }
4813
4813
  ), d1("vt-table-columns", f);
4814
4814
  const { sortedColumns: F, getDefaultColumnWidth: j, getStickyOffset: I } = $2(f), { getTableWrapperStyle: P, getColumnStyle: re, getHeaderStyle: E, getFooterStyle: S } = M2(t), { onMouseDown: ee } = x2(), oe = V(() => t.allData || t.data), T = t.selectable ? V2(t, d, i, oe) : null, G = () => ({
4815
- width: `${k1}px`,
4816
- minWidth: `${k1}px`,
4817
- maxWidth: `${k1}px`,
4815
+ width: `${b1}px`,
4816
+ minWidth: `${b1}px`,
4817
+ maxWidth: `${b1}px`,
4818
4818
  left: "0px",
4819
4819
  position: "sticky",
4820
4820
  zIndex: 10
@@ -4948,7 +4948,7 @@ const Xe = new H2(), T2 = {
4948
4948
  resetInfinityScroll: A
4949
4949
  }), (Z, X) => {
4950
4950
  var de, te, y, x;
4951
- const ue = V1("tooltip");
4951
+ const ue = S1("tooltip");
4952
4952
  return r(), u("div", {
4953
4953
  ref_key: "tableWrapperRef",
4954
4954
  ref: v,
@@ -5071,7 +5071,7 @@ const Xe = new H2(), T2 = {
5071
5071
  style: Ee(Ae(pe, Ve))
5072
5072
  }, [
5073
5073
  r1((r(), u("div", s5, [
5074
- pe.renderSlot ? (r(), we(m1(pe.renderSlot), {
5074
+ pe.renderSlot ? (r(), we(g1(pe.renderSlot), {
5075
5075
  key: 0,
5076
5076
  column: pe,
5077
5077
  index: C,
@@ -5211,7 +5211,7 @@ const Xe = new H2(), T2 = {
5211
5211
  }
5212
5212
  }), (h, v) => null;
5213
5213
  }
5214
- }), O0 = {
5214
+ }), N0 = {
5215
5215
  yyyy: {
5216
5216
  pattern: /yyyy/g,
5217
5217
  replacement: (n) => String(n.getFullYear())
@@ -5269,7 +5269,7 @@ const Xe = new H2(), T2 = {
5269
5269
  "Жовтень",
5270
5270
  "Листопад",
5271
5271
  "Грудень"
5272
- ], rt = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], Y0 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], b1 = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], h5 = {
5272
+ ], rt = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], W0 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], y1 = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], h5 = {
5273
5273
  date: "yyyy-MM-dd",
5274
5274
  datetime: "yyyy-MM-dd HH:mm:ss",
5275
5275
  daterange: "yyyy-MM-dd",
@@ -5416,12 +5416,12 @@ const Xe = new H2(), T2 = {
5416
5416
  b === "prev" ? o.setFullYear(o.getFullYear() - 10) : o.setFullYear(o.getFullYear() + 10), n.value = o;
5417
5417
  }
5418
5418
  };
5419
- }, p1 = {
5419
+ }, v1 = {
5420
5420
  "24h": "HH:mm:ss",
5421
5421
  "24h_no_seconds": "HH:mm",
5422
5422
  "12h": "hh:mm:ss A",
5423
5423
  "12h_no_seconds": "hh:mm A"
5424
- }, M1 = (n) => n ? [
5424
+ }, x1 = (n) => n ? [
5425
5425
  /^([01]?\d|2[0-3]):([0-5]\d):([0-5]\d)$/,
5426
5426
  // HH:mm:ss (24h)
5427
5427
  /^([01]?\d|2[0-3]):([0-5]\d)$/,
@@ -5435,12 +5435,12 @@ const Xe = new H2(), T2 = {
5435
5435
  if (l && (n ? i && Array.isArray(n) && (n.length !== 2 || !n[0] || !n[1]) && t.push("Необхідно вибрати початковий та кінцевий час") : t.push("Це поле є обов'язковим")), n)
5436
5436
  if (i && !Array.isArray(n) ? t.push("Для діапазону очікується масив з двох значень часу") : !i && Array.isArray(n) && t.push("Для одиночного вибору очікується одне значення часу"), Array.isArray(n)) {
5437
5437
  if (n.forEach((c, h) => {
5438
- c && (typeof c == "string" && !M1(c) ? t.push(`Некоректний формат часу ${h + 1}`) : c instanceof Date && isNaN(c.getTime()) && t.push(`Некоректне значення часу ${h + 1}`));
5438
+ c && (typeof c == "string" && !x1(c) ? t.push(`Некоректний формат часу ${h + 1}`) : c instanceof Date && isNaN(c.getTime()) && t.push(`Некоректне значення часу ${h + 1}`));
5439
5439
  }), n.length === 2 && n[0] && n[1]) {
5440
5440
  const c = Z1(n[0]), h = Z1(n[1]);
5441
5441
  c !== null && h !== null && c >= h && t.push("Початковий час повинен бути раніше кінцевого");
5442
5442
  }
5443
- } else n && (typeof n == "string" && !M1(n) ? t.push("Некоректний формат часу") : n instanceof Date && isNaN(n.getTime()) && t.push("Некоректне значення часу"));
5443
+ } else n && (typeof n == "string" && !x1(n) ? t.push("Некоректний формат часу") : n instanceof Date && isNaN(n.getTime()) && t.push("Некоректне значення часу"));
5444
5444
  return {
5445
5445
  isValid: t.length === 0,
5446
5446
  errors: t
@@ -5498,7 +5498,7 @@ const Xe = new H2(), T2 = {
5498
5498
  }
5499
5499
  }
5500
5500
  return null;
5501
- }, y1 = (n = 0, e = 59, l = 1, t = []) => {
5501
+ }, $1 = (n = 0, e = 59, l = 1, t = []) => {
5502
5502
  const i = [];
5503
5503
  for (let c = n; c <= e; c += l)
5504
5504
  i.push({
@@ -5537,7 +5537,7 @@ const Xe = new H2(), T2 = {
5537
5537
  }, c6 = { class: "vt-timepicker__options" }, d6 = ["disabled", "onClick"], h6 = {
5538
5538
  key: 1,
5539
5539
  class: "vt-timepicker__column"
5540
- }, p6 = { class: "vt-timepicker__options" }, v6 = ["onClick"], f6 = { class: "vt-timepicker__actions" }, v1 = /* @__PURE__ */ ke({
5540
+ }, p6 = { class: "vt-timepicker__options" }, v6 = ["onClick"], f6 = { class: "vt-timepicker__actions" }, f1 = /* @__PURE__ */ ke({
5541
5541
  __name: "VTimePicker",
5542
5542
  props: {
5543
5543
  modelValue: {},
@@ -5569,13 +5569,13 @@ const Xe = new H2(), T2 = {
5569
5569
  isSelectingEnd: H(!1)
5570
5570
  }, p = H(/* @__PURE__ */ new Map()), d = V(() => t.type === "timerange"), _ = (y) => {
5571
5571
  if (!y) return "";
5572
- const { hour: x, minute: a, second: C } = y, K = t.format || (t.showSeconds ? t.use12Hours ? p1["12h"] : p1["24h"] : t.use12Hours ? p1["12h_no_seconds"] : p1["24h_no_seconds"]);
5572
+ const { hour: x, minute: a, second: C } = y, K = t.format || (t.showSeconds ? t.use12Hours ? v1["12h"] : v1["24h"] : t.use12Hours ? v1["12h_no_seconds"] : v1["24h_no_seconds"]);
5573
5573
  return g5(x, a, C, K, t.use12Hours);
5574
5574
  }, m = (y) => y ? y instanceof Date ? {
5575
5575
  hour: y.getHours(),
5576
5576
  minute: y.getMinutes(),
5577
5577
  second: y.getSeconds()
5578
- } : typeof y == "string" && M1(y) ? _5(y) : null : null, b = (y, x = !1) => m5(y, t.type, x), o = V(() => t.modelValue ? d.value ? Array.isArray(t.modelValue) && t.modelValue.length === 2 ? [m(t.modelValue[0]), m(t.modelValue[1])] : [null, null] : m(t.modelValue) : d.value ? [null, null] : null), O = V(() => {
5578
+ } : typeof y == "string" && x1(y) ? _5(y) : null : null, b = (y, x = !1) => m5(y, t.type, x), o = V(() => t.modelValue ? d.value ? Array.isArray(t.modelValue) && t.modelValue.length === 2 ? [m(t.modelValue[0]), m(t.modelValue[1])] : [null, null] : m(t.modelValue) : d.value ? [null, null] : null), O = V(() => {
5579
5579
  if (d.value) {
5580
5580
  const [y, x] = o.value;
5581
5581
  return y && x ? [_(y), _(x)] : y ? [_(y), ""] : ["", ""];
@@ -5600,13 +5600,13 @@ const Xe = new H2(), T2 = {
5600
5600
  "vt-timepicker--open": W.value
5601
5601
  }
5602
5602
  ]), P = H(0), re = H(0), E = H(0), S = H("AM"), ee = H(0), oe = H(0), T = H(0), G = H("AM"), ve = V(() => {
5603
- const y = t.use12Hours ? 12 : 23, x = t.use12Hours ? 1 : 0, a = t.disabledHours ? t.disabledHours() : [], C = y1(x, y, t.hourStep, a);
5603
+ const y = t.use12Hours ? 12 : 23, x = t.use12Hours ? 1 : 0, a = t.disabledHours ? t.disabledHours() : [], C = $1(x, y, t.hourStep, a);
5604
5604
  return t.hideDisabledOptions ? C.filter((K) => !K.disabled) : C;
5605
5605
  }), Ce = V(() => {
5606
- const y = t.use12Hours ? S.value === "PM" && P.value !== 12 ? P.value + 12 : S.value === "AM" && P.value === 12 ? 0 : P.value : P.value, x = t.disabledMinutes ? t.disabledMinutes(y) : [], a = y1(0, 59, t.minuteStep, x);
5606
+ const y = t.use12Hours ? S.value === "PM" && P.value !== 12 ? P.value + 12 : S.value === "AM" && P.value === 12 ? 0 : P.value : P.value, x = t.disabledMinutes ? t.disabledMinutes(y) : [], a = $1(0, 59, t.minuteStep, x);
5607
5607
  return t.hideDisabledOptions ? a.filter((C) => !C.disabled) : a;
5608
5608
  }), D = V(() => {
5609
- const y = t.use12Hours ? S.value === "PM" && P.value !== 12 ? P.value + 12 : S.value === "AM" && P.value === 12 ? 0 : P.value : P.value, x = t.disabledSeconds ? t.disabledSeconds(y, re.value) : [], a = y1(0, 59, t.secondStep, x);
5609
+ const y = t.use12Hours ? S.value === "PM" && P.value !== 12 ? P.value + 12 : S.value === "AM" && P.value === 12 ? 0 : P.value : P.value, x = t.disabledSeconds ? t.disabledSeconds(y, re.value) : [], a = $1(0, 59, t.secondStep, x);
5610
5610
  return t.hideDisabledOptions ? a.filter((C) => !C.disabled) : a;
5611
5611
  }), A = V(() => ["AM", "PM"]), {
5612
5612
  visible: W,
@@ -5616,7 +5616,7 @@ const Xe = new H2(), T2 = {
5616
5616
  hide: le,
5617
5617
  toggle: je,
5618
5618
  updatePosition: ze
5619
- } = g1(h, v, {
5619
+ } = _1(h, v, {
5620
5620
  trigger: "click",
5621
5621
  placement: "bottom-start",
5622
5622
  showTimeout: 0,
@@ -6322,7 +6322,7 @@ const Xe = new H2(), T2 = {
6322
6322
  hide: De,
6323
6323
  toggle: Be,
6324
6324
  updatePosition: Re
6325
- } = g1(h, v, {
6325
+ } = _1(h, v, {
6326
6326
  trigger: "click",
6327
6327
  placement: "bottom-start",
6328
6328
  showTimeout: 0,
@@ -6452,8 +6452,8 @@ const Xe = new H2(), T2 = {
6452
6452
  const J = $.match(/(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?/i);
6453
6453
  if (J) {
6454
6454
  let he = parseInt(J[1]);
6455
- const Ie = parseInt(J[2]), Ue = J[3] ? parseInt(J[3]) : 0, _1 = (L = J[4]) == null ? void 0 : L.toUpperCase();
6456
- _1 && (_1 === "PM" && he !== 12 && (he += 12), _1 === "AM" && he === 12 && (he = 0)), w.setHours(he, Ie, Ue, 0);
6455
+ const Ie = parseInt(J[2]), Ue = J[3] ? parseInt(J[3]) : 0, w1 = (L = J[4]) == null ? void 0 : L.toUpperCase();
6456
+ w1 && (w1 === "PM" && he !== 12 && (he += 12), w1 === "AM" && he === 12 && (he = 0)), w.setHours(he, Ie, Ue, 0);
6457
6457
  }
6458
6458
  }
6459
6459
  return w;
@@ -6713,7 +6713,7 @@ const Xe = new H2(), T2 = {
6713
6713
  ue.value ? (r(), u("div", $6, [
6714
6714
  s("div", M6, [
6715
6715
  Ae.value ? (r(), u("div", x6, [
6716
- ne(v1, {
6716
+ ne(f1, {
6717
6717
  ref_key: "startTimePickerRef",
6718
6718
  ref: f,
6719
6719
  modelValue: o.startTime.value,
@@ -6751,7 +6751,7 @@ const Xe = new H2(), T2 = {
6751
6751
  s("div", L6, [
6752
6752
  s("div", D6, [
6753
6753
  s("div", H6, [
6754
- (r(!0), u(ie, null, fe(Y(b1), (w, L) => (r(), u("span", {
6754
+ (r(!0), u(ie, null, fe(Y(y1), (w, L) => (r(), u("span", {
6755
6755
  key: `${L}_${w}`,
6756
6756
  class: "vt-datepicker__weekday"
6757
6757
  }, R(w), 1))), 128))
@@ -6782,7 +6782,7 @@ const Xe = new H2(), T2 = {
6782
6782
  ]),
6783
6783
  s("div", B6, [
6784
6784
  Ae.value ? (r(), u("div", E6, [
6785
- ne(v1, {
6785
+ ne(f1, {
6786
6786
  ref_key: "endTimePickerRef",
6787
6787
  ref: p,
6788
6788
  modelValue: o.endTime.value,
@@ -6820,7 +6820,7 @@ const Xe = new H2(), T2 = {
6820
6820
  s("div", j6, [
6821
6821
  s("div", R6, [
6822
6822
  s("div", Z6, [
6823
- (r(!0), u(ie, null, fe(Y(b1), (w, L) => (r(), u("span", {
6823
+ (r(!0), u(ie, null, fe(Y(y1), (w, L) => (r(), u("span", {
6824
6824
  key: `${L}_${w}`,
6825
6825
  class: "vt-datepicker__weekday"
6826
6826
  }, R(w), 1))), 128))
@@ -6851,7 +6851,7 @@ const Xe = new H2(), T2 = {
6851
6851
  ])
6852
6852
  ])) : (r(), u("div", O6, [
6853
6853
  Ae.value ? (r(), u("div", Y6, [
6854
- ne(v1, {
6854
+ ne(f1, {
6855
6855
  ref_key: "startTimePickerRef",
6856
6856
  ref: f,
6857
6857
  modelValue: o.startTime.value,
@@ -6899,7 +6899,7 @@ const Xe = new H2(), T2 = {
6899
6899
  s("div", U6, [
6900
6900
  o.viewMode.value === "date" ? (r(), u("div", K6, [
6901
6901
  s("div", X6, [
6902
- (r(!0), u(ie, null, fe(Y(b1), (w, L) => (r(), u("span", {
6902
+ (r(!0), u(ie, null, fe(Y(y1), (w, L) => (r(), u("span", {
6903
6903
  key: `${L}_${w}`,
6904
6904
  class: "vt-datepicker__weekday"
6905
6905
  }, R(w), 1))), 128))
@@ -6993,7 +6993,7 @@ const Xe = new H2(), T2 = {
6993
6993
  },
6994
6994
  emits: ["update:modelValue", "change"],
6995
6995
  setup(n, { emit: e }) {
6996
- const l = n, t = e, { modelValue: i, accordion: c } = Ct(l), v = S1({
6996
+ const l = n, t = e, { modelValue: i, accordion: c } = Ct(l), v = L1({
6997
6997
  get activeNames() {
6998
6998
  return i.value;
6999
6999
  },
@@ -7126,7 +7126,7 @@ const Xe = new H2(), T2 = {
7126
7126
  }, "vt-tabs__nav-item"]),
7127
7127
  onClick: (o) => !b.disabled && p(b.name)
7128
7128
  }, [
7129
- d(b) ? (r(), we(m1(d(b)), {
7129
+ d(b) ? (r(), we(g1(d(b)), {
7130
7130
  key: 0,
7131
7131
  "is-active": c.value === b.name
7132
7132
  }, null, 8, ["is-active"])) : (r(), u(ie, { key: 1 }, [
@@ -7249,7 +7249,7 @@ const Xe = new H2(), T2 = {
7249
7249
  break;
7250
7250
  }
7251
7251
  return l.appendChild(t), l;
7252
- }, x1 = (n, e, l) => {
7252
+ }, V1 = (n, e, l) => {
7253
7253
  const t = e.getBoundingClientRect(), i = n.getBoundingClientRect(), c = window.pageXOffset || document.documentElement.scrollLeft, h = window.pageYOffset || document.documentElement.scrollTop;
7254
7254
  let v = 0, f = 0;
7255
7255
  switch (l) {
@@ -7269,7 +7269,7 @@ const Xe = new H2(), T2 = {
7269
7269
  const p = window.innerWidth, d = window.innerHeight;
7270
7270
  f < 8 ? f = 8 : f + i.width > p - 8 && (f = p - i.width - 8), v < h + 8 ? l === "top" ? v = t.bottom + h + 8 : v = h + 8 : v + i.height > h + d - 8 && (l === "bottom" ? v = t.top + h - i.height - 8 : v = h + d - i.height - 8), n.style.top = `${v}px`, n.style.left = `${f}px`;
7271
7271
  }, z1 = (n, e, l) => {
7272
- n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", x1(n, e, l), requestAnimationFrame(() => {
7272
+ n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", V1(n, e, l), requestAnimationFrame(() => {
7273
7273
  n.style.opacity = "1";
7274
7274
  });
7275
7275
  }, O1 = (n) => {
@@ -7286,7 +7286,7 @@ const Xe = new H2(), T2 = {
7286
7286
  }, h = () => {
7287
7287
  O1(i);
7288
7288
  }, v = () => {
7289
- i.style.opacity === "1" && x1(i, n, t);
7289
+ i.style.opacity === "1" && V1(i, n, t);
7290
7290
  };
7291
7291
  n.__mouseenterHandler = c, n.__mouseleaveHandler = h, n.__scrollHandler = v, n.addEventListener("mouseenter", c), n.addEventListener("mouseleave", h), window.addEventListener("scroll", v, !0), window.addEventListener("resize", v);
7292
7292
  },
@@ -7303,7 +7303,7 @@ const Xe = new H2(), T2 = {
7303
7303
  }, v = () => {
7304
7304
  O1(c);
7305
7305
  }, f = () => {
7306
- c.style.opacity === "1" && x1(c, n, i);
7306
+ c.style.opacity === "1" && V1(c, n, i);
7307
7307
  };
7308
7308
  n.__mouseenterHandler = h, n.__mouseleaveHandler = v, n.__scrollHandler = f, n.addEventListener("mouseenter", h), n.addEventListener("mouseleave", v), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f);
7309
7309
  }
@@ -7473,42 +7473,46 @@ const Ke = new L0(), U1 = Object.assign(
7473
7473
  };
7474
7474
  }
7475
7475
  };
7476
- function N0(n, e) {
7476
+ function q0(n, e) {
7477
7477
  const l = e;
7478
7478
  return l.$params = n, l;
7479
7479
  }
7480
- function W0(n, e) {
7480
+ function U0(n, e) {
7481
7481
  const l = e;
7482
7482
  return l.$message = n, l;
7483
7483
  }
7484
- function q0(n) {
7484
+ function K0(n) {
7485
7485
  const e = n;
7486
7486
  return e.$async = !0, e;
7487
7487
  }
7488
- function L1(n, e) {
7488
+ function p1(n, e) {
7489
7489
  const l = e;
7490
7490
  return l.$validatorName = n, l;
7491
7491
  }
7492
- function U0(n, e) {
7492
+ function X0(n, e) {
7493
7493
  let l = e;
7494
7494
  return n.name && (l.$validatorName = n.name), n.params && (l.$params = n.params), n.message && (l.$message = n.message), n.async && (l.$async = !0), l;
7495
7495
  }
7496
7496
  const H0 = (n) => n == null ? "Поле є обовʼязковим" : Array.isArray(n) ? n.length > 0 || "Поле є обовʼязковим" : n.toString().trim() !== "" || "Поле є обовʼязковим";
7497
- L1("required", H0);
7498
- const K0 = (n) => Object.assign(
7497
+ p1("required", H0);
7498
+ const Q0 = (n) => Object.assign(
7499
7499
  (e) => e == null || e === "" ? !0 : e.length >= n || `Мінімальна довжина ${n}`,
7500
7500
  { $params: { min: n }, $validatorName: "minLength" }
7501
- ), X0 = (n) => Object.assign(
7501
+ ), G0 = (n) => Object.assign(
7502
7502
  (e) => e == null || e === "" ? !0 : e.length <= n || `Максимальна довжина ${n}`,
7503
7503
  { $params: { max: n }, $validatorName: "maxLength" }
7504
7504
  ), T0 = (n) => (n == null || n === "" ? !0 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)) || "Невірний email";
7505
- L1("email", T0);
7506
- const Q0 = (n, e) => Object.assign(
7505
+ p1("email", T0);
7506
+ const J0 = (n, e) => Object.assign(
7507
7507
  (l) => l === n() || e || "Значення не співпадає",
7508
7508
  { $params: { eq: n }, $validatorName: "sameAs" }
7509
7509
  ), I0 = (n) => (n == null || n === "" ? !0 : !isNaN(Number(n))) || "Повинно бути числом";
7510
- L1("numeric", I0);
7511
- const G0 = (n, e = "Значення вже зайнято") => Object.assign(async (t) => t == null || t === "" ? !0 : await n(t) || e, { $async: !0, $validatorName: "uniqueAsync" });
7510
+ p1("numeric", I0);
7511
+ const B0 = (n) => n == null || n === "" ? !0 : /[A-Z]/.test(n) || "Має містити хоча б одну велику літеру";
7512
+ p1("containUpperCaseLetter", B0);
7513
+ const E0 = (n) => n == null || n === "" ? !0 : !/\s/.test(n) || "Не повинно містити пробілів";
7514
+ p1("noSpaces", E0);
7515
+ const e4 = (n, e = "Значення вже зайнято") => Object.assign(async (t) => t == null || t === "" ? !0 : await n(t) || e, { $async: !0, $validatorName: "uniqueAsync" });
7512
7516
  function lt(n, e) {
7513
7517
  if (!e) return n;
7514
7518
  const l = e.split(".");
@@ -7519,7 +7523,7 @@ function lt(n, e) {
7519
7523
  }
7520
7524
  return t;
7521
7525
  }
7522
- function B0(n, e, l) {
7526
+ function A0(n, e, l) {
7523
7527
  const t = e.split(".");
7524
7528
  let i = n;
7525
7529
  for (let c = 0; c < t.length - 1; c++) {
@@ -7528,20 +7532,20 @@ function B0(n, e, l) {
7528
7532
  }
7529
7533
  i[t[t.length - 1]] = l;
7530
7534
  }
7531
- function E0(n, e) {
7535
+ function P0(n, e) {
7532
7536
  return {
7533
7537
  get value() {
7534
- const l = f1(n) ? n.value : n;
7538
+ const l = C1(n) ? n.value : n;
7535
7539
  return lt(l, e);
7536
7540
  },
7537
7541
  set value(l) {
7538
- const t = f1(n) ? n.value : n;
7539
- B0(t, e, l);
7542
+ const t = C1(n) ? n.value : n;
7543
+ A0(t, e, l);
7540
7544
  }
7541
7545
  };
7542
7546
  }
7543
- function A0(n, e, l, t) {
7544
- const i = E0(n, e), c = H(!1), h = H(!1), v = H(!1), f = { t: 0 };
7547
+ function j0(n, e, l, t) {
7548
+ const i = P0(n, e), c = H(!1), h = H(!1), v = H(!1), f = { t: 0 };
7545
7549
  let p = [];
7546
7550
  const d = H([]);
7547
7551
  async function _(b) {
@@ -7581,14 +7585,14 @@ function A0(n, e, l, t) {
7581
7585
  }
7582
7586
  ye(
7583
7587
  () => {
7584
- const b = f1(n) ? n.value : n;
7588
+ const b = C1(n) ? n.value : n;
7585
7589
  return lt(b, e);
7586
7590
  },
7587
7591
  () => {
7588
7592
  c.value = !0, _(i.value);
7589
7593
  }
7590
7594
  );
7591
- const m = S1({
7595
+ const m = L1({
7592
7596
  get $model() {
7593
7597
  return i.value;
7594
7598
  },
@@ -7630,15 +7634,15 @@ function A0(n, e, l, t) {
7630
7634
  p = [], m.$validate();
7631
7635
  }, m;
7632
7636
  }
7633
- function J0(n, e, l) {
7634
- const t = { silentErrors: !!(l != null && l.silentErrors) }, i = typeof n == "function" ? n() : n, c = (f1(e), e);
7637
+ function t4(n, e, l) {
7638
+ const t = { silentErrors: !!(l != null && l.silentErrors) }, i = typeof n == "function" ? n() : n, c = (C1(e), e);
7635
7639
  function h(d, _ = "") {
7636
7640
  const m = {}, b = Object.keys(d || {});
7637
7641
  for (const E of b) {
7638
7642
  const S = d[E], ee = _ ? `${_}.${E}` : E;
7639
7643
  if (typeof S == "function" || Array.isArray(S) && S.length > 0 && typeof S[0] == "function") {
7640
7644
  const oe = Array.isArray(S) ? S : [S];
7641
- m[E] = A0(c, ee, oe, t);
7645
+ m[E] = j0(c, ee, oe, t);
7642
7646
  } else typeof S == "object" && S !== null ? typeof S == "object" && Array.isArray(S) === !1 && (m[E] = h(S, ee)) : m[E] = h({}, ee);
7643
7647
  }
7644
7648
  const o = async () => {
@@ -7733,25 +7737,25 @@ function J0(n, e, l) {
7733
7737
  const p = h(i, "");
7734
7738
  return p;
7735
7739
  }
7736
- const e4 = {
7740
+ const n4 = {
7737
7741
  sortable: !0,
7738
7742
  actionColumn: !1,
7739
7743
  showOverflowTooltip: !0,
7740
7744
  visible: !0,
7741
7745
  pinnedLeft: !1,
7742
7746
  pinnedRight: !1
7743
- }, P0 = {
7747
+ }, R0 = {
7744
7748
  install(n, e = {}) {
7745
7749
  const { prefix: l = "V", modal: t = !0, message: i = !0 } = e;
7746
- n.component(`${l}Button`, e1), n.component(`${l}Icon`, me), n.component(`${l}Loader`, C1), n.component(`${l}Modal`, G1), n.component(`${l}Pagination`, w2), n.component(`${l}Checkbox`, n1), n.component(`${l}Radiobox`, y2), n.component(`${l}Table`, u5), n.component(`${l}TableColumn`, c5), n.component(`${l}Dropdown`, st), n.component(`${l}DropdownItem`, $1), n.component(`${l}Input`, et), n.component(`${l}Select`, tt), n.component(`${l}Option`, nt), n.component(`${l}DatePicker`, s0), n.component(`${l}TimePicker`, v1), n.component(`${l}Collapse`, l0), n.component(`${l}CollapseItem`, c0), n.component(`${l}Tabs`, m0), n.component(`${l}TabItem`, _0), n.directive("tooltip", w0), n.directive("loader", k0), t && n.use(T2), i && n.use(D0);
7750
+ n.component(`${l}Button`, e1), n.component(`${l}Icon`, me), n.component(`${l}Loader`, m1), n.component(`${l}Modal`, G1), n.component(`${l}Pagination`, w2), n.component(`${l}Checkbox`, n1), n.component(`${l}Radiobox`, y2), n.component(`${l}Table`, u5), n.component(`${l}TableColumn`, c5), n.component(`${l}Dropdown`, st), n.component(`${l}DropdownItem`, M1), n.component(`${l}Input`, et), n.component(`${l}Select`, tt), n.component(`${l}Option`, nt), n.component(`${l}DatePicker`, s0), n.component(`${l}TimePicker`, f1), n.component(`${l}Collapse`, l0), n.component(`${l}CollapseItem`, c0), n.component(`${l}Tabs`, m0), n.component(`${l}TabItem`, _0), n.directive("tooltip", w0), n.directive("loader", k0), t && n.use(T2), i && n.use(D0);
7747
7751
  }
7748
- }, t4 = P0.install;
7752
+ }, o4 = R0.install;
7749
7753
  export {
7750
- e4 as DEFAULT_COLUMN_CONFIG,
7754
+ n4 as DEFAULT_COLUMN_CONFIG,
7751
7755
  h5 as DEFAULT_FORMATS,
7752
- p1 as DEFAULT_TIME_FORMATS,
7756
+ v1 as DEFAULT_TIME_FORMATS,
7753
7757
  ot as DropdownContextKey,
7754
- O0 as FORMAT_TOKENS,
7758
+ N0 as FORMAT_TOKENS,
7755
7759
  d5 as MONTH_NAMES,
7756
7760
  rt as MONTH_NAMES_SHORT,
7757
7761
  e1 as VButton,
@@ -7760,10 +7764,10 @@ export {
7760
7764
  c0 as VCollapseItem,
7761
7765
  s0 as VDatePicker,
7762
7766
  st as VDropdown,
7763
- $1 as VDropdownItem,
7767
+ M1 as VDropdownItem,
7764
7768
  me as VIcon,
7765
7769
  et as VInput,
7766
- C1 as VLoader,
7770
+ m1 as VLoader,
7767
7771
  U1 as VMessage,
7768
7772
  D0 as VMessagePlugin,
7769
7773
  G1 as VModal,
@@ -7776,34 +7780,36 @@ export {
7776
7780
  u5 as VTable,
7777
7781
  c5 as VTableColumn,
7778
7782
  m0 as VTabs,
7779
- v1 as VTimePicker,
7783
+ f1 as VTimePicker,
7780
7784
  J1 as VtSelectContextKey,
7781
- Y0 as WEEKDAY_NAMES,
7782
- b1 as WEEKDAY_NAMES_SHORT,
7783
- P0 as default,
7785
+ W0 as WEEKDAY_NAMES,
7786
+ y1 as WEEKDAY_NAMES_SHORT,
7787
+ B0 as containUpperCaseLetter,
7788
+ R0 as default,
7784
7789
  T0 as email,
7785
7790
  g5 as formatTime,
7786
- y1 as generateTimeOptions,
7787
- t4 as install,
7791
+ $1 as generateTimeOptions,
7792
+ o4 as install,
7788
7793
  j1 as isValidDate,
7789
- M1 as isValidTimeString,
7794
+ x1 as isValidTimeString,
7790
7795
  k0 as loaderDirective,
7791
- X0 as maxLength,
7796
+ G0 as maxLength,
7792
7797
  Ke as messageManager,
7793
- K0 as minLength,
7794
- U0 as mk,
7798
+ Q0 as minLength,
7799
+ X0 as mk,
7795
7800
  Xe as modalManager,
7801
+ E0 as noSpaces,
7796
7802
  I0 as numeric,
7797
7803
  _5 as parseTimeString,
7798
7804
  H0 as required,
7799
- Q0 as sameAs,
7805
+ J0 as sameAs,
7800
7806
  w0 as tooltipDirective,
7801
- G0 as uniqueAsync,
7802
- J0 as useValidate,
7807
+ e4 as uniqueAsync,
7808
+ t4 as useValidate,
7803
7809
  v5 as validateDateValue,
7804
7810
  m5 as validateTimeValue,
7805
- q0 as withAsync,
7806
- W0 as withMessage,
7807
- L1 as withName,
7808
- N0 as withParams
7811
+ K0 as withAsync,
7812
+ U0 as withMessage,
7813
+ p1 as withName,
7814
+ q0 as withParams
7809
7815
  };