@soft-stech/bootsman-ui-shadcn 2.0.20 → 2.0.21
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/BuiScrollArea.vue_vue_type_script_setup_true_lang-O7VUcRC4.js +144 -0
- package/dist/BuiTable.vue_vue_type_script_setup_true_lang-CQpc0Sr1.js +36 -0
- package/dist/components/input/index.js +22 -22
- package/dist/components/scroll-area/BuiScrollArea.js +1 -1
- package/dist/components/scroll-area/BuiScrollArea.vue.d.ts +256 -2
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/table/BuiDataTable.vue.d.ts +1 -0
- package/dist/components/table/BuiTable.js +1 -1
- package/dist/components/table/BuiTable.vue.d.ts +1487 -2
- package/dist/components/table/index.js +519 -497
- package/dist/index.js +2 -2
- package/dist/lib/useGlobalCursor.d.ts +4 -0
- package/dist/lib/useGlobalCursor.js +15 -0
- package/dist/lib/useResizeColumns.d.ts +3812 -0
- package/dist/lib/useResizeColumns.js +97 -79
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input/BuiInput.vue +1 -1
- package/src/components/scroll-area/BuiScrollArea.vue +9 -2
- package/src/components/table/BuiDataTable.vue +39 -11
- package/src/components/table/BuiTable.vue +11 -3
- package/src/lib/useGlobalCursor.ts +17 -0
- package/src/lib/useResizeColumns.ts +151 -42
- package/src/stories/components/BuiDataTableStory.vue +1 -1
- package/dist/BuiScrollArea.vue_vue_type_script_setup_true_lang-XkIzRs-G.js +0 -141
- package/dist/BuiTable.vue_vue_type_script_setup_true_lang-Dd_dkcy4.js +0 -30
|
@@ -0,0 +1,144 @@
|
|
|
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-cV0od8j0.js";
|
|
3
|
+
import { u as x } from "./useForwardExpose-DmyWSR4F.js";
|
|
4
|
+
import { P as b } from "./Primitive-EBuBc72_.js";
|
|
5
|
+
import { useResizeObserver as A } from "@vueuse/core";
|
|
6
|
+
import { u as Y } from "./useNonce-DM9DidHz.js";
|
|
7
|
+
import { g as q } from "./utils-DhVytAXN.js";
|
|
8
|
+
var P = /* @__PURE__ */ f({
|
|
9
|
+
__name: "ScrollAreaCornerImpl",
|
|
10
|
+
setup(c) {
|
|
11
|
+
const e = w(), t = d(0), l = d(0), n = p(() => !!t.value && !!l.value);
|
|
12
|
+
function o() {
|
|
13
|
+
const s = e.scrollbarX.value?.offsetHeight || 0;
|
|
14
|
+
e.onCornerHeightChange(s), l.value = s;
|
|
15
|
+
}
|
|
16
|
+
function a() {
|
|
17
|
+
const s = e.scrollbarY.value?.offsetWidth || 0;
|
|
18
|
+
e.onCornerWidthChange(s), t.value = s;
|
|
19
|
+
}
|
|
20
|
+
return A(e.scrollbarX.value, o), A(e.scrollbarY.value, a), S(() => e.scrollbarX.value, o), S(() => e.scrollbarY.value, a), (s, y) => n.value ? (v(), C(r(b), _({
|
|
21
|
+
key: 0,
|
|
22
|
+
style: {
|
|
23
|
+
width: `${t.value}px`,
|
|
24
|
+
height: `${l.value}px`,
|
|
25
|
+
position: "absolute",
|
|
26
|
+
right: r(e).dir.value === "ltr" ? 0 : void 0,
|
|
27
|
+
left: r(e).dir.value === "rtl" ? 0 : void 0,
|
|
28
|
+
bottom: 0
|
|
29
|
+
}
|
|
30
|
+
}, s.$parent?.$props), {
|
|
31
|
+
default: u(() => [h(s.$slots, "default")]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 16, ["style"])) : k("v-if", !0);
|
|
34
|
+
}
|
|
35
|
+
}), z = P, I = /* @__PURE__ */ f({
|
|
36
|
+
__name: "ScrollAreaCorner",
|
|
37
|
+
props: {
|
|
38
|
+
asChild: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
required: !1
|
|
41
|
+
},
|
|
42
|
+
as: {
|
|
43
|
+
type: null,
|
|
44
|
+
required: !1
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(c) {
|
|
48
|
+
const e = c, { forwardRef: t } = x(), l = w(), n = p(() => !!l.scrollbarX.value && !!l.scrollbarY.value), o = p(() => l.type.value !== "scroll" && n.value);
|
|
49
|
+
return (a, s) => o.value ? (v(), C(z, _({ key: 0 }, e, { ref: r(t) }), {
|
|
50
|
+
default: u(() => [h(a.$slots, "default")]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16)) : k("v-if", !0);
|
|
53
|
+
}
|
|
54
|
+
}), F = I, j = /* @__PURE__ */ f({
|
|
55
|
+
inheritAttrs: !1,
|
|
56
|
+
__name: "ScrollAreaViewport",
|
|
57
|
+
props: {
|
|
58
|
+
nonce: {
|
|
59
|
+
type: String,
|
|
60
|
+
required: !1
|
|
61
|
+
},
|
|
62
|
+
asChild: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: !1
|
|
65
|
+
},
|
|
66
|
+
as: {
|
|
67
|
+
type: null,
|
|
68
|
+
required: !1
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
setup(c, { expose: e }) {
|
|
72
|
+
const t = c, { nonce: l } = E(t), n = Y(l), o = w(), a = d();
|
|
73
|
+
$(() => {
|
|
74
|
+
o.onViewportChange(a.value), o.onContentChange(y.value);
|
|
75
|
+
}), e({ viewportElement: a });
|
|
76
|
+
const { forwardRef: s, currentElement: y } = x();
|
|
77
|
+
return (m, g) => (v(), V(B, null, [R("div", _({
|
|
78
|
+
ref_key: "viewportElement",
|
|
79
|
+
ref: a,
|
|
80
|
+
"data-reka-scroll-area-viewport": "",
|
|
81
|
+
style: {
|
|
82
|
+
overflowX: r(o).scrollbarXEnabled.value ? "scroll" : "hidden",
|
|
83
|
+
overflowY: r(o).scrollbarYEnabled.value ? "scroll" : "hidden"
|
|
84
|
+
}
|
|
85
|
+
}, m.$attrs, { tabindex: 0 }), [i(r(b), {
|
|
86
|
+
ref: r(s),
|
|
87
|
+
style: W({ minWidth: r(o).scrollbarXEnabled.value ? "fit-content" : void 0 }),
|
|
88
|
+
"as-child": t.asChild,
|
|
89
|
+
as: m.as
|
|
90
|
+
}, {
|
|
91
|
+
default: u(() => [h(m.$slots, "default")]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, [
|
|
94
|
+
"style",
|
|
95
|
+
"as-child",
|
|
96
|
+
"as"
|
|
97
|
+
])], 16), i(r(b), {
|
|
98
|
+
as: "style",
|
|
99
|
+
nonce: r(n)
|
|
100
|
+
}, {
|
|
101
|
+
default: u(() => g[0] || (g[0] = [X(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),
|
|
102
|
+
_: 1,
|
|
103
|
+
__: [0]
|
|
104
|
+
}, 8, ["nonce"])], 64));
|
|
105
|
+
}
|
|
106
|
+
}), D = j;
|
|
107
|
+
const Q = /* @__PURE__ */ f({
|
|
108
|
+
__name: "BuiScrollArea",
|
|
109
|
+
props: {
|
|
110
|
+
type: {},
|
|
111
|
+
dir: {},
|
|
112
|
+
scrollHideDelay: {},
|
|
113
|
+
asChild: { type: Boolean },
|
|
114
|
+
as: {},
|
|
115
|
+
class: {}
|
|
116
|
+
},
|
|
117
|
+
setup(c, { expose: e }) {
|
|
118
|
+
const t = c, l = p(() => {
|
|
119
|
+
const { class: o, ...a } = t;
|
|
120
|
+
return a;
|
|
121
|
+
}), n = d(null);
|
|
122
|
+
return e({ tableWrapperRef: n }), (o, a) => (v(), C(r(H), _({
|
|
123
|
+
ref_key: "tableWrapperRef",
|
|
124
|
+
ref: n
|
|
125
|
+
}, l.value, {
|
|
126
|
+
class: r(q)("relative overflow-hidden", t.class)
|
|
127
|
+
}), {
|
|
128
|
+
default: u(() => [
|
|
129
|
+
i(r(D), { class: "h-full w-full rounded-[inherit]" }, {
|
|
130
|
+
default: u(() => [
|
|
131
|
+
h(o.$slots, "default")
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}),
|
|
135
|
+
i(N),
|
|
136
|
+
i(r(F))
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 16, ["class"]));
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
Q as _
|
|
144
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as i, ref as t, createBlock as m, openBlock as p, unref as e, withCtx as _, renderSlot as s, createElementVNode as a, createVNode as d, normalizeClass as u } from "vue";
|
|
2
|
+
import { _ as b } from "./BuiScrollArea.vue_vue_type_script_setup_true_lang-O7VUcRC4.js";
|
|
3
|
+
import { _ as h } from "./BuiScrollBar.vue_vue_type_script_setup_true_lang-cV0od8j0.js";
|
|
4
|
+
import { g as w } from "./utils-DhVytAXN.js";
|
|
5
|
+
const x = { class: "flex min-h-[90px] w-full grow flex-col" }, y = /* @__PURE__ */ i({
|
|
6
|
+
__name: "BuiTable",
|
|
7
|
+
props: {
|
|
8
|
+
class: {}
|
|
9
|
+
},
|
|
10
|
+
setup(n, { expose: f }) {
|
|
11
|
+
const c = n, o = t(void 0), r = t(null);
|
|
12
|
+
return f({ tableRef: o, scrollAreaElementRef: r }), (l, k) => (p(), m(e(b), {
|
|
13
|
+
ref_key: "scrollAreaElementRef",
|
|
14
|
+
ref: r,
|
|
15
|
+
class: "border-border/16 w-full grow overflow-auto rounded-sm border"
|
|
16
|
+
}, {
|
|
17
|
+
default: _(() => [
|
|
18
|
+
s(l.$slots, "columnVisibility"),
|
|
19
|
+
a("div", x, [
|
|
20
|
+
a("table", {
|
|
21
|
+
ref_key: "tableRef",
|
|
22
|
+
ref: o,
|
|
23
|
+
class: u(e(w)("h-full caption-top text-sm", c.class))
|
|
24
|
+
}, [
|
|
25
|
+
s(l.$slots, "default")
|
|
26
|
+
], 2)
|
|
27
|
+
]),
|
|
28
|
+
d(e(h), { orientation: "horizontal" })
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 512));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
y as _
|
|
36
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as B, F as O, g as _, _ as R, j as S } from "../../utils-DhVytAXN.js";
|
|
2
|
-
import { defineComponent as x, inject as z, toRef as A, ref as v, useTemplateRef as X, createElementBlock as w, withDirectives as E, openBlock as
|
|
2
|
+
import { defineComponent as x, inject as z, toRef as A, ref as v, useTemplateRef as X, createElementBlock as w, withDirectives as E, openBlock as d, createBlock as g, createCommentVNode as T, createElementVNode as h, unref as a, normalizeClass as k, isRef as F, vModelText as G, withCtx as y, createVNode as n, vModelDynamic as H, computed as $, mergeProps as D, createTextVNode as K, toDisplayString as L, mergeModels as Y, useModel as q, watch as I, normalizeStyle as M } from "vue";
|
|
3
3
|
import { useVModel as J, useElementBounding as U } from "@vueuse/core";
|
|
4
4
|
import { c as Q, d as P } from "../../colorUtils-BgA4kYw8.js";
|
|
5
5
|
import { BuiBadge as W } from "../badge/index.js";
|
|
@@ -70,7 +70,7 @@ const re = B("palette", [
|
|
|
70
70
|
]), ne = {
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "group relative flex flex-row items-center"
|
|
73
|
-
},
|
|
73
|
+
}, de = ["readonly", "disabled", "placeholder"], ie = ["readonly", "disabled", "placeholder", "type"], C = /* @__PURE__ */ x({
|
|
74
74
|
__name: "BuiInput",
|
|
75
75
|
props: {
|
|
76
76
|
defaultValue: {},
|
|
@@ -83,8 +83,8 @@ const re = B("palette", [
|
|
|
83
83
|
type: {}
|
|
84
84
|
},
|
|
85
85
|
emits: ["update:modelValue"],
|
|
86
|
-
setup(
|
|
87
|
-
const e =
|
|
86
|
+
setup(i, { emit: o }) {
|
|
87
|
+
const e = i, t = J(e, "modelValue", o, {
|
|
88
88
|
passive: !0,
|
|
89
89
|
defaultValue: e.defaultValue
|
|
90
90
|
}), u = z(O, A(!1)), l = v(!1), s = X("searchInput"), c = () => {
|
|
@@ -96,7 +96,7 @@ const re = B("palette", [
|
|
|
96
96
|
}, j = () => {
|
|
97
97
|
s.value && (s.value.focus(), t.value = "");
|
|
98
98
|
};
|
|
99
|
-
return (m, b) => e.type === "search" ? (
|
|
99
|
+
return (m, b) => e.type === "search" ? (d(), w("div", ne, [
|
|
100
100
|
E(h("input", {
|
|
101
101
|
ref_key: "searchInput",
|
|
102
102
|
ref: s,
|
|
@@ -116,13 +116,13 @@ const re = B("palette", [
|
|
|
116
116
|
onFocus: c,
|
|
117
117
|
onBlur: r,
|
|
118
118
|
onKeydown: f
|
|
119
|
-
}, null, 42,
|
|
119
|
+
}, null, 42, de), [
|
|
120
120
|
[G, a(t)]
|
|
121
121
|
]),
|
|
122
|
-
a(t) && a(t).toString().length > 0 ? (
|
|
122
|
+
a(t) && a(t).toString().length > 0 ? (d(), g(R, {
|
|
123
123
|
key: 0,
|
|
124
124
|
variant: "none",
|
|
125
|
-
class: "hover:text-primary text-foreground
|
|
125
|
+
class: "hover:text-primary text-foreground absolute top-2 right-2 h-fit w-fit p-[1px]",
|
|
126
126
|
onClick: j
|
|
127
127
|
}, {
|
|
128
128
|
default: y(() => [
|
|
@@ -133,7 +133,7 @@ const re = B("palette", [
|
|
|
133
133
|
]),
|
|
134
134
|
_: 1
|
|
135
135
|
})) : T("", !0)
|
|
136
|
-
])) : E((
|
|
136
|
+
])) : E((d(), w("input", {
|
|
137
137
|
key: 1,
|
|
138
138
|
"onUpdate:modelValue": b[1] || (b[1] = (V) => F(t) ? t.value = V : null),
|
|
139
139
|
class: k(a(_)(a(N)({ variant: m.variant }), e.class ?? "")),
|
|
@@ -144,7 +144,7 @@ const re = B("palette", [
|
|
|
144
144
|
onFocus: c,
|
|
145
145
|
onBlur: r,
|
|
146
146
|
onKeydown: f
|
|
147
|
-
}, null, 42,
|
|
147
|
+
}, null, 42, ie)), [
|
|
148
148
|
[H, a(t)]
|
|
149
149
|
]);
|
|
150
150
|
}
|
|
@@ -156,13 +156,13 @@ const re = B("palette", [
|
|
|
156
156
|
showPasswordTranslation: {},
|
|
157
157
|
hidePasswordTranslation: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
const o =
|
|
159
|
+
setup(i) {
|
|
160
|
+
const o = i, e = v(o.defaultValue ?? "password");
|
|
161
161
|
function p() {
|
|
162
162
|
e.value === "password" ? e.value = "text" : e.value = "password";
|
|
163
163
|
}
|
|
164
164
|
const t = $(() => o.showPasswordTranslation ?? "Show password"), u = $(() => o.hidePasswordTranslation ?? "Hide password");
|
|
165
|
-
return (l, s) => (
|
|
165
|
+
return (l, s) => (d(), w("div", ue, [
|
|
166
166
|
n(a(C), D(l.$attrs, {
|
|
167
167
|
type: e.value,
|
|
168
168
|
class: a(_)(l.$attrs.class ?? "", "pr-8")
|
|
@@ -175,10 +175,10 @@ const re = B("palette", [
|
|
|
175
175
|
"aria-pressed": e.value !== "password"
|
|
176
176
|
}, {
|
|
177
177
|
default: y(() => [
|
|
178
|
-
e.value === "password" ? (
|
|
178
|
+
e.value === "password" ? (d(), g(a(se), {
|
|
179
179
|
key: 0,
|
|
180
180
|
class: "pointer-events-none h-4 w-4 shrink-0 cursor-pointer"
|
|
181
|
-
})) : (
|
|
181
|
+
})) : (d(), g(a(oe), {
|
|
182
182
|
key: 1,
|
|
183
183
|
class: "pointer-events-none h-4 w-4 shrink-0 cursor-pointer"
|
|
184
184
|
}))
|
|
@@ -193,13 +193,13 @@ const re = B("palette", [
|
|
|
193
193
|
props: {
|
|
194
194
|
badge: {}
|
|
195
195
|
},
|
|
196
|
-
setup(
|
|
197
|
-
const o =
|
|
198
|
-
return (t, u) => (
|
|
196
|
+
setup(i) {
|
|
197
|
+
const o = i, e = v(null), { width: p } = U(e);
|
|
198
|
+
return (t, u) => (d(), w("div", ce, [
|
|
199
199
|
n(a(C), D(t.$attrs, {
|
|
200
200
|
style: { paddingRight: a(p) + pe + "px" }
|
|
201
201
|
}), null, 16, ["style"]),
|
|
202
|
-
o.badge ? (
|
|
202
|
+
o.badge ? (d(), g(W, {
|
|
203
203
|
key: 0,
|
|
204
204
|
ref_key: "badgeEl",
|
|
205
205
|
ref: e,
|
|
@@ -224,13 +224,13 @@ const re = B("palette", [
|
|
|
224
224
|
modelModifiers: {}
|
|
225
225
|
}),
|
|
226
226
|
emits: ["update:modelValue"],
|
|
227
|
-
setup(
|
|
228
|
-
const o =
|
|
227
|
+
setup(i) {
|
|
228
|
+
const o = i, e = q(i, "modelValue", void 0), p = v(null), { width: t } = U(p), u = () => e.value && P.test(e.value) ? e.value : o.defaultValue && P.test(o.defaultValue) ? o.defaultValue : "#FFFFFF", l = v(u().substring(1)), s = v(u());
|
|
229
229
|
return I(l, () => {
|
|
230
230
|
Q.test(l.value) && (e.value = `#${l.value}`, s.value = `#${l.value}`);
|
|
231
231
|
}), I(s, () => {
|
|
232
232
|
e.value = s.value, l.value = s.value.substring(1);
|
|
233
|
-
}), (c, r) => (
|
|
233
|
+
}), (c, r) => (d(), g(a(Z), null, {
|
|
234
234
|
default: y(() => [
|
|
235
235
|
n(a(ee), null, {
|
|
236
236
|
default: y(() => [
|
|
@@ -8,11 +8,265 @@ declare function __VLS_template(): {
|
|
|
8
8
|
slots: {
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
|
-
refs: {
|
|
11
|
+
refs: {
|
|
12
|
+
tableWrapperRef: ({
|
|
13
|
+
$: import('vue').ComponentInternalInstance;
|
|
14
|
+
$data: {};
|
|
15
|
+
$props: {
|
|
16
|
+
readonly type?: ("scroll" | "always" | "auto" | "hover") | undefined;
|
|
17
|
+
readonly dir?: ("ltr" | "rtl") | undefined;
|
|
18
|
+
readonly scrollHideDelay?: number | undefined;
|
|
19
|
+
readonly asChild?: boolean | undefined;
|
|
20
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
21
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
22
|
+
$attrs: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
32
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
33
|
+
$host: Element | null;
|
|
34
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: import('vue').ComponentOptionsBase<Readonly<ScrollAreaRootProps> & Readonly<{}>, {
|
|
37
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
38
|
+
scrollTop: () => void;
|
|
39
|
+
scrollTopLeft: () => void;
|
|
40
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
41
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
42
|
+
scrollHideDelay: number;
|
|
43
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
44
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
45
|
+
created?: (() => void) | (() => void)[];
|
|
46
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
47
|
+
mounted?: (() => void) | (() => void)[];
|
|
48
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
49
|
+
updated?: (() => void) | (() => void)[];
|
|
50
|
+
activated?: (() => void) | (() => void)[];
|
|
51
|
+
deactivated?: (() => void) | (() => void)[];
|
|
52
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
53
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
54
|
+
destroyed?: (() => void) | (() => void)[];
|
|
55
|
+
unmounted?: (() => void) | (() => void)[];
|
|
56
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
57
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
58
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
59
|
+
};
|
|
60
|
+
$forceUpdate: () => void;
|
|
61
|
+
$nextTick: typeof import('vue').nextTick;
|
|
62
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
63
|
+
} & Readonly<{
|
|
64
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
65
|
+
scrollHideDelay: number;
|
|
66
|
+
}> & Omit<Readonly<ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
|
|
67
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
68
|
+
scrollTop: () => void;
|
|
69
|
+
scrollTopLeft: () => void;
|
|
70
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
71
|
+
$slots: {
|
|
72
|
+
default?: (props: {}) => any;
|
|
73
|
+
};
|
|
74
|
+
}) | null;
|
|
75
|
+
};
|
|
12
76
|
rootEl: any;
|
|
13
77
|
};
|
|
14
78
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
79
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
80
|
+
tableWrapperRef: import('vue').Ref<({
|
|
81
|
+
$: import('vue').ComponentInternalInstance;
|
|
82
|
+
$data: {};
|
|
83
|
+
$props: {
|
|
84
|
+
readonly type?: ("scroll" | "always" | "auto" | "hover") | undefined;
|
|
85
|
+
readonly dir?: ("ltr" | "rtl") | undefined;
|
|
86
|
+
readonly scrollHideDelay?: number | undefined;
|
|
87
|
+
readonly asChild?: boolean | undefined;
|
|
88
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
89
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
90
|
+
$attrs: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
$refs: {
|
|
94
|
+
[x: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
$slots: Readonly<{
|
|
97
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
100
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
101
|
+
$host: Element | null;
|
|
102
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
103
|
+
$el: any;
|
|
104
|
+
$options: import('vue').ComponentOptionsBase<Readonly<ScrollAreaRootProps> & Readonly<{}>, {
|
|
105
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
106
|
+
scrollTop: () => void;
|
|
107
|
+
scrollTopLeft: () => void;
|
|
108
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
109
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
110
|
+
scrollHideDelay: number;
|
|
111
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
112
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
113
|
+
created?: (() => void) | (() => void)[];
|
|
114
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
115
|
+
mounted?: (() => void) | (() => void)[];
|
|
116
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
117
|
+
updated?: (() => void) | (() => void)[];
|
|
118
|
+
activated?: (() => void) | (() => void)[];
|
|
119
|
+
deactivated?: (() => void) | (() => void)[];
|
|
120
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
121
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
122
|
+
destroyed?: (() => void) | (() => void)[];
|
|
123
|
+
unmounted?: (() => void) | (() => void)[];
|
|
124
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
125
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
126
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
127
|
+
};
|
|
128
|
+
$forceUpdate: () => void;
|
|
129
|
+
$nextTick: typeof import('vue').nextTick;
|
|
130
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
131
|
+
} & Readonly<{
|
|
132
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
133
|
+
scrollHideDelay: number;
|
|
134
|
+
}> & Omit<Readonly<ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
|
|
135
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
136
|
+
scrollTop: () => void;
|
|
137
|
+
scrollTopLeft: () => void;
|
|
138
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
139
|
+
$slots: {
|
|
140
|
+
default?: (props: {}) => any;
|
|
141
|
+
};
|
|
142
|
+
}) | null, ({
|
|
143
|
+
$: import('vue').ComponentInternalInstance;
|
|
144
|
+
$data: {};
|
|
145
|
+
$props: {
|
|
146
|
+
readonly type?: ("scroll" | "always" | "auto" | "hover") | undefined;
|
|
147
|
+
readonly dir?: ("ltr" | "rtl") | undefined;
|
|
148
|
+
readonly scrollHideDelay?: number | undefined;
|
|
149
|
+
readonly asChild?: boolean | undefined;
|
|
150
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
151
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
152
|
+
$attrs: {
|
|
153
|
+
[x: string]: unknown;
|
|
154
|
+
};
|
|
155
|
+
$refs: {
|
|
156
|
+
[x: string]: unknown;
|
|
157
|
+
};
|
|
158
|
+
$slots: Readonly<{
|
|
159
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
162
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
163
|
+
$host: Element | null;
|
|
164
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
165
|
+
$el: any;
|
|
166
|
+
$options: import('vue').ComponentOptionsBase<Readonly<ScrollAreaRootProps> & Readonly<{}>, {
|
|
167
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
168
|
+
scrollTop: () => void;
|
|
169
|
+
scrollTopLeft: () => void;
|
|
170
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
171
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
172
|
+
scrollHideDelay: number;
|
|
173
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
174
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
175
|
+
created?: (() => void) | (() => void)[];
|
|
176
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
177
|
+
mounted?: (() => void) | (() => void)[];
|
|
178
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
179
|
+
updated?: (() => void) | (() => void)[];
|
|
180
|
+
activated?: (() => void) | (() => void)[];
|
|
181
|
+
deactivated?: (() => void) | (() => void)[];
|
|
182
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
183
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
184
|
+
destroyed?: (() => void) | (() => void)[];
|
|
185
|
+
unmounted?: (() => void) | (() => void)[];
|
|
186
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
187
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
188
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
189
|
+
};
|
|
190
|
+
$forceUpdate: () => void;
|
|
191
|
+
$nextTick: typeof import('vue').nextTick;
|
|
192
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
193
|
+
} & Readonly<{
|
|
194
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
195
|
+
scrollHideDelay: number;
|
|
196
|
+
}> & Omit<Readonly<ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
|
|
197
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
198
|
+
scrollTop: () => void;
|
|
199
|
+
scrollTopLeft: () => void;
|
|
200
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
201
|
+
$slots: {
|
|
202
|
+
default?: (props: {}) => any;
|
|
203
|
+
};
|
|
204
|
+
}) | null>;
|
|
205
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
206
|
+
tableWrapperRef: ({
|
|
207
|
+
$: import('vue').ComponentInternalInstance;
|
|
208
|
+
$data: {};
|
|
209
|
+
$props: {
|
|
210
|
+
readonly type?: ("scroll" | "always" | "auto" | "hover") | undefined;
|
|
211
|
+
readonly dir?: ("ltr" | "rtl") | undefined;
|
|
212
|
+
readonly scrollHideDelay?: number | undefined;
|
|
213
|
+
readonly asChild?: boolean | undefined;
|
|
214
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
215
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
216
|
+
$attrs: {
|
|
217
|
+
[x: string]: unknown;
|
|
218
|
+
};
|
|
219
|
+
$refs: {
|
|
220
|
+
[x: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
$slots: Readonly<{
|
|
223
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
224
|
+
}>;
|
|
225
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
226
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
227
|
+
$host: Element | null;
|
|
228
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
229
|
+
$el: any;
|
|
230
|
+
$options: import('vue').ComponentOptionsBase<Readonly<ScrollAreaRootProps> & Readonly<{}>, {
|
|
231
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
232
|
+
scrollTop: () => void;
|
|
233
|
+
scrollTopLeft: () => void;
|
|
234
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
235
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
236
|
+
scrollHideDelay: number;
|
|
237
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
238
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
239
|
+
created?: (() => void) | (() => void)[];
|
|
240
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
241
|
+
mounted?: (() => void) | (() => void)[];
|
|
242
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
243
|
+
updated?: (() => void) | (() => void)[];
|
|
244
|
+
activated?: (() => void) | (() => void)[];
|
|
245
|
+
deactivated?: (() => void) | (() => void)[];
|
|
246
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
247
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
248
|
+
destroyed?: (() => void) | (() => void)[];
|
|
249
|
+
unmounted?: (() => void) | (() => void)[];
|
|
250
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
251
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
252
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
253
|
+
};
|
|
254
|
+
$forceUpdate: () => void;
|
|
255
|
+
$nextTick: typeof import('vue').nextTick;
|
|
256
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
257
|
+
} & Readonly<{
|
|
258
|
+
type: "scroll" | "always" | "auto" | "hover";
|
|
259
|
+
scrollHideDelay: number;
|
|
260
|
+
}> & Omit<Readonly<ScrollAreaRootProps> & Readonly<{}>, "type" | "scrollHideDelay" | "viewport" | "scrollTop" | "scrollTopLeft"> & import('vue').ShallowUnwrapRef<{
|
|
261
|
+
viewport: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
262
|
+
scrollTop: () => void;
|
|
263
|
+
scrollTopLeft: () => void;
|
|
264
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
265
|
+
$slots: {
|
|
266
|
+
default?: (props: {}) => any;
|
|
267
|
+
};
|
|
268
|
+
}) | null;
|
|
269
|
+
}, any>;
|
|
16
270
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
271
|
export default _default;
|
|
18
272
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a } from "../../BuiScrollArea.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as a } from "../../BuiScrollArea.vue_vue_type_script_setup_true_lang-O7VUcRC4.js";
|
|
2
2
|
import { _ as e } from "../../BuiScrollBar.vue_vue_type_script_setup_true_lang-cV0od8j0.js";
|
|
3
3
|
export {
|
|
4
4
|
a as BuiScrollArea,
|