voiptime-components 1.8.23 → 1.8.24
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 +5 -4
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {
|
|
|
195
195
|
columnsSelector: VTableColumnGroup[];
|
|
196
196
|
rowKey: string;
|
|
197
197
|
showSummary: boolean;
|
|
198
|
+
isAllSelect: boolean;
|
|
198
199
|
selectionKey: string;
|
|
199
200
|
defaultSelection: any[];
|
|
200
201
|
selectOnClickRow: boolean;
|
|
@@ -1686,6 +1687,8 @@ export declare interface VTableProps {
|
|
|
1686
1687
|
columnsSelector?: VTableColumnGroup[];
|
|
1687
1688
|
/** Чи включити функціонал виділення рядків */
|
|
1688
1689
|
selectable?: boolean;
|
|
1690
|
+
/** Чи виділяти всі чи тільки на поточній сторінці */
|
|
1691
|
+
isAllSelect?: boolean;
|
|
1689
1692
|
/** Ключ для ідентифікації рядків (за замовчуванням 'id') */
|
|
1690
1693
|
selectionKey?: string;
|
|
1691
1694
|
/** Рядки виділені за замовчуванням */
|
package/dist/index.es.js
CHANGED
|
@@ -3937,7 +3937,7 @@ function B3(n, t, u, e) {
|
|
|
3937
3937
|
if (p.value) return !1;
|
|
3938
3938
|
const D = d.value;
|
|
3939
3939
|
return D > 0 && D < t.value.length;
|
|
3940
|
-
}), $ = x(() => p.value ? !0 : C.value && !o.value), _ = x(() => p.value), K = (D, N) => {
|
|
3940
|
+
}), $ = x(() => p.value ? !0 : C.value && !o.value), _ = x(() => n.isAllSelect && p.value), K = (D, N) => {
|
|
3941
3941
|
const ue = m(D), me = c.value.some((B) => m(B) === m(D)), S = N !== void 0 ? N : !me;
|
|
3942
3942
|
if (p.value && !S) {
|
|
3943
3943
|
p.value = !1, e != null && e.value && (c.value = e.value.filter((B) => m(B) !== ue)), he(D, !1);
|
|
@@ -3951,7 +3951,7 @@ function B3(n, t, u, e) {
|
|
|
3951
3951
|
R();
|
|
3952
3952
|
break;
|
|
3953
3953
|
case "allVisible":
|
|
3954
|
-
G();
|
|
3954
|
+
n.isAllSelect ? G() : P();
|
|
3955
3955
|
break;
|
|
3956
3956
|
case "absoluteAll":
|
|
3957
3957
|
P();
|
|
@@ -3965,7 +3965,7 @@ function B3(n, t, u, e) {
|
|
|
3965
3965
|
N.has(m(ue)) || D.push(ue);
|
|
3966
3966
|
}), c.value = D, p.value = !1, he();
|
|
3967
3967
|
}, G = () => {
|
|
3968
|
-
p.value = !0, e != null && e.value ? c.value = [...e.value] : c.value = [...t.value], he(void 0, void 0, !0);
|
|
3968
|
+
n.isAllSelect ? (p.value = !0, e != null && e.value ? c.value = [...e.value] : c.value = [...t.value], he(void 0, void 0, !0)) : R();
|
|
3969
3969
|
}, P = () => {
|
|
3970
3970
|
c.value = [], p.value = !1, v.value = null, he();
|
|
3971
3971
|
}, te = (D) => {
|
|
@@ -4574,6 +4574,7 @@ const Qe = new R3(), j3 = {
|
|
|
4574
4574
|
summaryMethod: {},
|
|
4575
4575
|
columnsSelector: { default: () => [] },
|
|
4576
4576
|
selectable: { type: Boolean, default: !1 },
|
|
4577
|
+
isAllSelect: { type: Boolean, default: !1 },
|
|
4577
4578
|
selectionKey: { default: "id" },
|
|
4578
4579
|
defaultSelection: { default: () => [] },
|
|
4579
4580
|
selectOnClickRow: { type: Boolean, default: !1 },
|
|
@@ -4768,7 +4769,7 @@ const Qe = new R3(), j3 = {
|
|
|
4768
4769
|
Q(Je, {
|
|
4769
4770
|
checked: (de = Y(D)) == null ? void 0 : de.isAllSelected.value,
|
|
4770
4771
|
indeterminate: (ee = Y(D)) == null ? void 0 : ee.isIndeterminate.value,
|
|
4771
|
-
"is-double": (b = (k = Y(D)) == null ? void 0 : k.isDoubleCheck) == null ? void 0 : b.value,
|
|
4772
|
+
"is-double": e.isAllSelect && ((b = (k = Y(D)) == null ? void 0 : k.isDoubleCheck) == null ? void 0 : b.value),
|
|
4772
4773
|
onChange: De
|
|
4773
4774
|
}, null, 8, ["checked", "indeterminate", "is-double"])
|
|
4774
4775
|
])
|