voiptime-components 1.11.2 → 1.11.3

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.d.ts CHANGED
@@ -750,6 +750,8 @@ export declare interface CollapseProps {
750
750
  accordion?: boolean;
751
751
  }
752
752
 
753
+ export declare const containUpperCaseLetter: ValidatorFn;
754
+
753
755
  export declare interface DatePickerShortcut {
754
756
  text: string;
755
757
  value: () => DatePickerValue;
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 m1, 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 f1 } from "vue";
2
2
  const M = (n, e) => {
3
3
  const l = n.__vccOpts || n;
4
4
  for (const [t, i] of e)
@@ -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,
@@ -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,
@@ -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,
@@ -5211,7 +5211,7 @@ const Xe = new H2(), T2 = {
5211
5211
  }
5212
5212
  }), (h, v) => null;
5213
5213
  }
5214
- }), O0 = {
5214
+ }), Y0 = {
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 = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], N0 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], y1 = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], h5 = {
5273
5273
  date: "yyyy-MM-dd",
5274
5274
  datetime: "yyyy-MM-dd HH:mm:ss",
5275
5275
  daterange: "yyyy-MM-dd",
@@ -5421,7 +5421,7 @@ const Xe = new H2(), T2 = {
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({
@@ -5575,7 +5575,7 @@ const Xe = new H2(), T2 = {
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,
@@ -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;
@@ -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))
@@ -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))
@@ -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
  },
@@ -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,44 @@ const Ke = new L0(), U1 = Object.assign(
7473
7473
  };
7474
7474
  }
7475
7475
  };
