@soft-stech/bootsman-ui-shadcn 2.0.31 → 2.0.32
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/{BuiActionBar.vue_vue_type_script_setup_true_lang-BmFhJ5G_.js → BuiActionBar.vue_vue_type_script_setup_true_lang-ttLNaQDg.js} +31 -31
- package/dist/{BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-DbC6QNWk.js → BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-D7BaWJlh.js} +2 -2
- package/dist/components/action-bar/BuiActionBar.js +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/input/index.js +58 -58
- package/dist/components/table/BuiDataTableColumnList.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/components/action-bar/BuiActionBar.vue +2 -2
- package/src/components/input/BuiInput.vue +2 -2
- package/src/components/table/BuiDataTableColumnList.vue +2 -3
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as O,
|
|
2
|
-
import { useResizeObserver as
|
|
1
|
+
import { defineComponent as O, ref as C, computed as k, onMounted as S, watch as I, createElementBlock as _, openBlock as r, createVNode as o, renderSlot as L, unref as a, withCtx as s, createBlock as u, createCommentVNode as h, Fragment as g, renderList as y, createElementVNode as p, resolveDynamicComponent as W, toDisplayString as l, createTextVNode as T, normalizeClass as V } from "vue";
|
|
2
|
+
import { useResizeObserver as z } from "@vueuse/core";
|
|
3
3
|
import { _ as $ } from "./utils-CWz5p1Mv.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
4
|
+
import { _ as F } from "./BuiDropdownMenu.vue_vue_type_script_setup_true_lang-XKtJ9ebc.js";
|
|
5
|
+
import { _ as U } from "./BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-B-AVJzKT.js";
|
|
6
|
+
import { _ as G } from "./BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-DycQJvs8.js";
|
|
7
|
+
import { _ as P } from "./BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-ic0FnPPQ.js";
|
|
8
|
+
import { _ as X } from "./BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-C1pX60RS.js";
|
|
9
9
|
import { _ as x } from "./BuiTooltip.vue_vue_type_script_setup_true_lang-Duhk5Jaw.js";
|
|
10
10
|
import { _ as B } from "./BuiTooltipContent.vue_vue_type_script_setup_true_lang-mTGQajaX.js";
|
|
11
11
|
import { _ as A } from "./BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-Dp1PEIOt.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
12
|
+
import { _ as j } from "./BuiTooltipProvider.vue_vue_type_script_setup_true_lang-BY5-KZjW.js";
|
|
13
|
+
const E = 12, q = 90, M = 100, J = 9.6, ie = /* @__PURE__ */ O({
|
|
14
14
|
__name: "BuiActionBar",
|
|
15
15
|
props: {
|
|
16
16
|
actions: {},
|
|
17
17
|
selectedCount: {},
|
|
18
18
|
translations: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const t =
|
|
20
|
+
setup(N) {
|
|
21
|
+
const t = N, i = C(null), d = C(t.actions.length), b = C(J), R = (n) => n.label.length * b.value + 50, w = (n) => n.reduce((c, e) => c += R(e), 0), v = () => {
|
|
22
22
|
if (!i.value) return;
|
|
23
23
|
const n = i.value.offsetWidth;
|
|
24
|
-
if (
|
|
24
|
+
if (w(t.actions) + t.actions.length * E + M <= n) {
|
|
25
25
|
d.value = t.actions.length;
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
const e = [...t.actions];
|
|
29
|
-
for (; e.length > 1 && !(
|
|
29
|
+
for (; e.length > 1 && !(w(e) + e.length * E + M + q <= n); )
|
|
30
30
|
e.pop();
|
|
31
31
|
d.value = e.length;
|
|
32
32
|
}, D = k(() => t.actions.slice(0, d.value)), f = k(() => t.actions.slice(d.value));
|
|
33
|
-
|
|
33
|
+
S(() => {
|
|
34
34
|
const { charWidth: n } = H();
|
|
35
|
-
|
|
35
|
+
b.value = n, v(), i.value && z(i, v);
|
|
36
36
|
});
|
|
37
37
|
const H = () => {
|
|
38
38
|
const n = document.createElement("span");
|
|
@@ -46,7 +46,7 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
46
46
|
const c = n.getBoundingClientRect().width, e = n.getBoundingClientRect().height;
|
|
47
47
|
return document.body.removeChild(n), { charWidth: c, charHeight: e };
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return I(
|
|
50
50
|
() => t.actions,
|
|
51
51
|
() => {
|
|
52
52
|
v();
|
|
@@ -57,9 +57,9 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
57
57
|
ref: i,
|
|
58
58
|
class: "flex h-full grow flex-row items-center gap-3"
|
|
59
59
|
}, [
|
|
60
|
-
o(a(
|
|
60
|
+
o(a(j), null, {
|
|
61
61
|
default: s(() => [
|
|
62
|
-
(r(!0), _(
|
|
62
|
+
(r(!0), _(g, null, y(D.value, (e) => (r(), u(a(x), {
|
|
63
63
|
key: e.label,
|
|
64
64
|
disabled: !(t.selectedCount && e.affectsCount)
|
|
65
65
|
}, {
|
|
@@ -73,7 +73,7 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
73
73
|
onClick: e.handler
|
|
74
74
|
}, {
|
|
75
75
|
default: s(() => [
|
|
76
|
-
e.icon ? (r(), u(
|
|
76
|
+
e.icon ? (r(), u(W(e.icon), {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "h-4 w-4"
|
|
79
79
|
})) : h("", !0),
|
|
@@ -86,16 +86,16 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
86
86
|
}, 1024),
|
|
87
87
|
o(a(B), null, {
|
|
88
88
|
default: s(() => [
|
|
89
|
-
|
|
89
|
+
T(l(t.translations?.affects || "Affects") + " " + l(e.affectsCount) + " " + l(t.translations?.of || "of") + " " + l(t.selectedCount), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 2
|
|
92
92
|
}, 1024)
|
|
93
93
|
]),
|
|
94
94
|
_: 2
|
|
95
95
|
}, 1032, ["disabled"]))), 128)),
|
|
96
|
-
f.value.length ? (r(), u(a(
|
|
96
|
+
f.value.length ? (r(), u(a(F), { key: 0 }, {
|
|
97
97
|
default: s(() => [
|
|
98
|
-
o(a(
|
|
98
|
+
o(a(U), { "as-child": "" }, {
|
|
99
99
|
default: s(() => [
|
|
100
100
|
o($, {
|
|
101
101
|
variant: "ghost",
|
|
@@ -110,29 +110,29 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
}),
|
|
113
|
-
o(a(
|
|
113
|
+
o(a(G), {
|
|
114
114
|
align: "end",
|
|
115
115
|
class: "min-w-40"
|
|
116
116
|
}, {
|
|
117
117
|
default: s(() => [
|
|
118
|
-
(r(!0), _(
|
|
119
|
-
e.variant === "destructive" && m > 0 && f.value[m - 1]?.variant !== "destructive" ? (r(), u(a(
|
|
118
|
+
(r(!0), _(g, null, y(f.value, (e, m) => (r(), _(g, { key: m }, [
|
|
119
|
+
e.variant === "destructive" && m > 0 && f.value[m - 1]?.variant !== "destructive" ? (r(), u(a(X), { key: 0 })) : h("", !0),
|
|
120
120
|
o(a(x), {
|
|
121
121
|
disabled: !(t.selectedCount && e.affectsCount)
|
|
122
122
|
}, {
|
|
123
123
|
default: s(() => [
|
|
124
124
|
o(a(A), { "as-child": "" }, {
|
|
125
125
|
default: s(() => [
|
|
126
|
-
o(a(
|
|
126
|
+
o(a(P), {
|
|
127
127
|
disabled: e.disabled,
|
|
128
|
-
class:
|
|
128
|
+
class: V([
|
|
129
129
|
"flex gap-2",
|
|
130
130
|
e.variant === "destructive" ? "text-destructive-foreground focus:text-destructive-foreground" : ""
|
|
131
131
|
]),
|
|
132
132
|
onClick: e.handler
|
|
133
133
|
}, {
|
|
134
134
|
default: s(() => [
|
|
135
|
-
e.icon ? (r(), u(
|
|
135
|
+
e.icon ? (r(), u(W(e.icon), {
|
|
136
136
|
key: 0,
|
|
137
137
|
class: "h-4 w-4"
|
|
138
138
|
})) : h("", !0),
|
|
@@ -145,7 +145,7 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
145
145
|
}, 1024),
|
|
146
146
|
o(a(B), null, {
|
|
147
147
|
default: s(() => [
|
|
148
|
-
|
|
148
|
+
T(l(t.translations?.affects || "Affects") + " " + l(e.affectsCount) + " " + l(t.translations?.of || "of") + " " + l(t.selectedCount), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 2
|
|
151
151
|
}, 1024)
|
|
@@ -162,10 +162,10 @@ const R = 12, J = 90, E = 100, K = 9.6, ce = /* @__PURE__ */ O({
|
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
}),
|
|
165
|
-
|
|
165
|
+
L(n.$slots, "selected")
|
|
166
166
|
], 512));
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
ie as _
|
|
171
171
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef as Xt, toValue as ut, nextTick as Yt, defineComponent as Bt,
|
|
1
|
+
import { isRef as Xt, toValue as ut, nextTick as Yt, defineComponent as Bt, ref as Lt, useModel as Ht, createElementBlock as ft, openBlock as ze, Fragment as Wt, renderList as Gt, createBlock as zt, unref as ct, withCtx as jt, createVNode as $t, createElementVNode as Vt, toDisplayString as Ut } from "vue";
|
|
2
2
|
import "vee-validate";
|
|
3
3
|
import { _ as qt } from "./BuiCommandItem.vue_vue_type_script_setup_true_lang-f10bo6YD.js";
|
|
4
4
|
import { _ as Zt } from "./BuiCheckbox.vue_vue_type_script_setup_true_lang-CyfUTvIj.js";
|
|
@@ -1311,7 +1311,7 @@ const Pn = { class: "dragHandler grow" }, Yn = /* @__PURE__ */ Bt({
|
|
|
1311
1311
|
},
|
|
1312
1312
|
emits: ["update:columnsList"],
|
|
1313
1313
|
setup(o) {
|
|
1314
|
-
const e = Lt(
|
|
1314
|
+
const e = Lt(null), n = Ht(o, "columnsList");
|
|
1315
1315
|
On(e, n, { handle: ".dragHandler" });
|
|
1316
1316
|
const t = (i) => i.columnDef.meta?.title || i.id.replace(/^values\./, "").replace(/([A-Z])/g, " $1");
|
|
1317
1317
|
return (i, r) => (ze(), ft("div", {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { h as B, F as j, g as w, _ as N, j as O } from "../../utils-CWz5p1Mv.js";
|
|
2
|
-
import { defineComponent as x, inject as S, toRef as z, ref as
|
|
3
|
-
import { useVModel as
|
|
4
|
-
import { c as
|
|
5
|
-
import { BuiBadge as
|
|
2
|
+
import { defineComponent as x, inject as S, toRef as z, ref as f, createElementBlock as _, withDirectives as E, openBlock as d, createBlock as g, createCommentVNode as R, createElementVNode as b, unref as a, normalizeClass as k, isRef as F, vModelText as X, withCtx as y, createVNode as n, vModelDynamic as G, computed as $, mergeProps as T, createTextVNode as H, toDisplayString as K, mergeModels as L, useModel as Y, watch as M, normalizeStyle as P } from "vue";
|
|
3
|
+
import { useVModel as q, useElementBounding as D } from "@vueuse/core";
|
|
4
|
+
import { c as J, d as I } from "../../colorUtils-BgA4kYw8.js";
|
|
5
|
+
import { BuiBadge as Q } from "../badge/index.js";
|
|
6
6
|
import "vee-validate";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { BuiColorPicker as
|
|
11
|
-
import { X as
|
|
7
|
+
import { _ as W } from "../../BuiPopover.vue_vue_type_script_setup_true_lang-C21Z50mT.js";
|
|
8
|
+
import { _ as Z } from "../../BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-DRd7CSVn.js";
|
|
9
|
+
import { _ as ee } from "../../BuiPopoverContent.vue_vue_type_script_setup_true_lang-BA3F_Jrq.js";
|
|
10
|
+
import { BuiColorPicker as ae } from "../color-picker/index.js";
|
|
11
|
+
import { X as te } from "../../x-Bk1T-hqx.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
18
|
+
const oe = B("eye-off", [
|
|
19
19
|
[
|
|
20
20
|
"path",
|
|
21
21
|
{
|
|
@@ -39,7 +39,7 @@ const le = B("eye-off", [
|
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
const
|
|
42
|
+
const le = B("eye", [
|
|
43
43
|
[
|
|
44
44
|
"path",
|
|
45
45
|
{
|
|
@@ -55,7 +55,7 @@ const se = B("eye", [
|
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/
|
|
58
|
-
const
|
|
58
|
+
const se = B("palette", [
|
|
59
59
|
[
|
|
60
60
|
"path",
|
|
61
61
|
{
|
|
@@ -67,10 +67,10 @@ const re = B("palette", [
|
|
|
67
67
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
68
68
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
69
69
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
70
|
-
]),
|
|
70
|
+
]), re = {
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "group relative flex flex-row items-center"
|
|
73
|
-
},
|
|
73
|
+
}, ne = ["readonly", "disabled", "placeholder"], de = ["readonly", "disabled", "placeholder", "type", "autocomplete", "data-1p-ignore", "data-lpignore", "data-protonpass-ignore", "data-bwignore"], C = /* @__PURE__ */ x({
|
|
74
74
|
__name: "BuiInput",
|
|
75
75
|
props: {
|
|
76
76
|
defaultValue: {},
|
|
@@ -85,26 +85,26 @@ const re = B("palette", [
|
|
|
85
85
|
},
|
|
86
86
|
emits: ["update:modelValue"],
|
|
87
87
|
setup(i, { emit: l }) {
|
|
88
|
-
const e = i, t =
|
|
88
|
+
const e = i, t = q(e, "modelValue", l, {
|
|
89
89
|
passive: !0,
|
|
90
90
|
defaultValue: e.defaultValue
|
|
91
|
-
}), u = S(j, z(!1)), o =
|
|
91
|
+
}), u = S(j, z(!1)), o = f(!1), s = f(null), c = () => {
|
|
92
92
|
o.value = !0;
|
|
93
93
|
}, r = () => {
|
|
94
94
|
o.value = !1;
|
|
95
|
-
},
|
|
96
|
-
(
|
|
95
|
+
}, m = (v) => {
|
|
96
|
+
(v.key === "Home" || v.key === "End") && o.value && v.stopPropagation();
|
|
97
97
|
}, U = () => {
|
|
98
98
|
s.value && (s.value.focus(), t.value = "");
|
|
99
99
|
};
|
|
100
|
-
return (
|
|
100
|
+
return (v, h) => e.type === "search" ? (d(), _("div", re, [
|
|
101
101
|
E(b("input", {
|
|
102
102
|
ref_key: "searchInput",
|
|
103
103
|
ref: s,
|
|
104
104
|
"onUpdate:modelValue": h[0] || (h[0] = (V) => F(t) ? t.value = V : null),
|
|
105
105
|
class: k(
|
|
106
106
|
a(w)(
|
|
107
|
-
a(A)({ variant:
|
|
107
|
+
a(A)({ variant: v.variant }),
|
|
108
108
|
e.class ?? "",
|
|
109
109
|
"pr-6",
|
|
110
110
|
!e.variant || e.variant === "default" ? "group-hover:border-primary" : ""
|
|
@@ -116,9 +116,9 @@ const re = B("palette", [
|
|
|
116
116
|
type: "text",
|
|
117
117
|
onFocus: c,
|
|
118
118
|
onBlur: r,
|
|
119
|
-
onKeydown:
|
|
120
|
-
}, null, 42,
|
|
121
|
-
[
|
|
119
|
+
onKeydown: m
|
|
120
|
+
}, null, 42, ne), [
|
|
121
|
+
[X, a(t)]
|
|
122
122
|
]),
|
|
123
123
|
a(t) && a(t).toString().length > 0 ? (d(), g(N, {
|
|
124
124
|
key: 0,
|
|
@@ -127,7 +127,7 @@ const re = B("palette", [
|
|
|
127
127
|
onClick: U
|
|
128
128
|
}, {
|
|
129
129
|
default: y(() => [
|
|
130
|
-
n(a(
|
|
130
|
+
n(a(te), {
|
|
131
131
|
size: 14,
|
|
132
132
|
class: "pointer-events-none shrink-0"
|
|
133
133
|
})
|
|
@@ -137,7 +137,7 @@ const re = B("palette", [
|
|
|
137
137
|
])) : E((d(), _("input", {
|
|
138
138
|
key: 1,
|
|
139
139
|
"onUpdate:modelValue": h[1] || (h[1] = (V) => F(t) ? t.value = V : null),
|
|
140
|
-
class: k(a(w)(a(A)({ variant:
|
|
140
|
+
class: k(a(w)(a(A)({ variant: v.variant }), e.class ?? "")),
|
|
141
141
|
readonly: a(u) || e.readonly,
|
|
142
142
|
disabled: e.disabled,
|
|
143
143
|
placeholder: e.placeholder,
|
|
@@ -149,12 +149,12 @@ const re = B("palette", [
|
|
|
149
149
|
"data-bwignore": e.disableAutocomplete ? "1" : void 0,
|
|
150
150
|
onFocus: c,
|
|
151
151
|
onBlur: r,
|
|
152
|
-
onKeydown:
|
|
153
|
-
}, null, 42,
|
|
154
|
-
[
|
|
152
|
+
onKeydown: m
|
|
153
|
+
}, null, 42, de)), [
|
|
154
|
+
[G, a(t)]
|
|
155
155
|
]);
|
|
156
156
|
}
|
|
157
|
-
}),
|
|
157
|
+
}), ie = { class: "relative flex" }, Be = /* @__PURE__ */ x({
|
|
158
158
|
inheritAttrs: !1,
|
|
159
159
|
__name: "BuiPasswordInput",
|
|
160
160
|
props: {
|
|
@@ -164,12 +164,12 @@ const re = B("palette", [
|
|
|
164
164
|
disableAutocomplete: { type: Boolean }
|
|
165
165
|
},
|
|
166
166
|
setup(i) {
|
|
167
|
-
const l = i, e =
|
|
167
|
+
const l = i, e = f(l.defaultValue ?? "password");
|
|
168
168
|
function p() {
|
|
169
169
|
e.value === "password" ? e.value = "text" : e.value = "password";
|
|
170
170
|
}
|
|
171
171
|
const t = $(() => l.showPasswordTranslation ?? "Show password"), u = $(() => l.hidePasswordTranslation ?? "Hide password");
|
|
172
|
-
return (o, s) => (d(), _("div",
|
|
172
|
+
return (o, s) => (d(), _("div", ie, [
|
|
173
173
|
n(a(C), T(o.$attrs, {
|
|
174
174
|
type: e.value,
|
|
175
175
|
class: a(w)(o.$attrs.class ?? "", "pr-8"),
|
|
@@ -183,10 +183,10 @@ const re = B("palette", [
|
|
|
183
183
|
"aria-pressed": e.value !== "password"
|
|
184
184
|
}, {
|
|
185
185
|
default: y(() => [
|
|
186
|
-
e.value === "password" ? (d(), g(a(
|
|
186
|
+
e.value === "password" ? (d(), g(a(le), {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "pointer-events-none h-4 w-4 shrink-0 cursor-pointer"
|
|
189
|
-
})) : (d(), g(a(
|
|
189
|
+
})) : (d(), g(a(oe), {
|
|
190
190
|
key: 1,
|
|
191
191
|
class: "pointer-events-none h-4 w-4 shrink-0 cursor-pointer"
|
|
192
192
|
}))
|
|
@@ -195,34 +195,34 @@ const re = B("palette", [
|
|
|
195
195
|
}, 8, ["aria-label", "aria-pressed"])
|
|
196
196
|
]));
|
|
197
197
|
}
|
|
198
|
-
}),
|
|
198
|
+
}), ue = { class: "relative flex" }, ce = 12, Ce = /* @__PURE__ */ x({
|
|
199
199
|
inheritAttrs: !1,
|
|
200
200
|
__name: "BuiBadgedInput",
|
|
201
201
|
props: {
|
|
202
202
|
badge: {}
|
|
203
203
|
},
|
|
204
204
|
setup(i) {
|
|
205
|
-
const l = i, e =
|
|
206
|
-
return (t, u) => (d(), _("div",
|
|
205
|
+
const l = i, e = f(null), { width: p } = D(e);
|
|
206
|
+
return (t, u) => (d(), _("div", ue, [
|
|
207
207
|
n(a(C), T(t.$attrs, {
|
|
208
|
-
style: { paddingRight: a(p) +
|
|
208
|
+
style: { paddingRight: a(p) + ce + "px" }
|
|
209
209
|
}), null, 16, ["style"]),
|
|
210
|
-
l.badge ? (d(), g(
|
|
210
|
+
l.badge ? (d(), g(Q, {
|
|
211
211
|
key: 0,
|
|
212
212
|
ref_key: "badgeEl",
|
|
213
213
|
ref: e,
|
|
214
214
|
class: "hover:bg-primary/8 dark:hover:bg-primary/30 absolute top-1 right-2 flex items-center justify-center rounded-sm"
|
|
215
215
|
}, {
|
|
216
216
|
default: y(() => [
|
|
217
|
-
K(
|
|
217
|
+
H(K(l.badge), 1)
|
|
218
218
|
]),
|
|
219
219
|
_: 1
|
|
220
220
|
}, 512)) : R("", !0)
|
|
221
221
|
]));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), pe = { class: "nowrap text-foreground relative flex w-32 flex-row font-medium uppercase" }, fe = 12, Ee = /* @__PURE__ */ x({
|
|
224
224
|
__name: "BuiColorInput",
|
|
225
|
-
props: /* @__PURE__ */
|
|
225
|
+
props: /* @__PURE__ */ L({
|
|
226
226
|
id: {},
|
|
227
227
|
defaultValue: { default: "#FFFFFF" },
|
|
228
228
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -233,33 +233,33 @@ const re = B("palette", [
|
|
|
233
233
|
}),
|
|
234
234
|
emits: ["update:modelValue"],
|
|
235
235
|
setup(i) {
|
|
236
|
-
const l = i, e =
|
|
237
|
-
return
|
|
238
|
-
|
|
239
|
-
}),
|
|
236
|
+
const l = i, e = Y(i, "modelValue", void 0), p = f(null), { width: t } = D(p), u = () => e.value && I.test(e.value) ? e.value : l.defaultValue && I.test(l.defaultValue) ? l.defaultValue : "#FFFFFF", o = f(u().substring(1)), s = f(u());
|
|
237
|
+
return M(o, () => {
|
|
238
|
+
J.test(o.value) && (e.value = `#${o.value}`, s.value = `#${o.value}`);
|
|
239
|
+
}), M(s, () => {
|
|
240
240
|
e.value = s.value, o.value = s.value.substring(1);
|
|
241
|
-
}), (c, r) => (d(), g(a(
|
|
241
|
+
}), (c, r) => (d(), g(a(W), null, {
|
|
242
242
|
default: y(() => [
|
|
243
|
-
n(a(
|
|
243
|
+
n(a(Z), null, {
|
|
244
244
|
default: y(() => [
|
|
245
|
-
b("div",
|
|
245
|
+
b("div", pe, [
|
|
246
246
|
b("div", {
|
|
247
247
|
ref_key: "paletteBadge",
|
|
248
248
|
ref: p,
|
|
249
249
|
class: k(a(w)("absolute top-1.5 left-2 flex flex-row items-center gap-1", c.ui?.badgeClass))
|
|
250
250
|
}, [
|
|
251
|
-
n(a(
|
|
251
|
+
n(a(se), { class: "h-4 w-4 shrink-0" }),
|
|
252
252
|
b("div", {
|
|
253
253
|
class: "h-4 w-4 rounded-sm",
|
|
254
|
-
style:
|
|
254
|
+
style: P({ backgroundColor: s.value })
|
|
255
255
|
}, null, 4),
|
|
256
256
|
r[2] || (r[2] = b("div", { class: "text-foreground/[.56] font-bold" }, "#", -1))
|
|
257
257
|
], 2),
|
|
258
258
|
n(C, {
|
|
259
259
|
modelValue: o.value,
|
|
260
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
260
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => o.value = m),
|
|
261
261
|
id: c.id,
|
|
262
|
-
style:
|
|
262
|
+
style: P({ paddingLeft: a(t) + fe + "px" }),
|
|
263
263
|
disabled: c.disabled,
|
|
264
264
|
class: k(c.ui?.inputClass)
|
|
265
265
|
}, null, 8, ["modelValue", "id", "style", "disabled", "class"])
|
|
@@ -267,14 +267,14 @@ const re = B("palette", [
|
|
|
267
267
|
]),
|
|
268
268
|
_: 1
|
|
269
269
|
}),
|
|
270
|
-
n(a(
|
|
270
|
+
n(a(ee), {
|
|
271
271
|
class: "w-fit",
|
|
272
272
|
align: "start"
|
|
273
273
|
}, {
|
|
274
274
|
default: y(() => [
|
|
275
|
-
n(
|
|
275
|
+
n(ae, {
|
|
276
276
|
modelValue: s.value,
|
|
277
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
277
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => s.value = m),
|
|
278
278
|
format: "hex",
|
|
279
279
|
disabled: c.disabled,
|
|
280
280
|
ui: { selectorClass: "ring-popover", trackClass: "ring-popover" }
|
|
@@ -302,9 +302,9 @@ const re = B("palette", [
|
|
|
302
302
|
}
|
|
303
303
|
);
|
|
304
304
|
export {
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
Ce as BuiBadgedInput,
|
|
306
|
+
Ee as BuiColorInput,
|
|
307
307
|
C as BuiInput,
|
|
308
|
-
|
|
308
|
+
Be as BuiPasswordInput,
|
|
309
309
|
A as inputVariants
|
|
310
310
|
};
|
|
@@ -30,7 +30,7 @@ import { FlexRender as _t, useVueTable as An, getSortedRowModel as Pn, getPagina
|
|
|
30
30
|
import { useElementSize as zn, useIntersectionObserver as Ye, useSessionStorage as In, useEventListener as Je, useElementVisibility as Mn } from "@vueuse/core";
|
|
31
31
|
import { useGlobalCursor as xn } from "../../lib/useGlobalCursor.js";
|
|
32
32
|
import { C as En } from "../../chevron-down-CNPbIKfA.js";
|
|
33
|
-
import { _ as Bn } from "../../BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-
|
|
33
|
+
import { _ as Bn } from "../../BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-D7BaWJlh.js";
|
|
34
34
|
/**
|
|
35
35
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
36
36
|
*
|
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ import { _ as la } from "./BuiCollapsibleContent.vue_vue_type_script_setup_true_
|
|
|
126
126
|
import { BuiSheetContent as da, sheetVariants as Ca } from "./components/sheet/index.js";
|
|
127
127
|
import { BuiColorPicker as ca, colorPickerSelectorVariants as Sa, colorPickerTrackVariants as Da } from "./components/color-picker/index.js";
|
|
128
128
|
import "vue";
|
|
129
|
-
import { _ as Aa } from "./BuiActionBar.vue_vue_type_script_setup_true_lang-
|
|
129
|
+
import { _ as Aa } from "./BuiActionBar.vue_vue_type_script_setup_true_lang-ttLNaQDg.js";
|
|
130
130
|
import { _ as Fa } from "./BuiAlertTitle.vue_vue_type_script_setup_true_lang-DuaUfn0m.js";
|
|
131
131
|
import { _ as Ia } from "./BuiAlertDescription.vue_vue_type_script_setup_true_lang-DMlFwsol.js";
|
|
132
132
|
import { _ as ha } from "./BuiAvatarImage.vue_vue_type_script_setup_true_lang-CzKZeFgo.js";
|
|
@@ -140,7 +140,7 @@ import { _ as Ka } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-Dwbw9
|
|
|
140
140
|
import { _ as ja } from "./BuiTableCaption.vue_vue_type_script_setup_true_lang-r8msHy2U.js";
|
|
141
141
|
import { _ as za } from "./BuiTableEmpty.vue_vue_type_script_setup_true_lang--C1y9emP.js";
|
|
142
142
|
import { _ as Wa } from "./BuiTableFooter.vue_vue_type_script_setup_true_lang-yWhoN1RM.js";
|
|
143
|
-
import { _ as Za } from "./BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-
|
|
143
|
+
import { _ as Za } from "./BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-D7BaWJlh.js";
|
|
144
144
|
import { _ as oi } from "./BuiTabs.vue_vue_type_script_setup_true_lang--Pf-gBbc.js";
|
|
145
145
|
import { _ as ei } from "./BuiTabsContent.vue_vue_type_script_setup_true_lang-C_8zNmbh.js";
|
|
146
146
|
import { _ as ai } from "./BuiToastViewport.vue_vue_type_script_setup_true_lang-Df_BhI0w.js";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, computed,
|
|
2
|
+
import { ref, computed, onMounted, watch } from 'vue'
|
|
3
3
|
import { useResizeObserver } from '@vueuse/core'
|
|
4
4
|
import BuiButton from '@/components/button/BuiButton.vue'
|
|
5
5
|
import {
|
|
@@ -27,7 +27,7 @@ const props = defineProps<{
|
|
|
27
27
|
}
|
|
28
28
|
}>()
|
|
29
29
|
|
|
30
|
-
const containerRef =
|
|
30
|
+
const containerRef = ref<HTMLDivElement | null>(null)
|
|
31
31
|
const visibleCount = ref(props.actions.length)
|
|
32
32
|
|
|
33
33
|
const BUTTON_GAP = 12
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FORM_READONLY_INJECTION_KEY } from '@/components/form'
|
|
3
3
|
import { cn } from '@/lib/utils'
|
|
4
4
|
import { useVModel } from '@vueuse/core'
|
|
5
|
-
import { inject, ref, toRef,
|
|
5
|
+
import { inject, ref, toRef, type HTMLAttributes } from 'vue'
|
|
6
6
|
import { inputVariants } from '.'
|
|
7
7
|
import BuiButton from '@/components/button/BuiButton.vue'
|
|
8
8
|
import { X } from 'lucide-vue-next'
|
|
@@ -32,7 +32,7 @@ const modelValue = useVModel(props, 'modelValue', emits, {
|
|
|
32
32
|
const readonlyContext = inject(FORM_READONLY_INJECTION_KEY, toRef(false))
|
|
33
33
|
|
|
34
34
|
const isFocused = ref<boolean>(false)
|
|
35
|
-
const searchInput =
|
|
35
|
+
const searchInput = ref<HTMLInputElement | null>(null)
|
|
36
36
|
|
|
37
37
|
const handleFocus = () => {
|
|
38
38
|
isFocused.value = true
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts" generic="TData, _TValue">
|
|
2
2
|
import type { Column } from '@tanstack/vue-table'
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { ref } from 'vue'
|
|
5
4
|
import { BuiCommandItem } from '@/components/command'
|
|
6
5
|
import { BuiCheckbox } from '@/components/checkbox'
|
|
7
6
|
import { useSortable } from '@vueuse/integrations/useSortable'
|
|
8
7
|
|
|
9
|
-
const columnsListRef =
|
|
8
|
+
const columnsListRef = ref<HTMLDivElement | null>(null)
|
|
10
9
|
const columnsList = defineModel<Column<TData, unknown>[]>('columnsList', {
|
|
11
10
|
default: [],
|
|
12
11
|
required: true
|