voiptime-components 1.21.63 → 1.21.65

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
@@ -269,6 +269,7 @@ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {
269
269
  }) => any;
270
270
  "columns-change": (columns: VTableColumnProps[]) => any;
271
271
  "infinity-scroll": () => any;
272
+ "update:sort": (value: SortState | null) => any;
272
273
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
273
274
  "onCurrent-change"?: ((payload: {
274
275
  currentRow: Record<string, any> | null;
@@ -307,6 +308,7 @@ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {
307
308
  }) => any) | undefined;
308
309
  "onColumns-change"?: ((columns: VTableColumnProps[]) => any) | undefined;
309
310
  "onInfinity-scroll"?: (() => any) | undefined;
311
+ "onUpdate:sort"?: ((value: SortState | null) => any) | undefined;
310
312
  }>, {
311
313
  maxHeight: number | string;
312
314
  selectable: boolean;
@@ -529,6 +531,7 @@ declare type __VLS_Props_2 = {
529
531
 
530
532
  declare type __VLS_PublicProps = {
531
533
  'columns'?: VTableColumnProps[] | undefined;
534
+ 'sort'?: SortState | null;
532
535
  } & __VLS_Props;
533
536
 
534
537
  declare function __VLS_template(): {
@@ -2976,6 +2979,7 @@ export declare interface VtSelectProps {
2976
2979
  required?: boolean;
2977
2980
  requiredMessage?: string;
2978
2981
  valueKey?: string;
2982
+ labelKey?: string;
2979
2983
  errorMessage?: string;
2980
2984
  filterPlaceholder?: string;
2981
2985
  allowRemoteFilter?: boolean;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as d, openBlock as c, createElementVNode as o, createStaticVNode as G1, defineComponent as X1, computed as T, createBlock as C1, createCommentVNode as O, resolveDynamicComponent as It, normalizeStyle as L1, useSlots as Ft, resolveDirective as Bt, withDirectives as ct, normalizeClass as c1, renderSlot as U1, Teleport as Vt, withModifiers as P1, toDisplayString as K, createTextVNode as J1, ref as j, onUnmounted as ot, nextTick as z1, isRef as gt, readonly as ai, getCurrentInstance as ri, inject as Mt, watch as R1, onMounted as _1, createVNode as r1, Fragment as a1, renderList as b1, provide as kt, unref as z, Transition as Et, withCtx as j1, onBeforeUnmount as xt, createApp as Oe, h as te, mergeModels as Ht, useModel as ne, reactive as At, toRef as Jt, toRefs as ui, vShow as Kt, withKeys as oe, shallowRef as ye, mergeProps as mi, TransitionGroup as hi } from "vue";
1
+ import { createElementBlock as d, openBlock as c, createElementVNode as o, createStaticVNode as G1, defineComponent as X1, computed as T, createBlock as C1, createCommentVNode as O, resolveDynamicComponent as It, normalizeStyle as L1, useSlots as Ft, resolveDirective as At, withDirectives as ct, normalizeClass as c1, renderSlot as U1, Teleport as Vt, withModifiers as P1, toDisplayString as K, createTextVNode as J1, ref as j, onUnmounted as ot, nextTick as z1, isRef as gt, readonly as ai, getCurrentInstance as ri, inject as Mt, watch as R1, onMounted as _1, createVNode as r1, Fragment as a1, renderList as b1, provide as kt, unref as z, Transition as Et, withCtx as j1, onBeforeUnmount as xt, createApp as Oe, h as ee, mergeModels as Ht, useModel as Qt, reactive as $t, toRef as Jt, toRefs as ui, vShow as Kt, withKeys as oe, shallowRef as ye, mergeProps as mi, TransitionGroup as hi } from "vue";
2
2
  const V = (e, t) => {
3
3
  const i = e.__vccOpts || e;
4
4
  for (const [s, l] of t)
@@ -4592,7 +4592,7 @@ const Ju = /* @__PURE__ */ V(wu, [["render", xu]]), gu = {
4592
4592
  function ju(e, t) {
4593
4593
  return c(), d("span", vu);
4594
4594
  }
4595
- const Qt = /* @__PURE__ */ V(Ku, [["render", ju]]), Fu = ["data-placement", "disabled", "type"], Uu = {
4595
+ const _t = /* @__PURE__ */ V(Ku, [["render", ju]]), Fu = ["data-placement", "disabled", "type"], Uu = {
4596
4596
  key: 2,
4597
4597
  class: "vt-button__content"
4598
4598
  }, q1 = /* @__PURE__ */ X1({
@@ -4630,7 +4630,7 @@ const Qt = /* @__PURE__ */ V(Ku, [["render", ju]]), Fu = ["data-placement", "dis
4630
4630
  !i.disabled && !i.loading && s("click", y);
4631
4631
  };
4632
4632
  return (y, b) => {
4633
- const W = Bt("tooltip");
4633
+ const W = At("tooltip");
4634
4634
  return ct((c(), d("button", {
4635
4635
  class: c1(u.value),
4636
4636
  "data-placement": i.tooltipPlacement,
@@ -4639,7 +4639,7 @@ const Qt = /* @__PURE__ */ V(Ku, [["render", ju]]), Fu = ["data-placement", "dis
4639
4639
  type: i.htmlType,
4640
4640
  onClick: Z
4641
4641
  }, [
4642
- i.loading ? (c(), C1(Qt, {
4642
+ i.loading ? (c(), C1(_t, {
4643
4643
  key: 0,
4644
4644
  class: "vt-button__icon"
4645
4645
  })) : i.icon ? (c(), C1(W1, {
@@ -4900,7 +4900,7 @@ const Qt = /* @__PURE__ */ V(Ku, [["render", ju]]), Fu = ["data-placement", "dis
4900
4900
  transformOrigin: "center top"
4901
4901
  };
4902
4902
  };
4903
- function $t(e, t, i = {}) {
4903
+ function qt(e, t, i = {}) {
4904
4904
  const {
4905
4905
  trigger: s = "click",
4906
4906
  placement: l = "bottom-start",
@@ -5882,6 +5882,7 @@ const om = ["for"], cm = {
5882
5882
  required: { type: Boolean },
5883
5883
  requiredMessage: {},
5884
5884
  valueKey: {},
5885
+ labelKey: {},
5885
5886
  errorMessage: {},
5886
5887
  filterPlaceholder: { default: void 0 },
5887
5888
  allowRemoteFilter: { type: Boolean, default: !1 }
@@ -5958,7 +5959,7 @@ const om = ["for"], cm = {
5958
5959
  hide: n1,
5959
5960
  toggle: u1,
5960
5961
  updatePosition: F1
5961
- } = $t(u, I, {
5962
+ } = qt(u, I, {
5962
5963
  trigger: "click",
5963
5964
  placement: "bottom-start",
5964
5965
  showTimeout: 250,
@@ -6031,7 +6032,7 @@ const om = ["for"], cm = {
6031
6032
  for (const Z1 of $)
6032
6033
  if (ht(Z1.value, k, l.valueKey))
6033
6034
  return Z1.label ?? "";
6034
- return typeof k == "object" ? k.label ? String(k.label) : k.name ? String(k.name) : l.valueKey && k[l.valueKey] !== void 0 ? String(k[l.valueKey]) : JSON.stringify(k) : String(k);
6035
+ return typeof k == "object" ? k.label ? String(k.label) : k.name ? String(k.name) : l.labelKey && k[l.labelKey] !== void 0 ? String(k[l.labelKey]) : l.valueKey && k[l.valueKey] !== void 0 ? String(k[l.valueKey]) : JSON.stringify(k) : String(k);
6035
6036
  }, H1 = T(() => {
6036
6037
  if (!l.multiple || T1.value.length === 0) return [];
6037
6038
  if (!l.collapsedTags)
@@ -6244,7 +6245,7 @@ const om = ["for"], cm = {
6244
6245
  }), ot(() => {
6245
6246
  document.removeEventListener("click", at), window.removeEventListener("resize", g1);
6246
6247
  }), (k, $) => {
6247
- const Z1 = Bt("tooltip");
6248
+ const Z1 = At("tooltip");
6248
6249
  return c(), d("div", {
6249
6250
  ref_key: "selectRef",
6250
6251
  ref: r,
@@ -6322,7 +6323,7 @@ const om = ["for"], cm = {
6322
6323
  ])) : k.outlined ? O("", !0) : (c(), d("span", Jm, K(C.value), 1))
6323
6324
  ]),
6324
6325
  o("div", gm, [
6325
- k.loading ? (c(), C1(Qt, {
6326
+ k.loading ? (c(), C1(_t, {
6326
6327
  key: 0,
6327
6328
  class: "vt-select__loading"
6328
6329
  })) : B.value ? (c(), d("button", {
@@ -6435,7 +6436,7 @@ const om = ["for"], cm = {
6435
6436
  ])
6436
6437
  ], 42, Dm))), 128)),
6437
6438
  k.loading ? (c(), d("div", Em, [
6438
- r1(Qt, { class: "vt-select-dropdown__loading-icon" }),
6439
+ r1(_t, { class: "vt-select-dropdown__loading-icon" }),
6439
6440
  J1(" " + K(E.value), 1)
6440
6441
  ])) : O("", !0)
6441
6442
  ], 36))
@@ -6964,7 +6965,7 @@ const u4 = (e, t, i = "asc") => {
6964
6965
  const u = n[s.prop], I = r[s.prop];
6965
6966
  return l(u, I, t.direction);
6966
6967
  });
6967
- }, Qe = Symbol("dropdown-context"), I4 = 300, qt = /* @__PURE__ */ X1({
6968
+ }, Qe = Symbol("dropdown-context"), I4 = 300, te = /* @__PURE__ */ X1({
6968
6969
  __name: "VDropdown",
6969
6970
  props: {
6970
6971
  trigger: { default: "hover" },
@@ -6981,7 +6982,7 @@ const u4 = (e, t, i = "asc") => {
6981
6982
  },
6982
6983
  emits: ["visible-change", "click", "command", "scrolled"],
6983
6984
  setup(e, { expose: t, emit: i }) {
6984
- const s = e, l = i, n = j(), r = j(), u = j(), I = j(), h = j(!1), Z = j(!1), y = j(null), { visible: b, parentVisible: W, dropdownPosition: p, show: C, hide: m, toggle: E } = $t(
6985
+ const s = e, l = i, n = j(), r = j(), u = j(), I = j(), h = j(!1), Z = j(!1), y = j(null), { visible: b, parentVisible: W, dropdownPosition: p, show: C, hide: m, toggle: E } = qt(
6985
6986
  r,
6986
6987
  u,
6987
6988
  {
@@ -7084,7 +7085,7 @@ const u4 = (e, t, i = "asc") => {
7084
7085
  ])) : O("", !0)
7085
7086
  ], 544));
7086
7087
  }
7087
- }), _t = /* @__PURE__ */ X1({
7088
+ }), Bt = /* @__PURE__ */ X1({
7088
7089
  __name: "VDropdownItem",
7089
7090
  props: {
7090
7091
  command: {},
@@ -7135,7 +7136,7 @@ class Z4 {
7135
7136
  mt.closeById(i);
7136
7137
  }, 100);
7137
7138
  };
7138
- return () => te(
7139
+ return () => ee(
7139
7140
  fe,
7140
7141
  {
7141
7142
  modelValue: l.value,
@@ -7148,7 +7149,7 @@ class Z4 {
7148
7149
  zIndex: n
7149
7150
  },
7150
7151
  {
7151
- default: () => t.component ? te(t.component, t.props || {}) : t.content ? te("div", { innerHTML: t.content }) : null
7152
+ default: () => t.component ? ee(t.component, t.props || {}) : t.content ? ee("div", { innerHTML: t.content }) : null
7152
7153
  }
7153
7154
  );
7154
7155
  }
@@ -7553,13 +7554,13 @@ const mt = new Z4(), p4 = {
7553
7554
  closeOnBackdropClick: !1
7554
7555
  });
7555
7556
  };
7556
- return (y, b) => (c(), C1(qt, {
7557
+ return (y, b) => (c(), C1(te, {
7557
7558
  placement: "bottom-start",
7558
7559
  trigger: "click",
7559
7560
  onCommand: r
7560
7561
  }, {
7561
7562
  dropdown: j1(() => [
7562
- r1(_t, { command: "pin" }, {
7563
+ r1(Bt, { command: "pin" }, {
7563
7564
  default: j1(() => [
7564
7565
  r1(W1, {
7565
7566
  name: n() ? "unfreeze" : "freeze"
@@ -7568,7 +7569,7 @@ const mt = new Z4(), p4 = {
7568
7569
  ]),
7569
7570
  _: 1
7570
7571
  }),
7571
- r1(_t, { command: "columns" }, {
7572
+ r1(Bt, { command: "columns" }, {
7572
7573
  default: j1(() => [
7573
7574
  r1(W1, { name: "columnInsert" }),
7574
7575
  o("div", null, K(z(l)(z(a).TABLE_COLUMNS)), 1)
@@ -7606,7 +7607,7 @@ const mt = new Z4(), p4 = {
7606
7607
  }, R4 = ["colspan"], O4 = ["draggable", "onClick", "onDblclick", "onDragenter", "onDragover", "onDragstart", "onDrop"], f4 = { class: "vt-table__cell-content vt-table__cell-content--selection" }, D4 = { class: "vt-table__cell-content vt-table__drag-handle" }, P4 = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, E4 = { key: 1 }, H4 = ["data-resizer", "onMousedown"], Q4 = {
7607
7608
  key: 1,
7608
7609
  class: "vt-table__summary"
7609
- }, _4 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, zt = 40, ee = 40, B4 = /* @__PURE__ */ X1({
7610
+ }, _4 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, zt = 40, ie = 40, B4 = /* @__PURE__ */ X1({
7610
7611
  __name: "VTable",
7611
7612
  props: /* @__PURE__ */ Ht({
7612
7613
  data: {},
@@ -7633,33 +7634,37 @@ const mt = new Z4(), p4 = {
7633
7634
  required: !1,
7634
7635
  default: void 0
7635
7636
  },
7636
- columnsModifiers: {}
7637
+ columnsModifiers: {},
7638
+ sort: {
7639
+ default: null
7640
+ },
7641
+ sortModifiers: {}
7637
7642
  }),
7638
- emits: /* @__PURE__ */ Ht(["sort-change", "selection-change", "current-change", "row-click", "row-dblclick", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll", "row-reorder", "update:data"], ["update:columns"]),
7643
+ emits: /* @__PURE__ */ Ht(["sort-change", "selection-change", "current-change", "row-click", "row-dblclick", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll", "row-reorder", "update:data"], ["update:columns", "update:sort"]),
7639
7644
  setup(e, { expose: t, emit: i }) {
7640
- const s = e, { t: l } = v1(), n = i, r = ne(e, "columns"), u = j({}), I = j(), h = At([]), Z = j([]), y = j(s.defaultSort || null), b = j(!1), W = T(() => h4(s.data || [], y.value, h)), p = T(() => r.value !== void 0), C = T(() => s.data && s.data.length > 0), m = j(!1), E = j(0);
7645
+ const s = e, { t: l } = v1(), n = i, r = Qt(e, "columns"), u = Qt(e, "sort"), I = j({}), h = j(), Z = $t([]), y = j([]), b = j(!1), W = T(() => h4(s.data || [], u.value, Z)), p = T(() => r.value !== void 0), C = T(() => s.data && s.data.length > 0), m = j(!1), E = j(0);
7641
7646
  let v;
7642
7647
  const w = (o1, h1) => s.rowKey && o1[s.rowKey] != null ? String(o1[s.rowKey]) : String(h1);
7643
7648
  R1(
7644
7649
  () => r.value,
7645
7650
  (o1) => {
7646
- o1 && p.value && (h.length = 0, h.push(...o1));
7651
+ o1 && p.value && (Z.length = 0, Z.push(...o1));
7647
7652
  },
7648
7653
  { deep: !0 }
7649
7654
  ), R1(
7650
7655
  () => s.columns,
7651
7656
  (o1) => {
7652
- o1 && !p.value && (h.length = 0, h.push(...o1));
7657
+ o1 && !p.value && (Z.length = 0, Z.push(...o1));
7653
7658
  },
7654
7659
  { deep: !0 }
7655
7660
  ), R1(
7656
- h,
7661
+ Z,
7657
7662
  (o1) => {
7658
- !b.value && o1.length > 0 && (Z.value = o1.map((h1) => ({ ...h1 })), b.value = !0);
7663
+ !b.value && o1.length > 0 && (y.value = o1.map((h1) => ({ ...h1 })), b.value = !0);
7659
7664
  },
7660
7665
  { deep: !0 }
7661
- ), kt("vt-table-columns", h);
7662
- const { sortedColumns: J, getDefaultColumnWidth: x, getStickyOffset: L } = o4(h), { getTableWrapperStyle: Y, getColumnStyle: U, getHeaderStyle: g, getFooterStyle: M } = c4(s), { onMouseDown: H } = d4(), Q = T(() => s.allData || s.data), F = s.selectable ? a4(s, W, n, Q) : null, R = s.rowDraggable ? r4(() => W.value, n) : null, e1 = () => ({
7666
+ ), kt("vt-table-columns", Z);
7667
+ const { sortedColumns: J, getDefaultColumnWidth: x, getStickyOffset: L } = o4(Z), { getTableWrapperStyle: Y, getColumnStyle: U, getHeaderStyle: g, getFooterStyle: M } = c4(s), { onMouseDown: H } = d4(), Q = T(() => s.allData || s.data), F = s.selectable ? a4(s, W, n, Q) : null, R = s.rowDraggable ? r4(() => W.value, n) : null, e1 = () => ({
7663
7668
  width: `${zt}px`,
7664
7669
  minWidth: `${zt}px`,
7665
7670
  maxWidth: `${zt}px`,
@@ -7669,9 +7674,9 @@ const mt = new Z4(), p4 = {
7669
7674
  }), l1 = () => {
7670
7675
  const o1 = s.selectable ? zt : 0;
7671
7676
  return {
7672
- width: `${ee}px`,
7673
- minWidth: `${ee}px`,
7674
- maxWidth: `${ee}px`,
7677
+ width: `${ie}px`,
7678
+ minWidth: `${ie}px`,
7679
+ maxWidth: `${ie}px`,
7675
7680
  left: `${o1}px`,
7676
7681
  position: "sticky",
7677
7682
  zIndex: 10
@@ -7705,49 +7710,49 @@ const mt = new Z4(), p4 = {
7705
7710
  zIndex: 12
7706
7711
  } : o1;
7707
7712
  }, D = () => {
7708
- if (!I.value || m.value) return;
7709
- const o1 = I.value, h1 = o1.scrollTop, p1 = o1.scrollHeight, S1 = o1.clientHeight, Y1 = 30;
7713
+ if (!h.value || m.value) return;
7714
+ const o1 = h.value, h1 = o1.scrollTop, p1 = o1.scrollHeight, S1 = o1.clientHeight, Y1 = 30;
7710
7715
  v && clearTimeout(v), v = setTimeout(() => {
7711
7716
  const q = h1 - E.value > 1, G = p1 - h1 - S1 <= Y1, i1 = p1 - h1 - S1 <= 5;
7712
7717
  E.value = h1, q && (G || i1) && (m.value = !0, n("infinity-scroll"), m.value = !1);
7713
7718
  }, 50);
7714
7719
  };
7715
7720
  _1(() => {
7716
- I.value && I.value.addEventListener("scroll", D);
7721
+ h.value && h.value.addEventListener("scroll", D);
7717
7722
  }), ot(() => {
7718
- v && clearTimeout(v), I.value && I.value.removeEventListener("scroll", D);
7723
+ v && clearTimeout(v), h.value && h.value.removeEventListener("scroll", D);
7719
7724
  });
7720
7725
  const d1 = (o1, h1) => {
7721
7726
  m4(o1, h1, (p1) => {
7722
7727
  var S1, Y1;
7723
- ((S1 = y.value) == null ? void 0 : S1.prop) === o1.prop && y.value.direction === h1 ? y.value = null : y.value = p1, n("sort-change", {
7728
+ ((S1 = u.value) == null ? void 0 : S1.prop) === o1.prop && u.value.direction === h1 ? u.value = null : u.value = p1, n("sort-change", {
7724
7729
  column: o1,
7725
- direction: ((Y1 = y.value) == null ? void 0 : Y1.direction) || null,
7730
+ direction: ((Y1 = u.value) == null ? void 0 : Y1.direction) || null,
7726
7731
  prop: o1.prop,
7727
7732
  sortedData: W.value
7728
7733
  });
7729
7734
  });
7730
7735
  }, n1 = (o1, h1) => {
7731
7736
  var _;
7732
- const p1 = (_ = u.value[o1.prop]) == null ? void 0 : _.getBoundingClientRect().width, S1 = Number(o1.width) || (p1 ? Math.round(p1) : void 0), Y1 = {
7737
+ const p1 = (_ = I.value[o1.prop]) == null ? void 0 : _.getBoundingClientRect().width, S1 = Number(o1.width) || (p1 ? Math.round(p1) : void 0), Y1 = {
7733
7738
  pinnedLeft: h1 === "left",
7734
7739
  pinnedRight: h1 === "right",
7735
7740
  width: S1
7736
7741
  };
7737
7742
  F1(o1.prop, Y1), n("column-pin", { column: { ...o1, ...Y1 }, position: h1 });
7738
7743
  }, u1 = (o1) => {
7739
- h.splice(0, h.length, ...o1), p.value && (r.value = [...o1]), n("columns-change", [...o1]);
7744
+ Z.splice(0, Z.length, ...o1), p.value && (r.value = [...o1]), n("columns-change", [...o1]);
7740
7745
  }, F1 = (o1, h1) => {
7741
- const p1 = h.findIndex((S1) => S1.prop === o1);
7746
+ const p1 = Z.findIndex((S1) => S1.prop === o1);
7742
7747
  if (p1 !== -1) {
7743
- if (Object.assign(h[p1], h1), p.value && r.value) {
7748
+ if (Object.assign(Z[p1], h1), p.value && r.value) {
7744
7749
  const S1 = r.value.findIndex((Y1) => Y1.prop === o1);
7745
7750
  if (S1 !== -1) {
7746
7751
  const Y1 = [...r.value];
7747
7752
  Y1[S1] = { ...Y1[S1], ...h1 }, r.value = Y1;
7748
7753
  }
7749
7754
  }
7750
- n("columns-change", [...h]);
7755
+ n("columns-change", [...Z]);
7751
7756
  }
7752
7757
  }, K1 = (o1, h1, p1) => {
7753
7758
  n("row-click", { row: o1, column: h1, event: p1 }), s.highlightCurrentRow && F && F.setCurrentRow(o1);
@@ -7758,7 +7763,7 @@ const mt = new Z4(), p4 = {
7758
7763
  }, it = (o1, h1) => {
7759
7764
  h1.stopPropagation(), F && F.toggleAllSelection();
7760
7765
  }, H1 = (o1, h1) => {
7761
- o1 && (u.value[h1] = o1);
7766
+ o1 && (I.value[h1] = o1);
7762
7767
  }, S = (o1, h1) => {
7763
7768
  const p1 = h1.width || x();
7764
7769
  H(o1, h1, x, (S1) => {
@@ -7789,7 +7794,7 @@ const mt = new Z4(), p4 = {
7789
7794
  return p1 == null ? "" : typeof p1 == "string" && p1.includes("<") ? O1(p1) : String(p1);
7790
7795
  }, B1 = T(() => {
7791
7796
  if (!s.showSummary || !C.value) return {};
7792
- const o1 = h;
7797
+ const o1 = Z;
7793
7798
  if (typeof s.summaryMethod == "function") {
7794
7799
  const h1 = s.summaryMethod({ columns: o1, data: W.value });
7795
7800
  return o1.reduce(
@@ -7834,10 +7839,10 @@ const mt = new Z4(), p4 = {
7834
7839
  setSelectionRows: A1
7835
7840
  }), (o1, h1) => {
7836
7841
  var S1, Y1, _, q;
7837
- const p1 = Bt("tooltip");
7842
+ const p1 = At("tooltip");
7838
7843
  return c(), d("div", {
7839
7844
  ref_key: "tableWrapperRef",
7840
- ref: I,
7845
+ ref: h,
7841
7846
  style: L1(z(Y)()),
7842
7847
  class: "vt-table-wrapper",
7843
7848
  onScroll: D
@@ -7897,12 +7902,12 @@ const mt = new Z4(), p4 = {
7897
7902
  ]),
7898
7903
  G.sortable && !G.manage ? (c(), d("div", F4, [
7899
7904
  r1(W1, {
7900
- class: c1(z(Le)(G, y.value).asc),
7905
+ class: c1(z(Le)(G, u.value).asc),
7901
7906
  name: "arrowTop",
7902
7907
  onClick: P1((M1) => d1(G, "asc"), ["stop"])
7903
7908
  }, null, 8, ["class", "onClick"]),
7904
7909
  r1(W1, {
7905
- class: c1(z(Le)(G, y.value).desc),
7910
+ class: c1(z(Le)(G, u.value).desc),
7906
7911
  name: "arrowDown",
7907
7912
  onClick: P1((M1) => d1(G, "desc"), ["stop"])
7908
7913
  }, null, 8, ["class", "onClick"])
@@ -7912,7 +7917,7 @@ const mt = new Z4(), p4 = {
7912
7917
  "all-columns": z(J),
7913
7918
  column: G,
7914
7919
  columnsSelector: s.columnsSelector,
7915
- "default-columns": Z.value,
7920
+ "default-columns": y.value,
7916
7921
  onPin: n1,
7917
7922
  onUpdateColumns: u1
7918
7923
  }, null, 8, ["all-columns", "column", "columnsSelector", "default-columns"])) : O("", !0)
@@ -8526,7 +8531,7 @@ const mt = new Z4(), p4 = {
8526
8531
  }
8527
8532
  }
8528
8533
  return null;
8529
- }, ie = (e = 0, t = 59, i = 1, s = []) => {
8534
+ }, le = (e = 0, t = 59, i = 1, s = []) => {
8530
8535
  const l = [];
8531
8536
  for (let n = e; n <= t; n += i)
8532
8537
  l.push({
@@ -8667,13 +8672,13 @@ const mt = new Z4(), p4 = {
8667
8672
  // НОВИЙ КЛАС
8668
8673
  }
8669
8674
  ]), x = T(() => l.errorMessage ? l.errorMessage : ""), L = j(0), Y = j(0), U = j(0), g = j("AM"), M = j(0), H = j(0), Q = j(0), F = j("AM"), R = T(() => {
8670
- const _ = l.use12Hours ? 12 : 23, q = l.use12Hours ? 1 : 0, G = l.disabledHours ? l.disabledHours() : [], i1 = ie(q, _, l.hourStep, G);
8675
+ const _ = l.use12Hours ? 12 : 23, q = l.use12Hours ? 1 : 0, G = l.disabledHours ? l.disabledHours() : [], i1 = le(q, _, l.hourStep, G);
8671
8676
  return l.hideDisabledOptions ? i1.filter((M1) => !M1.disabled) : i1;
8672
8677
  }), e1 = T(() => {
8673
- const _ = l.use12Hours ? g.value === "PM" && L.value !== 12 ? L.value + 12 : g.value === "AM" && L.value === 12 ? 0 : L.value : L.value, q = l.disabledMinutes ? l.disabledMinutes(_) : [], G = ie(0, 59, l.minuteStep, q);
8678
+ const _ = l.use12Hours ? g.value === "PM" && L.value !== 12 ? L.value + 12 : g.value === "AM" && L.value === 12 ? 0 : L.value : L.value, q = l.disabledMinutes ? l.disabledMinutes(_) : [], G = le(0, 59, l.minuteStep, q);
8674
8679
  return l.hideDisabledOptions ? G.filter((i1) => !i1.disabled) : G;
8675
8680
  }), l1 = T(() => {
8676
- const _ = l.use12Hours ? g.value === "PM" && L.value !== 12 ? L.value + 12 : g.value === "AM" && L.value === 12 ? 0 : L.value : L.value, q = l.disabledSeconds ? l.disabledSeconds(_, Y.value) : [], G = ie(0, 59, l.secondStep, q);
8681
+ const _ = l.use12Hours ? g.value === "PM" && L.value !== 12 ? L.value + 12 : g.value === "AM" && L.value === 12 ? 0 : L.value : L.value, q = l.disabledSeconds ? l.disabledSeconds(_, Y.value) : [], G = le(0, 59, l.secondStep, q);
8677
8682
  return l.hideDisabledOptions ? G.filter((i1) => !i1.disabled) : G;
8678
8683
  }), I1 = T(() => ["AM", "PM"]), k1 = T(() => l.outlined ? h.isFocused.value || d1.value || E.value : !1), X = T(() => l.placeholder || s(a.TIME_PICKER_PLACEHOLDER)), f = T(() => l.startPlaceholder || s(a.TIME_PICKER_START_PLACEHOLDER)), D = T(() => l.endPlaceholder || s(a.TIME_PICKER_END_PLACEHOLDER)), {
8679
8684
  visible: d1,
@@ -8683,7 +8688,7 @@ const mt = new Z4(), p4 = {
8683
8688
  hide: K1,
8684
8689
  toggle: V1,
8685
8690
  updatePosition: T1
8686
- } = $t(u, I, {
8691
+ } = qt(u, I, {
8687
8692
  trigger: "click",
8688
8693
  placement: "bottom-start",
8689
8694
  showTimeout: 0,
@@ -9429,7 +9434,7 @@ const mt = new Z4(), p4 = {
9429
9434
  hide: B1,
9430
9435
  toggle: St,
9431
9436
  updatePosition: Ct
9432
- } = $t(I, h, {
9437
+ } = qt(I, h, {
9433
9438
  trigger: "click",
9434
9439
  placement: "bottom-start",
9435
9440
  showTimeout: 0,
@@ -10143,7 +10148,7 @@ const mt = new Z4(), p4 = {
10143
10148
  },
10144
10149
  emits: ["update:modelValue", "change"],
10145
10150
  setup(e, { emit: t }) {
10146
- const i = e, s = t, { modelValue: l, accordion: n } = ui(i), u = At({
10151
+ const i = e, s = t, { modelValue: l, accordion: n } = ui(i), u = $t({
10147
10152
  get activeNames() {
10148
10153
  return l.value;
10149
10154
  },
@@ -11082,7 +11087,7 @@ function bZ(e, t, i, s) {
11082
11087
  h || (n.value = !0, b(l.value));
11083
11088
  }
11084
11089
  );
11085
- const W = At({
11090
+ const W = $t({
11086
11091
  get $model() {
11087
11092
  return l.value;
11088
11093
  },
@@ -11238,7 +11243,7 @@ const YZ = { class: "vt-login" }, WZ = { class: "vt-login__wrapper" }, SZ = { cl
11238
11243
  },
11239
11244
  emits: ["auth"],
11240
11245
  setup(e, { emit: t }) {
11241
- const { t: i } = v1(), s = e, l = t, n = At({
11246
+ const { t: i } = v1(), s = e, l = t, n = $t({
11242
11247
  username: "",
11243
11248
  password: "",
11244
11249
  remember: !1
@@ -11257,7 +11262,7 @@ const YZ = { class: "vt-login" }, WZ = { class: "vt-login__wrapper" }, SZ = { cl
11257
11262
  };
11258
11263
  return (h, Z) => {
11259
11264
  var b, W, p, C;
11260
- const y = Bt("loader");
11265
+ const y = At("loader");
11261
11266
  return c(), d("div", YZ, [
11262
11267
  o("div", WZ, [
11263
11268
  o("div", SZ, [
@@ -11530,7 +11535,7 @@ const RZ = { class: "vt-page__card-filter__inline" }, OZ = { class: "vt-page__ca
11530
11535
  [Kt, z(h).includes(p)]
11531
11536
  ])), 128))
11532
11537
  ]),
11533
- z(h).length < u.value.length ? (c(), C1(qt, {
11538
+ z(h).length < u.value.length ? (c(), C1(te, {
11534
11539
  key: 0,
11535
11540
  class: "vt-page__card-filter__dropdown",
11536
11541
  trigger: "click"
@@ -12582,7 +12587,7 @@ const RZ = { class: "vt-page__card-filter__inline" }, OZ = { class: "vt-page__ca
12582
12587
  }),
12583
12588
  emits: /* @__PURE__ */ Ht(["selectLeft", "selectRight", "transfer", "update:added", "update:removed"], ["update:listOne", "update:listTwo"]),
12584
12589
  setup(e, { emit: t }) {
12585
- const i = e, s = t, l = ne(e, "listOne"), n = ne(e, "listTwo"), r = (S) => i.optionValue !== void 0 ? S[i.optionValue] : S, u = (S) => String(S[i.optionLabel] ?? ""), I = (S, B) => r(S) === r(B), h = (S, B) => B.some((t1) => I(t1, S)), Z = (S, B) => B.filter((t1) => !I(t1, S)), y = ye(null), b = ye(null), W = j(!1), p = j(!1), C = j(0), m = j(0), E = /* @__PURE__ */ new Set(), v = T(() => i.fetchLimit ?? 20), w = T(
12590
+ const i = e, s = t, l = Qt(e, "listOne"), n = Qt(e, "listTwo"), r = (S) => i.optionValue !== void 0 ? S[i.optionValue] : S, u = (S) => String(S[i.optionLabel] ?? ""), I = (S, B) => r(S) === r(B), h = (S, B) => B.some((t1) => I(t1, S)), Z = (S, B) => B.filter((t1) => !I(t1, S)), y = ye(null), b = ye(null), W = j(!1), p = j(!1), C = j(0), m = j(0), E = /* @__PURE__ */ new Set(), v = T(() => i.fetchLimit ?? 20), w = T(
12586
12591
  () => !!i.fetchLeft && C.value < i.leftTotal
12587
12592
  ), J = T(
12588
12593
  () => !!i.fetchRight && m.value < i.rightTotal
@@ -13636,7 +13641,7 @@ class Tp extends Ut {
13636
13641
  this.stop();
13637
13642
  }
13638
13643
  }
13639
- class le extends Ut {
13644
+ class se extends Ut {
13640
13645
  constructor(t = new AudioContext()) {
13641
13646
  super(), this.bufferNode = null, this.playStartTime = 0, this.playbackPosition = 0, this._muted = !1, this._playbackRate = 1, this._duration = void 0, this.buffer = null, this.currentSrc = "", this.paused = !0, this.crossOrigin = null, this.seeking = !1, this.autoplay = !1, this.addEventListener = this.on, this.removeEventListener = this.un, this.audioContext = t, this.gainNode = this.audioContext.createGain(), this.gainNode.connect(this.audioContext.destination);
13642
13647
  }
@@ -13769,7 +13774,7 @@ class jt extends Cp {
13769
13774
  return this.renderer;
13770
13775
  }
13771
13776
  constructor(t) {
13772
- const i = t.media || (t.backend === "WebAudio" ? new le() : void 0);
13777
+ const i = t.media || (t.backend === "WebAudio" ? new se() : void 0);
13773
13778
  super({ media: i, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, Gp, t);
13774
13779
  const { state: s, actions: l } = function(u) {
13775
13780
  var I, h, Z, y, b, W;
@@ -13967,7 +13972,7 @@ class jt extends Cp {
13967
13972
  });
13968
13973
  if (!t && !i) {
13969
13974
  const u = this.getMediaElement();
13970
- u instanceof le && (u.duration = r);
13975
+ u instanceof se && (u.duration = r);
13971
13976
  }
13972
13977
  if (s) this.decodedData = Ot.createBuffer(s, r || 0);
13973
13978
  else if (i) {
@@ -14039,7 +14044,7 @@ class jt extends Cp {
14039
14044
  return et(this, void 0, void 0, function* () {
14040
14045
  t != null && this.setTime(t);
14041
14046
  const l = yield s.play.call(this);
14042
- return i != null && (this.media instanceof le ? this.media.stopAt(i) : this.stopAtPosition = i), l;
14047
+ return i != null && (this.media instanceof se ? this.media.stopAt(i) : this.stopAtPosition = i), l;
14043
14048
  });
14044
14049
  }
14045
14050
  playPause() {
@@ -14128,7 +14133,7 @@ function ei(e, t) {
14128
14133
  else s === "style" ? Object.assign(i.style, l) : s === "textContent" ? i.textContent = l : i.setAttribute(s, l.toString());
14129
14134
  return i;
14130
14135
  }
14131
- function se(e, t, i) {
14136
+ function ne(e, t, i) {
14132
14137
  return ei(e, t || {});
14133
14138
  }
14134
14139
  const kp = { height: 20, timeOffset: 0, formatTimeCallback: (e) => e / 60 > 1 ? `${Math.floor(e / 60)}:${`${(e = Math.round(e % 60)) < 10 ? "0" : ""}${e}`}` : `${Math.round(1e3 * e) / 1e3}` };
@@ -14169,7 +14174,7 @@ class Ze extends wp {
14169
14174
  this.timelineWrapper.remove(), super.destroy();
14170
14175
  }
14171
14176
  initTimelineWrapper() {
14172
- return se("div", { part: "timeline-wrapper", style: { pointerEvents: "none" } });
14177
+ return ne("div", { part: "timeline-wrapper", style: { pointerEvents: "none" } });
14173
14178
  }
14174
14179
  defaultTimeInterval(t) {
14175
14180
  return t >= 25 ? 1 : 5 * t >= 25 ? 5 : 15 * t >= 25 ? 15 : 60 * Math.ceil(0.5 / t);
@@ -14194,9 +14199,9 @@ class Ze extends wp {
14194
14199
  initTimeline() {
14195
14200
  var t, i, s, l, n, r, u, I;
14196
14201
  this.notchElements.clear();
14197
- const h = (s = (i = (t = this.wavesurfer) === null || t === void 0 ? void 0 : t.getDuration()) !== null && i !== void 0 ? i : this.options.duration) !== null && s !== void 0 ? s : 0, Z = (((l = this.wavesurfer) === null || l === void 0 ? void 0 : l.getWrapper().scrollWidth) || this.timelineWrapper.scrollWidth) / h, y = (n = this.options.timeInterval) !== null && n !== void 0 ? n : this.defaultTimeInterval(Z), b = (r = this.options.primaryLabelInterval) !== null && r !== void 0 ? r : this.defaultPrimaryLabelInterval(Z), W = this.options.primaryLabelSpacing, p = (u = this.options.secondaryLabelInterval) !== null && u !== void 0 ? u : this.defaultSecondaryLabelInterval(Z), C = this.options.secondaryLabelSpacing, m = this.options.insertPosition === "beforebegin", E = se("div", { style: Object.assign({ height: `${this.options.height}px`, overflow: "hidden", fontSize: this.options.height / 2 + "px", whiteSpace: "nowrap" }, m ? { position: "absolute", top: "0", left: "0", right: "0", zIndex: "2" } : { position: "relative" }) });
14202
+ const h = (s = (i = (t = this.wavesurfer) === null || t === void 0 ? void 0 : t.getDuration()) !== null && i !== void 0 ? i : this.options.duration) !== null && s !== void 0 ? s : 0, Z = (((l = this.wavesurfer) === null || l === void 0 ? void 0 : l.getWrapper().scrollWidth) || this.timelineWrapper.scrollWidth) / h, y = (n = this.options.timeInterval) !== null && n !== void 0 ? n : this.defaultTimeInterval(Z), b = (r = this.options.primaryLabelInterval) !== null && r !== void 0 ? r : this.defaultPrimaryLabelInterval(Z), W = this.options.primaryLabelSpacing, p = (u = this.options.secondaryLabelInterval) !== null && u !== void 0 ? u : this.defaultSecondaryLabelInterval(Z), C = this.options.secondaryLabelSpacing, m = this.options.insertPosition === "beforebegin", E = ne("div", { style: Object.assign({ height: `${this.options.height}px`, overflow: "hidden", fontSize: this.options.height / 2 + "px", whiteSpace: "nowrap" }, m ? { position: "absolute", top: "0", left: "0", right: "0", zIndex: "2" } : { position: "relative" }) });
14198
14203
  E.setAttribute("part", "timeline"), typeof this.options.style == "string" ? E.setAttribute("style", E.getAttribute("style") + this.options.style) : typeof this.options.style == "object" && Object.assign(E.style, this.options.style);
14199
- const v = se("div", { style: { width: "0", height: "50%", display: "flex", flexDirection: "column", justifyContent: m ? "flex-start" : "flex-end", top: m ? "0" : "auto", bottom: m ? "auto" : "0", overflow: "visible", borderLeft: "1px solid currentColor", opacity: `${(I = this.options.secondaryLabelOpacity) !== null && I !== void 0 ? I : 0.25}`, position: "absolute", zIndex: "1" } });
14204
+ const v = ne("div", { style: { width: "0", height: "50%", display: "flex", flexDirection: "column", justifyContent: m ? "flex-start" : "flex-end", top: m ? "0" : "auto", bottom: m ? "auto" : "0", overflow: "visible", borderLeft: "1px solid currentColor", opacity: `${(I = this.options.secondaryLabelOpacity) !== null && I !== void 0 ? I : 0.25}`, position: "absolute", zIndex: "1" } });
14200
14205
  for (let w = 0, J = 0; w < h; w += y, J++) {
14201
14206
  const x = v.cloneNode(), L = Math.round(100 * w) % Math.round(100 * b) == 0 || W && J % W == 0, Y = Math.round(100 * w) % Math.round(100 * p) == 0 || C && J % C == 0;
14202
14207
  (L || Y) && (x.style.height = "100%", x.style.textIndent = "3px", x.textContent = this.options.formatTimeCallback(w), L && (x.style.opacity = "1"));
@@ -14340,14 +14345,14 @@ const ft = {
14340
14345
  }, [
14341
14346
  r1(W1, { name: "import" })
14342
14347
  ], 8, jp),
14343
- r1(qt, {
14348
+ r1(te, {
14344
14349
  trigger: "click",
14345
14350
  placement: "top",
14346
14351
  disabled: I.value,
14347
14352
  onCommand: E
14348
14353
  }, {
14349
14354
  dropdown: j1(() => [
14350
- (c(), d(a1, null, b1([1, 1.5, 2], (L) => r1(_t, {
14355
+ (c(), d(a1, null, b1([1, 1.5, 2], (L) => r1(Bt, {
14351
14356
  key: L,
14352
14357
  command: L,
14353
14358
  class: c1({ "is-active": Z.value === L })
@@ -14701,7 +14706,7 @@ function yb(e) {
14701
14706
  const qp = {
14702
14707
  install(e, t = {}) {
14703
14708
  const { prefix: i = "V", modal: s = !0, message: l = !0, locale: n = ut.uk } = t;
14704
- e.component(`${i}Button`, q1), e.component(`${i}Icon`, W1), e.component(`${i}Loader`, Qt), e.component(`${i}Modal`, fe), e.component(`${i}Pagination`, l4), e.component(`${i}Checkbox`, Wt), e.component(`${i}Radiobox`, He), e.component(`${i}Table`, B4), e.component(`${i}TableColumn`, A4), e.component(`${i}Dropdown`, qt), e.component(`${i}DropdownItem`, _t), e.component(`${i}Input`, vt), e.component(`${i}Select`, ue), e.component(`${i}Option`, me), e.component(`${i}DatePicker`, yI), e.component(`${i}TimePicker`, Dt), e.component(`${i}Collapse`, WI), e.component(`${i}CollapseItem`, LI), e.component(`${i}Tabs`, wI), e.component(`${i}TabItem`, kI), e.component(`${i}Upload`, qI), e.component(`${i}Sidebar`, aZ), e.component(`${i}Login`, vZ), e.component(`${i}LoginLogo`, UZ), e.component(`${i}LocaleSelect`, l7), e.component(`${i}DynamicFilter`, DZ), e.component(`${i}Slider`, e8), e.component(`${i}SliderMarkRange`, d8), e.component(`${i}Chart`, A8), e.component(`${i}InfoBox`, ep), e.component(`${i}TransferList`, Ip), e.component(`${i}Breadcrumb`, bp), e.component(`${i}BreadcrumbItem`, Yp), e.component(`${i}Audio`, zp), e.component(`${i}Empty`, he), e.directive("tooltip", Rp), e.directive("loader", Op), s && e.use(p4), l && e.use($p), e.use(Au, { locale: n });
14709
+ e.component(`${i}Button`, q1), e.component(`${i}Icon`, W1), e.component(`${i}Loader`, _t), e.component(`${i}Modal`, fe), e.component(`${i}Pagination`, l4), e.component(`${i}Checkbox`, Wt), e.component(`${i}Radiobox`, He), e.component(`${i}Table`, B4), e.component(`${i}TableColumn`, A4), e.component(`${i}Dropdown`, te), e.component(`${i}DropdownItem`, Bt), e.component(`${i}Input`, vt), e.component(`${i}Select`, ue), e.component(`${i}Option`, me), e.component(`${i}DatePicker`, yI), e.component(`${i}TimePicker`, Dt), e.component(`${i}Collapse`, WI), e.component(`${i}CollapseItem`, LI), e.component(`${i}Tabs`, wI), e.component(`${i}TabItem`, kI), e.component(`${i}Upload`, qI), e.component(`${i}Sidebar`, aZ), e.component(`${i}Login`, vZ), e.component(`${i}LoginLogo`, UZ), e.component(`${i}LocaleSelect`, l7), e.component(`${i}DynamicFilter`, DZ), e.component(`${i}Slider`, e8), e.component(`${i}SliderMarkRange`, d8), e.component(`${i}Chart`, A8), e.component(`${i}InfoBox`, ep), e.component(`${i}TransferList`, Ip), e.component(`${i}Breadcrumb`, bp), e.component(`${i}BreadcrumbItem`, Yp), e.component(`${i}Audio`, zp), e.component(`${i}Empty`, he), e.directive("tooltip", Rp), e.directive("loader", Op), s && e.use(p4), l && e.use($p), e.use(Au, { locale: n });
14705
14710
  }
14706
14711
  }, Yb = qp.install;
14707
14712
  export {
@@ -14722,14 +14727,14 @@ export {
14722
14727
  WI as VCollapse,
14723
14728
  LI as VCollapseItem,
14724
14729
  yI as VDatePicker,
14725
- qt as VDropdown,
14726
- _t as VDropdownItem,
14730
+ te as VDropdown,
14731
+ Bt as VDropdownItem,
14727
14732
  DZ as VDynamicFilter,
14728
14733
  he as VEmpty,
14729
14734
  W1 as VIcon,
14730
14735
  ep as VInfoBox,
14731
14736
  vt as VInput,
14732
- Qt as VLoader,
14737
+ _t as VLoader,
14733
14738
  l7 as VLocaleSelect,
14734
14739
  vZ as VLogin,
14735
14740
  UZ as VLoginLogo,
@@ -14756,7 +14761,7 @@ export {
14756
14761
  qp as default,
14757
14762
  rZ as email,
14758
14763
  r7 as formatTime,
14759
- ie as generateTimeOptions,
14764
+ le as generateTimeOptions,
14760
14765
  Yb as install,
14761
14766
  Ve as isValidDate,
14762
14767
  ce as isValidTimeString,