7476
- function N0(n, e) {
7476
+ function W0(n, e) {
7477
7477
  const l = e;
7478
7478
  return l.$params = n, l;
7479
7479
  }
7480
- function W0(n, e) {
7480
+ function q0(n, e) {
7481
7481
  const l = e;
7482
7482
  return l.$message = n, l;
7483
7483
  }
7484
- function q0(n) {
7484
+ function U0(n) {
7485
7485
  const e = n;
7486
7486
  return e.$async = !0, e;
7487
7487
  }
7488
- function L1(n, e) {
7488
+ function _1(n, e) {
7489
7489
  const l = e;
7490
7490
  return l.$validatorName = n, l;
7491
7491
  }
7492
- function U0(n, e) {
7492
+ function K0(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
+ _1("required", H0);
7498
+ const X0 = (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
+ ), Q0 = (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
+ _1("email", T0);
7506
+ const G0 = (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
+ _1("numeric", I0);
7511
+ const B0 = (n) => n == null || n === "" ? !0 : /[A-Z]/.test(n) || "Має містити хоча б одну велику літеру";
7512
+ _1("containUpperCaseLetter", B0);
7513
+ const J0 = (n, e = "Значення вже зайнято") => Object.assign(async (t) => t == null || t === "" ? !0 : await n(t) || e, { $async: !0, $validatorName: "uniqueAsync" });
7512
7514
  function lt(n, e) {
7513
7515
  if (!e) return n;
7514
7516
  const l = e.split(".");
@@ -7519,7 +7521,7 @@ function lt(n, e) {
7519
7521
  }
7520
7522
  return t;
7521
7523
  }
7522
- function B0(n, e, l) {
7524
+ function E0(n, e, l) {
7523
7525
  const t = e.split(".");
7524
7526
  let i = n;
7525
7527
  for (let c = 0; c < t.length - 1; c++) {
@@ -7528,7 +7530,7 @@ function B0(n, e, l) {
7528
7530
  }
7529
7531
  i[t[t.length - 1]] = l;
7530
7532
  }
7531
- function E0(n, e) {
7533
+ function A0(n, e) {
7532
7534
  return {
7533
7535
  get value() {
7534
7536
  const l = f1(n) ? n.value : n;
@@ -7536,12 +7538,12 @@ function E0(n, e) {
7536
7538
  },
7537
7539
  set value(l) {
7538
7540
  const t = f1(n) ? n.value : n;
7539
- B0(t, e, l);
7541
+ E0(t, e, l);
7540
7542
  }
7541
7543
  };
7542
7544
  }
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 };
7545
+ function P0(n, e, l, t) {
7546
+ const i = A0(n, e), c = H(!1), h = H(!1), v = H(!1), f = { t: 0 };
7545
7547
  let p = [];
7546
7548
  const d = H([]);
7547
7549
  async function _(b) {
@@ -7588,7 +7590,7 @@ function A0(n, e, l, t) {
7588
7590
  c.value = !0, _(i.value);
7589
7591
  }
7590
7592
  );
7591
- const m = S1({
7593
+ const m = L1({
7592
7594
  get $model() {
7593
7595
  return i.value;
7594
7596
  },
@@ -7630,7 +7632,7 @@ function A0(n, e, l, t) {
7630
7632
  p = [], m.$validate();
7631
7633
  }, m;
7632
7634
  }
7633
- function J0(n, e, l) {
7635
+ function e4(n, e, l) {
7634
7636
  const t = { silentErrors: !!(l != null && l.silentErrors) }, i = typeof n == "function" ? n() : n, c = (f1(e), e);
7635
7637
  function h(d, _ = "") {
7636
7638
  const m = {}, b = Object.keys(d || {});
@@ -7638,7 +7640,7 @@ function J0(n, e, l) {
7638
7640
  const S = d[E], ee = _ ? `${_}.${E}` : E;
7639
7641
  if (typeof S == "function" || Array.isArray(S) && S.length > 0 && typeof S[0] == "function") {
7640
7642
  const oe = Array.isArray(S) ? S : [S];
7641
- m[E] = A0(c, ee, oe, t);
7643
+ m[E] = P0(c, ee, oe, t);
7642
7644
  } else typeof S == "object" && S !== null ? typeof S == "object" && Array.isArray(S) === !1 && (m[E] = h(S, ee)) : m[E] = h({}, ee);
7643
7645
  }
7644
7646
  const o = async () => {
@@ -7733,25 +7735,25 @@ function J0(n, e, l) {
7733
7735
  const p = h(i, "");
7734
7736
  return p;
7735
7737
  }
7736
- const e4 = {
7738
+ const t4 = {
7737
7739
  sortable: !0,
7738
7740
  actionColumn: !1,
7739
7741
  showOverflowTooltip: !0,
7740
7742
  visible: !0,
7741
7743
  pinnedLeft: !1,
7742
7744
  pinnedRight: !1
7743
- }, P0 = {
7745
+ }, j0 = {
7744
7746
  install(n, e = {}) {
7745
7747
  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);
7748
+ 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`, 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`, 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);
7747
7749
  }
7748
- }, t4 = P0.install;
7750
+ }, n4 = j0.install;
7749
7751
  export {
7750
- e4 as DEFAULT_COLUMN_CONFIG,
7752
+ t4 as DEFAULT_COLUMN_CONFIG,
7751
7753
  h5 as DEFAULT_FORMATS,
7752
7754
  p1 as DEFAULT_TIME_FORMATS,
7753
7755
  ot as DropdownContextKey,
7754
- O0 as FORMAT_TOKENS,
7756
+ Y0 as FORMAT_TOKENS,
7755
7757
  d5 as MONTH_NAMES,
7756
7758
  rt as MONTH_NAMES_SHORT,
7757
7759
  e1 as VButton,
@@ -7760,7 +7762,7 @@ export {
7760
7762
  c0 as VCollapseItem,
7761
7763
  s0 as VDatePicker,
7762
7764
  st as VDropdown,
7763
- $1 as VDropdownItem,
7765
+ M1 as VDropdownItem,
7764
7766
  me as VIcon,
7765
7767
  et as VInput,
7766
7768
  C1 as VLoader,
@@ -7778,32 +7780,33 @@ export {
7778
7780
  m0 as VTabs,
7779
7781
  v1 as VTimePicker,
7780
7782
  J1 as VtSelectContextKey,
7781
- Y0 as WEEKDAY_NAMES,
7782
- b1 as WEEKDAY_NAMES_SHORT,
7783
- P0 as default,
7783
+ N0 as WEEKDAY_NAMES,
7784
+ y1 as WEEKDAY_NAMES_SHORT,
7785
+ B0 as containUpperCaseLetter,
7786
+ j0 as default,
7784
7787
  T0 as email,
7785
7788
  g5 as formatTime,
7786
- y1 as generateTimeOptions,
7787
- t4 as install,
7789
+ $1 as generateTimeOptions,
7790
+ n4 as install,
7788
7791
  j1 as isValidDate,
7789
- M1 as isValidTimeString,
7792
+ x1 as isValidTimeString,
7790
7793
  k0 as loaderDirective,
7791
- X0 as maxLength,
7794
+ Q0 as maxLength,
7792
7795
  Ke as messageManager,
7793
- K0 as minLength,
7794
- U0 as mk,
7796
+ X0 as minLength,
7797
+ K0 as mk,
7795
7798
  Xe as modalManager,
7796
7799
  I0 as numeric,
7797
7800
  _5 as parseTimeString,
7798
7801
  H0 as required,
7799
- Q0 as sameAs,
7802
+ G0 as sameAs,
7800
7803
  w0 as tooltipDirective,
7801
- G0 as uniqueAsync,
7802
- J0 as useValidate,
7804
+ J0 as uniqueAsync,
7805
+ e4 as useValidate,
7803
7806
  v5 as validateDateValue,
7804
7807
  m5 as validateTimeValue,
7805
- q0 as withAsync,
7806
- W0 as withMessage,
7807
- L1 as withName,
7808
- N0 as withParams
7808
+ U0 as withAsync,
7809
+ q0 as withMessage,
7810
+ _1 as withName,
7811
+ W0 as withParams
7809
7812
  };