voiptime-components 1.13.53 → 1.13.54

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
@@ -1782,6 +1782,7 @@ export declare interface VMessageMethods {
1782
1782
 
1783
1783
  export declare interface VMessageOptions {
1784
1784
  message: string;
1785
+ title?: string;
1785
1786
  type?: VMessageType;
1786
1787
  showClose?: boolean;
1787
1788
  duration?: number;
package/dist/index.es.js CHANGED
@@ -7075,7 +7075,7 @@ const il = new XZ(), VZ = {
7075
7075
  }
7076
7076
  }), (I, h) => null;
7077
7077
  }
7078
- }), Ua = {
7078
+ }), ga = {
7079
7079
  yyyy: {
7080
7080
  pattern: /yyyy/g,
7081
7081
  replacement: (t) => String(t.getFullYear())
@@ -7133,7 +7133,7 @@ const il = new XZ(), VZ = {
7133
7133
  "Жовтень",
7134
7134
  "Листопад",
7135
7135
  "Грудень"
7136
- ], a2 = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], ga = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], Jl = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], s4 = {
7136
+ ], a2 = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], Ra = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], Jl = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], s4 = {
7137
7137
  date: "yyyy-MM-dd",
7138
7138
  datetime: "yyyy-MM-dd HH:mm:ss",
7139
7139
  daterange: "yyyy-MM-dd",
@@ -9895,10 +9895,13 @@ function t2(t) {
9895
9895
  const l = t._loaderEl;
9896
9896
  l && (l.remove(), delete t._loaderEl);
9897
9897
  }
9898
- const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" }, ba = { class: "vt-message-content" }, pa = ["innerHTML"], Ya = {
9899
- key: 1,
9898
+ const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" }, ba = { class: "vt-message-content" }, pa = {
9899
+ key: 0,
9900
+ class: "vt-message-title"
9901
+ }, Ya = ["innerHTML"], Wa = {
9902
+ key: 2,
9900
9903
  class: "vt-message-text"
9901
- }, Wa = ["onClick"], ya = /* @__PURE__ */ C1({
9904
+ }, ya = ["onClick"], Sa = /* @__PURE__ */ C1({
9902
9905
  __name: "VMessage",
9903
9906
  setup(t, { expose: l }) {
9904
9907
  const n = T([]);
@@ -9912,6 +9915,7 @@ const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" },
9912
9915
  const r = ++i, u = {
9913
9916
  id: r,
9914
9917
  message: h.message || "",
9918
+ title: h.title || "",
9915
9919
  type: h.type || "primary",
9916
9920
  showClose: h.showClose || !1,
9917
9921
  duration: h.duration !== void 0 ? h.duration : 3e3,
@@ -9949,11 +9953,12 @@ const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" },
9949
9953
  }, null, 8, ["color", "name"])
9950
9954
  ]),
9951
9955
  e("div", ba, [
9956
+ u.title ? (s(), o("div", pa, z(u.title), 1)) : K("", !0),
9952
9957
  u.dangerouslyUseHTMLString ? (s(), o("div", {
9953
- key: 0,
9958
+ key: 1,
9954
9959
  class: "vt-message-text",
9955
9960
  innerHTML: u.message
9956
- }, null, 8, pa)) : (s(), o("div", Ya, z(u.message), 1))
9961
+ }, null, 8, Ya)) : (s(), o("div", Wa, z(u.message), 1))
9957
9962
  ]),
9958
9963
  u.showClose ? (s(), o("button", {
9959
9964
  key: 0,
@@ -9962,7 +9967,7 @@ const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" },
9962
9967
  onClick: (a) => I(u.id)
9963
9968
  }, [
9964
9969
  s1(h1, { name: "close" })
9965
- ], 8, Wa)) : K("", !0)
9970
+ ], 8, ya)) : K("", !0)
9966
9971
  ], 2))), 128))
9967
9972
  ]),
9968
9973
  _: 1
