@soft-stech/bootsman-ui-shadcn 2.0.11 → 2.0.12
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/{BuiCommandItem.vue_vue_type_script_setup_true_lang-COT9al4e.js → BuiCommandItem.vue_vue_type_script_setup_true_lang-DgiH4pmL.js} +7 -6
- package/dist/{BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-NdACn_Zy.js → BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-Dy4ogTwO.js} +1 -1
- package/dist/components/command/BuiCommandItem.js +1 -1
- package/dist/components/command/BuiCommandItem.vue.d.ts +3 -1
- package/dist/components/command/index.d.ts +0 -1
- package/dist/components/command/index.js +3 -5
- package/dist/components/table/BuiDataTableColumnList.js +1 -1
- package/dist/components/table/index.js +3 -2
- package/dist/index.js +284 -286
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/command/BuiCommandItem.vue +2 -2
- package/src/components/command/index.ts +0 -1
- package/src/components/table/BuiDataTable.vue +1 -0
- package/src/stories/components/ComboboxStoryMultipleCreate.vue +7 -24
- package/dist/BuiCommandNewItem.vue_vue_type_script_setup_true_lang-acFO1int.js +0 -34
- package/dist/components/command/BuiCommandNewItem.js +0 -4
- package/dist/components/command/BuiCommandNewItem.vue.d.ts +0 -21
- package/src/components/command/BuiCommandNewItem.vue +0 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as h, createBlock as C, openBlock as x, unref as e, withCtx as b, withMemo as w, createVNode as
|
|
1
|
+
import { defineComponent as g, computed as h, createBlock as C, openBlock as x, unref as e, withCtx as b, withMemo as w, createVNode as k, mergeProps as y, withKeys as B, withModifiers as E, renderSlot as _, onMounted as V, onUnmounted as q, createCommentVNode as L, createTextVNode as P, toDisplayString as H } from "vue";
|
|
2
2
|
import { u as T } from "./useEmitAsProps-CNuVpXM5.js";
|
|
3
3
|
import { u as S } from "./useId-D4hM1ljW.js";
|
|
4
4
|
import { u as $ } from "./usePrimitiveElement-4_LoxzIz.js";
|
|
@@ -46,7 +46,7 @@ var z = /* @__PURE__ */ g({
|
|
|
46
46
|
A(U, p, c);
|
|
47
47
|
}
|
|
48
48
|
return X({ isSelected: a }), (i, c) => (x(), C(e(t), { value: i.value }, {
|
|
49
|
-
default: b(() => [w([v.value, a.value], () =>
|
|
49
|
+
default: b(() => [w([v.value, a.value], () => k(e(G), y({ id: e(s) }, i.$attrs, {
|
|
50
50
|
ref: e(n),
|
|
51
51
|
role: "option",
|
|
52
52
|
tabindex: e(l).focusable.value ? v.value ? "0" : "-1" : -1,
|
|
@@ -58,7 +58,7 @@ var z = /* @__PURE__ */ g({
|
|
|
58
58
|
"data-highlighted": v.value ? "" : void 0,
|
|
59
59
|
"data-state": a.value ? "checked" : "unchecked",
|
|
60
60
|
onClick: I,
|
|
61
|
-
onKeydown:
|
|
61
|
+
onKeydown: B(E(I, ["prevent"]), ["space"]),
|
|
62
62
|
onPointermove: c[0] || (c[0] = (Y) => {
|
|
63
63
|
e(l).highlightedElement.value !== e(r) && (e(l).highlightOnHover.value ? e(l).changeHighlight(e(r), !1) : e(l).focusable.value || e(l).changeHighlight(e(r), !1));
|
|
64
64
|
})
|
|
@@ -115,7 +115,7 @@ var z = /* @__PURE__ */ g({
|
|
|
115
115
|
return a === void 0 ? !0 : a > 0;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
return
|
|
118
|
+
return V(() => {
|
|
119
119
|
t.allItems.value.set(s, o.textValue || l.value.textContent || l.value.innerText);
|
|
120
120
|
const a = n?.id;
|
|
121
121
|
a && (t.allGroups.value.has(a) ? t.allGroups.value.get(a)?.add(s) : t.allGroups.value.set(a, /* @__PURE__ */ new Set([s])));
|
|
@@ -142,14 +142,15 @@ const ve = /* @__PURE__ */ g({
|
|
|
142
142
|
value: {},
|
|
143
143
|
disabled: { type: Boolean },
|
|
144
144
|
asChild: { type: Boolean },
|
|
145
|
-
as: {}
|
|
145
|
+
as: {},
|
|
146
|
+
key: {}
|
|
146
147
|
},
|
|
147
148
|
emits: ["select"],
|
|
148
149
|
setup(d, { emit: m }) {
|
|
149
150
|
const o = d, s = T(m);
|
|
150
151
|
return (t, n) => (x(), C(e(W), y({ ...o, ...e(s) }, {
|
|
151
152
|
class: e(F)(
|
|
152
|
-
"relative flex cursor-default
|
|
153
|
+
"data-highlighted:bg-accent/8 data-highlighted:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
153
154
|
t.$attrs.class ?? ""
|
|
154
155
|
),
|
|
155
156
|
onSelect: n[0] || (n[0] = E(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRef as Xt, toValue as ut, nextTick as Yt, defineComponent as Bt, useTemplateRef 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
|
-
import { _ as qt } from "./BuiCommandItem.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as qt } from "./BuiCommandItem.vue_vue_type_script_setup_true_lang-DgiH4pmL.js";
|
|
4
4
|
import { _ as Zt } from "./BuiCheckbox.vue_vue_type_script_setup_true_lang-CqHqupsA.js";
|
|
5
5
|
import { defaultDocument as Kt, tryOnMounted as Qt, tryOnScopeDispose as Jt, unrefElement as en } from "@vueuse/core";
|
|
6
6
|
/**!
|
|
@@ -7,4 +7,3 @@ export { default as BuiCommandItem } from './BuiCommandItem.vue';
|
|
|
7
7
|
export { default as BuiCommandList } from './BuiCommandList.vue';
|
|
8
8
|
export { default as BuiCommandSeparator } from './BuiCommandSeparator.vue';
|
|
9
9
|
export { default as BuiCommandShortcut } from './BuiCommandShortcut.vue';
|
|
10
|
-
export { default as BuiCommandNewItem } from './BuiCommandNewItem.vue';
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { _ as r } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-Cq59JdC-.js";
|
|
2
2
|
import { _ as t } from "../../BuiCommandDialog.vue_vue_type_script_setup_true_lang-vUayq_Q2.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as u } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-Bq80JqBC.js";
|
|
4
4
|
import { _ as i } from "../../BuiCommandGroup.vue_vue_type_script_setup_true_lang-CLxFUf5q.js";
|
|
5
5
|
import { _ as s } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-ydm5dIcb.js";
|
|
6
|
-
import { _ as f } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as f } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-DgiH4pmL.js";
|
|
7
7
|
import { _ as B } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-CFParIZV.js";
|
|
8
8
|
import { _ } from "../../BuiCommandSeparator.vue_vue_type_script_setup_true_lang-DW6LTOPW.js";
|
|
9
9
|
import { _ as S } from "../../BuiCommandShortcut.vue_vue_type_script_setup_true_lang-DVG7B5tr.js";
|
|
10
|
-
import { _ as g } from "../../BuiCommandNewItem.vue_vue_type_script_setup_true_lang-acFO1int.js";
|
|
11
10
|
export {
|
|
12
11
|
r as BuiCommand,
|
|
13
12
|
t as BuiCommandDialog,
|
|
14
|
-
|
|
13
|
+
u as BuiCommandEmpty,
|
|
15
14
|
i as BuiCommandGroup,
|
|
16
15
|
s as BuiCommandInput,
|
|
17
16
|
f as BuiCommandItem,
|
|
18
17
|
B as BuiCommandList,
|
|
19
|
-
g as BuiCommandNewItem,
|
|
20
18
|
_ as BuiCommandSeparator,
|
|
21
19
|
S as BuiCommandShortcut
|
|
22
20
|
};
|
|
@@ -17,7 +17,7 @@ import { FlexRender as rt, useVueTable as Nt, getSortedRowModel as Ut, getPagina
|
|
|
17
17
|
import { _ as Kt } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-Cq59JdC-.js";
|
|
18
18
|
import { _ as qt } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-Bq80JqBC.js";
|
|
19
19
|
import { _ as Wt } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-ydm5dIcb.js";
|
|
20
|
-
import { _ as Xt } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-
|
|
20
|
+
import { _ as Xt } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-DgiH4pmL.js";
|
|
21
21
|
import { _ as Yt } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-CFParIZV.js";
|
|
22
22
|
import { _ as Jt } from "../../BuiCommandSeparator.vue_vue_type_script_setup_true_lang-DW6LTOPW.js";
|
|
23
23
|
import { _ as Zt } from "../../BuiContextMenuContent.vue_vue_type_script_setup_true_lang-C-EawITu.js";
|
|
@@ -28,7 +28,7 @@ import { _ as nn } from "../../BuiPopoverContent.vue_vue_type_script_setup_true_
|
|
|
28
28
|
import { _ as rn } from "../../BuiScrollArea.vue_vue_type_script_setup_true_lang-CE78e3qo.js";
|
|
29
29
|
import { useElementSize as an, useSessionStorage as on, useEventListener as sn } from "@vueuse/core";
|
|
30
30
|
import { useResizeColumns as ln } from "../../lib/useResizeColumns.js";
|
|
31
|
-
import { _ as un } from "../../BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-
|
|
31
|
+
import { _ as un } from "../../BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-Dy4ogTwO.js";
|
|
32
32
|
/**
|
|
33
33
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
34
34
|
*
|
|
@@ -1073,6 +1073,7 @@ const no = {
|
|
|
1073
1073
|
y(i(Jt), { class: "my-1" }),
|
|
1074
1074
|
y(i(Xt), {
|
|
1075
1075
|
value: "reset_columns_visibility",
|
|
1076
|
+
key: "reset_columns_visibility",
|
|
1076
1077
|
class: "text-muted-foreground px-2 py-1.5 font-medium",
|
|
1077
1078
|
onSelect: s[3] || (s[3] = (d) => i(g).setColumnVisibility({ ...u.value, ...E.value }))
|
|
1078
1079
|
}, {
|