@soft-stech/bootsman-ui-shadcn 2.0.21 → 2.0.23
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/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-BOuWIF4c.js +179 -0
- package/dist/{BuiScrollArea.vue_vue_type_script_setup_true_lang-O7VUcRC4.js → BuiScrollArea.vue_vue_type_script_setup_true_lang-lyWD8KAT.js} +1 -1
- package/dist/{BuiScrollBar.vue_vue_type_script_setup_true_lang-cV0od8j0.js → BuiScrollBar.vue_vue_type_script_setup_true_lang-BCvjzEmb.js} +4 -4
- package/dist/BuiTable.vue_vue_type_script_setup_true_lang-BQRl7YR1.js +37 -0
- package/dist/{BuiTableEmpty.vue_vue_type_script_setup_true_lang-Da4qHIWo.js → BuiTableEmpty.vue_vue_type_script_setup_true_lang-CuffOAuP.js} +1 -1
- package/dist/BuiTableRow.vue_vue_type_script_setup_true_lang-BQnadEa7.js +51 -0
- package/dist/components/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/pagination/BuiPaginationCommon.vue.d.ts +4 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/scroll-area/BuiScrollArea.js +1 -1
- package/dist/components/scroll-area/BuiScrollBar.js +1 -1
- package/dist/components/scroll-area/index.js +2 -2
- package/dist/components/table/BuiDataTable.vue.d.ts +8 -4
- package/dist/components/table/BuiTable.js +1 -1
- package/dist/components/table/BuiTableEmpty.js +1 -1
- package/dist/components/table/BuiTableRow.js +1 -1
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +721 -671
- package/dist/index.js +6 -6
- package/dist/lib/useResizeColumns.js +24 -22
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/pagination/BuiPaginationCommon.vue +16 -4
- package/src/components/scroll-area/BuiScrollBar.vue +4 -4
- package/src/components/table/BuiDataTable.vue +135 -26
- package/src/components/table/BuiTable.vue +1 -0
- package/src/components/table/BuiTableRow.vue +6 -0
- package/src/components/table/index.ts +2 -0
- package/src/lib/useResizeColumns.ts +13 -1
- package/src/stories/BuiDataTable.stories.ts +13 -0
- package/src/stories/components/BuiDataTableStory.vue +3 -3
- package/src/stories/components/BuiDataTableWithScrollStory.vue +292 -0
- package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-DhSRYKth.js +0 -170
- package/dist/BuiTable.vue_vue_type_script_setup_true_lang-CQpc0Sr1.js +0 -36
- package/dist/BuiTableRow.vue_vue_type_script_setup_true_lang-BJk8Yk1B.js +0 -54
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as A, computed as h, createBlock as V, openBlock as x, unref as r, normalizeProps as w, guardReactiveProps as B, withCtx as p, renderSlot as E, mergeModels as L, useModel as I, createVNode as n, createElementVNode as S, createElementBlock as y, createCommentVNode as b, toDisplayString as _, createTextVNode as M, Fragment as R, renderList as k } from "vue";
|
|
2
|
+
import { BuiInput as z } from "./components/input/index.js";
|
|
3
|
+
import "vee-validate";
|
|
4
|
+
import { i as N, P as q } from "./PaginationRoot-Xehp56La.js";
|
|
5
|
+
import { u as U } from "./useForwardExpose-DmyWSR4F.js";
|
|
6
|
+
import { P as j } from "./Primitive-EBuBc72_.js";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "./colorUtils-BgA4kYw8.js";
|
|
9
|
+
import { _ as C } from "./BuiSelect.vue_vue_type_script_setup_true_lang-BYtbdIZS.js";
|
|
10
|
+
import { _ as F } from "./BuiSelectValue.vue_vue_type_script_setup_true_lang-C3SieHyq.js";
|
|
11
|
+
import { _ as D } from "./BuiSelectTrigger.vue_vue_type_script_setup_true_lang-YgwOKyQg.js";
|
|
12
|
+
import { _ as T } from "./BuiSelectContent.vue_vue_type_script_setup_true_lang-DedLPTOu.js";
|
|
13
|
+
import { _ as $ } from "./BuiSelectItem.vue_vue_type_script_setup_true_lang-LEr6XwVT.js";
|
|
14
|
+
import { _ as G } from "./BuiPaginationFirst.vue_vue_type_script_setup_true_lang-CQIWuH4J.js";
|
|
15
|
+
import { _ as H } from "./BuiPaginationLast.vue_vue_type_script_setup_true_lang-DPHBc8bO.js";
|
|
16
|
+
import { _ as J } from "./BuiPaginationNext.vue_vue_type_script_setup_true_lang-CiVMJM-x.js";
|
|
17
|
+
import { _ as K } from "./BuiPaginationPrev.vue_vue_type_script_setup_true_lang-C95kepR5.js";
|
|
18
|
+
function d(a, o) {
|
|
19
|
+
const e = o - a + 1;
|
|
20
|
+
return Array.from({ length: e }, (m, u) => u + a);
|
|
21
|
+
}
|
|
22
|
+
function O(a) {
|
|
23
|
+
return a.map((o) => typeof o == "number" ? {
|
|
24
|
+
type: "page",
|
|
25
|
+
value: o
|
|
26
|
+
} : { type: "ellipsis" });
|
|
27
|
+
}
|
|
28
|
+
const v = "ellipsis";
|
|
29
|
+
function Q(a, o, e, m) {
|
|
30
|
+
const t = o, g = Math.max(a - e, 1), f = Math.min(a + e, t);
|
|
31
|
+
if (m) {
|
|
32
|
+
const i = Math.min(2 * e + 5, o) - 2, c = g > 3 && Math.abs(t - i - 1 + 1) > 2 && Math.abs(g - 1) > 2, l = f < t - 2 && Math.abs(t - i) > 2 && Math.abs(t - f) > 2;
|
|
33
|
+
if (!c && l)
|
|
34
|
+
return [
|
|
35
|
+
...d(1, i),
|
|
36
|
+
v,
|
|
37
|
+
t
|
|
38
|
+
];
|
|
39
|
+
if (c && !l) {
|
|
40
|
+
const P = d(t - i + 1, t);
|
|
41
|
+
return [
|
|
42
|
+
1,
|
|
43
|
+
v,
|
|
44
|
+
...P
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
if (c && l) {
|
|
48
|
+
const P = d(g, f);
|
|
49
|
+
return [
|
|
50
|
+
1,
|
|
51
|
+
v,
|
|
52
|
+
...P,
|
|
53
|
+
v,
|
|
54
|
+
t
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
return d(1, t);
|
|
58
|
+
} else {
|
|
59
|
+
const s = e * 2 + 1;
|
|
60
|
+
return o < s ? d(1, t) : a <= e + 1 ? d(1, s) : o - a <= e ? d(o - s + 1, t) : d(g, f);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
var W = /* @__PURE__ */ A({
|
|
64
|
+
__name: "PaginationList",
|
|
65
|
+
props: {
|
|
66
|
+
asChild: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
required: !1
|
|
69
|
+
},
|
|
70
|
+
as: {
|
|
71
|
+
type: null,
|
|
72
|
+
required: !1
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
setup(a) {
|
|
76
|
+
const o = a;
|
|
77
|
+
U();
|
|
78
|
+
const e = N(), m = h(() => O(Q(e.page.value, e.pageCount.value, e.siblingCount.value, e.showEdges.value)));
|
|
79
|
+
return (u, t) => (x(), V(r(j), w(B(o)), {
|
|
80
|
+
default: p(() => [E(u.$slots, "default", { items: m.value })]),
|
|
81
|
+
_: 3
|
|
82
|
+
}, 16));
|
|
83
|
+
}
|
|
84
|
+
}), X = W;
|
|
85
|
+
const Y = { class: "text-muted-foreground text-sm" }, Z = { class: "text-muted-foreground text-sm" }, ve = /* @__PURE__ */ A({
|
|
86
|
+
__name: "BuiPaginationCommon",
|
|
87
|
+
props: /* @__PURE__ */ L({
|
|
88
|
+
total: {},
|
|
89
|
+
translations: {}
|
|
90
|
+
}, {
|
|
91
|
+
pageSize: { default: 10, required: !0 },
|
|
92
|
+
pageSizeModifiers: {},
|
|
93
|
+
pageIndex: { default: 1, required: !0 },
|
|
94
|
+
pageIndexModifiers: {},
|
|
95
|
+
pageAuto: { type: Boolean, default: !1, required: !0 },
|
|
96
|
+
pageAutoModifiers: {}
|
|
97
|
+
}),
|
|
98
|
+
emits: ["update:pageSize", "update:pageIndex", "update:pageAuto"],
|
|
99
|
+
setup(a) {
|
|
100
|
+
const o = [10, 20, 30, 40, 50], e = a, m = I(a, "pageSize"), u = I(a, "pageIndex"), t = I(a, "pageAuto"), g = h(() => Math.ceil(e.total / m.value)), f = h({
|
|
101
|
+
get() {
|
|
102
|
+
return t.value ? e.translations?.itemsPerPageAuto || "Auto" : String(m.value);
|
|
103
|
+
},
|
|
104
|
+
set(s) {
|
|
105
|
+
t.value = s === "auto", s === "auto" ? u.value = 1 : m.value = parseInt(s);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return (s, i) => (x(), V(r(q), {
|
|
109
|
+
total: e.total,
|
|
110
|
+
itemsPerPage: m.value,
|
|
111
|
+
page: u.value,
|
|
112
|
+
"onUpdate:page": i[2] || (i[2] = (c) => u.value = c)
|
|
113
|
+
}, {
|
|
114
|
+
default: p(({ page: c }) => [
|
|
115
|
+
n(r(X), { class: "relative flex items-center justify-center gap-2" }, {
|
|
116
|
+
default: p(() => [
|
|
117
|
+
S("p", Y, _(s.translations?.itemsPerPage || "Items per page"), 1),
|
|
118
|
+
n(r(C), {
|
|
119
|
+
modelValue: f.value,
|
|
120
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => f.value = l)
|
|
121
|
+
}, {
|
|
122
|
+
default: p(() => [
|
|
123
|
+
n(r(D), { class: "mr-2 w-[70px]" }, {
|
|
124
|
+
default: p(() => [
|
|
125
|
+
n(r(F), { placeholder: f.value }, null, 8, ["placeholder"])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}),
|
|
129
|
+
n(r(T), { side: "top" }, {
|
|
130
|
+
default: p(() => [
|
|
131
|
+
n(r($), {
|
|
132
|
+
key: "auto",
|
|
133
|
+
value: "auto"
|
|
134
|
+
}, {
|
|
135
|
+
default: p(() => [
|
|
136
|
+
M(_(e.translations?.itemsPerPageAuto || "Auto"), 1)
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
(x(), y(R, null, k(o, (l) => n(r($), {
|
|
141
|
+
key: l,
|
|
142
|
+
value: l.toString()
|
|
143
|
+
}, {
|
|
144
|
+
default: p(() => [
|
|
145
|
+
M(_(l), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 2
|
|
148
|
+
}, 1032, ["value"])), 64))
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["modelValue"]),
|
|
155
|
+
!t.value && g.value > 1 ? (x(), y(R, { key: 0 }, [
|
|
156
|
+
S("p", Z, _(s.translations?.page || "Page") + " " + _(c) + " " + _(s.translations?.of || "of") + " " + _(g.value), 1),
|
|
157
|
+
n(r(G)),
|
|
158
|
+
n(r(K)),
|
|
159
|
+
n(r(z), {
|
|
160
|
+
modelValue: u.value,
|
|
161
|
+
"onUpdate:modelValue": i[1] || (i[1] = (l) => u.value = l),
|
|
162
|
+
class: "w-28",
|
|
163
|
+
placeholder: "Page number"
|
|
164
|
+
}, null, 8, ["modelValue"]),
|
|
165
|
+
n(r(J)),
|
|
166
|
+
n(r(H))
|
|
167
|
+
], 64)) : b("", !0)
|
|
168
|
+
]),
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1024)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["total", "itemsPerPage", "page"]));
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
export {
|
|
177
|
+
X as P,
|
|
178
|
+
ve as _
|
|
179
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, computed as p, watch as S, createBlock as C, createCommentVNode as k, openBlock as v, unref as r, mergeProps as _, withCtx as u, renderSlot as h, toRefs as E, onMounted as $, createElementBlock as V, Fragment as B, createElementVNode as R, createVNode as i, normalizeStyle as W, createTextVNode as X } from "vue";
|
|
2
|
-
import { i as w, S as H, _ as N } from "./BuiScrollBar.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { i as w, S as H, _ as N } from "./BuiScrollBar.vue_vue_type_script_setup_true_lang-BCvjzEmb.js";
|
|
3
3
|
import { u as x } from "./useForwardExpose-DmyWSR4F.js";
|
|
4
4
|
import { P as b } from "./Primitive-EBuBc72_.js";
|
|
5
5
|
import { useResizeObserver as A } from "@vueuse/core";
|
|
@@ -600,14 +600,14 @@ const qe = /* @__PURE__ */ y({
|
|
|
600
600
|
});
|
|
601
601
|
return (r, t) => (_(), S(c(Ce), P(l.value, {
|
|
602
602
|
class: c(ne)(
|
|
603
|
-
"z-
|
|
604
|
-
|
|
605
|
-
|
|
603
|
+
"z-10 flex touch-none transition-colors select-none",
|
|
604
|
+
e.orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
605
|
+
e.orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
606
606
|
e.class
|
|
607
607
|
)
|
|
608
608
|
}), {
|
|
609
609
|
default: b(() => [
|
|
610
|
-
k(c(Re), { class: "relative flex-1 rounded-full
|
|
610
|
+
k(c(Re), { class: "bg-border relative flex-1 rounded-full" })
|
|
611
611
|
]),
|
|
612
612
|
_: 1
|
|
613
613
|
}, 16, ["class"]));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as i, ref as s, createBlock as m, openBlock as d, unref as e, withCtx as p, renderSlot as t, createElementVNode as a, createVNode as _, normalizeClass as u } from "vue";
|
|
2
|
+
import { _ as b } from "./BuiScrollArea.vue_vue_type_script_setup_true_lang-lyWD8KAT.js";
|
|
3
|
+
import { _ as h } from "./BuiScrollBar.vue_vue_type_script_setup_true_lang-BCvjzEmb.js";
|
|
4
|
+
import { g as w } from "./utils-DhVytAXN.js";
|
|
5
|
+
const x = { class: "flex min-h-[90px] w-full grow flex-col" }, v = /* @__PURE__ */ i({
|
|
6
|
+
__name: "BuiTable",
|
|
7
|
+
props: {
|
|
8
|
+
class: {}
|
|
9
|
+
},
|
|
10
|
+
setup(n, { expose: c }) {
|
|
11
|
+
const f = n, o = s(void 0), r = s(null);
|
|
12
|
+
return c({ tableRef: o, scrollAreaElementRef: r }), (l, k) => (d(), m(e(b), {
|
|
13
|
+
ref_key: "scrollAreaElementRef",
|
|
14
|
+
ref: r,
|
|
15
|
+
class: "border-border/16 w-full grow overflow-auto rounded-sm border",
|
|
16
|
+
"scroll-hide-delay": 100
|
|
17
|
+
}, {
|
|
18
|
+
default: p(() => [
|
|
19
|
+
t(l.$slots, "columnVisibility"),
|
|
20
|
+
a("div", x, [
|
|
21
|
+
a("table", {
|
|
22
|
+
ref_key: "tableRef",
|
|
23
|
+
ref: o,
|
|
24
|
+
class: u(e(w)("h-full caption-top text-sm", f.class))
|
|
25
|
+
}, [
|
|
26
|
+
t(l.$slots, "default")
|
|
27
|
+
], 2)
|
|
28
|
+
]),
|
|
29
|
+
_(e(h), { orientation: "horizontal" })
|
|
30
|
+
]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 512));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
v as _
|
|
37
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, createBlock as n, openBlock as r, withCtx as s, createVNode as c, normalizeClass as l, unref as p, createElementVNode as f, renderSlot as m } from "vue";
|
|
2
|
-
import { _ as i } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as i } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-BQnadEa7.js";
|
|
3
3
|
import { _ } from "./BuiTableCell.vue_vue_type_script_setup_true_lang-BzFROkZg.js";
|
|
4
4
|
import { g as u } from "./utils-DhVytAXN.js";
|
|
5
5
|
const d = { class: "flex items-center justify-center py-10" }, C = /* @__PURE__ */ a({
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as $, createBlock as p, createElementBlock as b, openBlock as l, unref as o, withCtx as d, createVNode as c, renderSlot as a, createElementVNode as w, mergeProps as m } from "vue";
|
|
2
|
+
import { _ as v } from "./BuiContextMenu.vue_vue_type_script_setup_true_lang-CGtCNQsI.js";
|
|
3
|
+
import { _ as k } from "./BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-hfu_w_27.js";
|
|
4
|
+
import { g as i } from "./utils-DhVytAXN.js";
|
|
5
|
+
const g = ["data-row-state"], B = ["data-row-state"], E = /* @__PURE__ */ $({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BuiTableRow",
|
|
8
|
+
props: {
|
|
9
|
+
class: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["mouseenter", "mouseleave"],
|
|
12
|
+
setup(u, { emit: f }) {
|
|
13
|
+
const n = u, s = f;
|
|
14
|
+
return (e, t) => e.$slots.actions ? (l(), p(o(v), { key: 0 }, {
|
|
15
|
+
default: d(() => [
|
|
16
|
+
c(o(k), { "as-child": "" }, {
|
|
17
|
+
default: d(() => [
|
|
18
|
+
w("tr", m({
|
|
19
|
+
class: o(i)(
|
|
20
|
+
"border-border/8 data-[row-state=selected]:bg-accent/8 border-b transition-colors",
|
|
21
|
+
n.class
|
|
22
|
+
),
|
|
23
|
+
"data-row-state": e.$attrs["data-row-state"],
|
|
24
|
+
onMouseenter: t[0] || (t[0] = (r) => s("mouseenter")),
|
|
25
|
+
onMouseleave: t[1] || (t[1] = (r) => s("mouseleave"))
|
|
26
|
+
}, e.$attrs), [
|
|
27
|
+
a(e.$slots, "default")
|
|
28
|
+
], 16, g)
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}),
|
|
32
|
+
a(e.$slots, "actions")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
})) : (l(), b("tr", m({
|
|
36
|
+
key: 1,
|
|
37
|
+
class: o(i)(
|
|
38
|
+
"border-border/8 data-[row-state=selected]:bg-accent/8 border-b transition-colors",
|
|
39
|
+
n.class
|
|
40
|
+
),
|
|
41
|
+
"data-row-state": e.$attrs["data-row-state"],
|
|
42
|
+
onMouseenter: t[2] || (t[2] = (r) => s("mouseenter")),
|
|
43
|
+
onMouseleave: t[3] || (t[3] = (r) => s("mouseleave"))
|
|
44
|
+
}, e.$attrs), [
|
|
45
|
+
a(e.$slots, "default")
|
|
46
|
+
], 16, B));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
E as _
|
|
51
|
+
};
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
total: number;
|
|
5
5
|
translations?: {
|
|
6
6
|
itemsPerPage: string;
|
|
7
|
+
itemsPerPageAuto: string;
|
|
7
8
|
page: string;
|
|
8
9
|
of: string;
|
|
9
10
|
};
|
|
@@ -11,12 +12,15 @@ type __VLS_Props = {
|
|
|
11
12
|
type __VLS_PublicProps = {
|
|
12
13
|
'pageSize': PageSize;
|
|
13
14
|
'pageIndex': number;
|
|
15
|
+
'pageAuto': boolean | undefined;
|
|
14
16
|
} & __VLS_Props;
|
|
15
17
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
18
|
"update:pageSize": (value: 10 | 20 | 50 | 30 | 40) => any;
|
|
17
19
|
"update:pageIndex": (value: number) => any;
|
|
20
|
+
"update:pageAuto": (value: boolean | undefined) => any;
|
|
18
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
22
|
"onUpdate:pageSize"?: ((value: 10 | 20 | 50 | 30 | 40) => any) | undefined;
|
|
20
23
|
"onUpdate:pageIndex"?: ((value: number) => any) | undefined;
|
|
24
|
+
"onUpdate:pageAuto"?: ((value: boolean | undefined) => any) | undefined;
|
|
21
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
26
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, P as t } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as o, P as t } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-BOuWIF4c.js";
|
|
2
2
|
import { _ as r } from "../../BuiPaginationFirst.vue_vue_type_script_setup_true_lang-CQIWuH4J.js";
|
|
3
3
|
import { _ as P } from "../../BuiPaginationLast.vue_vue_type_script_setup_true_lang-DPHBc8bO.js";
|
|
4
4
|
import { _ as m } from "../../BuiPaginationNext.vue_vue_type_script_setup_true_lang-CiVMJM-x.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "../../BuiScrollArea.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as e } from "../../BuiScrollBar.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as a } from "../../BuiScrollArea.vue_vue_type_script_setup_true_lang-lyWD8KAT.js";
|
|
2
|
+
import { _ as e } from "../../BuiScrollBar.vue_vue_type_script_setup_true_lang-BCvjzEmb.js";
|
|
3
3
|
export {
|
|
4
4
|
a as BuiScrollArea,
|
|
5
5
|
e as BuiScrollBar
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { ColumnDef, ColumnOrderState,
|
|
1
|
+
import { ColumnDef, ColumnOrderState, Row, RowSelectionState, SortingState, VisibilityState, PaginationState } from '@tanstack/vue-table';
|
|
2
|
+
export type PaginationAutoState = PaginationState & {
|
|
3
|
+
pageAuto?: boolean;
|
|
4
|
+
};
|
|
2
5
|
declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
7
|
readonly "onUpdate:sorting"?: ((value: SortingState) => any) | undefined;
|
|
5
|
-
readonly "onUpdate:pagination"?: ((value:
|
|
8
|
+
readonly "onUpdate:pagination"?: ((value: PaginationAutoState) => any) | undefined;
|
|
6
9
|
readonly "onUpdate:selection"?: ((value: RowSelectionState) => any) | undefined;
|
|
7
10
|
readonly "onUpdate:columnVisibility"?: ((value: VisibilityState) => any) | undefined;
|
|
8
11
|
readonly "onUpdate:columnOrder"?: ((value: ColumnOrderState) => any) | undefined;
|
|
9
12
|
readonly "onUpdate:columnSizing"?: ((value: Record<string, number>) => any) | undefined;
|
|
10
13
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:sorting" | "onUpdate:pagination" | "onUpdate:selection" | "onUpdate:columnVisibility" | "onUpdate:columnOrder" | "onUpdate:columnSizing"> & ({
|
|
11
14
|
sorting?: SortingState;
|
|
12
|
-
pagination?:
|
|
15
|
+
pagination?: PaginationAutoState;
|
|
13
16
|
selection?: RowSelectionState;
|
|
14
17
|
columnVisibility?: VisibilityState;
|
|
15
18
|
columnOrder?: ColumnOrderState;
|
|
@@ -35,6 +38,7 @@ declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
35
38
|
columnResetVisibility?: string;
|
|
36
39
|
paginationTranslations?: {
|
|
37
40
|
itemsPerPage: string;
|
|
41
|
+
itemsPerPageAuto: string;
|
|
38
42
|
page: string;
|
|
39
43
|
of: string;
|
|
40
44
|
};
|
|
@@ -70,7 +74,7 @@ declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
70
74
|
nodata?(_: {}): any;
|
|
71
75
|
numberOfItems?(_: {}): any;
|
|
72
76
|
};
|
|
73
|
-
emit: ((evt: "update:sorting", value: SortingState) => void) & ((evt: "update:pagination", value:
|
|
77
|
+
emit: ((evt: "update:sorting", value: SortingState) => void) & ((evt: "update:pagination", value: PaginationAutoState) => void) & ((evt: "update:selection", value: RowSelectionState) => void) & ((evt: "update:columnVisibility", value: VisibilityState) => void) & ((evt: "update:columnOrder", value: ColumnOrderState) => void) & ((evt: "update:columnSizing", value: Record<string, number>) => void);
|
|
74
78
|
}>) => import('vue').VNode & {
|
|
75
79
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
76
80
|
};
|
|
@@ -12,4 +12,5 @@ export { default as BuiTableEmpty } from './BuiTableEmpty.vue';
|
|
|
12
12
|
export { default as BuiTableFooter } from './BuiTableFooter.vue';
|
|
13
13
|
export { default as BuiDataTable } from './BuiDataTable.vue';
|
|
14
14
|
export { default as BuiDataTableColumnList } from './BuiDataTableColumnList.vue';
|
|
15
|
+
export type { PaginationAutoState } from './BuiDataTable.vue';
|
|
15
16
|
export declare function getPinningStyle<TData>(_column: Column<TData, unknown>): CSSProperties;
|