voiptime-components 1.21.64 → 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.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +79 -75
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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(): {
|
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
|
|
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
|
|
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 =
|
|
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(
|
|
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
|
|
4903
|
+
function qt(e, t, i = {}) {
|
|
4904
4904
|
const {
|
|
4905
4905
|
trigger: s = "click",
|
|
4906
4906
|
placement: l = "bottom-start",
|
|
@@ -5959,7 +5959,7 @@ const om = ["for"], cm = {
|
|
|
5959
5959
|
hide: n1,
|
|
5960
5960
|
toggle: u1,
|
|
5961
5961
|
updatePosition: F1
|
|
5962
|
-
} =
|
|
5962
|
+
} = qt(u, I, {
|
|
5963
5963
|
trigger: "click",
|
|
5964
5964
|
placement: "bottom-start",
|
|
5965
5965
|
showTimeout: 250,
|
|
@@ -6245,7 +6245,7 @@ const om = ["for"], cm = {
|
|
|
6245
6245
|
}), ot(() => {
|
|
6246
6246
|
document.removeEventListener("click", at), window.removeEventListener("resize", g1);
|
|
6247
6247
|
}), (k, $) => {
|
|
6248
|
-
const Z1 =
|
|
6248
|
+
const Z1 = At("tooltip");
|
|
6249
6249
|
return c(), d("div", {
|
|
6250
6250
|
ref_key: "selectRef",
|
|
6251
6251
|
ref: r,
|
|
@@ -6323,7 +6323,7 @@ const om = ["for"], cm = {
|
|
|
6323
6323
|
])) : k.outlined ? O("", !0) : (c(), d("span", Jm, K(C.value), 1))
|
|
6324
6324
|
]),
|
|
6325
6325
|
o("div", gm, [
|
|
6326
|
-
k.loading ? (c(), C1(
|
|
6326
|
+
k.loading ? (c(), C1(_t, {
|
|
6327
6327
|
key: 0,
|
|
6328
6328
|
class: "vt-select__loading"
|
|
6329
6329
|
})) : B.value ? (c(), d("button", {
|
|
@@ -6436,7 +6436,7 @@ const om = ["for"], cm = {
|
|
|
6436
6436
|
])
|
|
6437
6437
|
], 42, Dm))), 128)),
|
|
6438
6438
|
k.loading ? (c(), d("div", Em, [
|
|
6439
|
-
r1(
|
|
6439
|
+
r1(_t, { class: "vt-select-dropdown__loading-icon" }),
|
|
6440
6440
|
J1(" " + K(E.value), 1)
|
|
6441
6441
|
])) : O("", !0)
|
|
6442
6442
|
], 36))
|
|
@@ -6965,7 +6965,7 @@ const u4 = (e, t, i = "asc") => {
|
|
|
6965
6965
|
const u = n[s.prop], I = r[s.prop];
|
|
6966
6966
|
return l(u, I, t.direction);
|
|
6967
6967
|
});
|
|
6968
|
-
}, Qe = Symbol("dropdown-context"), I4 = 300,
|
|
6968
|
+
}, Qe = Symbol("dropdown-context"), I4 = 300, te = /* @__PURE__ */ X1({
|
|
6969
6969
|
__name: "VDropdown",
|
|
6970
6970
|
props: {
|
|
6971
6971
|
trigger: { default: "hover" },
|
|
@@ -6982,7 +6982,7 @@ const u4 = (e, t, i = "asc") => {
|
|
|
6982
6982
|
},
|
|
6983
6983
|
emits: ["visible-change", "click", "command", "scrolled"],
|
|
6984
6984
|
setup(e, { expose: t, emit: i }) {
|
|
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 } =
|
|
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(
|
|
6986
6986
|
r,
|
|
6987
6987
|
u,
|
|
6988
6988
|
{
|
|
@@ -7085,7 +7085,7 @@ const u4 = (e, t, i = "asc") => {
|
|
|
7085
7085
|
])) : O("", !0)
|
|
7086
7086
|
], 544));
|
|
7087
7087
|
}
|
|
7088
|
-
}),
|
|
7088
|
+
}), Bt = /* @__PURE__ */ X1({
|
|
7089
7089
|
__name: "VDropdownItem",
|
|
7090
7090
|
props: {
|
|
7091
7091
|
command: {},
|
|
@@ -7136,7 +7136,7 @@ class Z4 {
|
|
|
7136
7136
|
mt.closeById(i);
|
|
7137
7137
|
}, 100);
|
|
7138
7138
|
};
|
|
7139
|
-
return () =>
|
|
7139
|
+
return () => ee(
|
|
7140
7140
|
fe,
|
|
7141
7141
|
{
|
|
7142
7142
|
modelValue: l.value,
|
|
@@ -7149,7 +7149,7 @@ class Z4 {
|
|
|
7149
7149
|
zIndex: n
|
|
7150
7150
|
},
|
|
7151
7151
|
{
|
|
7152
|
-
default: () => t.component ?
|
|
7152
|
+
default: () => t.component ? ee(t.component, t.props || {}) : t.content ? ee("div", { innerHTML: t.content }) : null
|
|
7153
7153
|
}
|
|
7154
7154
|
);
|
|
7155
7155
|
}
|
|
@@ -7554,13 +7554,13 @@ const mt = new Z4(), p4 = {
|
|
|
7554
7554
|
closeOnBackdropClick: !1
|
|
7555
7555
|
});
|
|
7556
7556
|
};
|
|
7557
|
-
return (y, b) => (c(), C1(
|
|
7557
|
+
return (y, b) => (c(), C1(te, {
|
|
7558
7558
|
placement: "bottom-start",
|
|
7559
7559
|
trigger: "click",
|
|
7560
7560
|
onCommand: r
|
|
7561
7561
|
}, {
|
|
7562
7562
|
dropdown: j1(() => [
|
|
7563
|
-
r1(
|
|
7563
|
+
r1(Bt, { command: "pin" }, {
|
|
7564
7564
|
default: j1(() => [
|
|
7565
7565
|
r1(W1, {
|
|
7566
7566
|
name: n() ? "unfreeze" : "freeze"
|
|
@@ -7569,7 +7569,7 @@ const mt = new Z4(), p4 = {
|
|
|
7569
7569
|
]),
|
|
7570
7570
|
_: 1
|
|
7571
7571
|
}),
|
|
7572
|
-
r1(
|
|
7572
|
+
r1(Bt, { command: "columns" }, {
|
|
7573
7573
|
default: j1(() => [
|
|
7574
7574
|
r1(W1, { name: "columnInsert" }),
|
|
7575
7575
|
o("div", null, K(z(l)(z(a).TABLE_COLUMNS)), 1)
|
|
@@ -7607,7 +7607,7 @@ const mt = new Z4(), p4 = {
|
|
|
7607
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 = {
|
|
7608
7608
|
key: 1,
|
|
7609
7609
|
class: "vt-table__summary"
|
|
7610
|
-
}, _4 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, zt = 40,
|
|
7610
|
+
}, _4 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, zt = 40, ie = 40, B4 = /* @__PURE__ */ X1({
|
|
7611
7611
|
__name: "VTable",
|
|
7612
7612
|
props: /* @__PURE__ */ Ht({
|
|
7613
7613
|
data: {},
|
|
@@ -7634,33 +7634,37 @@ const mt = new Z4(), p4 = {
|
|
|
7634
7634
|
required: !1,
|
|
7635
7635
|
default: void 0
|
|
7636
7636
|
},
|
|
7637
|
-
columnsModifiers: {}
|
|
7637
|
+
columnsModifiers: {},
|
|
7638
|
+
sort: {
|
|
7639
|
+
default: null
|
|
7640
|
+
},
|
|
7641
|
+
sortModifiers: {}
|
|
7638
7642
|
}),
|
|
7639
|
-
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"]),
|
|
7640
7644
|
setup(e, { expose: t, emit: i }) {
|
|
7641
|
-
const s = e, { t: l } = v1(), n = i, r =
|
|
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);
|
|
7642
7646
|
let v;
|
|
7643
7647
|
const w = (o1, h1) => s.rowKey && o1[s.rowKey] != null ? String(o1[s.rowKey]) : String(h1);
|
|
7644
7648
|
R1(
|
|
7645
7649
|
() => r.value,
|
|
7646
7650
|
(o1) => {
|
|
7647
|
-
o1 && p.value && (
|
|
7651
|
+
o1 && p.value && (Z.length = 0, Z.push(...o1));
|
|
7648
7652
|
},
|
|
7649
7653
|
{ deep: !0 }
|
|
7650
7654
|
), R1(
|
|
7651
7655
|
() => s.columns,
|
|
7652
7656
|
(o1) => {
|
|
7653
|
-
o1 && !p.value && (
|
|
7657
|
+
o1 && !p.value && (Z.length = 0, Z.push(...o1));
|
|
7654
7658
|
},
|
|
7655
7659
|
{ deep: !0 }
|
|
7656
7660
|
), R1(
|
|
7657
|
-
|
|
7661
|
+
Z,
|
|
7658
7662
|
(o1) => {
|
|
7659
|
-
!b.value && o1.length > 0 && (
|
|
7663
|
+
!b.value && o1.length > 0 && (y.value = o1.map((h1) => ({ ...h1 })), b.value = !0);
|
|
7660
7664
|
},
|
|
7661
7665
|
{ deep: !0 }
|
|
7662
|
-
), kt("vt-table-columns",
|
|
7663
|
-
const { sortedColumns: J, getDefaultColumnWidth: x, getStickyOffset: L } = o4(
|
|
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 = () => ({
|
|
7664
7668
|
width: `${zt}px`,
|
|
7665
7669
|
minWidth: `${zt}px`,
|
|
7666
7670
|
maxWidth: `${zt}px`,
|
|
@@ -7670,9 +7674,9 @@ const mt = new Z4(), p4 = {
|
|
|
7670
7674
|
}), l1 = () => {
|
|
7671
7675
|
const o1 = s.selectable ? zt : 0;
|
|
7672
7676
|
return {
|
|
7673
|
-
width: `${
|
|
7674
|
-
minWidth: `${
|
|
7675
|
-
maxWidth: `${
|
|
7677
|
+
width: `${ie}px`,
|
|
7678
|
+
minWidth: `${ie}px`,
|
|
7679
|
+
maxWidth: `${ie}px`,
|
|
7676
7680
|
left: `${o1}px`,
|
|
7677
7681
|
position: "sticky",
|
|
7678
7682
|
zIndex: 10
|
|
@@ -7706,49 +7710,49 @@ const mt = new Z4(), p4 = {
|
|
|
7706
7710
|
zIndex: 12
|
|
7707
7711
|
} : o1;
|
|
7708
7712
|
}, D = () => {
|
|
7709
|
-
if (!
|
|
7710
|
-
const o1 =
|
|
7713
|
+
if (!h.value || m.value) return;
|
|
7714
|
+
const o1 = h.value, h1 = o1.scrollTop, p1 = o1.scrollHeight, S1 = o1.clientHeight, Y1 = 30;
|
|
7711
7715
|
v && clearTimeout(v), v = setTimeout(() => {
|
|
7712
7716
|
const q = h1 - E.value > 1, G = p1 - h1 - S1 <= Y1, i1 = p1 - h1 - S1 <= 5;
|
|
7713
7717
|
E.value = h1, q && (G || i1) && (m.value = !0, n("infinity-scroll"), m.value = !1);
|
|
7714
7718
|
}, 50);
|
|
7715
7719
|
};
|
|
7716
7720
|
_1(() => {
|
|
7717
|
-
|
|
7721
|
+
h.value && h.value.addEventListener("scroll", D);
|
|
7718
7722
|
}), ot(() => {
|
|
7719
|
-
v && clearTimeout(v),
|
|
7723
|
+
v && clearTimeout(v), h.value && h.value.removeEventListener("scroll", D);
|
|
7720
7724
|
});
|
|
7721
7725
|
const d1 = (o1, h1) => {
|
|
7722
7726
|
m4(o1, h1, (p1) => {
|
|
7723
7727
|
var S1, Y1;
|
|
7724
|
-
((S1 =
|
|
7728
|
+
((S1 = u.value) == null ? void 0 : S1.prop) === o1.prop && u.value.direction === h1 ? u.value = null : u.value = p1, n("sort-change", {
|
|
7725
7729
|
column: o1,
|
|
7726
|
-
direction: ((Y1 =
|
|
7730
|
+
direction: ((Y1 = u.value) == null ? void 0 : Y1.direction) || null,
|
|
7727
7731
|
prop: o1.prop,
|
|
7728
7732
|
sortedData: W.value
|
|
7729
7733
|
});
|
|
7730
7734
|
});
|
|
7731
7735
|
}, n1 = (o1, h1) => {
|
|
7732
7736
|
var _;
|
|
7733
|
-
const p1 = (_ =
|
|
7737
|
+
const p1 = (_ = I.value[o1.prop]) == null ? void 0 : _.getBoundingClientRect().width, S1 = Number(o1.width) || (p1 ? Math.round(p1) : void 0), Y1 = {
|
|
7734
7738
|
pinnedLeft: h1 === "left",
|
|
7735
7739
|
pinnedRight: h1 === "right",
|
|
7736
7740
|
width: S1
|
|
7737
7741
|
};
|
|
7738
7742
|
F1(o1.prop, Y1), n("column-pin", { column: { ...o1, ...Y1 }, position: h1 });
|
|
7739
7743
|
}, u1 = (o1) => {
|
|
7740
|
-
|
|
7744
|
+
Z.splice(0, Z.length, ...o1), p.value && (r.value = [...o1]), n("columns-change", [...o1]);
|
|
7741
7745
|
}, F1 = (o1, h1) => {
|
|
7742
|
-
const p1 =
|
|
7746
|
+
const p1 = Z.findIndex((S1) => S1.prop === o1);
|
|
7743
7747
|
if (p1 !== -1) {
|
|
7744
|
-
if (Object.assign(
|
|
7748
|
+
if (Object.assign(Z[p1], h1), p.value && r.value) {
|
|
7745
7749
|
const S1 = r.value.findIndex((Y1) => Y1.prop === o1);
|
|
7746
7750
|
if (S1 !== -1) {
|
|
7747
7751
|
const Y1 = [...r.value];
|
|
7748
7752
|
Y1[S1] = { ...Y1[S1], ...h1 }, r.value = Y1;
|
|
7749
7753
|
}
|
|
7750
7754
|
}
|
|
7751
|
-
n("columns-change", [...
|
|
7755
|
+
n("columns-change", [...Z]);
|
|
7752
7756
|
}
|
|
7753
7757
|
}, K1 = (o1, h1, p1) => {
|
|
7754
7758
|
n("row-click", { row: o1, column: h1, event: p1 }), s.highlightCurrentRow && F && F.setCurrentRow(o1);
|
|
@@ -7759,7 +7763,7 @@ const mt = new Z4(), p4 = {
|
|
|
7759
7763
|
}, it = (o1, h1) => {
|
|
7760
7764
|
h1.stopPropagation(), F && F.toggleAllSelection();
|
|
7761
7765
|
}, H1 = (o1, h1) => {
|
|
7762
|
-
o1 && (
|
|
7766
|
+
o1 && (I.value[h1] = o1);
|
|
7763
7767
|
}, S = (o1, h1) => {
|
|
7764
7768
|
const p1 = h1.width || x();
|
|
7765
7769
|
H(o1, h1, x, (S1) => {
|
|
@@ -7790,7 +7794,7 @@ const mt = new Z4(), p4 = {
|
|
|
7790
7794
|
return p1 == null ? "" : typeof p1 == "string" && p1.includes("<") ? O1(p1) : String(p1);
|
|
7791
7795
|
}, B1 = T(() => {
|
|
7792
7796
|
if (!s.showSummary || !C.value) return {};
|
|
7793
|
-
const o1 =
|
|
7797
|
+
const o1 = Z;
|
|
7794
7798
|
if (typeof s.summaryMethod == "function") {
|
|
7795
7799
|
const h1 = s.summaryMethod({ columns: o1, data: W.value });
|
|
7796
7800
|
return o1.reduce(
|
|
@@ -7835,10 +7839,10 @@ const mt = new Z4(), p4 = {
|
|
|
7835
7839
|
setSelectionRows: A1
|
|
7836
7840
|
}), (o1, h1) => {
|
|
7837
7841
|
var S1, Y1, _, q;
|
|
7838
|
-
const p1 =
|
|
7842
|
+
const p1 = At("tooltip");
|
|
7839
7843
|
return c(), d("div", {
|
|
7840
7844
|
ref_key: "tableWrapperRef",
|
|
7841
|
-
ref:
|
|
7845
|
+
ref: h,
|
|
7842
7846
|
style: L1(z(Y)()),
|
|
7843
7847
|
class: "vt-table-wrapper",
|
|
7844
7848
|
onScroll: D
|
|
@@ -7898,12 +7902,12 @@ const mt = new Z4(), p4 = {
|
|
|
7898
7902
|
]),
|
|
7899
7903
|
G.sortable && !G.manage ? (c(), d("div", F4, [
|
|
7900
7904
|
r1(W1, {
|
|
7901
|
-
class: c1(z(Le)(G,
|
|
7905
|
+
class: c1(z(Le)(G, u.value).asc),
|
|
7902
7906
|
name: "arrowTop",
|
|
7903
7907
|
onClick: P1((M1) => d1(G, "asc"), ["stop"])
|
|
7904
7908
|
}, null, 8, ["class", "onClick"]),
|
|
7905
7909
|
r1(W1, {
|
|
7906
|
-
class: c1(z(Le)(G,
|
|
7910
|
+
class: c1(z(Le)(G, u.value).desc),
|
|
7907
7911
|
name: "arrowDown",
|
|
7908
7912
|
onClick: P1((M1) => d1(G, "desc"), ["stop"])
|
|
7909
7913
|
}, null, 8, ["class", "onClick"])
|
|
@@ -7913,7 +7917,7 @@ const mt = new Z4(), p4 = {
|
|
|
7913
7917
|
"all-columns": z(J),
|
|
7914
7918
|
column: G,
|
|
7915
7919
|
columnsSelector: s.columnsSelector,
|
|
7916
|
-
"default-columns":
|
|
7920
|
+
"default-columns": y.value,
|
|
7917
7921
|
onPin: n1,
|
|
7918
7922
|
onUpdateColumns: u1
|
|
7919
7923
|
}, null, 8, ["all-columns", "column", "columnsSelector", "default-columns"])) : O("", !0)
|
|
@@ -8527,7 +8531,7 @@ const mt = new Z4(), p4 = {
|
|
|
8527
8531
|
}
|
|
8528
8532
|
}
|
|
8529
8533
|
return null;
|
|
8530
|
-
},
|
|
8534
|
+
}, le = (e = 0, t = 59, i = 1, s = []) => {
|
|
8531
8535
|
const l = [];
|
|
8532
8536
|
for (let n = e; n <= t; n += i)
|
|
8533
8537
|
l.push({
|
|
@@ -8668,13 +8672,13 @@ const mt = new Z4(), p4 = {
|
|
|
8668
8672
|
// НОВИЙ КЛАС
|
|
8669
8673
|
}
|
|
8670
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(() => {
|
|
8671
|
-
const _ = l.use12Hours ? 12 : 23, q = l.use12Hours ? 1 : 0, G = l.disabledHours ? l.disabledHours() : [], i1 =
|
|
8675
|
+
const _ = l.use12Hours ? 12 : 23, q = l.use12Hours ? 1 : 0, G = l.disabledHours ? l.disabledHours() : [], i1 = le(q, _, l.hourStep, G);
|
|
8672
8676
|
return l.hideDisabledOptions ? i1.filter((M1) => !M1.disabled) : i1;
|
|
8673
8677
|
}), e1 = T(() => {
|
|
8674
|
-
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 =
|
|
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);
|
|
8675
8679
|
return l.hideDisabledOptions ? G.filter((i1) => !i1.disabled) : G;
|
|
8676
8680
|
}), l1 = T(() => {
|
|
8677
|
-
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 =
|
|
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);
|
|
8678
8682
|
return l.hideDisabledOptions ? G.filter((i1) => !i1.disabled) : G;
|
|
8679
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)), {
|
|
8680
8684
|
visible: d1,
|
|
@@ -8684,7 +8688,7 @@ const mt = new Z4(), p4 = {
|
|
|
8684
8688
|
hide: K1,
|
|
8685
8689
|
toggle: V1,
|
|
8686
8690
|
updatePosition: T1
|
|
8687
|
-
} =
|
|
8691
|
+
} = qt(u, I, {
|
|
8688
8692
|
trigger: "click",
|
|
8689
8693
|
placement: "bottom-start",
|
|
8690
8694
|
showTimeout: 0,
|
|
@@ -9430,7 +9434,7 @@ const mt = new Z4(), p4 = {
|
|
|
9430
9434
|
hide: B1,
|
|
9431
9435
|
toggle: St,
|
|
9432
9436
|
updatePosition: Ct
|
|
9433
|
-
} =
|
|
9437
|
+
} = qt(I, h, {
|
|
9434
9438
|
trigger: "click",
|
|
9435
9439
|
placement: "bottom-start",
|
|
9436
9440
|
showTimeout: 0,
|
|
@@ -10144,7 +10148,7 @@ const mt = new Z4(), p4 = {
|
|
|
10144
10148
|
},
|
|
10145
10149
|
emits: ["update:modelValue", "change"],
|
|
10146
10150
|
setup(e, { emit: t }) {
|
|
10147
|
-
const i = e, s = t, { modelValue: l, accordion: n } = ui(i), u =
|
|
10151
|
+
const i = e, s = t, { modelValue: l, accordion: n } = ui(i), u = $t({
|
|
10148
10152
|
get activeNames() {
|
|
10149
10153
|
return l.value;
|
|
10150
10154
|
},
|
|
@@ -11083,7 +11087,7 @@ function bZ(e, t, i, s) {
|
|
|
11083
11087
|
h || (n.value = !0, b(l.value));
|
|
11084
11088
|
}
|
|
11085
11089
|
);
|
|
11086
|
-
const W =
|
|
11090
|
+
const W = $t({
|
|
11087
11091
|
get $model() {
|
|
11088
11092
|
return l.value;
|
|
11089
11093
|
},
|
|
@@ -11239,7 +11243,7 @@ const YZ = { class: "vt-login" }, WZ = { class: "vt-login__wrapper" }, SZ = { cl
|
|
|
11239
11243
|
},
|
|
11240
11244
|
emits: ["auth"],
|
|
11241
11245
|
setup(e, { emit: t }) {
|
|
11242
|
-
const { t: i } = v1(), s = e, l = t, n =
|
|
11246
|
+
const { t: i } = v1(), s = e, l = t, n = $t({
|
|
11243
11247
|
username: "",
|
|
11244
11248
|
password: "",
|
|
11245
11249
|
remember: !1
|
|
@@ -11258,7 +11262,7 @@ const YZ = { class: "vt-login" }, WZ = { class: "vt-login__wrapper" }, SZ = { cl
|
|
|
11258
11262
|
};
|
|
11259
11263
|
return (h, Z) => {
|
|
11260
11264
|
var b, W, p, C;
|
|
11261
|
-
const y =
|
|
11265
|
+
const y = At("loader");
|
|
11262
11266
|
return c(), d("div", YZ, [
|
|
11263
11267
|
o("div", WZ, [
|
|
11264
11268
|
o("div", SZ, [
|
|
@@ -11531,7 +11535,7 @@ const RZ = { class: "vt-page__card-filter__inline" }, OZ = { class: "vt-page__ca
|
|
|
11531
11535
|
[Kt, z(h).includes(p)]
|
|
11532
11536
|
])), 128))
|
|
11533
11537
|
]),
|
|
11534
|
-
z(h).length < u.value.length ? (c(), C1(
|
|
11538
|
+
z(h).length < u.value.length ? (c(), C1(te, {
|
|
11535
11539
|
key: 0,
|
|
11536
11540
|
class: "vt-page__card-filter__dropdown",
|
|
11537
11541
|
trigger: "click"
|
|
@@ -12583,7 +12587,7 @@ const RZ = { class: "vt-page__card-filter__inline" }, OZ = { class: "vt-page__ca
|
|
|
12583
12587
|
}),
|
|
12584
12588
|
emits: /* @__PURE__ */ Ht(["selectLeft", "selectRight", "transfer", "update:added", "update:removed"], ["update:listOne", "update:listTwo"]),
|
|
12585
12589
|
setup(e, { emit: t }) {
|
|
12586
|
-
const i = e, s = t, l =
|
|
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(
|
|
12587
12591
|
() => !!i.fetchLeft && C.value < i.leftTotal
|
|
12588
12592
|
), J = T(
|
|
12589
12593
|
() => !!i.fetchRight && m.value < i.rightTotal
|
|
@@ -13637,7 +13641,7 @@ class Tp extends Ut {
|
|
|
13637
13641
|
this.stop();
|
|
13638
13642
|
}
|
|
13639
13643
|
}
|
|
13640
|
-
class
|
|
13644
|
+
class se extends Ut {
|
|
13641
13645
|
constructor(t = new AudioContext()) {
|
|
13642
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);
|
|
13643
13647
|
}
|
|
@@ -13770,7 +13774,7 @@ class jt extends Cp {
|
|
|
13770
13774
|
return this.renderer;
|
|
13771
13775
|
}
|
|
13772
13776
|
constructor(t) {
|
|
13773
|
-
const i = t.media || (t.backend === "WebAudio" ? new
|
|
13777
|
+
const i = t.media || (t.backend === "WebAudio" ? new se() : void 0);
|
|
13774
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);
|
|
13775
13779
|
const { state: s, actions: l } = function(u) {
|
|
13776
13780
|
var I, h, Z, y, b, W;
|
|
@@ -13968,7 +13972,7 @@ class jt extends Cp {
|
|
|
13968
13972
|
});
|
|
13969
13973
|
if (!t && !i) {
|
|
13970
13974
|
const u = this.getMediaElement();
|
|
13971
|
-
u instanceof
|
|
13975
|
+
u instanceof se && (u.duration = r);
|
|
13972
13976
|
}
|
|
13973
13977
|
if (s) this.decodedData = Ot.createBuffer(s, r || 0);
|
|
13974
13978
|
else if (i) {
|
|
@@ -14040,7 +14044,7 @@ class jt extends Cp {
|
|
|
14040
14044
|
return et(this, void 0, void 0, function* () {
|
|
14041
14045
|
t != null && this.setTime(t);
|
|
14042
14046
|
const l = yield s.play.call(this);
|
|
14043
|
-
return i != null && (this.media instanceof
|
|
14047
|
+
return i != null && (this.media instanceof se ? this.media.stopAt(i) : this.stopAtPosition = i), l;
|
|
14044
14048
|
});
|
|
14045
14049
|
}
|
|
14046
14050
|
playPause() {
|
|
@@ -14129,7 +14133,7 @@ function ei(e, t) {
|
|
|
14129
14133
|
else s === "style" ? Object.assign(i.style, l) : s === "textContent" ? i.textContent = l : i.setAttribute(s, l.toString());
|
|
14130
14134
|
return i;
|
|
14131
14135
|
}
|
|
14132
|
-
function
|
|
14136
|
+
function ne(e, t, i) {
|
|
14133
14137
|
return ei(e, t || {});
|
|
14134
14138
|
}
|
|
14135
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}` };
|
|
@@ -14170,7 +14174,7 @@ class Ze extends wp {
|
|
|
14170
14174
|
this.timelineWrapper.remove(), super.destroy();
|
|
14171
14175
|
}
|
|
14172
14176
|
initTimelineWrapper() {
|
|
14173
|
-
return
|
|
14177
|
+
return ne("div", { part: "timeline-wrapper", style: { pointerEvents: "none" } });
|
|
14174
14178
|
}
|
|
14175
14179
|
defaultTimeInterval(t) {
|
|
14176
14180
|
return t >= 25 ? 1 : 5 * t >= 25 ? 5 : 15 * t >= 25 ? 15 : 60 * Math.ceil(0.5 / t);
|
|
@@ -14195,9 +14199,9 @@ class Ze extends wp {
|
|
|
14195
14199
|
initTimeline() {
|
|
14196
14200
|
var t, i, s, l, n, r, u, I;
|
|
14197
14201
|
this.notchElements.clear();
|
|
14198
|
-
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 =
|
|
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" }) });
|
|
14199
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);
|
|
14200
|
-
const v =
|
|
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" } });
|
|
14201
14205
|
for (let w = 0, J = 0; w < h; w += y, J++) {
|
|
14202
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;
|
|
14203
14207
|
(L || Y) && (x.style.height = "100%", x.style.textIndent = "3px", x.textContent = this.options.formatTimeCallback(w), L && (x.style.opacity = "1"));
|
|
@@ -14341,14 +14345,14 @@ const ft = {
|
|
|
14341
14345
|
}, [
|
|
14342
14346
|
r1(W1, { name: "import" })
|
|
14343
14347
|
], 8, jp),
|
|
14344
|
-
r1(
|
|
14348
|
+
r1(te, {
|
|
14345
14349
|
trigger: "click",
|
|
14346
14350
|
placement: "top",
|
|
14347
14351
|
disabled: I.value,
|
|
14348
14352
|
onCommand: E
|
|
14349
14353
|
}, {
|
|
14350
14354
|
dropdown: j1(() => [
|
|
14351
|
-
(c(), d(a1, null, b1([1, 1.5, 2], (L) => r1(
|
|
14355
|
+
(c(), d(a1, null, b1([1, 1.5, 2], (L) => r1(Bt, {
|
|
14352
14356
|
key: L,
|
|
14353
14357
|
command: L,
|
|
14354
14358
|
class: c1({ "is-active": Z.value === L })
|
|
@@ -14702,7 +14706,7 @@ function yb(e) {
|
|
|
14702
14706
|
const qp = {
|
|
14703
14707
|
install(e, t = {}) {
|
|
14704
14708
|
const { prefix: i = "V", modal: s = !0, message: l = !0, locale: n = ut.uk } = t;
|
|
14705
|
-
e.component(`${i}Button`, q1), e.component(`${i}Icon`, W1), e.component(`${i}Loader`,
|
|
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 });
|
|
14706
14710
|
}
|
|
14707
14711
|
}, Yb = qp.install;
|
|
14708
14712
|
export {
|
|
@@ -14723,14 +14727,14 @@ export {
|
|
|
14723
14727
|
WI as VCollapse,
|
|
14724
14728
|
LI as VCollapseItem,
|
|
14725
14729
|
yI as VDatePicker,
|
|
14726
|
-
|
|
14727
|
-
|
|
14730
|
+
te as VDropdown,
|
|
14731
|
+
Bt as VDropdownItem,
|
|
14728
14732
|
DZ as VDynamicFilter,
|
|
14729
14733
|
he as VEmpty,
|
|
14730
14734
|
W1 as VIcon,
|
|
14731
14735
|
ep as VInfoBox,
|
|
14732
14736
|
vt as VInput,
|
|
14733
|
-
|
|
14737
|
+
_t as VLoader,
|
|
14734
14738
|
l7 as VLocaleSelect,
|
|
14735
14739
|
vZ as VLogin,
|
|
14736
14740
|
UZ as VLoginLogo,
|
|
@@ -14757,7 +14761,7 @@ export {
|
|
|
14757
14761
|
qp as default,
|
|
14758
14762
|
rZ as email,
|
|
14759
14763
|
r7 as formatTime,
|
|
14760
|
-
|
|
14764
|
+
le as generateTimeOptions,
|
|
14761
14765
|
Yb as install,
|
|
14762
14766
|
Ve as isValidDate,
|
|
14763
14767
|
ce as isValidTimeString,
|