@orchidui/dashboard 1.8.1-96 → 1.8.1-98
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/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
- package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
- package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
- package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
- package/dist/index.js +4 -4
- package/package.json +3 -265
- package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
- package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
- package/dist/Collection-COudIl-A.js +0 -55
- package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
- package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
- package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
- package/dist/DialogPortal-zAvO8zt4.js +0 -23
- package/dist/DialogTrigger-BIF1A4hk.js +0 -72
- package/dist/DismissableLayer-C7IJliOb.js +0 -151
- package/dist/FocusScope--pJ6bboI.js +0 -121
- package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
- package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
- package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
- package/dist/ListboxItem-CjMk-mEX.js +0 -417
- package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
- package/dist/OcCodeBlock-CBdVqav7.js +0 -37
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
- package/dist/PopperContent-BT3Svcc3.js +0 -1465
- package/dist/Presence-CxfTrw6l.js +0 -133
- package/dist/Primitive-B3twiLO1.js +0 -44
- package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
- package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
- package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
- package/dist/Separator-DRam5i7g.js +0 -54
- package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
- package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
- package/dist/Teleport-DnUewq5H.js +0 -25
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
- package/dist/VisuallyHidden-DMAU4heD.js +0 -41
- package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
- package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/array-CqVTtuYm.js +0 -6
- package/dist/arrays-4jDZqbdb.js +0 -20
- package/dist/check-C2tzJ0Gk.js +0 -11
- package/dist/chevron-down-CnpAlizg.js +0 -13
- package/dist/chevron-left-BOwFasou.js +0 -13
- package/dist/chevron-right-D308801z.js +0 -13
- package/dist/circle-A-6NpYiX.js +0 -13
- package/dist/clamp-BL1Rb24G.js +0 -22
- package/dist/constant-CuDQlTIy.js +0 -3433
- package/dist/createContext-CZEfaSVa.js +0 -17
- package/dist/createLucideIcon-eXqDwUWj.js +0 -71
- package/dist/ellipsis-CEG9G7eN.js +0 -15
- package/dist/getActiveElement-B-HWdUIb.js +0 -11
- package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
- package/dist/index-B3LW8uSH.js +0 -133
- package/dist/index-BIlpXuWX.js +0 -3430
- package/dist/index-BlGEiPHj.js +0 -1246
- package/dist/index-BwPb_idr.js +0 -574
- package/dist/index-C9julNQm.js +0 -173
- package/dist/index-C_aI-Wfj.js +0 -34
- package/dist/index-CumjCvqB.js +0 -5703
- package/dist/index-LqWMCtOd.js +0 -809
- package/dist/index-OpE2oGce.js +0 -110
- package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
- package/dist/lib/utils.js +0 -5
- package/dist/nullish-CjWwlQS3.js +0 -6
- package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
- package/dist/plus-CgluTYQY.js +0 -14
- package/dist/text-zwICaAnx.js +0 -743
- package/dist/ui/accordion/index.js +0 -7
- package/dist/ui/alert/index.js +0 -64
- package/dist/ui/alert-dialog/index.js +0 -356
- package/dist/ui/aspect-ratio/index.js +0 -50
- package/dist/ui/auto-form/constant.js +0 -5
- package/dist/ui/auto-form/dependencies.js +0 -61
- package/dist/ui/auto-form/index.js +0 -227
- package/dist/ui/auto-form/interface.js +0 -4
- package/dist/ui/auto-form/utils.js +0 -89
- package/dist/ui/avatar/index.js +0 -189
- package/dist/ui/badge/index.js +0 -37
- package/dist/ui/breadcrumb/index.js +0 -126
- package/dist/ui/button/index.js +0 -55
- package/dist/ui/calendar/index.js +0 -15
- package/dist/ui/card/index.js +0 -38
- package/dist/ui/carousel/index.js +0 -174
- package/dist/ui/carousel/interface.js +0 -1
- package/dist/ui/carousel/useCarousel.js +0 -1288
- package/dist/ui/chart/index.js +0 -8
- package/dist/ui/chart/interface.js +0 -1
- package/dist/ui/chart-area/index.js +0 -331
- package/dist/ui/chart-bar/index.js +0 -490
- package/dist/ui/chart-donut/index.js +0 -509
- package/dist/ui/chart-line/index.js +0 -110
- package/dist/ui/checkbox/index.js +0 -4
- package/dist/ui/collapsible/index.js +0 -60
- package/dist/ui/combobox/index.js +0 -877
- package/dist/ui/command/index.js +0 -323
- package/dist/ui/context-menu/index.js +0 -734
- package/dist/ui/dialog/index.js +0 -169
- package/dist/ui/drawer/index.js +0 -971
- package/dist/ui/dropdown-menu/index.js +0 -723
- package/dist/ui/form/index.js +0 -13
- package/dist/ui/form/injectionKeys.js +0 -4
- package/dist/ui/form/useFormField.js +0 -25
- package/dist/ui/hover-card/index.js +0 -331
- package/dist/ui/input/index.js +0 -4
- package/dist/ui/label/index.js +0 -4
- package/dist/ui/menubar/index.js +0 -862
- package/dist/ui/navigation-menu/index.js +0 -873
- package/dist/ui/number-field/index.js +0 -682
- package/dist/ui/pagination/index.js +0 -444
- package/dist/ui/pin-input/index.js +0 -308
- package/dist/ui/popover/index.js +0 -6
- package/dist/ui/progress/index.js +0 -137
- package/dist/ui/radio-group/index.js +0 -5
- package/dist/ui/range-calendar/index.js +0 -986
- package/dist/ui/resizable/index.js +0 -1432
- package/dist/ui/scroll-area/index.js +0 -775
- package/dist/ui/select/index.js +0 -135
- package/dist/ui/separator/index.js +0 -4
- package/dist/ui/sheet/index.js +0 -188
- package/dist/ui/sidebar/index.js +0 -652
- package/dist/ui/sidebar/utils.js +0 -12
- package/dist/ui/skeleton/index.js +0 -4
- package/dist/ui/slider/index.js +0 -478
- package/dist/ui/sonner/index.js +0 -892
- package/dist/ui/stepper/index.js +0 -442
- package/dist/ui/switch/index.js +0 -4
- package/dist/ui/table/index.js +0 -153
- package/dist/ui/tabs/index.js +0 -280
- package/dist/ui/tags-input/index.js +0 -449
- package/dist/ui/textarea/index.js +0 -4
- package/dist/ui/toast/index.js +0 -738
- package/dist/ui/toast/use-toast.js +0 -85
- package/dist/ui/toggle/index.js +0 -6
- package/dist/ui/toggle-group/index.js +0 -112
- package/dist/ui/tooltip/index.js +0 -29
- package/dist/useArrowNavigation-BRMPveaB.js +0 -49
- package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
- package/dist/useDirection-C3C_TLKm.js +0 -14
- package/dist/useFocusGuards-CyjC9cG9.js +0 -26
- package/dist/useFormControl-CFVC51Lp.js +0 -11
- package/dist/useForwardExpose-DZT6mL_U.js +0 -37
- package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
- package/dist/useGraceArea-D7-GP1ii.js +0 -137
- package/dist/useId-reAg216X.js +0 -13
- package/dist/useKbd-BJNupnml.js +0 -41
- package/dist/useLocale-BfU0LC8Z.js +0 -14
- package/dist/useNonce-C1ZOgOp5.js +0 -14
- package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
- package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
- package/dist/useSize-BnyQ8FZF.js +0 -37
- package/dist/useTypeahead-oSidjyFF.js +0 -40
- package/dist/utils-DKNaYMZh.js +0 -57
- package/dist/utils-Dx9la83v.js +0 -35
- package/dist/utils-DxQ_ywGa.js +0 -55
- package/dist/utils-SFgRDk1R.js +0 -2748
- package/dist/utils-W-UiqiPE.js +0 -1869
- package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
- package/dist/x-Cl6YllUK.js +0 -14
package/dist/ui/command/index.js
DELETED
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, createBlock as f, openBlock as m, unref as e, mergeProps as g, withCtx as u, renderSlot as _, ref as B, reactive as M, watch as z, normalizeProps as N, guardReactiveProps as D, createVNode as $, computed as P, createCommentVNode as I, onMounted as V, onUnmounted as j, createTextVNode as H, toDisplayString as T, createElementBlock as G, createElementVNode as U, normalizeClass as q } from "vue";
|
|
2
|
-
import { c as h } from "../../utils-SFgRDk1R.js";
|
|
3
|
-
import { _ as A, a as J } from "../../DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js";
|
|
4
|
-
import { u as F, a as O } from "../../useForwardPropsEmits-0XKBv1pB.js";
|
|
5
|
-
import { P as E } from "../../Primitive-B3twiLO1.js";
|
|
6
|
-
import { r as y } from "../../index-OpE2oGce.js";
|
|
7
|
-
import { u as L } from "../../useId-reAg216X.js";
|
|
8
|
-
import { i as K, u as Q, _ as W, a as X, b as Y, c as Z, d as ee } from "../../ListboxItem-CjMk-mEX.js";
|
|
9
|
-
import { c as te } from "../../createLucideIcon-eXqDwUWj.js";
|
|
10
|
-
import { b as se } from "../../index-B3LW8uSH.js";
|
|
11
|
-
import { _ as oe } from "../../Separator-DRam5i7g.js";
|
|
12
|
-
import { c as R } from "../../createContext-CZEfaSVa.js";
|
|
13
|
-
const ae = /* @__PURE__ */ p({
|
|
14
|
-
__name: "ListboxGroupLabel",
|
|
15
|
-
props: {
|
|
16
|
-
for: {},
|
|
17
|
-
asChild: { type: Boolean },
|
|
18
|
-
as: { default: "div" }
|
|
19
|
-
},
|
|
20
|
-
setup(a) {
|
|
21
|
-
const t = a, s = K({ id: "" });
|
|
22
|
-
return (o, n) => (m(), f(e(E), g(t, {
|
|
23
|
-
id: e(s).id
|
|
24
|
-
}), {
|
|
25
|
-
default: u(() => [
|
|
26
|
-
_(o.$slots, "default")
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}, 16, ["id"]));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* @license lucide-vue-next v0.514.0 - ISC
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the ISC license.
|
|
36
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/
|
|
38
|
-
const ne = te("search", [
|
|
39
|
-
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
40
|
-
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
41
|
-
]), re = /* @__PURE__ */ p({
|
|
42
|
-
__name: "Command",
|
|
43
|
-
props: {
|
|
44
|
-
modelValue: { default: "" },
|
|
45
|
-
defaultValue: {},
|
|
46
|
-
multiple: { type: Boolean },
|
|
47
|
-
orientation: {},
|
|
48
|
-
dir: {},
|
|
49
|
-
disabled: { type: Boolean },
|
|
50
|
-
selectionBehavior: {},
|
|
51
|
-
highlightOnHover: { type: Boolean },
|
|
52
|
-
by: {},
|
|
53
|
-
asChild: { type: Boolean },
|
|
54
|
-
as: {},
|
|
55
|
-
name: {},
|
|
56
|
-
required: { type: Boolean },
|
|
57
|
-
class: {}
|
|
58
|
-
},
|
|
59
|
-
emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
|
|
60
|
-
setup(a, { emit: t }) {
|
|
61
|
-
const s = a, o = t, n = y(s, "class"), r = F(n, o), d = B(/* @__PURE__ */ new Map()), i = B(/* @__PURE__ */ new Map()), { contains: k } = Q({ sensitivity: "base" }), l = M({
|
|
62
|
-
search: "",
|
|
63
|
-
filtered: {
|
|
64
|
-
/** The count of all visible items. */
|
|
65
|
-
count: 0,
|
|
66
|
-
/** Map from visible item id to its search score. */
|
|
67
|
-
items: /* @__PURE__ */ new Map(),
|
|
68
|
-
/** Set of groups with at least one visible item. */
|
|
69
|
-
groups: /* @__PURE__ */ new Set()
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
function w() {
|
|
73
|
-
if (!l.search) {
|
|
74
|
-
l.filtered.count = d.value.size;
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
l.filtered.groups = /* @__PURE__ */ new Set();
|
|
78
|
-
let x = 0;
|
|
79
|
-
for (const [v, C] of d.value) {
|
|
80
|
-
const c = k(C, l.search);
|
|
81
|
-
l.filtered.items.set(v, c ? 1 : 0), c && x++;
|
|
82
|
-
}
|
|
83
|
-
for (const [v, C] of i.value)
|
|
84
|
-
for (const c of C)
|
|
85
|
-
if (l.filtered.items.get(c) > 0) {
|
|
86
|
-
l.filtered.groups.add(v);
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
l.filtered.count = x;
|
|
90
|
-
}
|
|
91
|
-
return z(() => l.search, () => {
|
|
92
|
-
w();
|
|
93
|
-
}), ce({
|
|
94
|
-
allItems: d,
|
|
95
|
-
allGroups: i,
|
|
96
|
-
filterState: l
|
|
97
|
-
}), (x, v) => (m(), f(e(W), g(e(r), {
|
|
98
|
-
class: e(h)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", s.class)
|
|
99
|
-
}), {
|
|
100
|
-
default: u(() => [
|
|
101
|
-
_(x.$slots, "default")
|
|
102
|
-
]),
|
|
103
|
-
_: 3
|
|
104
|
-
}, 16, ["class"]));
|
|
105
|
-
}
|
|
106
|
-
}), be = /* @__PURE__ */ p({
|
|
107
|
-
__name: "CommandDialog",
|
|
108
|
-
props: {
|
|
109
|
-
open: { type: Boolean },
|
|
110
|
-
defaultOpen: { type: Boolean },
|
|
111
|
-
modal: { type: Boolean }
|
|
112
|
-
},
|
|
113
|
-
emits: ["update:open"],
|
|
114
|
-
setup(a, { emit: t }) {
|
|
115
|
-
const n = F(a, t);
|
|
116
|
-
return (r, d) => (m(), f(e(A), N(D(e(n))), {
|
|
117
|
-
default: u(() => [
|
|
118
|
-
$(e(J), { class: "overflow-hidden p-0 shadow-lg" }, {
|
|
119
|
-
default: u(() => [
|
|
120
|
-
$(re, { class: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5" }, {
|
|
121
|
-
default: u(() => [
|
|
122
|
-
_(r.$slots, "default")
|
|
123
|
-
]),
|
|
124
|
-
_: 3
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
_: 3
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
_: 3
|
|
131
|
-
}, 16));
|
|
132
|
-
}
|
|
133
|
-
}), $e = /* @__PURE__ */ p({
|
|
134
|
-
__name: "CommandEmpty",
|
|
135
|
-
props: {
|
|
136
|
-
asChild: { type: Boolean },
|
|
137
|
-
as: { type: [String, Object, Function] },
|
|
138
|
-
class: {}
|
|
139
|
-
},
|
|
140
|
-
setup(a) {
|
|
141
|
-
const t = a, s = y(t, "class"), { filterState: o } = S(), n = P(
|
|
142
|
-
() => !!o.search && o.filtered.count === 0
|
|
143
|
-
);
|
|
144
|
-
return (r, d) => n.value ? (m(), f(e(E), g({ key: 0 }, e(s), {
|
|
145
|
-
class: e(h)("py-6 text-center text-sm", t.class)
|
|
146
|
-
}), {
|
|
147
|
-
default: u(() => [
|
|
148
|
-
_(r.$slots, "default")
|
|
149
|
-
]),
|
|
150
|
-
_: 3
|
|
151
|
-
}, 16, ["class"])) : I("", !0);
|
|
152
|
-
}
|
|
153
|
-
}), Se = /* @__PURE__ */ p({
|
|
154
|
-
__name: "CommandGroup",
|
|
155
|
-
props: {
|
|
156
|
-
asChild: { type: Boolean },
|
|
157
|
-
as: { type: [String, Object, Function] },
|
|
158
|
-
class: {},
|
|
159
|
-
heading: {}
|
|
160
|
-
},
|
|
161
|
-
setup(a) {
|
|
162
|
-
const t = a, s = y(t, "class"), { allGroups: o, filterState: n } = S(), r = L(), d = P(() => n.search ? n.filtered.groups.has(r) : !0);
|
|
163
|
-
return ue({ id: r }), V(() => {
|
|
164
|
-
o.value.has(r) || o.value.set(r, /* @__PURE__ */ new Set());
|
|
165
|
-
}), j(() => {
|
|
166
|
-
o.value.delete(r);
|
|
167
|
-
}), (i, k) => (m(), f(e(X), g(e(s), {
|
|
168
|
-
id: e(r),
|
|
169
|
-
class: e(h)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", t.class),
|
|
170
|
-
hidden: d.value ? void 0 : !0
|
|
171
|
-
}), {
|
|
172
|
-
default: u(() => [
|
|
173
|
-
i.heading ? (m(), f(e(ae), {
|
|
174
|
-
key: 0,
|
|
175
|
-
class: "px-2 py-1.5 text-xs font-medium text-muted-foreground"
|
|
176
|
-
}, {
|
|
177
|
-
default: u(() => [
|
|
178
|
-
H(T(i.heading), 1)
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
})) : I("", !0),
|
|
182
|
-
_(i.$slots, "default")
|
|
183
|
-
]),
|
|
184
|
-
_: 3
|
|
185
|
-
}, 16, ["id", "class", "hidden"]));
|
|
186
|
-
}
|
|
187
|
-
}), de = {
|
|
188
|
-
class: "flex items-center border-b px-3",
|
|
189
|
-
"cmdk-input-wrapper": ""
|
|
190
|
-
}, Be = /* @__PURE__ */ p({
|
|
191
|
-
inheritAttrs: !1,
|
|
192
|
-
__name: "CommandInput",
|
|
193
|
-
props: {
|
|
194
|
-
modelValue: {},
|
|
195
|
-
autoFocus: { type: Boolean },
|
|
196
|
-
disabled: { type: Boolean },
|
|
197
|
-
asChild: { type: Boolean },
|
|
198
|
-
as: { type: [String, Object, Function] },
|
|
199
|
-
class: {}
|
|
200
|
-
},
|
|
201
|
-
setup(a) {
|
|
202
|
-
const t = a, s = y(t, "class"), o = O(s), { filterState: n } = S();
|
|
203
|
-
return (r, d) => (m(), G("div", de, [
|
|
204
|
-
$(e(ne), { class: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
205
|
-
$(e(Y), g({ ...e(o), ...r.$attrs }, {
|
|
206
|
-
modelValue: e(n).search,
|
|
207
|
-
"onUpdate:modelValue": d[0] || (d[0] = (i) => e(n).search = i),
|
|
208
|
-
"auto-focus": "",
|
|
209
|
-
class: e(h)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", t.class)
|
|
210
|
-
}), null, 16, ["modelValue", "class"])
|
|
211
|
-
]));
|
|
212
|
-
}
|
|
213
|
-
}), Pe = /* @__PURE__ */ p({
|
|
214
|
-
__name: "CommandItem",
|
|
215
|
-
props: {
|
|
216
|
-
value: {},
|
|
217
|
-
disabled: { type: Boolean },
|
|
218
|
-
asChild: { type: Boolean },
|
|
219
|
-
as: { type: [String, Object, Function] },
|
|
220
|
-
class: {}
|
|
221
|
-
},
|
|
222
|
-
emits: ["select"],
|
|
223
|
-
setup(a, { emit: t }) {
|
|
224
|
-
const s = a, o = t, n = y(s, "class"), r = F(n, o), d = L(), { filterState: i, allItems: k, allGroups: l } = S(), w = ie(), x = P(() => {
|
|
225
|
-
if (i.search) {
|
|
226
|
-
const c = i.filtered.items.get(d);
|
|
227
|
-
return c === void 0 ? !0 : c > 0;
|
|
228
|
-
} else
|
|
229
|
-
return !0;
|
|
230
|
-
}), v = B(), C = se(v);
|
|
231
|
-
return V(() => {
|
|
232
|
-
var b;
|
|
233
|
-
if (!(C.value instanceof HTMLElement))
|
|
234
|
-
return;
|
|
235
|
-
k.value.set(d, C.value.textContent ?? (s == null ? void 0 : s.value.toString()));
|
|
236
|
-
const c = w == null ? void 0 : w.id;
|
|
237
|
-
c && (l.value.has(c) ? (b = l.value.get(c)) == null || b.add(d) : l.value.set(c, /* @__PURE__ */ new Set([d])));
|
|
238
|
-
}), j(() => {
|
|
239
|
-
k.value.delete(d);
|
|
240
|
-
}), (c, b) => x.value ? (m(), f(e(Z), g({ key: 0 }, e(r), {
|
|
241
|
-
id: e(d),
|
|
242
|
-
ref_key: "itemRef",
|
|
243
|
-
ref: v,
|
|
244
|
-
class: e(h)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0", s.class),
|
|
245
|
-
onSelect: b[0] || (b[0] = () => {
|
|
246
|
-
e(i).search = "";
|
|
247
|
-
})
|
|
248
|
-
}), {
|
|
249
|
-
default: u(() => [
|
|
250
|
-
_(c.$slots, "default")
|
|
251
|
-
]),
|
|
252
|
-
_: 3
|
|
253
|
-
}, 16, ["id", "class"])) : I("", !0);
|
|
254
|
-
}
|
|
255
|
-
}), le = { role: "presentation" }, Ie = /* @__PURE__ */ p({
|
|
256
|
-
__name: "CommandList",
|
|
257
|
-
props: {
|
|
258
|
-
asChild: { type: Boolean },
|
|
259
|
-
as: { type: [String, Object, Function] },
|
|
260
|
-
class: {}
|
|
261
|
-
},
|
|
262
|
-
setup(a) {
|
|
263
|
-
const t = a, s = y(t, "class"), o = O(s);
|
|
264
|
-
return (n, r) => (m(), f(e(ee), g(e(o), {
|
|
265
|
-
class: e(h)("max-h-[300px] overflow-y-auto overflow-x-hidden", t.class)
|
|
266
|
-
}), {
|
|
267
|
-
default: u(() => [
|
|
268
|
-
U("div", le, [
|
|
269
|
-
_(n.$slots, "default")
|
|
270
|
-
])
|
|
271
|
-
]),
|
|
272
|
-
_: 3
|
|
273
|
-
}, 16, ["class"]));
|
|
274
|
-
}
|
|
275
|
-
}), Fe = /* @__PURE__ */ p({
|
|
276
|
-
__name: "CommandSeparator",
|
|
277
|
-
props: {
|
|
278
|
-
orientation: {},
|
|
279
|
-
decorative: { type: Boolean },
|
|
280
|
-
asChild: { type: Boolean },
|
|
281
|
-
as: { type: [String, Object, Function] },
|
|
282
|
-
class: {}
|
|
283
|
-
},
|
|
284
|
-
setup(a) {
|
|
285
|
-
const t = a, s = y(t, "class");
|
|
286
|
-
return (o, n) => (m(), f(e(oe), g(e(s), {
|
|
287
|
-
class: e(h)("-mx-1 h-px bg-border", t.class)
|
|
288
|
-
}), {
|
|
289
|
-
default: u(() => [
|
|
290
|
-
_(o.$slots, "default")
|
|
291
|
-
]),
|
|
292
|
-
_: 3
|
|
293
|
-
}, 16, ["class"]));
|
|
294
|
-
}
|
|
295
|
-
}), Ve = /* @__PURE__ */ p({
|
|
296
|
-
__name: "CommandShortcut",
|
|
297
|
-
props: {
|
|
298
|
-
class: {}
|
|
299
|
-
},
|
|
300
|
-
setup(a) {
|
|
301
|
-
const t = a;
|
|
302
|
-
return (s, o) => (m(), G("span", {
|
|
303
|
-
class: q(e(h)("ml-auto text-xs tracking-widest text-muted-foreground", t.class))
|
|
304
|
-
}, [
|
|
305
|
-
_(s.$slots, "default")
|
|
306
|
-
], 2));
|
|
307
|
-
}
|
|
308
|
-
}), [S, ce] = R("Command"), [ie, ue] = R("CommandGroup");
|
|
309
|
-
export {
|
|
310
|
-
re as Command,
|
|
311
|
-
be as CommandDialog,
|
|
312
|
-
$e as CommandEmpty,
|
|
313
|
-
Se as CommandGroup,
|
|
314
|
-
Be as CommandInput,
|
|
315
|
-
Pe as CommandItem,
|
|
316
|
-
Ie as CommandList,
|
|
317
|
-
Fe as CommandSeparator,
|
|
318
|
-
Ve as CommandShortcut,
|
|
319
|
-
ce as provideCommandContext,
|
|
320
|
-
ue as provideCommandGroupContext,
|
|
321
|
-
S as useCommand,
|
|
322
|
-
ie as useCommandGroup
|
|
323
|
-
};
|