@@ -9971,7 +9976,7 @@ const ha = { class: "vt-message-container" }, ra = { class: "vt-message-icon" },
9971
9976
  ]));
9972
9977
  }
9973
9978
  });
9974
- class Sa {
9979
+ class Xa {
9975
9980
  constructor() {
9976
9981
  this.messageInstance = null, this.app = null, this.container = null;
9977
9982
  }
@@ -9979,6 +9984,7 @@ class Sa {
9979
9984
  call(l = {}) {
9980
9985
  return this.ensureInstance().addMessage({
9981
9986
  message: l.message || "",
9987
+ title: l.title || "",
9982
9988
  type: l.type || "primary",
9983
9989
  showClose: l.showClose || !1,
9984
9990
  duration: l.duration !== void 0 ? l.duration : 3e3,
@@ -10008,10 +10014,10 @@ class Sa {
10008
10014
  return this.messageInstance ? this.messageInstance.messages.length : 0;
10009
10015
  }
10010
10016
  ensureInstance() {
10011
- return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = s2(ya), this.messageInstance = this.app.mount(this.container), this.messageInstance);
10017
+ return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = s2(Sa), this.messageInstance = this.app.mount(this.container), this.messageInstance);
10012
10018
  }
10013
10019
  }
10014
- const B1 = new Sa(), e2 = Object.assign(
10020
+ const B1 = new Xa(), e2 = Object.assign(
10015
10021
  (t = {}) => B1.call(t),
10016
10022
  {
10017
10023
  success: (t, l = {}) => B1.success(t, l),
@@ -10025,7 +10031,7 @@ const B1 = new Sa(), e2 = Object.assign(
10025
10031
  B1.closeAll();
10026
10032
  }
10027
10033
  }
10028
- ), Xa = {
10034
+ ), Va = {
10029
10035
  install(t) {
10030
10036
  t.config.globalProperties.$message = e2, t.provide("$message", e2), t.config.globalProperties.$messageStack = {
10031
10037
  closeAll: () => B1.closeAll(),
@@ -10034,15 +10040,15 @@ const B1 = new Sa(), e2 = Object.assign(
10034
10040
  };
10035
10041
  }
10036
10042
  };
10037
- function Ra(t, l) {
10043
+ function Oa(t, l) {
10038
10044
  const n = l;
10039
10045
  return n.$params = t, n;
10040
10046
  }
10041
- function Oa(t, l) {
10047
+ function va(t, l) {
10042
10048
  const n = l;
10043
10049
  return n.$message = t, n;
10044
10050
  }
10045
- function va(t) {
10051
+ function Da(t) {
10046
10052
  const l = t;
10047
10053
  return l.$async = !0, l;
10048
10054
  }
@@ -10050,36 +10056,36 @@ function al(t, l) {
10050
10056
  const n = l;
10051
10057
  return n.$validatorName = t, n;
10052
10058
  }
10053
- function Da(t, l) {
10059
+ function Pa(t, l) {
10054
10060
  let n = l;
10055
10061
  return t.name && (n.$validatorName = t.name), t.params && (n.$params = t.params), t.message && (n.$message = t.message), t.async && (n.$async = !0), n;
10056
10062
  }
10057
- const Va = (t) => t == null ? "Поле є обовʼязковим" : Array.isArray(t) ? t.length > 0 || "Поле є обовʼязковим" : t.toString().trim() !== "" || "Поле є обовʼязковим";
10058
- al("required", Va);
10059
- const Pa = (t) => Object.assign(
10063
+ const La = (t) => t == null ? "Поле є обовʼязковим" : Array.isArray(t) ? t.length > 0 || "Поле є обовʼязковим" : t.toString().trim() !== "" || "Поле є обовʼязковим";
10064
+ al("required", La);
10065
+ const fa = (t) => Object.assign(
10060
10066
  (l) => l == null || l === "" ? !0 : l.length >= t || `Мінімальна довжина ${t}`,
10061
10067
  { $params: { min: t }, $validatorName: "minLength" }
10062
- ), fa = (t) => Object.assign(
10068
+ ), Ha = (t) => Object.assign(
10063
10069
  (l) => l == null || l === "" ? !0 : l.length <= t || `Максимальна довжина ${t}`,
10064
10070
  { $params: { max: t }, $validatorName: "maxLength" }
10065
- ), La = (t) => (t == null || t === "" ? !0 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)) || "Невірний email";
10066
- al("email", La);
10067
- const Ha = (t, l) => Object.assign(
10071
+ ), Ca = (t) => (t == null || t === "" ? !0 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)) || "Невірний email";
10072
+ al("email", Ca);
10073
+ const Ea = (t, l) => Object.assign(
10068
10074
  (n) => n === t() || l || "Значення не співпадає",
10069
10075
  { $params: { eq: t }, $validatorName: "sameAs" }
10070
- ), Ca = (t) => {
10076
+ ), Ma = (t) => {
10071
10077
  if (t == null || t === "") return !0;
10072
10078
  const l = t.toString().trim();
10073
10079
  return /^\+?\d+$/.test(l) || "Номер повинен містити лише цифри або починатися з +";
10074
10080
  };
10075
- al("phoneNumber", Ca);
10076
- const Ma = (t) => (t == null || t === "" ? !0 : !isNaN(Number(t))) || "Повинно бути числом";
10077
- al("numeric", Ma);
10078
- const Ga = (t) => t == null || t === "" ? !0 : /[A-Z]/.test(t) || "Має містити хоча б одну велику літеру";
10079
- al("containUpperCaseLetter", Ga);
10080
- const Ta = (t) => t == null || t === "" ? !0 : !/\s/.test(t) || "Не повинно містити пробілів";
10081
- al("noSpaces", Ta);
10082
- const Ea = (t, l = "Значення вже зайнято") => Object.assign(async (i) => i == null || i === "" ? !0 : await t(i) || l, { $async: !0, $validatorName: "uniqueAsync" });
10081
+ al("phoneNumber", Ma);
10082
+ const Ga = (t) => (t == null || t === "" ? !0 : !isNaN(Number(t))) || "Повинно бути числом";
10083
+ al("numeric", Ga);
10084
+ const Ta = (t) => t == null || t === "" ? !0 : /[A-Z]/.test(t) || "Має містити хоча б одну велику літеру";
10085
+ al("containUpperCaseLetter", Ta);
10086
+ const wa = (t) => t == null || t === "" ? !0 : !/\s/.test(t) || "Не повинно містити пробілів";
10087
+ al("noSpaces", wa);
10088
+ const Qa = (t, l = "Значення вже зайнято") => Object.assign(async (i) => i == null || i === "" ? !0 : await t(i) || l, { $async: !0, $validatorName: "uniqueAsync" });
10083
10089
  function h2(t, l) {
10084
10090
  if (!l) return t;
10085
10091
  const n = l.split(".");
@@ -10090,7 +10096,7 @@ function h2(t, l) {
10090
10096
  }
10091
10097
  return i;
10092
10098
  }
10093
- function wa(t, l, n) {
10099
+ function Na(t, l, n) {
10094
10100
  const i = l.split(".");
10095
10101
  let d = t;
10096
10102
  for (let m = 0; m < i.length - 1; m++) {
@@ -10099,7 +10105,7 @@ function wa(t, l, n) {
10099
10105
  }
10100
10106
  d[i[i.length - 1]] = n;
10101
10107
  }
10102
- function Na(t, l) {
10108
+ function xa(t, l) {
10103
10109
  return {
10104
10110
  get value() {
10105
10111
  const n = Vl(t) ? t.value : t;
@@ -10107,12 +10113,12 @@ function Na(t, l) {
10107
10113
  },
10108
10114
  set value(n) {
10109
10115
  const i = Vl(t) ? t.value : t;
10110
- wa(i, l, n);
10116
+ Na(i, l, n);
10111
10117
  }
10112
10118
  };
10113
10119
  }
10114
- function xa(t, l, n, i) {
10115
- const d = Na(t, l), m = T(!1), I = T(!1), h = T(!1), r = { t: 0 };
10120
+ function Ja(t, l, n, i) {
10121
+ const d = xa(t, l), m = T(!1), I = T(!1), h = T(!1), r = { t: 0 };
10116
10122
  let u = !1, a = [];
10117
10123
  const y = T([]);
10118
10124
  async function W(c) {
@@ -10203,7 +10209,7 @@ function xa(t, l, n, i) {
10203
10209
  a = [], Y.$validate();
10204
10210
  }, Y;
10205
10211
  }
10206
- function Qa(t, l, n) {
10212
+ function Ba(t, l, n) {
10207
10213
  const i = { silentErrors: !!(n != null && n.silentErrors) }, d = typeof t == "function" ? t() : t, m = (Vl(l), l);
10208
10214
  function I(a, y = "") {
10209
10215
  const W = {}, Y = Object.keys(a || {});
@@ -10211,7 +10217,7 @@ function Qa(t, l, n) {
10211
10217
  const F = a[O], A = y ? `${y}.${O}` : O;
10212
10218
  if (typeof F == "function" || Array.isArray(F) && F.length > 0 && typeof F[0] == "function") {
10213
10219
  const g = Array.isArray(F) ? F : [F];
10214
- W[O] = xa(m, A, g, i);
10220
+ W[O] = Ja(m, A, g, i);
10215
10221
  } else typeof F == "object" && F !== null ? typeof F == "object" && Array.isArray(F) === !1 && (W[O] = I(F, A)) : W[O] = I({}, A);
10216
10222
  }
10217
10223
  const c = async () => {
@@ -10306,7 +10312,7 @@ function Qa(t, l, n) {
10306
10312
  const u = I(d, "");
10307
10313
  return u;
10308
10314
  }
10309
- const Ba = {
10315
+ const _a = {
10310
10316
  sortable: !0,
10311
10317
  actionColumn: !1,
10312
10318
  showOverflowTooltip: !0,
@@ -10314,18 +10320,18 @@ const Ba = {
10314
10320
  pinnedLeft: !1,
10315
10321
  pinnedRight: !1,
10316
10322
  manage: !1
10317
- }, Ja = {
10323
+ }, ka = {
10318
10324
  install(t, l = {}) {
10319
10325
  const { prefix: n = "V", modal: i = !0, message: d = !0 } = l;
10320
- t.component(`${n}Button`, tl), t.component(`${n}Icon`, h1), t.component(`${n}Loader`, Ll), t.component(`${n}Modal`, o2), t.component(`${n}Pagination`, ZZ), t.component(`${n}Checkbox`, nl), t.component(`${n}Radiobox`, uZ), t.component(`${n}Table`, i4), t.component(`${n}TableColumn`, t4), t.component(`${n}Dropdown`, I2), t.component(`${n}DropdownItem`, Kl), t.component(`${n}Input`, c2), t.component(`${n}Select`, d2), t.component(`${n}Option`, m2), t.component(`${n}DatePicker`, bI), t.component(`${n}TimePicker`, yl), t.component(`${n}Collapse`, YI), t.component(`${n}CollapseItem`, XI), t.component(`${n}Tabs`, wI), t.component(`${n}TabItem`, NI), t.component(`${n}Upload`, qI), t.component(`${n}Sidebar`, Ia), t.directive("tooltip", aa), t.directive("loader", ua), i && t.use(VZ), d && t.use(Xa);
10326
+ t.component(`${n}Button`, tl), t.component(`${n}Icon`, h1), t.component(`${n}Loader`, Ll), t.component(`${n}Modal`, o2), t.component(`${n}Pagination`, ZZ), t.component(`${n}Checkbox`, nl), t.component(`${n}Radiobox`, uZ), t.component(`${n}Table`, i4), t.component(`${n}TableColumn`, t4), t.component(`${n}Dropdown`, I2), t.component(`${n}DropdownItem`, Kl), t.component(`${n}Input`, c2), t.component(`${n}Select`, d2), t.component(`${n}Option`, m2), t.component(`${n}DatePicker`, bI), t.component(`${n}TimePicker`, yl), t.component(`${n}Collapse`, YI), t.component(`${n}CollapseItem`, XI), t.component(`${n}Tabs`, wI), t.component(`${n}TabItem`, NI), t.component(`${n}Upload`, qI), t.component(`${n}Sidebar`, Ia), t.directive("tooltip", aa), t.directive("loader", ua), i && t.use(VZ), d && t.use(Va);
10321
10327
  }
10322
- }, _a = Ja.install;
10328
+ }, Aa = ka.install;
10323
10329
  export {
10324
- Ba as DEFAULT_COLUMN_CONFIG,
10330
+ _a as DEFAULT_COLUMN_CONFIG,
10325
10331
  s4 as DEFAULT_FORMATS,
10326
10332
  Wl as DEFAULT_TIME_FORMATS,
10327
10333
  Z2 as DropdownContextKey,
10328
- Ua as FORMAT_TOKENS,
10334
+ ga as FORMAT_TOKENS,
10329
10335
  Sl as FileParser,
10330
10336
  Zl as FileValidator,
10331
10337
  e4 as MONTH_NAMES,
@@ -10341,7 +10347,7 @@ export {
10341
10347
  c2 as VInput,
10342
10348
  Ll as VLoader,
10343
10349
  e2 as VMessage,
10344
- Xa as VMessagePlugin,
10350
+ Va as VMessagePlugin,
10345
10351
  o2 as VModal,
10346
10352
  VZ as VModalPlugin,
10347
10353
  m2 as VOption,
@@ -10356,35 +10362,35 @@ export {
10356
10362
  yl as VTimePicker,
10357
10363
  qI as VUpload,
10358
10364
  n2 as VtSelectContextKey,
10359
- ga as WEEKDAY_NAMES,
10365
+ Ra as WEEKDAY_NAMES,
10360
10366
  Jl as WEEKDAY_NAMES_SHORT,
10361
- Ga as containUpperCaseLetter,
10362
- Ja as default,
10363
- La as email,
10367
+ Ta as containUpperCaseLetter,
10368
+ ka as default,
10369
+ Ca as email,
10364
10370
  Z4 as formatTime,
10365
10371
  kl as generateTimeOptions,
10366
- _a as install,
10372
+ Aa as install,
10367
10373
  Hl as isValidDate,
10368
10374
  jl as isValidTimeString,
10369
10375
  ua as loaderDirective,
10370
- fa as maxLength,
10376
+ Ha as maxLength,
10371
10377
  B1 as messageManager,
10372
- Pa as minLength,
10373
- Da as mk,
10378
+ fa as minLength,
10379
+ Pa as mk,
10374
10380
  il as modalManager,
10375
- Ta as noSpaces,
10376
- Ma as numeric,
10381
+ wa as noSpaces,
10382
+ Ga as numeric,
10377
10383
  I4 as parseTimeString,
10378
- Ca as phoneNumber,
10379
- Va as required,
10380
- Ha as sameAs,
10384
+ Ma as phoneNumber,
10385
+ La as required,
10386
+ Ea as sameAs,
10381
10387
  aa as tooltipDirective,
10382
- Ea as uniqueAsync,
10383
- Qa as useValidate,
10388
+ Qa as uniqueAsync,
10389
+ Ba as useValidate,
10384
10390
  n4 as validateDateValue,
10385
10391
  m4 as validateTimeValue,
10386
- va as withAsync,
10387
- Oa as withMessage,
10392
+ Da as withAsync,
10393
+ va as withMessage,
10388
10394
  al as withName,
10389
- Ra as withParams
10395
+ Oa as withParams
10390
10396
  };