@bl33dz/fa814698dcde12f86a37ac31dd3aedf9 1.0.16 → 1.0.18
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/perisai-ui.es.js +589 -598
- package/dist/perisai-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/shadcn/select/SelectContent.vue +2 -2
- package/src/shadcn/select/SelectItem.vue +2 -2
- package/src/shadcn/select/SelectTrigger.vue +2 -2
- package/src/ui/PopoverContent.vue +3 -2
- package/src/ui/SelectContent.vue +2 -2
- package/src/ui/SelectItem.vue +2 -2
- package/src/ui/SelectTrigger.vue +2 -2
- package/src/ui/badge.vue +1 -1
- package/src/ui/card.vue +3 -3
- package/src/ui/dialog-header.vue +1 -1
- package/src/ui/dropdown-menu-content.vue +2 -3
- package/src/ui/dropdown-menu-sub-content.vue +1 -1
- package/src/ui/select-multiple.vue +46 -46
- package/src/ui/table-footer.vue +1 -1
- package/src/ui/table-row.vue +1 -1
- package/src/ui/table.vue +3 -3
- package/src/ui/textarea.vue +2 -2
package/dist/perisai-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, createElementBlock as l, openBlock as r, renderSlot as d, createVNode as
|
|
1
|
+
import { defineComponent as f, createElementBlock as l, openBlock as r, renderSlot as d, createVNode as _, createElementVNode as c, unref as s, createBlock as g, mergeProps as b, withCtx as u, computed as w, ref as V, watch as Z, customRef as It, isRef as fe, reactive as Se, toRefs as Ce, getCurrentInstance as qe, nextTick as Ke, onUpdated as Mt, onMounted as re, normalizeClass as k, normalizeProps as Q, guardReactiveProps as ee, createTextVNode as O, toDisplayString as I, createCommentVNode as z, onUnmounted as ne, resolveComponent as be, normalizeStyle as H, Fragment as F, renderList as G, useSlots as le, defineAsyncComponent as Tt, provide as ue, resolveDynamicComponent as Y, useAttrs as U, withModifiers as Dt, inject as ve, onBeforeUnmount as Vt, h as se, Teleport as Pt, Transition as Oe, TransitionGroup as At, withDirectives as Ot, vShow as jt } from "vue";
|
|
2
2
|
import { MoreHorizontal as Lt, ChevronDown as ze, Loader2Icon as Rt, X as he, Search as me, Minus as Ft, Check as Et, ChevronUp as Nt, CheckCircle as _e, AlertCircle as Xe, Loader2 as Ut, CircleIcon as Ht, User as Gt, PanelLeft as Wt, Lock as qt, Unlock as Kt, ArrowUpDown as Xt, ArrowDown as Jt, ArrowUp as Zt } from "lucide-vue-next";
|
|
3
3
|
import { useForwardPropsEmits as N, AccordionRoot as Yt, AccordionContent as Qt, useForwardProps as q, AccordionItem as ea, AccordionHeader as ta, AccordionTrigger as aa, TooltipRoot as sa, TooltipPortal as oa, TooltipContent as ra, TooltipArrow as na, TooltipProvider as la, TooltipTrigger as ia, useFilter as da, ListboxRoot as ca, DialogRoot as ua, DialogClose as Ie, DialogOverlay as Je, DialogPortal as Ze, DialogContent as pa, DialogDescription as fa, DialogTitle as ma, DialogTrigger as ga, Primitive as ba, useId as Ye, ListboxGroup as va, ListboxGroupLabel as ha, ListboxFilter as _a, ListboxItem as ya, ListboxContent as xa, Separator as Qe, createContext as et, SwitchRoot as wa, SwitchThumb as ka, CollapsibleRoot as $a, CollapsibleContent as Sa, CollapsibleTrigger as Ca, PopoverPortal as Ba, PopoverContent as za, PopoverRoot as Ia, PopoverTrigger as Ma, SelectRoot as Ta, SelectPortal as Da, SelectContent as Va, SelectViewport as Pa, SelectItem as Aa, SelectItemIndicator as Oa, SelectItemText as ja, SelectScrollDownButton as La, SelectScrollUpButton as Ra, SelectTrigger as Fa, SelectIcon as Ea, SelectValue as Na, SelectSeparator as Ua, AvatarRoot as Ha, AvatarFallback as Ga, AvatarImage as Wa, DropdownMenuRoot as qa, DropdownMenuPortal as tt, DropdownMenuContent as Ka, DropdownMenuTrigger as Xa, RadioGroupRoot as Ja, RadioGroupItem as Za, RadioGroupIndicator as Ya, TabsRoot as Qa, TabsContent as es, TabsList as ts, TabsTrigger as as, SliderRoot as ss, SliderTrack as os, SliderRange as rs, SliderThumb as ns, Toggle as ls } from "reka-ui";
|
|
4
4
|
import { clsx as Me } from "clsx";
|
|
@@ -48,7 +48,7 @@ const ms = {
|
|
|
48
48
|
__name: "BreadcrumbEllipsis",
|
|
49
49
|
setup(t) {
|
|
50
50
|
return (e, a) => (r(), l("span", vs, [
|
|
51
|
-
|
|
51
|
+
_(s(Lt), { class: "size-4" }),
|
|
52
52
|
a[0] || (a[0] = c("span", { class: "sr-only" }, "More", -1))
|
|
53
53
|
]));
|
|
54
54
|
}
|
|
@@ -83,15 +83,15 @@ function _s(t, e) {
|
|
|
83
83
|
i.value = !0, n();
|
|
84
84
|
};
|
|
85
85
|
Z(t, p, { flush: "sync" });
|
|
86
|
-
const m = typeof e == "function" ? e : e.get,
|
|
86
|
+
const m = typeof e == "function" ? e : e.get, $ = typeof e == "function" ? void 0 : e.set, h = It((v, y) => (o = v, n = y, {
|
|
87
87
|
get() {
|
|
88
88
|
return i.value && (a = m(), i.value = !1), o(), a;
|
|
89
89
|
},
|
|
90
|
-
set(
|
|
91
|
-
|
|
90
|
+
set(x) {
|
|
91
|
+
$?.(x);
|
|
92
92
|
}
|
|
93
93
|
}));
|
|
94
|
-
return Object.isExtensible(
|
|
94
|
+
return Object.isExtensible(h) && (h.trigger = p), h;
|
|
95
95
|
}
|
|
96
96
|
function at(t) {
|
|
97
97
|
return typeof t == "function" ? t() : s(t);
|
|
@@ -125,7 +125,7 @@ function ys(t) {
|
|
|
125
125
|
return Se(e);
|
|
126
126
|
}
|
|
127
127
|
function xs(t) {
|
|
128
|
-
return ys(
|
|
128
|
+
return ys(w(t));
|
|
129
129
|
}
|
|
130
130
|
function D(t, ...e) {
|
|
131
131
|
const a = e.flat(), o = a[0];
|
|
@@ -152,18 +152,18 @@ function Cs(t, e, a, o = {}) {
|
|
|
152
152
|
var n, i, p;
|
|
153
153
|
const {
|
|
154
154
|
clone: m = !1,
|
|
155
|
-
passive:
|
|
156
|
-
eventName:
|
|
157
|
-
deep:
|
|
158
|
-
defaultValue:
|
|
159
|
-
shouldEmit:
|
|
160
|
-
} = o,
|
|
161
|
-
let P =
|
|
155
|
+
passive: $ = !1,
|
|
156
|
+
eventName: h,
|
|
157
|
+
deep: v = !1,
|
|
158
|
+
defaultValue: y,
|
|
159
|
+
shouldEmit: x
|
|
160
|
+
} = o, S = qe(), B = a || S?.emit || ((n = S?.$emit) == null ? void 0 : n.bind(S)) || ((p = (i = S?.proxy) == null ? void 0 : i.$emit) == null ? void 0 : p.bind(S?.proxy));
|
|
161
|
+
let P = h;
|
|
162
162
|
P = P || `update:${e.toString()}`;
|
|
163
|
-
const R = (E) => m ? typeof m == "function" ? m(E) : $s(E) : E, K = () => ws(t[e]) ? R(t[e]) :
|
|
164
|
-
|
|
163
|
+
const R = (E) => m ? typeof m == "function" ? m(E) : $s(E) : E, K = () => ws(t[e]) ? R(t[e]) : y, X = (E) => {
|
|
164
|
+
x ? x(E) && B(P, E) : B(P, E);
|
|
165
165
|
};
|
|
166
|
-
if (
|
|
166
|
+
if ($) {
|
|
167
167
|
const E = K(), A = V(E);
|
|
168
168
|
let j = !1;
|
|
169
169
|
return Z(
|
|
@@ -174,12 +174,12 @@ function Cs(t, e, a, o = {}) {
|
|
|
174
174
|
), Z(
|
|
175
175
|
A,
|
|
176
176
|
(L) => {
|
|
177
|
-
!j && (L !== t[e] ||
|
|
177
|
+
!j && (L !== t[e] || v) && X(L);
|
|
178
178
|
},
|
|
179
|
-
{ deep:
|
|
179
|
+
{ deep: v }
|
|
180
180
|
), A;
|
|
181
181
|
} else
|
|
182
|
-
return
|
|
182
|
+
return w({
|
|
183
183
|
get() {
|
|
184
184
|
return K();
|
|
185
185
|
},
|
|
@@ -188,7 +188,7 @@ function Cs(t, e, a, o = {}) {
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function C(...t) {
|
|
192
192
|
return Te(Me(t));
|
|
193
193
|
}
|
|
194
194
|
const Bs = /* @__PURE__ */ f({
|
|
@@ -204,7 +204,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
204
204
|
return (o, n) => (r(), g(s(Qt), b({ "data-slot": "accordion-content" }, s(a), { class: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }), {
|
|
205
205
|
default: u(() => [
|
|
206
206
|
c("div", {
|
|
207
|
-
class:
|
|
207
|
+
class: k(s(C)("pt-0 pb-4", e.class))
|
|
208
208
|
}, [
|
|
209
209
|
d(o.$slots, "default")
|
|
210
210
|
], 2)
|
|
@@ -225,7 +225,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
225
225
|
setup(t) {
|
|
226
226
|
const e = t, a = D(e, "class"), o = q(a);
|
|
227
227
|
return (n, i) => (r(), g(s(ea), b({ "data-slot": "accordion-item" }, s(o), {
|
|
228
|
-
class: s(
|
|
228
|
+
class: s(C)("border-b last:border-b-0", e.class)
|
|
229
229
|
}), {
|
|
230
230
|
default: u(() => [
|
|
231
231
|
d(n.$slots, "default")
|
|
@@ -244,8 +244,8 @@ const Bs = /* @__PURE__ */ f({
|
|
|
244
244
|
const e = t, a = D(e, "class");
|
|
245
245
|
return (o, n) => (r(), g(s(ta), { class: "flex" }, {
|
|
246
246
|
default: u(() => [
|
|
247
|
-
|
|
248
|
-
class: s(
|
|
247
|
+
_(s(aa), b({ "data-slot": "accordion-trigger" }, s(a), {
|
|
248
|
+
class: s(C)(
|
|
249
249
|
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
250
250
|
e.class
|
|
251
251
|
)
|
|
@@ -253,7 +253,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
253
253
|
default: u(() => [
|
|
254
254
|
d(o.$slots, "default"),
|
|
255
255
|
d(o.$slots, "icon", {}, () => [
|
|
256
|
-
|
|
256
|
+
_(s(ze), { class: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
257
257
|
])
|
|
258
258
|
]),
|
|
259
259
|
_: 3
|
|
@@ -272,7 +272,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
272
272
|
return (a, o) => (r(), g(s(Rt), {
|
|
273
273
|
role: "status",
|
|
274
274
|
"aria-label": "Loading",
|
|
275
|
-
class:
|
|
275
|
+
class: k(s(C)("size-4 animate-spin", e.class))
|
|
276
276
|
}, null, 8, ["class"]));
|
|
277
277
|
}
|
|
278
278
|
}), Ms = /* @__PURE__ */ f({
|
|
@@ -375,10 +375,10 @@ const Bs = /* @__PURE__ */ f({
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
), n = t, i = e, p = D(n, "class"), m = N(p, i);
|
|
378
|
-
return (
|
|
378
|
+
return ($, h) => (r(), g(s(oa), null, {
|
|
379
379
|
default: u(() => [
|
|
380
|
-
|
|
381
|
-
class: s(
|
|
380
|
+
_(s(ra), b({ "data-slot": "tooltip-content" }, { ...s(m), ...$.$attrs }, {
|
|
381
|
+
class: s(C)(
|
|
382
382
|
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",
|
|
383
383
|
s(a)({ variant: n.variant }),
|
|
384
384
|
n.class,
|
|
@@ -386,9 +386,9 @@ const Bs = /* @__PURE__ */ f({
|
|
|
386
386
|
)
|
|
387
387
|
}), {
|
|
388
388
|
default: u(() => [
|
|
389
|
-
d(
|
|
390
|
-
|
|
391
|
-
class:
|
|
389
|
+
d($.$slots, "default"),
|
|
390
|
+
_(s(na), {
|
|
391
|
+
class: k(s(C)(
|
|
392
392
|
"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",
|
|
393
393
|
s(o)({ variant: n.variant })
|
|
394
394
|
))
|
|
@@ -455,7 +455,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
455
455
|
},
|
|
456
456
|
emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
|
|
457
457
|
setup(t, { emit: e }) {
|
|
458
|
-
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), { contains:
|
|
458
|
+
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), { contains: $ } = da({ sensitivity: "base" }), h = Se({
|
|
459
459
|
search: "",
|
|
460
460
|
filtered: {
|
|
461
461
|
/** The count of all visible items. */
|
|
@@ -466,36 +466,36 @@ const Bs = /* @__PURE__ */ f({
|
|
|
466
466
|
groups: /* @__PURE__ */ new Set()
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
|
-
function
|
|
470
|
-
if (!
|
|
471
|
-
|
|
469
|
+
function v() {
|
|
470
|
+
if (!h.search) {
|
|
471
|
+
h.filtered.count = p.value.size;
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
let
|
|
476
|
-
for (const [
|
|
477
|
-
const B =
|
|
478
|
-
|
|
474
|
+
h.filtered.groups = /* @__PURE__ */ new Set();
|
|
475
|
+
let y = 0;
|
|
476
|
+
for (const [x, S] of p.value) {
|
|
477
|
+
const B = $(S, h.search);
|
|
478
|
+
h.filtered.items.set(x, B ? 1 : 0), B && y++;
|
|
479
479
|
}
|
|
480
|
-
for (const [
|
|
481
|
-
for (const B of
|
|
482
|
-
if (
|
|
483
|
-
|
|
480
|
+
for (const [x, S] of m.value)
|
|
481
|
+
for (const B of S)
|
|
482
|
+
if (h.filtered.items.get(B) > 0) {
|
|
483
|
+
h.filtered.groups.add(x);
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
|
-
|
|
486
|
+
h.filtered.count = y;
|
|
487
487
|
}
|
|
488
|
-
return Z(() =>
|
|
489
|
-
|
|
488
|
+
return Z(() => h.search, () => {
|
|
489
|
+
v();
|
|
490
490
|
}), Es({
|
|
491
491
|
allItems: p,
|
|
492
492
|
allGroups: m,
|
|
493
|
-
filterState:
|
|
494
|
-
}), (
|
|
495
|
-
class: s(
|
|
493
|
+
filterState: h
|
|
494
|
+
}), (y, x) => (r(), g(s(ca), b({ "data-slot": "command" }, s(i), {
|
|
495
|
+
class: s(C)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", a.class)
|
|
496
496
|
}), {
|
|
497
497
|
default: u(() => [
|
|
498
|
-
d(
|
|
498
|
+
d(y.$slots, "default")
|
|
499
499
|
]),
|
|
500
500
|
_: 3
|
|
501
501
|
}, 16, ["class"]));
|
|
@@ -543,7 +543,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
543
543
|
setup(t) {
|
|
544
544
|
const e = t, a = D(e, "class");
|
|
545
545
|
return (o, n) => (r(), g(s(Je), b({ "data-slot": "dialog-overlay" }, s(a), {
|
|
546
|
-
class: s(
|
|
546
|
+
class: s(C)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", e.class)
|
|
547
547
|
}), {
|
|
548
548
|
default: u(() => [
|
|
549
549
|
d(o.$slots, "default")
|
|
@@ -565,18 +565,18 @@ const Bs = /* @__PURE__ */ f({
|
|
|
565
565
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
566
566
|
return (p, m) => (r(), g(s(Ze), null, {
|
|
567
567
|
default: u(() => [
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
class: s(
|
|
568
|
+
_(Os),
|
|
569
|
+
_(s(pa), b({ "data-slot": "dialog-content" }, s(i), {
|
|
570
|
+
class: s(C)(
|
|
571
571
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] rounded-lg border shadow-lg duration-200 sm:max-w-lg",
|
|
572
572
|
a.class
|
|
573
573
|
)
|
|
574
574
|
}), {
|
|
575
575
|
default: u(() => [
|
|
576
576
|
d(p.$slots, "default"),
|
|
577
|
-
|
|
577
|
+
_(s(Ie), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" }, {
|
|
578
578
|
default: u(() => [
|
|
579
|
-
|
|
579
|
+
_(s(he)),
|
|
580
580
|
m[0] || (m[0] = c("span", { class: "sr-only" }, "Close", -1))
|
|
581
581
|
]),
|
|
582
582
|
_: 1
|
|
@@ -598,7 +598,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
598
598
|
setup(t) {
|
|
599
599
|
const e = t, a = D(e, "class"), o = q(a);
|
|
600
600
|
return (n, i) => (r(), g(s(fa), b({ "data-slot": "dialog-description" }, s(o), {
|
|
601
|
-
class: s(
|
|
601
|
+
class: s(C)("text-muted-foreground text-sm", e.class)
|
|
602
602
|
}), {
|
|
603
603
|
default: u(() => [
|
|
604
604
|
d(n.$slots, "default")
|
|
@@ -615,7 +615,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
615
615
|
const e = t;
|
|
616
616
|
return (a, o) => (r(), l("div", {
|
|
617
617
|
"data-slot": "dialog-header",
|
|
618
|
-
class:
|
|
618
|
+
class: k(s(C)("flex flex-col gap-2 text-center sm:text-left", e.class))
|
|
619
619
|
}, [
|
|
620
620
|
d(a.$slots, "default")
|
|
621
621
|
], 2));
|
|
@@ -630,7 +630,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
630
630
|
setup(t) {
|
|
631
631
|
const e = t, a = D(e, "class"), o = q(a);
|
|
632
632
|
return (n, i) => (r(), g(s(ma), b({ "data-slot": "dialog-title" }, s(o), {
|
|
633
|
-
class: s(
|
|
633
|
+
class: s(C)("text-lg leading-none font-semibold", e.class)
|
|
634
634
|
}), {
|
|
635
635
|
default: u(() => [
|
|
636
636
|
d(n.$slots, "default")
|
|
@@ -667,17 +667,17 @@ const Bs = /* @__PURE__ */ f({
|
|
|
667
667
|
const n = N(t, e);
|
|
668
668
|
return (i, p) => (r(), g(s(st), Q(ee(s(n))), {
|
|
669
669
|
default: u(() => [
|
|
670
|
-
|
|
670
|
+
_(s(ot), { class: "overflow-hidden p-0" }, {
|
|
671
671
|
default: u(() => [
|
|
672
|
-
|
|
672
|
+
_(s(js), { class: "sr-only" }, {
|
|
673
673
|
default: u(() => [
|
|
674
|
-
|
|
674
|
+
_(s(nt), null, {
|
|
675
675
|
default: u(() => [
|
|
676
676
|
O(I(t.title), 1)
|
|
677
677
|
]),
|
|
678
678
|
_: 1
|
|
679
679
|
}),
|
|
680
|
-
|
|
680
|
+
_(s(rt), null, {
|
|
681
681
|
default: u(() => [
|
|
682
682
|
O(I(t.description), 1)
|
|
683
683
|
]),
|
|
@@ -686,7 +686,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
688
688
|
}),
|
|
689
|
-
|
|
689
|
+
_(Ps, null, {
|
|
690
690
|
default: u(() => [
|
|
691
691
|
d(i.$slots, "default")
|
|
692
692
|
]),
|
|
@@ -707,14 +707,14 @@ const Bs = /* @__PURE__ */ f({
|
|
|
707
707
|
class: {}
|
|
708
708
|
},
|
|
709
709
|
setup(t) {
|
|
710
|
-
const e = t, a = D(e, "class"), { filterState: o } = ye(), n =
|
|
710
|
+
const e = t, a = D(e, "class"), { filterState: o } = ye(), n = w(
|
|
711
711
|
() => !!o.search && o.filtered.count === 0
|
|
712
712
|
);
|
|
713
713
|
return (i, p) => n.value ? (r(), g(s(ba), b({
|
|
714
714
|
key: 0,
|
|
715
715
|
"data-slot": "command-empty"
|
|
716
716
|
}, s(a), {
|
|
717
|
-
class: s(
|
|
717
|
+
class: s(C)("py-6 text-center text-sm", e.class)
|
|
718
718
|
}), {
|
|
719
719
|
default: u(() => [
|
|
720
720
|
d(i.$slots, "default")
|
|
@@ -731,15 +731,15 @@ const Bs = /* @__PURE__ */ f({
|
|
|
731
731
|
heading: {}
|
|
732
732
|
},
|
|
733
733
|
setup(t) {
|
|
734
|
-
const e = t, a = D(e, "class"), { allGroups: o, filterState: n } = ye(), i = Ye(), p =
|
|
734
|
+
const e = t, a = D(e, "class"), { allGroups: o, filterState: n } = ye(), i = Ye(), p = w(() => n.search ? n.filtered.groups.has(i) : !0);
|
|
735
735
|
return Us({ id: i }), re(() => {
|
|
736
736
|
o.value.has(i) || o.value.set(i, /* @__PURE__ */ new Set());
|
|
737
737
|
}), ne(() => {
|
|
738
738
|
o.value.delete(i);
|
|
739
|
-
}), (m,
|
|
739
|
+
}), (m, $) => (r(), g(s(va), b(s(a), {
|
|
740
740
|
id: s(i),
|
|
741
741
|
"data-slot": "command-group",
|
|
742
|
-
class: s(
|
|
742
|
+
class: s(C)("text-foreground overflow-hidden p-1", e.class),
|
|
743
743
|
hidden: p.value ? void 0 : !0
|
|
744
744
|
}), {
|
|
745
745
|
default: u(() => [
|
|
@@ -774,13 +774,13 @@ const Bs = /* @__PURE__ */ f({
|
|
|
774
774
|
setup(t) {
|
|
775
775
|
const e = t, a = D(e, "class"), o = q(a), { filterState: n } = ye();
|
|
776
776
|
return (i, p) => (r(), l("div", Rs, [
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
_(s(me), { class: "size-4 shrink-0 opacity-50" }),
|
|
778
|
+
_(s(_a), b({ ...s(o), ...i.$attrs }, {
|
|
779
779
|
modelValue: s(n).search,
|
|
780
780
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => s(n).search = m),
|
|
781
781
|
"data-slot": "command-input",
|
|
782
782
|
"auto-focus": "",
|
|
783
|
-
class: s(
|
|
783
|
+
class: s(C)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e.class)
|
|
784
784
|
}), null, 16, ["modelValue", "class"])
|
|
785
785
|
]));
|
|
786
786
|
}
|
|
@@ -795,27 +795,27 @@ const Bs = /* @__PURE__ */ f({
|
|
|
795
795
|
},
|
|
796
796
|
emits: ["select"],
|
|
797
797
|
setup(t, { emit: e }) {
|
|
798
|
-
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = Ye(), { filterState: m, allItems:
|
|
798
|
+
const a = t, o = e, n = D(a, "class"), i = N(n, o), p = Ye(), { filterState: m, allItems: $, allGroups: h } = ye(), v = Ns(), y = w(() => {
|
|
799
799
|
if (m.search) {
|
|
800
800
|
const B = m.filtered.items.get(p);
|
|
801
801
|
return B === void 0 ? !0 : B > 0;
|
|
802
802
|
} else
|
|
803
803
|
return !0;
|
|
804
|
-
}),
|
|
804
|
+
}), x = V(), S = Ss(x);
|
|
805
805
|
return re(() => {
|
|
806
|
-
if (!(
|
|
806
|
+
if (!(S.value instanceof HTMLElement))
|
|
807
807
|
return;
|
|
808
|
-
|
|
809
|
-
const B =
|
|
810
|
-
B && (
|
|
808
|
+
$.value.set(p, S.value.textContent ?? a.value?.toString() ?? "");
|
|
809
|
+
const B = v?.id;
|
|
810
|
+
B && (h.value.has(B) ? h.value.get(B)?.add(p) : h.value.set(B, /* @__PURE__ */ new Set([p])));
|
|
811
811
|
}), ne(() => {
|
|
812
|
-
|
|
813
|
-
}), (B, P) =>
|
|
812
|
+
$.value.delete(p);
|
|
813
|
+
}), (B, P) => y.value ? (r(), g(s(ya), b({ key: 0 }, s(i), {
|
|
814
814
|
id: s(p),
|
|
815
815
|
ref_key: "itemRef",
|
|
816
|
-
ref:
|
|
816
|
+
ref: x,
|
|
817
817
|
"data-slot": "command-item",
|
|
818
|
-
class: s(
|
|
818
|
+
class: s(C)("data-[state=checked]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 !py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", a.class),
|
|
819
819
|
onSelect: P[0] || (P[0] = () => {
|
|
820
820
|
s(m).search = "";
|
|
821
821
|
})
|
|
@@ -836,7 +836,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
836
836
|
setup(t) {
|
|
837
837
|
const e = t, a = D(e, "class"), o = q(a);
|
|
838
838
|
return (n, i) => (r(), g(s(xa), b({ "data-slot": "command-list" }, s(o), {
|
|
839
|
-
class: s(
|
|
839
|
+
class: s(C)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e.class)
|
|
840
840
|
}), {
|
|
841
841
|
default: u(() => [
|
|
842
842
|
c("div", Fs, [
|
|
@@ -858,7 +858,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
858
858
|
setup(t) {
|
|
859
859
|
const e = t, a = D(e, "class");
|
|
860
860
|
return (o, n) => (r(), g(s(Qe), b({ "data-slot": "command-separator" }, s(a), {
|
|
861
|
-
class: s(
|
|
861
|
+
class: s(C)("bg-border -mx-1 h-px", e.class)
|
|
862
862
|
}), {
|
|
863
863
|
default: u(() => [
|
|
864
864
|
d(o.$slots, "default")
|
|
@@ -875,7 +875,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
875
875
|
const e = t;
|
|
876
876
|
return (a, o) => (r(), l("span", {
|
|
877
877
|
"data-slot": "command-shortcut",
|
|
878
|
-
class:
|
|
878
|
+
class: k(s(C)("text-muted-foreground ml-auto text-xs tracking-widest", e.class))
|
|
879
879
|
}, [
|
|
880
880
|
d(a.$slots, "default")
|
|
881
881
|
], 2));
|
|
@@ -898,15 +898,15 @@ const Bs = /* @__PURE__ */ f({
|
|
|
898
898
|
setup(t, { emit: e }) {
|
|
899
899
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
900
900
|
return (p, m) => (r(), g(s(wa), b({ "data-slot": "switch" }, s(i), {
|
|
901
|
-
class: s(
|
|
901
|
+
class: s(C)(
|
|
902
902
|
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-background focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-6 w-11 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
903
903
|
a.class
|
|
904
904
|
)
|
|
905
905
|
}), {
|
|
906
906
|
default: u(() => [
|
|
907
|
-
|
|
907
|
+
_(s(ka), {
|
|
908
908
|
"data-slot": "switch-thumb",
|
|
909
|
-
class:
|
|
909
|
+
class: k(s(C)("bg-switch-thumb dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block h-5 w-5 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"))
|
|
910
910
|
}, {
|
|
911
911
|
default: u(() => [
|
|
912
912
|
d(p.$slots, "thumb")
|
|
@@ -980,11 +980,11 @@ const Bs = /* @__PURE__ */ f({
|
|
|
980
980
|
},
|
|
981
981
|
emits: ["toggle", "nodeClick"],
|
|
982
982
|
setup(t, { emit: e }) {
|
|
983
|
-
const a = t, o = e, n =
|
|
983
|
+
const a = t, o = e, n = w(() => a.expandedIds.includes(a.node.id)), i = () => {
|
|
984
984
|
o("toggle", a.node.id), o("nodeClick", a.node);
|
|
985
985
|
};
|
|
986
986
|
return (p, m) => {
|
|
987
|
-
const
|
|
987
|
+
const $ = be("TreeNode", !0);
|
|
988
988
|
return r(), l("li", null, [
|
|
989
989
|
c("button", {
|
|
990
990
|
type: "button",
|
|
@@ -994,18 +994,18 @@ const Bs = /* @__PURE__ */ f({
|
|
|
994
994
|
}, [
|
|
995
995
|
t.node.children?.length ? (r(), l("span", {
|
|
996
996
|
key: 0,
|
|
997
|
-
class:
|
|
997
|
+
class: k(["inline-flex w-3 justify-center text-muted-foreground transition-transform duration-200", n.value ? "rotate-90" : "rotate-0"])
|
|
998
998
|
}, " ▶ ", 2)) : z("", !0),
|
|
999
999
|
c("span", Hs, I(t.node.title), 1)
|
|
1000
1000
|
], 4),
|
|
1001
1001
|
n.value && t.node.children?.length ? (r(), l("ul", Gs, [
|
|
1002
|
-
(r(!0), l(F, null, G(t.node.children, (
|
|
1003
|
-
key:
|
|
1004
|
-
node:
|
|
1002
|
+
(r(!0), l(F, null, G(t.node.children, (h) => (r(), g($, {
|
|
1003
|
+
key: h.id,
|
|
1004
|
+
node: h,
|
|
1005
1005
|
level: t.level + 1,
|
|
1006
1006
|
"expanded-ids": t.expandedIds,
|
|
1007
|
-
onToggle: m[0] || (m[0] = (
|
|
1008
|
-
onNodeClick: m[1] || (m[1] = (
|
|
1007
|
+
onToggle: m[0] || (m[0] = (v) => o("toggle", v)),
|
|
1008
|
+
onNodeClick: m[1] || (m[1] = (v) => o("nodeClick", v))
|
|
1009
1009
|
}, null, 8, ["node", "level", "expanded-ids"]))), 128))
|
|
1010
1010
|
])) : z("", !0)
|
|
1011
1011
|
]);
|
|
@@ -1029,7 +1029,7 @@ const Bs = /* @__PURE__ */ f({
|
|
|
1029
1029
|
level: 0,
|
|
1030
1030
|
"expanded-ids": o.value,
|
|
1031
1031
|
onToggle: n,
|
|
1032
|
-
onNodeClick: p[0] || (p[0] = (
|
|
1032
|
+
onNodeClick: p[0] || (p[0] = ($) => a("nodeClick", $))
|
|
1033
1033
|
}, null, 8, ["node", "expanded-ids"]))), 128))
|
|
1034
1034
|
]));
|
|
1035
1035
|
}
|
|
@@ -1061,21 +1061,21 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1061
1061
|
i = null;
|
|
1062
1062
|
}
|
|
1063
1063
|
i && ue(je, { masked: a.masked });
|
|
1064
|
-
const p =
|
|
1064
|
+
const p = w(() => ({
|
|
1065
1065
|
value: a.modelValue,
|
|
1066
1066
|
onChange: n,
|
|
1067
1067
|
maxLength: a.maxLength,
|
|
1068
1068
|
disabled: a.disabled,
|
|
1069
1069
|
masked: a.masked
|
|
1070
1070
|
}));
|
|
1071
|
-
return i || (ue(Ks, p.value), ue(je, { masked: a.masked })), (m,
|
|
1071
|
+
return i || (ue(Ks, p.value), ue(je, { masked: a.masked })), (m, $) => s(i) ? (r(), g(Y(s(i)), {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
"data-slot": "input-otp",
|
|
1074
1074
|
"container-class": s(M)("flex items-center gap-2 has-disabled:opacity-50", a.containerClass),
|
|
1075
|
-
class:
|
|
1075
|
+
class: k(s(M)("disabled:cursor-not-allowed", a.class)),
|
|
1076
1076
|
"max-length": a.maxLength,
|
|
1077
1077
|
value: a.modelValue,
|
|
1078
|
-
onChange: (
|
|
1078
|
+
onChange: (h) => o("update:modelValue", h),
|
|
1079
1079
|
disabled: a.disabled
|
|
1080
1080
|
}, {
|
|
1081
1081
|
default: u(() => [
|
|
@@ -1085,7 +1085,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1085
1085
|
}, 40, ["container-class", "class", "max-length", "value", "onChange", "disabled"])) : (r(), l("div", {
|
|
1086
1086
|
key: 1,
|
|
1087
1087
|
"data-slot": "input-otp",
|
|
1088
|
-
class:
|
|
1088
|
+
class: k(s(M)("flex items-center gap-2 has-disabled:opacity-50", a.containerClass))
|
|
1089
1089
|
}, [
|
|
1090
1090
|
d(m.$slots, "default")
|
|
1091
1091
|
], 2));
|
|
@@ -1097,7 +1097,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1097
1097
|
const e = t;
|
|
1098
1098
|
return (a, o) => (r(), l("div", {
|
|
1099
1099
|
"data-slot": "input-otp-group",
|
|
1100
|
-
class:
|
|
1100
|
+
class: k(s(M)("flex items-center gap-1", e.class))
|
|
1101
1101
|
}, [
|
|
1102
1102
|
d(a.$slots, "default")
|
|
1103
1103
|
], 2));
|
|
@@ -1109,7 +1109,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1109
1109
|
__name: "InputOTPSeparator",
|
|
1110
1110
|
setup(t) {
|
|
1111
1111
|
return (e, a) => (r(), l("div", Xs, [
|
|
1112
|
-
|
|
1112
|
+
_(s(Ft), { class: "h-4 w-4" })
|
|
1113
1113
|
]));
|
|
1114
1114
|
}
|
|
1115
1115
|
}), Js = ["data-index", "data-active"], Zs = ["value"], Ys = { class: "pointer-events-none select-none relative z-10 flex items-center justify-center" }, Qs = {
|
|
@@ -1128,9 +1128,9 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1128
1128
|
},
|
|
1129
1129
|
setup(t) {
|
|
1130
1130
|
const e = t;
|
|
1131
|
-
|
|
1131
|
+
w(() => ""), w(() => {
|
|
1132
1132
|
});
|
|
1133
|
-
const a =
|
|
1133
|
+
const a = w(() => {
|
|
1134
1134
|
}), o = () => {
|
|
1135
1135
|
}, n = (i) => {
|
|
1136
1136
|
i.target.value;
|
|
@@ -1139,7 +1139,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1139
1139
|
"data-slot": "input-otp-slot",
|
|
1140
1140
|
"data-index": e.index,
|
|
1141
1141
|
"data-active": a.value,
|
|
1142
|
-
class:
|
|
1142
|
+
class: k(s(C)("data-[active=true]:border-ring data-[active=true]:ring-ring/50 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm bg-input-background transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px] cursor-text", e.class)),
|
|
1143
1143
|
onClick: o
|
|
1144
1144
|
}, [
|
|
1145
1145
|
c("input", {
|
|
@@ -1175,12 +1175,12 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1175
1175
|
const e = t;
|
|
1176
1176
|
return (a, o) => (r(), g(s(Ba), null, {
|
|
1177
1177
|
default: u(() => [
|
|
1178
|
-
|
|
1178
|
+
_(s(za), b({
|
|
1179
1179
|
"data-slot": "popover-content",
|
|
1180
1180
|
align: e.align,
|
|
1181
1181
|
"side-offset": e.sideOffset,
|
|
1182
1182
|
class: s(M)(
|
|
1183
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
1183
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-md border border-border p-4 shadow-md outline-hidden",
|
|
1184
1184
|
e.class
|
|
1185
1185
|
)
|
|
1186
1186
|
}, a.$attrs), {
|
|
@@ -1293,24 +1293,24 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1293
1293
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
1294
1294
|
return (p, m) => (r(), g(s(Da), null, {
|
|
1295
1295
|
default: u(() => [
|
|
1296
|
-
|
|
1297
|
-
class: s(
|
|
1298
|
-
"bg-
|
|
1296
|
+
_(s(Va), b({ "data-slot": "select-content" }, { ...s(i), ...p.$attrs }, {
|
|
1297
|
+
class: s(C)(
|
|
1298
|
+
"!bg-neutral-800 !text-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-lg shadow-md",
|
|
1299
1299
|
t.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1300
1300
|
a.class
|
|
1301
1301
|
)
|
|
1302
1302
|
}), {
|
|
1303
1303
|
default: u(() => [
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
class:
|
|
1304
|
+
_(s(io)),
|
|
1305
|
+
_(s(Pa), {
|
|
1306
|
+
class: k(s(C)("p-1", t.position === "popper" && "h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)] scroll-my-1"))
|
|
1307
1307
|
}, {
|
|
1308
1308
|
default: u(() => [
|
|
1309
1309
|
d(p.$slots, "default")
|
|
1310
1310
|
]),
|
|
1311
1311
|
_: 3
|
|
1312
1312
|
}, 8, ["class"]),
|
|
1313
|
-
|
|
1313
|
+
_(s(lo))
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 3
|
|
1316
1316
|
}, 16, ["class"])
|
|
@@ -1331,21 +1331,21 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1331
1331
|
setup(t) {
|
|
1332
1332
|
const e = t, a = D(e, "class"), o = q(a);
|
|
1333
1333
|
return (n, i) => (r(), g(s(Aa), b({ "data-slot": "select-item" }, s(o), {
|
|
1334
|
-
class: s(
|
|
1335
|
-
"
|
|
1334
|
+
class: s(C)(
|
|
1335
|
+
"!text-white hover:!bg-neutral-700 focus:!bg-neutral-700 data-[state=checked]:!bg-neutral-700 aria-selected:!bg-neutral-700 [&_svg:not([class*='text-'])]:!text-white relative flex w-full cursor-pointer items-center gap-2 rounded-md py-2 pr-8 pl-3 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
1336
1336
|
e.class
|
|
1337
1337
|
)
|
|
1338
1338
|
}), {
|
|
1339
1339
|
default: u(() => [
|
|
1340
1340
|
c("span", no, [
|
|
1341
|
-
|
|
1341
|
+
_(s(Oa), null, {
|
|
1342
1342
|
default: u(() => [
|
|
1343
|
-
|
|
1343
|
+
_(s(Et), { class: "size-4" })
|
|
1344
1344
|
]),
|
|
1345
1345
|
_: 1
|
|
1346
1346
|
})
|
|
1347
1347
|
]),
|
|
1348
|
-
|
|
1348
|
+
_(s(ja), null, {
|
|
1349
1349
|
default: u(() => [
|
|
1350
1350
|
d(n.$slots, "default")
|
|
1351
1351
|
]),
|
|
@@ -1365,11 +1365,11 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1365
1365
|
setup(t) {
|
|
1366
1366
|
const e = t, a = D(e, "class"), o = q(a);
|
|
1367
1367
|
return (n, i) => (r(), g(s(La), b({ "data-slot": "select-scroll-down-button" }, s(o), {
|
|
1368
|
-
class: s(
|
|
1368
|
+
class: s(C)("flex cursor-default items-center justify-center py-1", e.class)
|
|
1369
1369
|
}), {
|
|
1370
1370
|
default: u(() => [
|
|
1371
1371
|
d(n.$slots, "default", {}, () => [
|
|
1372
|
-
|
|
1372
|
+
_(s(ze), { class: "size-4" })
|
|
1373
1373
|
])
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 3
|
|
@@ -1385,11 +1385,11 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1385
1385
|
setup(t) {
|
|
1386
1386
|
const e = t, a = D(e, "class"), o = q(a);
|
|
1387
1387
|
return (n, i) => (r(), g(s(Ra), b({ "data-slot": "select-scroll-up-button" }, s(o), {
|
|
1388
|
-
class: s(
|
|
1388
|
+
class: s(C)("flex cursor-default items-center justify-center py-1", e.class)
|
|
1389
1389
|
}), {
|
|
1390
1390
|
default: u(() => [
|
|
1391
1391
|
d(n.$slots, "default", {}, () => [
|
|
1392
|
-
|
|
1392
|
+
_(s(Nt), { class: "size-4" })
|
|
1393
1393
|
])
|
|
1394
1394
|
]),
|
|
1395
1395
|
_: 3
|
|
@@ -1411,16 +1411,16 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1411
1411
|
"data-slot": "select-trigger",
|
|
1412
1412
|
"data-size": t.size
|
|
1413
1413
|
}, s(o), {
|
|
1414
|
-
class: s(
|
|
1415
|
-
"border-input data-[placeholder]
|
|
1414
|
+
class: s(C)(
|
|
1415
|
+
"!border-input !bg-input-background hover:!bg-select-hover focus-visible:!border-ring focus-visible:!ring-ring/50 data-[placeholder]:!text-gray-400 [&_svg:not([class*='text-'])]:!text-gray-400 focus-visible:!ring-blue-500/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between gap-2 rounded-lg !border px-4 py-2.5 text-sm !text-white transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1416
1416
|
e.class
|
|
1417
1417
|
)
|
|
1418
1418
|
}), {
|
|
1419
1419
|
default: u(() => [
|
|
1420
1420
|
d(n.$slots, "default"),
|
|
1421
|
-
|
|
1421
|
+
_(s(Ea), { "as-child": "" }, {
|
|
1422
1422
|
default: u(() => [
|
|
1423
|
-
|
|
1423
|
+
_(s(ze), { class: "size-4 opacity-50" })
|
|
1424
1424
|
]),
|
|
1425
1425
|
_: 1
|
|
1426
1426
|
})
|
|
@@ -1455,7 +1455,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1455
1455
|
return (a, o) => (r(), g(s(lt), b({
|
|
1456
1456
|
"data-slot": "select-content",
|
|
1457
1457
|
class: s(M)(
|
|
1458
|
-
"bg-
|
|
1458
|
+
"bg-gray-800 text-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] origin-(--reka-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border border-gray-700 shadow-md p-1",
|
|
1459
1459
|
e.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1460
1460
|
e.class
|
|
1461
1461
|
),
|
|
@@ -1490,7 +1490,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1490
1490
|
"data-slot": "select-trigger",
|
|
1491
1491
|
"data-size": t.size,
|
|
1492
1492
|
class: s(M)(
|
|
1493
|
-
"border-input data-[placeholder]:text-
|
|
1493
|
+
"justify-between border-input bg-input-background hover:bg-select-hover focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] data-[placeholder]:text-gray-400 [&_svg:not([class*='text-'])]:text-gray-400 focus-visible:ring-blue-500/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center gap-2 border px-4 py-2.5 text-sm text-white transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:min-h-9 data-[size=sm]:min-h-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:overflow-hidden [&_[data-slot=select-value]_div]:flex [&_[data-slot=select-value]_div]:items-center [&_[data-slot=select-value]_div]:gap-2 [&_[data-slot=select-value]_.text-xs]:hidden [&_[data-slot=select-value]_svg]:shrink-0",
|
|
1494
1494
|
e.$props.class
|
|
1495
1495
|
)
|
|
1496
1496
|
}, e.$attrs), {
|
|
@@ -1525,7 +1525,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1525
1525
|
value: e.value,
|
|
1526
1526
|
"data-slot": "select-item",
|
|
1527
1527
|
class: s(M)(
|
|
1528
|
-
"
|
|
1528
|
+
"text-white hover:bg-gray-700 focus:bg-gray-700 [&_svg:not([class*='text-'])]:text-gray-400 relative flex w-full cursor-pointer items-center gap-2 rounded-md py-2 pr-8 pl-3 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
1529
1529
|
e.class
|
|
1530
1530
|
)
|
|
1531
1531
|
}, a.$attrs), {
|
|
@@ -1545,8 +1545,8 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1545
1545
|
const e = t;
|
|
1546
1546
|
return (a, o) => (r(), l("div", {
|
|
1547
1547
|
"data-slot": "sheet-content",
|
|
1548
|
-
class:
|
|
1549
|
-
s(
|
|
1548
|
+
class: k([
|
|
1549
|
+
s(C)(
|
|
1550
1550
|
"bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
|
|
1551
1551
|
t.side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
1552
1552
|
t.side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -1587,7 +1587,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1587
1587
|
const e = t;
|
|
1588
1588
|
return (a, o) => (r(), l("p", {
|
|
1589
1589
|
"data-slot": "sheet-description",
|
|
1590
|
-
class:
|
|
1590
|
+
class: k(s(C)("text-muted-foreground text-sm", e.class))
|
|
1591
1591
|
}, [
|
|
1592
1592
|
d(a.$slots, "default")
|
|
1593
1593
|
], 2));
|
|
@@ -1601,7 +1601,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1601
1601
|
const e = t;
|
|
1602
1602
|
return (a, o) => (r(), l("div", {
|
|
1603
1603
|
"data-slot": "sheet-header",
|
|
1604
|
-
class:
|
|
1604
|
+
class: k(s(C)("flex flex-col gap-1.5 p-4", e.class))
|
|
1605
1605
|
}, [
|
|
1606
1606
|
d(a.$slots, "default")
|
|
1607
1607
|
], 2));
|
|
@@ -1615,7 +1615,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1615
1615
|
const e = t;
|
|
1616
1616
|
return (a, o) => (r(), l("h2", {
|
|
1617
1617
|
"data-slot": "sheet-title",
|
|
1618
|
-
class:
|
|
1618
|
+
class: k(s(C)("text-foreground font-semibold", e.class))
|
|
1619
1619
|
}, [
|
|
1620
1620
|
d(a.$slots, "default")
|
|
1621
1621
|
], 2));
|
|
@@ -1627,7 +1627,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1627
1627
|
return (a, o) => (r(), g(s(Bs), b({ "data-slot": "accordion-content" }, s(e), { class: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }), {
|
|
1628
1628
|
default: u(() => [
|
|
1629
1629
|
c("div", {
|
|
1630
|
-
class:
|
|
1630
|
+
class: k(s(C)("pt-0 pb-4", s(e).class))
|
|
1631
1631
|
}, [
|
|
1632
1632
|
d(a.$slots, "default")
|
|
1633
1633
|
], 2)
|
|
@@ -1642,7 +1642,7 @@ const Ks = Symbol("InputOTPContext"), je = Symbol("InputOTPMaskContext"), Ad = /
|
|
|
1642
1642
|
},
|
|
1643
1643
|
setup(t) {
|
|
1644
1644
|
const e = t;
|
|
1645
|
-
return (a, o) => (r(), g(s(zs), b({ "data-slot": "accordion-item" }, { ...a.$attrs, class: s(
|
|
1645
|
+
return (a, o) => (r(), g(s(zs), b({ "data-slot": "accordion-item" }, { ...a.$attrs, class: s(C)("border-b last:border-b-0", e.class) }), {
|
|
1646
1646
|
default: u(() => [
|
|
1647
1647
|
d(a.$slots, "default")
|
|
1648
1648
|
]),
|
|
@@ -1737,14 +1737,14 @@ const Wd = {
|
|
|
1737
1737
|
"soft-primary": "border-cyan-200 bg-cyan-50 text-cyan-700 [&>svg]:text-cyan-600 dark:border-cyan-800 dark:bg-cyan-950 dark:text-cyan-300 dark:[&>svg]:text-cyan-400",
|
|
1738
1738
|
"soft-secondary": "border-gray-200 bg-gray-50 text-gray-700 [&>svg]:text-gray-600 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:[&>svg]:text-gray-400",
|
|
1739
1739
|
"soft-neutral": "border-stone-200 bg-stone-50 text-stone-700 [&>svg]:text-stone-600 dark:border-stone-700 dark:bg-stone-900 dark:text-stone-300 dark:[&>svg]:text-stone-400"
|
|
1740
|
-
}, n =
|
|
1740
|
+
}, n = w(
|
|
1741
1741
|
() => "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current " + (o[a.variant] || o.default) + (a.class ? " " + a.class : "")
|
|
1742
1742
|
);
|
|
1743
1743
|
return (i, p) => t.visible ? (r(), l("div", {
|
|
1744
1744
|
key: 0,
|
|
1745
1745
|
"data-slot": "alert",
|
|
1746
1746
|
role: "alert",
|
|
1747
|
-
class:
|
|
1747
|
+
class: k(n.value)
|
|
1748
1748
|
}, [
|
|
1749
1749
|
d(i.$slots, "default"),
|
|
1750
1750
|
t.dismissible ? (r(), l("button", {
|
|
@@ -1754,7 +1754,7 @@ const Wd = {
|
|
|
1754
1754
|
class: "absolute right-2 top-2 p-1 h-6 w-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none inline-flex items-center justify-center text-current hover:bg-muted",
|
|
1755
1755
|
onClick: p[0] || (p[0] = (m) => i.$emit("dismiss"))
|
|
1756
1756
|
}, [
|
|
1757
|
-
|
|
1757
|
+
_(s(he), { class: "size-4" }),
|
|
1758
1758
|
p[1] || (p[1] = c("span", { class: "sr-only" }, "Close alert", -1))
|
|
1759
1759
|
])) : z("", !0)
|
|
1760
1760
|
], 2)) : z("", !0);
|
|
@@ -1768,7 +1768,7 @@ const Wd = {
|
|
|
1768
1768
|
const e = t;
|
|
1769
1769
|
return (a, o) => (r(), g(s(Ha), {
|
|
1770
1770
|
"data-slot": "avatar",
|
|
1771
|
-
class:
|
|
1771
|
+
class: k(s(C)("relative flex size-8 shrink-0 overflow-hidden rounded-full", e.class))
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: u(() => [
|
|
1774
1774
|
d(a.$slots, "default")
|
|
@@ -1787,7 +1787,7 @@ const Wd = {
|
|
|
1787
1787
|
setup(t) {
|
|
1788
1788
|
const e = t, a = D(e, "class");
|
|
1789
1789
|
return (o, n) => (r(), g(s(Ga), b({ "data-slot": "avatar-fallback" }, s(a), {
|
|
1790
|
-
class: s(
|
|
1790
|
+
class: s(C)("bg-muted flex size-full items-center justify-center rounded-full", e.class)
|
|
1791
1791
|
}), {
|
|
1792
1792
|
default: u(() => [
|
|
1793
1793
|
d(o.$slots, "default")
|
|
@@ -1876,7 +1876,7 @@ const Wd = {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
},
|
|
1878
1878
|
setup(t) {
|
|
1879
|
-
const e = t, a =
|
|
1879
|
+
const e = t, a = w(
|
|
1880
1880
|
() => M(
|
|
1881
1881
|
"flex",
|
|
1882
1882
|
e.spacing === "tight" && "-space-x-1",
|
|
@@ -1972,7 +1972,7 @@ const Wd = {
|
|
|
1972
1972
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/90",
|
|
1973
1973
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90",
|
|
1974
1974
|
destructive: "border-transparent bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
1975
|
-
outline: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
1975
|
+
outline: "border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
1976
1976
|
"soft-primary": "border-blue-200 bg-blue-50 text-blue-700 hover:bg-blue-100 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-300 dark:hover:bg-blue-900",
|
|
1977
1977
|
"soft-secondary": "border-gray-200 bg-gray-50 text-gray-700 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800",
|
|
1978
1978
|
"soft-success": "border-green-200 bg-green-50 text-green-700 hover:bg-green-100 dark:border-green-800 dark:bg-green-950 dark:text-green-300 dark:hover:bg-green-900",
|
|
@@ -1990,8 +1990,8 @@ const Wd = {
|
|
|
1990
1990
|
md: "text-[14px] px-[6px] py-[2px] rounded-[4px] [&>svg:not(.dismiss-icon)]:size-[12px] gap-1",
|
|
1991
1991
|
lg: "text-[16px] px-[8px] py-[4px] rounded-[6px] [&>svg:not(.dismiss-icon)]:size-[14px] gap-1"
|
|
1992
1992
|
};
|
|
1993
|
-
function i(
|
|
1994
|
-
switch (
|
|
1993
|
+
function i($) {
|
|
1994
|
+
switch ($) {
|
|
1995
1995
|
case "sm":
|
|
1996
1996
|
return { iconClass: "h-3 w-3", buttonClass: "p-0.5" };
|
|
1997
1997
|
case "lg":
|
|
@@ -2001,7 +2001,7 @@ const Wd = {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
const { iconClass: p, buttonClass: m } = i(e.size);
|
|
2004
|
-
return (
|
|
2004
|
+
return ($, h) => (r(), l("span", b({
|
|
2005
2005
|
"data-slot": "badge",
|
|
2006
2006
|
class: s(M)(
|
|
2007
2007
|
"inline-flex items-center justify-center border font-medium w-fit whitespace-nowrap shrink-0 [&>svg:not(.dismiss-icon)]:pointer-events-none [&>svg:not(.dismiss-icon)]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
@@ -2011,16 +2011,16 @@ const Wd = {
|
|
|
2011
2011
|
s(a).class
|
|
2012
2012
|
)
|
|
2013
2013
|
}, s(a)), [
|
|
2014
|
-
d(
|
|
2014
|
+
d($.$slots, "default"),
|
|
2015
2015
|
e.dismissible && e.onDismiss ? (r(), l("button", {
|
|
2016
2016
|
key: 0,
|
|
2017
2017
|
type: "button",
|
|
2018
|
-
onClick:
|
|
2019
|
-
class:
|
|
2018
|
+
onClick: h[0] || (h[0] = Dt((v) => e.onDismiss(), ["stop"])),
|
|
2019
|
+
class: k(s(M)("dismiss-icon rounded-sm opacity-70 hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-1 focus:ring-ring transition-opacity", s(m))),
|
|
2020
2020
|
"aria-label": "Remove"
|
|
2021
2021
|
}, [
|
|
2022
|
-
|
|
2023
|
-
class:
|
|
2022
|
+
_(s(he), {
|
|
2023
|
+
class: k(s(p))
|
|
2024
2024
|
}, null, 8, ["class"])
|
|
2025
2025
|
], 2)) : z("", !0)
|
|
2026
2026
|
], 16));
|
|
@@ -2081,7 +2081,7 @@ const Wd = {
|
|
|
2081
2081
|
},
|
|
2082
2082
|
emits: ["click"],
|
|
2083
2083
|
setup(t, { emit: e }) {
|
|
2084
|
-
const a = t, o = U(), n =
|
|
2084
|
+
const a = t, o = U(), n = w(() => {
|
|
2085
2085
|
switch (a.variant) {
|
|
2086
2086
|
case "destructive":
|
|
2087
2087
|
return "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60";
|
|
@@ -2096,7 +2096,7 @@ const Wd = {
|
|
|
2096
2096
|
default:
|
|
2097
2097
|
return "bg-primary text-primary-foreground hover:bg-primary/90";
|
|
2098
2098
|
}
|
|
2099
|
-
}), i =
|
|
2099
|
+
}), i = w(() => {
|
|
2100
2100
|
switch (a.size) {
|
|
2101
2101
|
case "sm":
|
|
2102
2102
|
return "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5";
|
|
@@ -2110,11 +2110,11 @@ const Wd = {
|
|
|
2110
2110
|
});
|
|
2111
2111
|
return (p, m) => (r(), g(Y(t.asChild ? "span" : "button"), b({
|
|
2112
2112
|
"data-slot": "button",
|
|
2113
|
-
class: s(
|
|
2113
|
+
class: s(C)(xo, n.value, i.value, s(o).class)
|
|
2114
2114
|
}, s(o), {
|
|
2115
2115
|
type: t.asChild ? void 0 : t.type,
|
|
2116
2116
|
disabled: t.disabled,
|
|
2117
|
-
onClick: m[0] || (m[0] = (
|
|
2117
|
+
onClick: m[0] || (m[0] = ($) => p.$emit("click", $))
|
|
2118
2118
|
}), {
|
|
2119
2119
|
default: u(() => [
|
|
2120
2120
|
d(p.$slots, "default")
|
|
@@ -2195,7 +2195,7 @@ const Wd = {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
},
|
|
2197
2197
|
setup(t) {
|
|
2198
|
-
const e = t, a =
|
|
2198
|
+
const e = t, a = w(() => {
|
|
2199
2199
|
if (e.variant === "corner-cut")
|
|
2200
2200
|
switch (e.cornerPosition) {
|
|
2201
2201
|
case "top-left":
|
|
@@ -2209,7 +2209,7 @@ const Wd = {
|
|
|
2209
2209
|
default:
|
|
2210
2210
|
return;
|
|
2211
2211
|
}
|
|
2212
|
-
}), o =
|
|
2212
|
+
}), o = w(() => {
|
|
2213
2213
|
if (e.variant !== "corner-cut") return "";
|
|
2214
2214
|
switch (e.cornerPosition) {
|
|
2215
2215
|
case "top-left":
|
|
@@ -2224,12 +2224,12 @@ const Wd = {
|
|
|
2224
2224
|
});
|
|
2225
2225
|
return (n, i) => e.variant === "corner-cut" ? (r(), l("div", wo, [
|
|
2226
2226
|
c("div", {
|
|
2227
|
-
class:
|
|
2227
|
+
class: k(s(M)("absolute inset-0 bg-border/60 rounded")),
|
|
2228
2228
|
style: H({ clipPath: a.value })
|
|
2229
2229
|
}, null, 6),
|
|
2230
2230
|
c("div", b({
|
|
2231
2231
|
"data-slot": "card",
|
|
2232
|
-
class: s(M)("bg-card text-card-foreground flex flex-col gap-3 relative rounded", o.value, n.$attrs.class),
|
|
2232
|
+
class: s(M)("bg-card text-card-foreground flex flex-col gap-3 relative rounded shadow-sm", o.value, n.$attrs.class),
|
|
2233
2233
|
style: { clipPath: a.value, margin: "1px" }
|
|
2234
2234
|
}, n.$attrs), [
|
|
2235
2235
|
d(n.$slots, "default")
|
|
@@ -2237,7 +2237,7 @@ const Wd = {
|
|
|
2237
2237
|
])) : (r(), l("div", b({
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
"data-slot": "card",
|
|
2240
|
-
class: s(M)("bg-
|
|
2240
|
+
class: s(M)("bg-gray-900 text-card-foreground flex flex-col gap-3 relative rounded-xl border border-gray-800 shadow-sm", n.$attrs.class)
|
|
2241
2241
|
}, n.$attrs), [
|
|
2242
2242
|
d(n.$slots, "default")
|
|
2243
2243
|
], 16));
|
|
@@ -2272,7 +2272,7 @@ const Wd = {
|
|
|
2272
2272
|
"delay-duration": e.delayDuration
|
|
2273
2273
|
}, {
|
|
2274
2274
|
default: u(() => [
|
|
2275
|
-
|
|
2275
|
+
_(s(Ms), b({ "data-slot": "tooltip" }, e), {
|
|
2276
2276
|
default: u(() => [
|
|
2277
2277
|
d(a.$slots, "default")
|
|
2278
2278
|
]),
|
|
@@ -2371,100 +2371,100 @@ const Wd = {
|
|
|
2371
2371
|
isLoading: Boolean
|
|
2372
2372
|
},
|
|
2373
2373
|
setup(t) {
|
|
2374
|
-
const e = t, a =
|
|
2375
|
-
let
|
|
2376
|
-
return a.value?.map((
|
|
2377
|
-
const
|
|
2378
|
-
return
|
|
2379
|
-
...
|
|
2380
|
-
value:
|
|
2374
|
+
const e = t, a = w(() => e.categories?.filter((h) => (e.data[h.name] ?? 0) > 0)), o = w(() => a.value?.reduce((h, v) => h + (e.data[v.name] || 0), 0)), n = w(() => {
|
|
2375
|
+
let h = 0;
|
|
2376
|
+
return a.value?.map((v, y) => {
|
|
2377
|
+
const x = e.data[v.name] || 0, B = (o.value > 0 ? x / o.value : 0) * 100, P = h;
|
|
2378
|
+
return h += B, {
|
|
2379
|
+
...v,
|
|
2380
|
+
value: x,
|
|
2381
2381
|
boundaryPosition: P,
|
|
2382
2382
|
percentage: B,
|
|
2383
|
-
index:
|
|
2383
|
+
index: y
|
|
2384
2384
|
};
|
|
2385
2385
|
});
|
|
2386
|
-
}), i =
|
|
2387
|
-
const
|
|
2388
|
-
for (let
|
|
2389
|
-
const
|
|
2390
|
-
n.value[
|
|
2386
|
+
}), i = w(() => {
|
|
2387
|
+
const h = n.value?.map(() => !0);
|
|
2388
|
+
for (let v = 0; v < n.value?.length - 1; v++) {
|
|
2389
|
+
const y = n.value[v];
|
|
2390
|
+
n.value[v + 1].boundaryPosition - y.boundaryPosition < Le && (h[v] = !1);
|
|
2391
2391
|
}
|
|
2392
|
-
return n.value?.length > 0 && 100 - n.value[n.value?.length - 1].boundaryPosition < Le && (
|
|
2393
|
-
}), p =
|
|
2394
|
-
if (
|
|
2395
|
-
return { ...
|
|
2396
|
-
const B = n.value[
|
|
2397
|
-
return { ...
|
|
2398
|
-
})), m =
|
|
2399
|
-
const
|
|
2400
|
-
let
|
|
2401
|
-
for (e.categories?.forEach((
|
|
2402
|
-
const
|
|
2392
|
+
return n.value?.length > 0 && 100 - n.value[n.value?.length - 1].boundaryPosition < Le && (h[n.value?.length - 1] = !1), h;
|
|
2393
|
+
}), p = w(() => n.value?.map((h, v) => {
|
|
2394
|
+
if (v === n.value?.length - 1)
|
|
2395
|
+
return { ...h, isVisible: !0 };
|
|
2396
|
+
const B = n.value[v + 1].boundaryPosition - h.boundaryPosition >= 15;
|
|
2397
|
+
return { ...h, isVisible: B };
|
|
2398
|
+
})), m = w(() => {
|
|
2399
|
+
const h = [];
|
|
2400
|
+
let v = 0;
|
|
2401
|
+
for (e.categories?.forEach((y) => {
|
|
2402
|
+
const x = e.data[y.name] || 0, S = a.value.find((R) => R.name === y.name), B = o.value > 0 && S ? x / o.value : 0, P = Math.round(B * Re);
|
|
2403
2403
|
for (let R = 0; R < P; R++)
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
});
|
|
2407
|
-
let
|
|
2408
|
-
a.value && (
|
|
2409
|
-
const
|
|
2410
|
-
|
|
2404
|
+
h.push({ color: y.color, position: v + R });
|
|
2405
|
+
v += P;
|
|
2406
|
+
}); h?.length < Re; ) {
|
|
2407
|
+
let y;
|
|
2408
|
+
a.value && (y = a.value[a.value?.length - 1]);
|
|
2409
|
+
const x = y?.color || e.categories && e.categories[e.categories?.length - 1]?.color || "#9ca3af";
|
|
2410
|
+
h.push({ color: x, position: h?.length });
|
|
2411
2411
|
}
|
|
2412
|
-
return
|
|
2413
|
-
}),
|
|
2414
|
-
return (
|
|
2412
|
+
return h;
|
|
2413
|
+
}), $ = w(() => o.value === 0);
|
|
2414
|
+
return (h, v) => $.value ? (r(), l("div", ko, [...v[0] || (v[0] = [
|
|
2415
2415
|
c("span", { class: "text-gray-400 text-sm" }, "No data available", -1)
|
|
2416
2416
|
])])) : (r(), g(pt, { key: 1 }, {
|
|
2417
2417
|
default: u(() => [
|
|
2418
|
-
|
|
2418
|
+
_(ft, null, {
|
|
2419
2419
|
default: u(() => [
|
|
2420
|
-
|
|
2420
|
+
_(gt, { "as-child": "" }, {
|
|
2421
2421
|
default: u(() => [
|
|
2422
2422
|
c("div", $o, [
|
|
2423
|
-
(r(!0), l(F, null, G(n.value, (
|
|
2424
|
-
key:
|
|
2423
|
+
(r(!0), l(F, null, G(n.value, (y, x) => (r(), l(F, {
|
|
2424
|
+
key: y.name
|
|
2425
2425
|
}, [
|
|
2426
|
-
i.value[
|
|
2427
|
-
|
|
2426
|
+
i.value[x] ? (r(), l("div", So, [
|
|
2427
|
+
x !== n.value?.length - 1 ? (r(), l("div", {
|
|
2428
2428
|
key: 0,
|
|
2429
2429
|
class: "absolute box-border content-stretch flex flex-col gap-[4px] py-0 top-[0.33px] items-start",
|
|
2430
|
-
style: H({ left:
|
|
2430
|
+
style: H({ left: y.boundaryPosition + "%", transform: "translateX(8px)" })
|
|
2431
2431
|
}, [
|
|
2432
|
-
c("p", Co, I(
|
|
2432
|
+
c("p", Co, I(y.label || y.name), 1),
|
|
2433
2433
|
c("p", {
|
|
2434
2434
|
class: "leading-[20px] text-[24px]",
|
|
2435
|
-
style: H({ color:
|
|
2436
|
-
}, I(
|
|
2435
|
+
style: H({ color: y.color })
|
|
2436
|
+
}, I(y.value), 5)
|
|
2437
2437
|
], 4)) : (r(), l("div", {
|
|
2438
2438
|
key: 1,
|
|
2439
2439
|
class: "absolute box-border content-stretch flex flex-col gap-[4px] py-0 top-[0.33px]",
|
|
2440
2440
|
style: H({
|
|
2441
|
-
left:
|
|
2442
|
-
transform: 100 -
|
|
2443
|
-
textAlign: 100 -
|
|
2441
|
+
left: y.boundaryPosition + "%",
|
|
2442
|
+
transform: 100 - y.boundaryPosition < 6 ? "translateX(calc(-100% - 8px))" : "translateX(8px)",
|
|
2443
|
+
textAlign: 100 - y.boundaryPosition < 6 ? "right" : "left"
|
|
2444
2444
|
})
|
|
2445
2445
|
}, [
|
|
2446
|
-
c("p", Bo, I(
|
|
2446
|
+
c("p", Bo, I(y.label || y.name), 1),
|
|
2447
2447
|
c("p", {
|
|
2448
2448
|
class: "leading-[20px] text-[24px]",
|
|
2449
|
-
style: H({ color:
|
|
2450
|
-
}, I(
|
|
2449
|
+
style: H({ color: y.color })
|
|
2450
|
+
}, I(y.value), 5)
|
|
2451
2451
|
], 4))
|
|
2452
2452
|
])) : z("", !0)
|
|
2453
2453
|
], 64))), 128)),
|
|
2454
|
-
(r(!0), l(F, null, G(n.value, (
|
|
2455
|
-
key: "line-" +
|
|
2454
|
+
(r(!0), l(F, null, G(n.value, (y, x) => (r(), l(F, {
|
|
2455
|
+
key: "line-" + x
|
|
2456
2456
|
}, [
|
|
2457
|
-
|
|
2457
|
+
x !== 0 ? (r(), l("div", {
|
|
2458
2458
|
key: 0,
|
|
2459
2459
|
class: "absolute flex h-[75px] items-center justify-center top-0 w-[0px] overflow-visible",
|
|
2460
|
-
style: H({ left: n.value.slice(0,
|
|
2460
|
+
style: H({ left: n.value.slice(0, x).reduce((S, B) => S + B.percentage, 0) + "%" })
|
|
2461
2461
|
}, [
|
|
2462
2462
|
c("div", zo, [
|
|
2463
2463
|
c("div", Io, [
|
|
2464
2464
|
c("div", Mo, [
|
|
2465
2465
|
(r(), l("svg", To, [
|
|
2466
2466
|
c("line", {
|
|
2467
|
-
stroke:
|
|
2467
|
+
stroke: y.color,
|
|
2468
2468
|
x2: "75",
|
|
2469
2469
|
y1: "0.5",
|
|
2470
2470
|
y2: "0.5"
|
|
@@ -2492,14 +2492,14 @@ const Wd = {
|
|
|
2492
2492
|
])
|
|
2493
2493
|
]),
|
|
2494
2494
|
c("div", Ro, [
|
|
2495
|
-
(r(!0), l(F, null, G(m.value, (
|
|
2496
|
-
key:
|
|
2495
|
+
(r(!0), l(F, null, G(m.value, (y, x) => (r(), l("div", {
|
|
2496
|
+
key: x,
|
|
2497
2497
|
class: "flex items-center justify-center relative shrink-0"
|
|
2498
2498
|
}, [
|
|
2499
2499
|
c("div", Fo, [
|
|
2500
2500
|
c("div", {
|
|
2501
2501
|
class: "h-[24px] w-px",
|
|
2502
|
-
style: H({ backgroundColor:
|
|
2502
|
+
style: H({ backgroundColor: $.value ? "#9ca3af" : y.color })
|
|
2503
2503
|
}, null, 4)
|
|
2504
2504
|
])
|
|
2505
2505
|
]))), 128))
|
|
@@ -2508,32 +2508,32 @@ const Wd = {
|
|
|
2508
2508
|
]),
|
|
2509
2509
|
_: 1
|
|
2510
2510
|
}),
|
|
2511
|
-
|
|
2511
|
+
_(mt, { variant: "outline" }, {
|
|
2512
2512
|
default: u(() => [
|
|
2513
2513
|
c("div", Eo, [
|
|
2514
|
-
|
|
2514
|
+
v[2] || (v[2] = c("p", { class: "font-medium text-sm" }, "Threat Breakdown", -1)),
|
|
2515
2515
|
c("div", No, [
|
|
2516
|
-
(r(!0), l(F, null, G(e.categories, (
|
|
2517
|
-
key:
|
|
2516
|
+
(r(!0), l(F, null, G(e.categories, (y) => (r(), l("div", {
|
|
2517
|
+
key: y.name,
|
|
2518
2518
|
class: "flex items-center justify-between gap-4"
|
|
2519
2519
|
}, [
|
|
2520
2520
|
c("div", Uo, [
|
|
2521
2521
|
c("div", {
|
|
2522
2522
|
class: "w-2 h-2 rounded-full flex-shrink-0",
|
|
2523
|
-
style: H({ backgroundColor:
|
|
2523
|
+
style: H({ backgroundColor: y.color })
|
|
2524
2524
|
}, null, 4),
|
|
2525
|
-
c("span", Ho, I(
|
|
2525
|
+
c("span", Ho, I(y.label || y.name), 1)
|
|
2526
2526
|
]),
|
|
2527
2527
|
c("span", {
|
|
2528
2528
|
class: "text-sm font-mono",
|
|
2529
|
-
style: H({ color:
|
|
2530
|
-
}, I(e.data[
|
|
2529
|
+
style: H({ color: y.color })
|
|
2530
|
+
}, I(e.data[y.name] || 0), 5)
|
|
2531
2531
|
]))), 128))
|
|
2532
2532
|
]),
|
|
2533
2533
|
c("div", Go, [
|
|
2534
2534
|
c("div", Wo, [
|
|
2535
|
-
|
|
2536
|
-
c("span", qo, I(e.categories.reduce((
|
|
2535
|
+
v[1] || (v[1] = c("span", { class: "text-sm font-medium" }, "Total", -1)),
|
|
2536
|
+
c("span", qo, I(e.categories.reduce((y, x) => y + (e.data[x.name] || 0), 0).toLocaleString()), 1)
|
|
2537
2537
|
])
|
|
2538
2538
|
])
|
|
2539
2539
|
])
|
|
@@ -2621,7 +2621,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2621
2621
|
class: { type: String, default: "" }
|
|
2622
2622
|
},
|
|
2623
2623
|
setup(t) {
|
|
2624
|
-
const e = t, a =
|
|
2624
|
+
const e = t, a = w(() => e.id || `checkbox-${Math.random().toString(36).substr(2, 9)}`), o = w(() => [
|
|
2625
2625
|
"peer appearance-none border bg-input-background dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2626
2626
|
e.validationState === "error" ? "border-red-500 checked:bg-red-500 checked:border-red-500" : "",
|
|
2627
2627
|
e.validationState === "success" ? "border-green-500 checked:bg-green-500 checked:border-green-500" : "",
|
|
@@ -2642,10 +2642,10 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2642
2642
|
onChange: i[0] || (i[0] = (p) => n.$emit("update:modelValue", p.target.checked))
|
|
2643
2643
|
}), null, 16, er),
|
|
2644
2644
|
t.modelValue ? (r(), l("span", tr, [
|
|
2645
|
-
|
|
2645
|
+
_(pe, { class: "h-3.5 w-3.5" })
|
|
2646
2646
|
])) : z("", !0)
|
|
2647
2647
|
]),
|
|
2648
|
-
|
|
2648
|
+
_(xe, { for: a.value }, {
|
|
2649
2649
|
default: u(() => [
|
|
2650
2650
|
O(I(t.label), 1)
|
|
2651
2651
|
]),
|
|
@@ -2653,7 +2653,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2653
2653
|
}, 8, ["for"])
|
|
2654
2654
|
]),
|
|
2655
2655
|
t.validationState === "success" && t.validationText ? (r(), l("p", ar, [
|
|
2656
|
-
|
|
2656
|
+
_(pe, { class: "h-4 w-4" }),
|
|
2657
2657
|
O(" " + I(t.validationText), 1)
|
|
2658
2658
|
])) : z("", !0),
|
|
2659
2659
|
t.validationState === "error" && t.validationText ? (r(), l("p", sr, [
|
|
@@ -2694,12 +2694,12 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2694
2694
|
onChange: i[1] || (i[1] = (p) => n.$emit("update:modelValue", p.target.checked))
|
|
2695
2695
|
}), null, 16, nr),
|
|
2696
2696
|
t.modelValue ? (r(), l("span", lr, [
|
|
2697
|
-
|
|
2697
|
+
_(pe, { class: "h-3.5 w-3.5" })
|
|
2698
2698
|
])) : z("", !0)
|
|
2699
2699
|
]),
|
|
2700
2700
|
d(n.$slots, "label"),
|
|
2701
2701
|
t.validationState === "success" && t.validationText ? (r(), l("p", ir, [
|
|
2702
|
-
|
|
2702
|
+
_(pe, { class: "h-4 w-4" }),
|
|
2703
2703
|
O(" " + I(t.validationText), 1)
|
|
2704
2704
|
])) : z("", !0),
|
|
2705
2705
|
t.validationState === "error" && t.validationText ? (r(), l("p", dr, [
|
|
@@ -2777,9 +2777,9 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2777
2777
|
}, a.$attrs), {
|
|
2778
2778
|
default: u(() => [
|
|
2779
2779
|
d(a.$slots, "default"),
|
|
2780
|
-
|
|
2780
|
+
_(s(As), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4" }, {
|
|
2781
2781
|
default: u(() => [
|
|
2782
|
-
|
|
2782
|
+
_(s(he)),
|
|
2783
2783
|
o[0] || (o[0] = c("span", { class: "sr-only" }, "Close", -1))
|
|
2784
2784
|
]),
|
|
2785
2785
|
_: 1
|
|
@@ -2816,7 +2816,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2816
2816
|
setup(t) {
|
|
2817
2817
|
return (e, a) => (r(), l("div", b({
|
|
2818
2818
|
"data-slot": "dialog-header",
|
|
2819
|
-
class: ["flex flex-col gap-2 text-center
|
|
2819
|
+
class: ["flex flex-col gap-2 text-center pl-4 py-4 pr-5 sm:text-left border-b", e.$attrs.class]
|
|
2820
2820
|
}, e.$attrs), [
|
|
2821
2821
|
d(e.$slots, "default")
|
|
2822
2822
|
], 16));
|
|
@@ -2896,44 +2896,44 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2896
2896
|
{ id: 2, label: "Pending", variant: "soft-warning", size: "md" },
|
|
2897
2897
|
{ id: 3, label: "Draft", variant: "soft-neutral", size: "md" }
|
|
2898
2898
|
], o = V([...e]), n = V([...a]);
|
|
2899
|
-
function i(
|
|
2900
|
-
o.value = o.value.filter((
|
|
2899
|
+
function i(h) {
|
|
2900
|
+
o.value = o.value.filter((v) => v.id !== h);
|
|
2901
2901
|
}
|
|
2902
|
-
function p(
|
|
2903
|
-
n.value = n.value.filter((
|
|
2902
|
+
function p(h) {
|
|
2903
|
+
n.value = n.value.filter((v) => v.id !== h);
|
|
2904
2904
|
}
|
|
2905
2905
|
function m() {
|
|
2906
2906
|
o.value = [...e];
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function $() {
|
|
2909
2909
|
n.value = [...a];
|
|
2910
2910
|
}
|
|
2911
|
-
return (
|
|
2911
|
+
return (h, v) => (r(), l("div", ur, [
|
|
2912
2912
|
c("div", null, [
|
|
2913
2913
|
c("div", pr, [
|
|
2914
|
-
|
|
2915
|
-
|
|
2914
|
+
v[1] || (v[1] = c("h4", { class: "font-medium" }, "Project Tags", -1)),
|
|
2915
|
+
_(ge, {
|
|
2916
2916
|
variant: "outline",
|
|
2917
2917
|
size: "sm",
|
|
2918
2918
|
onClick: m,
|
|
2919
2919
|
disabled: o.value.length === e.length
|
|
2920
2920
|
}, {
|
|
2921
|
-
default: u(() => [...
|
|
2921
|
+
default: u(() => [...v[0] || (v[0] = [
|
|
2922
2922
|
O(" Reset Tags ", -1)
|
|
2923
2923
|
])]),
|
|
2924
2924
|
_: 1
|
|
2925
2925
|
}, 8, ["disabled"])
|
|
2926
2926
|
]),
|
|
2927
2927
|
c("div", fr, [
|
|
2928
|
-
o.value.length > 0 ? (r(!0), l(F, { key: 0 }, G(o.value, (
|
|
2929
|
-
key:
|
|
2930
|
-
variant:
|
|
2931
|
-
size:
|
|
2928
|
+
o.value.length > 0 ? (r(!0), l(F, { key: 0 }, G(o.value, (y) => (r(), g(oe, {
|
|
2929
|
+
key: y.id,
|
|
2930
|
+
variant: y.variant,
|
|
2931
|
+
size: y.size,
|
|
2932
2932
|
dismissible: "",
|
|
2933
|
-
onDismiss: (
|
|
2933
|
+
onDismiss: (x) => i(y.id)
|
|
2934
2934
|
}, {
|
|
2935
2935
|
default: u(() => [
|
|
2936
|
-
O(I(
|
|
2936
|
+
O(I(y.label), 1)
|
|
2937
2937
|
]),
|
|
2938
2938
|
_: 2
|
|
2939
2939
|
}, 1032, ["variant", "size", "onDismiss"]))), 128)) : (r(), l("p", mr, "No tags selected"))
|
|
@@ -2941,36 +2941,36 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2941
2941
|
]),
|
|
2942
2942
|
c("div", null, [
|
|
2943
2943
|
c("div", gr, [
|
|
2944
|
-
|
|
2945
|
-
|
|
2944
|
+
v[3] || (v[3] = c("h4", { class: "font-medium" }, "Applied Filters", -1)),
|
|
2945
|
+
_(ge, {
|
|
2946
2946
|
variant: "outline",
|
|
2947
2947
|
size: "sm",
|
|
2948
|
-
onClick:
|
|
2948
|
+
onClick: $,
|
|
2949
2949
|
disabled: n.value.length === a.length
|
|
2950
2950
|
}, {
|
|
2951
|
-
default: u(() => [...
|
|
2951
|
+
default: u(() => [...v[2] || (v[2] = [
|
|
2952
2952
|
O(" Reset Filters ", -1)
|
|
2953
2953
|
])]),
|
|
2954
2954
|
_: 1
|
|
2955
2955
|
}, 8, ["disabled"])
|
|
2956
2956
|
]),
|
|
2957
2957
|
c("div", br, [
|
|
2958
|
-
n.value.length > 0 ? (r(!0), l(F, { key: 0 }, G(n.value, (
|
|
2959
|
-
key:
|
|
2960
|
-
variant:
|
|
2961
|
-
size:
|
|
2958
|
+
n.value.length > 0 ? (r(!0), l(F, { key: 0 }, G(n.value, (y) => (r(), g(oe, {
|
|
2959
|
+
key: y.id,
|
|
2960
|
+
variant: y.variant,
|
|
2961
|
+
size: y.size,
|
|
2962
2962
|
dismissible: "",
|
|
2963
|
-
onDismiss: (
|
|
2963
|
+
onDismiss: (x) => p(y.id)
|
|
2964
2964
|
}, {
|
|
2965
2965
|
default: u(() => [
|
|
2966
|
-
|
|
2967
|
-
O(" " + I(
|
|
2966
|
+
_(s(_e)),
|
|
2967
|
+
O(" " + I(y.label), 1)
|
|
2968
2968
|
]),
|
|
2969
2969
|
_: 2
|
|
2970
2970
|
}, 1032, ["variant", "size", "onDismiss"]))), 128)) : (r(), l("p", vr, "No filters applied"))
|
|
2971
2971
|
])
|
|
2972
2972
|
]),
|
|
2973
|
-
|
|
2973
|
+
v[4] || (v[4] = c("div", { class: "text-sm text-muted-foreground" }, [
|
|
2974
2974
|
c("p", null, "Click the × button on any badge to remove it")
|
|
2975
2975
|
], -1))
|
|
2976
2976
|
]));
|
|
@@ -2997,15 +2997,15 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
2997
2997
|
"2xl": "sm:max-w-2xl max-w-[calc(100%-2rem)]",
|
|
2998
2998
|
"4xl": "sm:max-w-4xl max-w-[calc(100%-2rem)]",
|
|
2999
2999
|
full: "sm:max-w-[calc(100vw-2rem)] max-w-[calc(100%-2rem)]"
|
|
3000
|
-
}, o =
|
|
3000
|
+
}, o = w(() => [
|
|
3001
3001
|
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3002
3002
|
a[e.size],
|
|
3003
3003
|
e.class
|
|
3004
3004
|
].join(" "));
|
|
3005
3005
|
return (n, i) => (r(), g(s(is), { "data-slot": "drawer-portal" }, {
|
|
3006
3006
|
default: u(() => [
|
|
3007
|
-
|
|
3008
|
-
|
|
3007
|
+
_(s(ds), { "data-slot": "drawer-overlay" }),
|
|
3008
|
+
_(s(cs), b(n.$attrs, {
|
|
3009
3009
|
class: o.value,
|
|
3010
3010
|
"data-slot": "drawer-content"
|
|
3011
3011
|
}), {
|
|
@@ -3025,7 +3025,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3025
3025
|
class: String
|
|
3026
3026
|
},
|
|
3027
3027
|
setup(t) {
|
|
3028
|
-
const e =
|
|
3028
|
+
const e = w(() => ["text-muted-foreground text-sm", $props.class].join(" "));
|
|
3029
3029
|
return (a, o) => {
|
|
3030
3030
|
const n = be("VaulDrawerDescription");
|
|
3031
3031
|
return r(), g(n, b(a.$attrs, {
|
|
@@ -3045,9 +3045,9 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3045
3045
|
class: String
|
|
3046
3046
|
},
|
|
3047
3047
|
setup(t) {
|
|
3048
|
-
const e =
|
|
3048
|
+
const e = w(() => ["mt-auto flex flex-col gap-2 p-4", $props.class].join(" "));
|
|
3049
3049
|
return (a, o) => (r(), l("div", {
|
|
3050
|
-
class:
|
|
3050
|
+
class: k(e.value),
|
|
3051
3051
|
"data-slot": "drawer-footer"
|
|
3052
3052
|
}, [
|
|
3053
3053
|
d(a.$slots, "default", {}, void 0, !0)
|
|
@@ -3059,9 +3059,9 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3059
3059
|
class: String
|
|
3060
3060
|
},
|
|
3061
3061
|
setup(t) {
|
|
3062
|
-
const e =
|
|
3062
|
+
const e = w(() => ["flex flex-col gap-1.5 p-4", $props.class].join(" "));
|
|
3063
3063
|
return (a, o) => (r(), l("div", {
|
|
3064
|
-
class:
|
|
3064
|
+
class: k(e.value),
|
|
3065
3065
|
"data-slot": "drawer-header"
|
|
3066
3066
|
}, [
|
|
3067
3067
|
d(a.$slots, "default", {}, void 0, !0)
|
|
@@ -3073,7 +3073,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3073
3073
|
class: String
|
|
3074
3074
|
},
|
|
3075
3075
|
setup(t) {
|
|
3076
|
-
const e =
|
|
3076
|
+
const e = w(() => ["text-foreground font-semibold", $props.class].join(" "));
|
|
3077
3077
|
return (a, o) => {
|
|
3078
3078
|
const n = be("VaulDrawerTitle");
|
|
3079
3079
|
return r(), g(n, b(a.$attrs, {
|
|
@@ -3146,7 +3146,7 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3146
3146
|
a.disabled || o("update:checked", !a.checked);
|
|
3147
3147
|
}
|
|
3148
3148
|
return (i, p) => (r(), l("div", {
|
|
3149
|
-
class:
|
|
3149
|
+
class: k(["flex items-center px-2 py-1.5 text-sm cursor-pointer select-none", a.class, { "opacity-50 pointer-events-none": a.disabled }]),
|
|
3150
3150
|
onClick: n,
|
|
3151
3151
|
role: "menuitemcheckbox",
|
|
3152
3152
|
"aria-checked": a.checked,
|
|
@@ -3207,8 +3207,8 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3207
3207
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
3208
3208
|
return (p, m) => (r(), g(s(tt), null, {
|
|
3209
3209
|
default: u(() => [
|
|
3210
|
-
|
|
3211
|
-
class: s(
|
|
3210
|
+
_(s(Ka), b({ "data-slot": "dropdown-menu-content" }, s(i), {
|
|
3211
|
+
class: s(C)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", a.class)
|
|
3212
3212
|
}), {
|
|
3213
3213
|
default: u(() => [
|
|
3214
3214
|
d(p.$slots, "default")
|
|
@@ -3245,11 +3245,11 @@ const pe = /* @__PURE__ */ T(Ko, [["render", Jo]]), Zo = {
|
|
|
3245
3245
|
const e = t;
|
|
3246
3246
|
return (a, o) => (r(), g(s(tt), null, {
|
|
3247
3247
|
default: u(() => [
|
|
3248
|
-
|
|
3248
|
+
_(s(Ir), b({
|
|
3249
3249
|
"data-slot": "dropdown-menu-content",
|
|
3250
3250
|
sideOffset: e.sideOffset
|
|
3251
3251
|
}, a.$attrs, {
|
|
3252
|
-
class: s(M)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--reka-dropdown-menu-content-available-height] min-w-[8rem] origin-[--reka-dropdown-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e.class)
|
|
3252
|
+
class: s(M)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--reka-dropdown-menu-content-available-height] min-w-[8rem] origin-[--reka-dropdown-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border border-border p-1 shadow-md", e.class)
|
|
3253
3253
|
}), {
|
|
3254
3254
|
default: u(() => [
|
|
3255
3255
|
d(a.$slots, "default")
|
|
@@ -3333,7 +3333,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3333
3333
|
!a.disabled && n && (n.value = a.value, o("update:modelValue", a.value));
|
|
3334
3334
|
}
|
|
3335
3335
|
return (p, m) => (r(), l("div", {
|
|
3336
|
-
class:
|
|
3336
|
+
class: k(["flex items-center px-2 py-1.5 text-sm cursor-pointer select-none", a.class, { "opacity-50 pointer-events-none": a.disabled }]),
|
|
3337
3337
|
onClick: i,
|
|
3338
3338
|
role: "menuitemradio",
|
|
3339
3339
|
"aria-checked": s(n) && s(n).value === a.value,
|
|
@@ -3370,7 +3370,7 @@ const Dc = /* @__PURE__ */ T(Tr, [["render", Vr]]), Pr = ["data-inset", "data-va
|
|
|
3370
3370
|
], 16));
|
|
3371
3371
|
}
|
|
3372
3372
|
}), Er = {
|
|
3373
|
-
class: "absolute left-full top-0 mt-0 ml-2 min-w-[8rem] bg-popover border rounded-md shadow-md z-50",
|
|
3373
|
+
class: "absolute left-full top-0 mt-0 ml-2 min-w-[8rem] bg-popover border border-border rounded-md shadow-md z-50",
|
|
3374
3374
|
"data-slot": "dropdown-menu-sub-content"
|
|
3375
3375
|
}, Fc = /* @__PURE__ */ f({
|
|
3376
3376
|
__name: "dropdown-menu-sub-content",
|
|
@@ -3952,7 +3952,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
3952
3952
|
const n = (i) => {
|
|
3953
3953
|
i.length <= a.maxLength && o("update:modelValue", i);
|
|
3954
3954
|
};
|
|
3955
|
-
return
|
|
3955
|
+
return w(() => ({
|
|
3956
3956
|
value: a.modelValue,
|
|
3957
3957
|
onChange: n,
|
|
3958
3958
|
maxLength: a.maxLength,
|
|
@@ -3960,8 +3960,8 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
3960
3960
|
masked: a.masked
|
|
3961
3961
|
})), (i, p) => (r(), g(s(fs), b({
|
|
3962
3962
|
"data-slot": "input-otp",
|
|
3963
|
-
"container-class": s(
|
|
3964
|
-
"class-name": s(
|
|
3963
|
+
"container-class": s(C)("flex items-center gap-2 has-disabled:opacity-50", a.containerClass),
|
|
3964
|
+
"class-name": s(C)("disabled:cursor-not-allowed", a.class),
|
|
3965
3965
|
maxlength: a.maxLength,
|
|
3966
3966
|
value: a.modelValue,
|
|
3967
3967
|
"on-change": (m) => o("update:modelValue", m),
|
|
@@ -4034,7 +4034,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4034
4034
|
])) : z("", !0),
|
|
4035
4035
|
o.$slots.iconRight || t.validationState === "success" || t.validationState === "error" ? (r(), l("span", {
|
|
4036
4036
|
key: 1,
|
|
4037
|
-
class:
|
|
4037
|
+
class: k([
|
|
4038
4038
|
"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none",
|
|
4039
4039
|
t.validationState === "error" ? "text-red-500" : "",
|
|
4040
4040
|
t.validationState === "success" ? "text-green-500" : ""
|
|
@@ -4069,7 +4069,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4069
4069
|
]),
|
|
4070
4070
|
t.validationMessage ? (r(), l("p", {
|
|
4071
4071
|
key: 1,
|
|
4072
|
-
class:
|
|
4072
|
+
class: k(["text-sm", t.validationState === "error" ? "text-red-600" : "", t.validationState === "success" ? "text-green-600" : ""])
|
|
4073
4073
|
}, I(t.validationMessage), 3)) : z("", !0)
|
|
4074
4074
|
]));
|
|
4075
4075
|
}
|
|
@@ -4095,7 +4095,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4095
4095
|
},
|
|
4096
4096
|
emits: ["update:page"],
|
|
4097
4097
|
setup(t, { emit: e }) {
|
|
4098
|
-
const a = t, o =
|
|
4098
|
+
const a = t, o = w(() => Math.max(1, Math.ceil(a.total / a.perPage)));
|
|
4099
4099
|
return (n, i) => (r(), l("nav", ml, [
|
|
4100
4100
|
c("button", {
|
|
4101
4101
|
class: "h-8 w-8 flex items-center justify-center rounded border border-input bg-background px-0 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50",
|
|
@@ -4142,7 +4142,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4142
4142
|
steps: Array
|
|
4143
4143
|
},
|
|
4144
4144
|
setup(t) {
|
|
4145
|
-
const e = t, a = U(), o =
|
|
4145
|
+
const e = t, a = U(), o = w(() => Array.isArray(e.steps) && e.steps.length > 0);
|
|
4146
4146
|
function n(m) {
|
|
4147
4147
|
return m === "complete" ? "bg-green-500" : m === "in-progress" ? "bg-blue-500" : "bg-muted";
|
|
4148
4148
|
}
|
|
@@ -4152,37 +4152,37 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4152
4152
|
function p(m) {
|
|
4153
4153
|
return m === "complete" ? "Complete" : m === "in-progress" ? "In Progress" : "Pending";
|
|
4154
4154
|
}
|
|
4155
|
-
return (m,
|
|
4156
|
-
class:
|
|
4155
|
+
return (m, $) => (r(), l("div", {
|
|
4156
|
+
class: k(s(M)("space-y-2", s(a).class))
|
|
4157
4157
|
}, [
|
|
4158
4158
|
t.label ? (r(), l("div", _l, [
|
|
4159
4159
|
c("span", yl, I(t.label), 1),
|
|
4160
4160
|
typeof t.value == "number" && !o.value ? (r(), l("span", xl, I(t.value) + "%", 1)) : z("", !0)
|
|
4161
4161
|
])) : z("", !0),
|
|
4162
4162
|
o.value ? (r(), l("div", wl, [
|
|
4163
|
-
(r(!0), l(F, null, G(t.steps, (
|
|
4164
|
-
key:
|
|
4163
|
+
(r(!0), l(F, null, G(t.steps, (h, v) => (r(), l("div", {
|
|
4164
|
+
key: v,
|
|
4165
4165
|
class: "flex items-center space-x-3"
|
|
4166
4166
|
}, [
|
|
4167
4167
|
c("div", {
|
|
4168
|
-
class:
|
|
4168
|
+
class: k([n(h.status), "w-4 h-4 rounded-full flex items-center justify-center"])
|
|
4169
4169
|
}, [
|
|
4170
|
-
|
|
4170
|
+
h.status === "complete" ? (r(), g(s(_e), {
|
|
4171
4171
|
key: 0,
|
|
4172
4172
|
class: "w-3 h-3 text-white"
|
|
4173
|
-
})) :
|
|
4173
|
+
})) : h.status === "in-progress" ? (r(), g(s(Ut), {
|
|
4174
4174
|
key: 1,
|
|
4175
4175
|
class: "w-3 h-3 text-white animate-spin"
|
|
4176
4176
|
})) : z("", !0)
|
|
4177
4177
|
], 2),
|
|
4178
4178
|
c("span", {
|
|
4179
|
-
class:
|
|
4180
|
-
}, I(
|
|
4181
|
-
|
|
4182
|
-
variant: i(
|
|
4179
|
+
class: k(["text-sm", h.status === "pending" ? "text-muted-foreground" : ""])
|
|
4180
|
+
}, I(h.label), 3),
|
|
4181
|
+
_(oe, {
|
|
4182
|
+
variant: i(h.status)
|
|
4183
4183
|
}, {
|
|
4184
4184
|
default: u(() => [
|
|
4185
|
-
O(I(p(
|
|
4185
|
+
O(I(p(h.status)), 1)
|
|
4186
4186
|
]),
|
|
4187
4187
|
_: 2
|
|
4188
4188
|
}, 1032, ["variant"])
|
|
@@ -4190,7 +4190,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4190
4190
|
])) : z("", !0),
|
|
4191
4191
|
o.value ? z("", !0) : (r(), l("div", {
|
|
4192
4192
|
key: 2,
|
|
4193
|
-
class:
|
|
4193
|
+
class: k(s(M)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", s(a).class))
|
|
4194
4194
|
}, [
|
|
4195
4195
|
c("div", {
|
|
4196
4196
|
class: "bg-primary h-full w-full flex-1 transition-all",
|
|
@@ -4223,7 +4223,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4223
4223
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
4224
4224
|
return (p, m) => (r(), g(s(Ja), b({
|
|
4225
4225
|
"data-slot": "radio-group",
|
|
4226
|
-
class: s(
|
|
4226
|
+
class: s(C)("grid gap-3", a.class)
|
|
4227
4227
|
}, s(i)), {
|
|
4228
4228
|
default: u(() => [
|
|
4229
4229
|
d(p.$slots, "default")
|
|
@@ -4246,18 +4246,18 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4246
4246
|
setup(t) {
|
|
4247
4247
|
const e = t, a = D(e, "class"), o = q(a);
|
|
4248
4248
|
return (n, i) => (r(), g(s(Za), b({ "data-slot": "radio-group-item" }, s(o), {
|
|
4249
|
-
class: s(
|
|
4249
|
+
class: s(C)(
|
|
4250
4250
|
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
4251
4251
|
e.class
|
|
4252
4252
|
)
|
|
4253
4253
|
}), {
|
|
4254
4254
|
default: u(() => [
|
|
4255
|
-
|
|
4255
|
+
_(s(Ya), {
|
|
4256
4256
|
"data-slot": "radio-group-indicator",
|
|
4257
4257
|
class: "relative flex items-center justify-center"
|
|
4258
4258
|
}, {
|
|
4259
4259
|
default: u(() => [
|
|
4260
|
-
|
|
4260
|
+
_(s(Ht), { class: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
4261
4261
|
]),
|
|
4262
4262
|
_: 1
|
|
4263
4263
|
})
|
|
@@ -4357,7 +4357,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4357
4357
|
setup(t, { emit: e }) {
|
|
4358
4358
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
4359
4359
|
return (p, m) => (r(), g(s(Qa), b({ "data-slot": "tabs" }, s(i), {
|
|
4360
|
-
class: s(
|
|
4360
|
+
class: s(C)("flex flex-col", a.class)
|
|
4361
4361
|
}), {
|
|
4362
4362
|
default: u(() => [
|
|
4363
4363
|
d(p.$slots, "default")
|
|
@@ -4378,7 +4378,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4378
4378
|
const e = t, a = D(e, "class");
|
|
4379
4379
|
return (o, n) => (r(), g(s(es), b({
|
|
4380
4380
|
"data-slot": "tabs-content",
|
|
4381
|
-
class: s(
|
|
4381
|
+
class: s(C)("flex-1 outline-none", e.class)
|
|
4382
4382
|
}, s(a)), {
|
|
4383
4383
|
default: u(() => [
|
|
4384
4384
|
d(o.$slots, "default")
|
|
@@ -4397,7 +4397,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4397
4397
|
setup(t) {
|
|
4398
4398
|
const e = t, a = D(e, "class");
|
|
4399
4399
|
return (o, n) => (r(), g(s(ts), b({ "data-slot": "tabs-list" }, s(a), {
|
|
4400
|
-
class: s(
|
|
4400
|
+
class: s(C)(
|
|
4401
4401
|
"bg-muted text-muted-foreground inline-flex items-center justify-center p-[3px]",
|
|
4402
4402
|
e.class
|
|
4403
4403
|
)
|
|
@@ -4421,7 +4421,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4421
4421
|
setup(t) {
|
|
4422
4422
|
const e = t;
|
|
4423
4423
|
return (a, o) => (r(), g(s(as), b({ "data-slot": "tabs-trigger" }, e, {
|
|
4424
|
-
class: s(
|
|
4424
|
+
class: s(C)(
|
|
4425
4425
|
"relative inline-flex items-center justify-center gap-2 px-4 py-2 transition-all duration-200 ease-out",
|
|
4426
4426
|
"min-w-0 max-w-48 w-auto shrink-0",
|
|
4427
4427
|
"text-muted-foreground hover:text-foreground",
|
|
@@ -4538,36 +4538,36 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4538
4538
|
setup(t) {
|
|
4539
4539
|
const e = t, a = U(), o = V(null), n = V(!1), i = V(!1), p = V(!1);
|
|
4540
4540
|
function m() {
|
|
4541
|
-
const
|
|
4542
|
-
if (
|
|
4543
|
-
const { scrollLeft:
|
|
4544
|
-
n.value =
|
|
4541
|
+
const x = o.value;
|
|
4542
|
+
if (!x) return;
|
|
4543
|
+
const { scrollLeft: S, scrollWidth: B, clientWidth: P } = x;
|
|
4544
|
+
n.value = S > 0, i.value = S < B - P - 1, p.value = B > P;
|
|
4545
4545
|
}
|
|
4546
|
-
function
|
|
4547
|
-
const
|
|
4548
|
-
|
|
4546
|
+
function $() {
|
|
4547
|
+
const x = o.value;
|
|
4548
|
+
x && x.scrollBy({ left: -200, behavior: "smooth" });
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4551
|
-
const
|
|
4552
|
-
|
|
4550
|
+
function h() {
|
|
4551
|
+
const x = o.value;
|
|
4552
|
+
x && x.scrollBy({ left: 200, behavior: "smooth" });
|
|
4553
4553
|
}
|
|
4554
|
-
let
|
|
4554
|
+
let v = null, y = null;
|
|
4555
4555
|
return re(() => {
|
|
4556
4556
|
Ke(() => {
|
|
4557
|
-
const
|
|
4558
|
-
|
|
4557
|
+
const x = o.value;
|
|
4558
|
+
x && (v = () => m(), y = () => m(), x.addEventListener("scroll", v), window.addEventListener("resize", y), m());
|
|
4559
4559
|
});
|
|
4560
4560
|
}), Vt(() => {
|
|
4561
|
-
const
|
|
4562
|
-
|
|
4563
|
-
}), (
|
|
4561
|
+
const x = o.value;
|
|
4562
|
+
x && v && x.removeEventListener("scroll", v), y && window.removeEventListener("resize", y);
|
|
4563
|
+
}), (x, S) => (r(), l("div", Il, [
|
|
4564
4564
|
p.value && n.value ? (r(), l("button", {
|
|
4565
4565
|
key: 0,
|
|
4566
|
-
onClick:
|
|
4566
|
+
onClick: $,
|
|
4567
4567
|
class: "absolute left-0 top-0 z-10 h-full w-10 flex min-w-0 max-w-48 w-auto shrink-0 items-center justify-center bg-gradient-to-r from-background via-background/95 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:from-background hover:via-background focus:outline-none focus:opacity-100 [&>span]:truncate [&>span]:block",
|
|
4568
4568
|
"aria-label": "Scroll tabs left",
|
|
4569
4569
|
type: "button"
|
|
4570
|
-
}, [...
|
|
4570
|
+
}, [...S[0] || (S[0] = [
|
|
4571
4571
|
c("svg", {
|
|
4572
4572
|
width: "14",
|
|
4573
4573
|
height: "14",
|
|
@@ -4587,7 +4587,7 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4587
4587
|
ref: o,
|
|
4588
4588
|
class: "w-full overflow-x-auto scrollbar-hide"
|
|
4589
4589
|
}, [
|
|
4590
|
-
|
|
4590
|
+
_(s(bt), b(s(a), {
|
|
4591
4591
|
class: [
|
|
4592
4592
|
"inline-flex items-center justify-start border-b border-border bg-transparent w-max",
|
|
4593
4593
|
"[&:has(.corner-cut-trigger)]:border-primary",
|
|
@@ -4599,18 +4599,18 @@ const gu = /* @__PURE__ */ T(nl, [["render", il]]), dl = { class: "flex items-ce
|
|
|
4599
4599
|
]
|
|
4600
4600
|
}), {
|
|
4601
4601
|
default: u(() => [
|
|
4602
|
-
d(
|
|
4602
|
+
d(x.$slots, "default", {}, void 0, !0)
|
|
4603
4603
|
]),
|
|
4604
4604
|
_: 3
|
|
4605
4605
|
}, 16, ["class"])
|
|
4606
4606
|
], 512),
|
|
4607
4607
|
p.value && i.value ? (r(), l("button", {
|
|
4608
4608
|
key: 1,
|
|
4609
|
-
onClick:
|
|
4609
|
+
onClick: h,
|
|
4610
4610
|
class: "absolute right-0 top-0 z-10 h-full w-10 flex items-center justify-center bg-gradient-to-l from-background via-background/95 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:from-background hover:via-background focus:outline-none focus:opacity-100",
|
|
4611
4611
|
"aria-label": "Scroll tabs right",
|
|
4612
4612
|
type: "button"
|
|
4613
|
-
}, [...
|
|
4613
|
+
}, [...S[1] || (S[1] = [
|
|
4614
4614
|
c("svg", {
|
|
4615
4615
|
width: "14",
|
|
4616
4616
|
height: "14",
|
|
@@ -4655,23 +4655,23 @@ const Pl = ({
|
|
|
4655
4655
|
"stroke-width": i,
|
|
4656
4656
|
size: p = ce.width,
|
|
4657
4657
|
color: m = ce.stroke,
|
|
4658
|
-
|
|
4659
|
-
}, { slots:
|
|
4658
|
+
...$
|
|
4659
|
+
}, { slots: h }) => se(
|
|
4660
4660
|
"svg",
|
|
4661
4661
|
{
|
|
4662
4662
|
...ce,
|
|
4663
|
-
|
|
4663
|
+
...$,
|
|
4664
4664
|
width: p,
|
|
4665
4665
|
height: p,
|
|
4666
4666
|
stroke: m,
|
|
4667
4667
|
"stroke-width": Ee(a) || Ee(o) || a === !0 || o === !0 ? Number(n || i || ce["stroke-width"]) * 24 / Number(p) : n || i || ce["stroke-width"],
|
|
4668
4668
|
class: Vl(
|
|
4669
4669
|
"lucide",
|
|
4670
|
-
|
|
4670
|
+
$.class,
|
|
4671
4671
|
...t ? [`lucide-${Fe(Dl(t))}-icon`, `lucide-${Fe(t)}`] : ["lucide-icon"]
|
|
4672
4672
|
)
|
|
4673
4673
|
},
|
|
4674
|
-
[...e.map((
|
|
4674
|
+
[...e.map((v) => se(...v)), ...h.default ? [h.default()] : []]
|
|
4675
4675
|
);
|
|
4676
4676
|
const Al = (t, e) => (a, { slots: o, attrs: n }) => se(
|
|
4677
4677
|
Pl,
|
|
@@ -4699,54 +4699,45 @@ const Ol = Al("chevron-down", [
|
|
|
4699
4699
|
type: Array,
|
|
4700
4700
|
default: () => []
|
|
4701
4701
|
},
|
|
4702
|
-
placeholder:
|
|
4703
|
-
|
|
4704
|
-
default: "Select options..."
|
|
4705
|
-
},
|
|
4706
|
-
title: {
|
|
4707
|
-
type: String,
|
|
4708
|
-
default: "Select Options"
|
|
4709
|
-
},
|
|
4702
|
+
placeholder: String,
|
|
4703
|
+
title: String,
|
|
4710
4704
|
maxDisplay: {
|
|
4711
4705
|
type: Number,
|
|
4712
4706
|
default: 2
|
|
4713
4707
|
},
|
|
4714
|
-
disabled:
|
|
4715
|
-
type: Boolean,
|
|
4716
|
-
default: !1
|
|
4717
|
-
},
|
|
4708
|
+
disabled: Boolean,
|
|
4718
4709
|
size: {
|
|
4719
4710
|
type: String,
|
|
4720
4711
|
default: "default"
|
|
4721
4712
|
},
|
|
4722
|
-
class:
|
|
4723
|
-
type: String,
|
|
4724
|
-
default: ""
|
|
4725
|
-
}
|
|
4713
|
+
class: String
|
|
4726
4714
|
},
|
|
4727
4715
|
emits: ["update:modelValue"],
|
|
4728
4716
|
setup(t, { emit: e }) {
|
|
4729
|
-
const a = t, o = e, n = U(), i = V(!1), p =
|
|
4717
|
+
const a = t, o = e, n = U(), i = V(!1), p = w(() => a.class || n.class || "");
|
|
4730
4718
|
function m(v) {
|
|
4731
|
-
|
|
4732
|
-
|
|
4719
|
+
return Array.isArray(a.modelValue) && a.modelValue.includes(v);
|
|
4720
|
+
}
|
|
4721
|
+
function $(v) {
|
|
4722
|
+
const y = a.options.find((x) => x.value === v);
|
|
4723
|
+
return y ? y.label : v;
|
|
4733
4724
|
}
|
|
4734
|
-
function
|
|
4735
|
-
let
|
|
4736
|
-
|
|
4725
|
+
function h(v, y) {
|
|
4726
|
+
let S = [...Array.isArray(a.modelValue) ? a.modelValue : []];
|
|
4727
|
+
y && !S.includes(v) ? S.push(v) : y || (S = S.filter((B) => B !== v)), o("update:modelValue", S);
|
|
4737
4728
|
}
|
|
4738
|
-
return (v,
|
|
4739
|
-
|
|
4729
|
+
return (v, y) => (r(), l("div", jl, [
|
|
4730
|
+
_(hl, {
|
|
4740
4731
|
open: i.value,
|
|
4741
|
-
"onUpdate:open":
|
|
4732
|
+
"onUpdate:open": y[0] || (y[0] = (x) => i.value = x),
|
|
4742
4733
|
disabled: t.disabled
|
|
4743
4734
|
}, {
|
|
4744
4735
|
default: u(() => [
|
|
4745
|
-
|
|
4736
|
+
_(oo, { as: "template" }, {
|
|
4746
4737
|
default: u(() => [
|
|
4747
|
-
|
|
4738
|
+
_(ge, {
|
|
4748
4739
|
variant: "secondary",
|
|
4749
|
-
class:
|
|
4740
|
+
class: k([
|
|
4750
4741
|
"justify-between border-input bg-input-background hover:bg-select-hover focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
4751
4742
|
t.size === "sm" ? "h-8" : "h-9",
|
|
4752
4743
|
p.value
|
|
@@ -4757,26 +4748,26 @@ const Ol = Al("chevron-down", [
|
|
|
4757
4748
|
}, {
|
|
4758
4749
|
default: u(() => [
|
|
4759
4750
|
c("div", Ll, [
|
|
4760
|
-
t.modelValue.length === 0 ? (r(), l("span", Rl, I(t.placeholder), 1)) : t.modelValue.length <= t.maxDisplay ? (r(!0), l(F, { key: 1 }, G(t.modelValue, (
|
|
4761
|
-
key:
|
|
4751
|
+
t.modelValue.length === 0 ? (r(), l("span", Rl, I(t.placeholder), 1)) : t.modelValue.length <= t.maxDisplay ? (r(!0), l(F, { key: 1 }, G(t.modelValue, (x) => (r(), g(oe, {
|
|
4752
|
+
key: x,
|
|
4762
4753
|
variant: "soft-neutral",
|
|
4763
4754
|
class: "text-xs shrink-0"
|
|
4764
4755
|
}, {
|
|
4765
4756
|
default: u(() => [
|
|
4766
|
-
O(I(
|
|
4757
|
+
O(I($(x)), 1)
|
|
4767
4758
|
]),
|
|
4768
4759
|
_: 2
|
|
4769
4760
|
}, 1024))), 128)) : (r(), l(F, { key: 2 }, [
|
|
4770
|
-
|
|
4761
|
+
_(oe, {
|
|
4771
4762
|
variant: "soft-neutral",
|
|
4772
4763
|
class: "text-xs shrink-0"
|
|
4773
4764
|
}, {
|
|
4774
4765
|
default: u(() => [
|
|
4775
|
-
O(I(
|
|
4766
|
+
O(I($(t.modelValue[0])), 1)
|
|
4776
4767
|
]),
|
|
4777
4768
|
_: 1
|
|
4778
4769
|
}),
|
|
4779
|
-
|
|
4770
|
+
_(oe, {
|
|
4780
4771
|
variant: "soft-neutral",
|
|
4781
4772
|
class: "text-xs shrink-0"
|
|
4782
4773
|
}, {
|
|
@@ -4787,15 +4778,15 @@ const Ol = Al("chevron-down", [
|
|
|
4787
4778
|
})
|
|
4788
4779
|
], 64))
|
|
4789
4780
|
]),
|
|
4790
|
-
|
|
4781
|
+
_(s(Ol), { class: "h-4 w-4 shrink-0 opacity-50" })
|
|
4791
4782
|
]),
|
|
4792
4783
|
_: 1
|
|
4793
4784
|
}, 8, ["class", "aria-expanded", "disabled"])
|
|
4794
4785
|
]),
|
|
4795
4786
|
_: 1
|
|
4796
4787
|
}),
|
|
4797
|
-
|
|
4798
|
-
class:
|
|
4788
|
+
_(to, {
|
|
4789
|
+
class: k(["p-0", p.value]),
|
|
4799
4790
|
align: "start"
|
|
4800
4791
|
}, {
|
|
4801
4792
|
default: u(() => [
|
|
@@ -4804,20 +4795,20 @@ const Ol = Al("chevron-down", [
|
|
|
4804
4795
|
c("div", Nl, I(t.title), 1)
|
|
4805
4796
|
]),
|
|
4806
4797
|
c("div", Ul, [
|
|
4807
|
-
(r(!0), l(F, null, G(t.options, (
|
|
4808
|
-
key:
|
|
4809
|
-
class:
|
|
4798
|
+
(r(!0), l(F, null, G(t.options, (x) => (r(), l("div", {
|
|
4799
|
+
key: x.value,
|
|
4800
|
+
class: k([
|
|
4810
4801
|
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-2 text-sm outline-hidden select-none transition-colors",
|
|
4811
|
-
|
|
4802
|
+
x.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-accent hover:text-accent-foreground"
|
|
4812
4803
|
]),
|
|
4813
|
-
onClick: (
|
|
4804
|
+
onClick: (S) => !x.disabled && h(x.value, !m(x.value))
|
|
4814
4805
|
}, [
|
|
4815
|
-
|
|
4816
|
-
"model-value":
|
|
4817
|
-
disabled:
|
|
4806
|
+
_(cr, {
|
|
4807
|
+
"model-value": m(x.value),
|
|
4808
|
+
disabled: x.disabled,
|
|
4818
4809
|
class: "pointer-events-none"
|
|
4819
4810
|
}, null, 8, ["model-value", "disabled"]),
|
|
4820
|
-
c("span", Gl, I(
|
|
4811
|
+
c("span", Gl, I(x.label), 1)
|
|
4821
4812
|
], 10, Hl))), 128))
|
|
4822
4813
|
])
|
|
4823
4814
|
])
|
|
@@ -4841,13 +4832,13 @@ const Ol = Al("chevron-down", [
|
|
|
4841
4832
|
},
|
|
4842
4833
|
emits: ["update:modelValue"],
|
|
4843
4834
|
setup(t, { emit: e }) {
|
|
4844
|
-
const a = t, o = e, n =
|
|
4835
|
+
const a = t, o = e, n = w({
|
|
4845
4836
|
get: () => a.modelValue,
|
|
4846
4837
|
set: (m) => o("update:modelValue", m)
|
|
4847
|
-
}), i = U(), p =
|
|
4848
|
-
return (m,
|
|
4849
|
-
const
|
|
4850
|
-
return t.multiple ? (r(), g(
|
|
4838
|
+
}), i = U(), p = w(() => a.customClass || i.class || "");
|
|
4839
|
+
return (m, $) => {
|
|
4840
|
+
const h = be("SelectMultiple");
|
|
4841
|
+
return t.multiple ? (r(), g(h, b({ key: 0 }, {
|
|
4851
4842
|
modelValue: t.modelValue,
|
|
4852
4843
|
options: t.options,
|
|
4853
4844
|
placeholder: t.placeholder,
|
|
@@ -4857,28 +4848,28 @@ const Ol = Al("chevron-down", [
|
|
|
4857
4848
|
size: m.size,
|
|
4858
4849
|
customClass: p.value
|
|
4859
4850
|
}, {
|
|
4860
|
-
"onUpdate:modelValue":
|
|
4851
|
+
"onUpdate:modelValue": $[0] || ($[0] = (v) => m.$emit("update:modelValue", v))
|
|
4861
4852
|
}), null, 16)) : (r(), g(s(ro), {
|
|
4862
4853
|
key: 1,
|
|
4863
4854
|
modelValue: n.value,
|
|
4864
|
-
"onUpdate:modelValue":
|
|
4855
|
+
"onUpdate:modelValue": $[1] || ($[1] = (v) => n.value = v),
|
|
4865
4856
|
disabled: t.disabled
|
|
4866
4857
|
}, {
|
|
4867
4858
|
default: u(() => [
|
|
4868
|
-
|
|
4859
|
+
_(s(dt), { class: "w-full" }, {
|
|
4869
4860
|
default: u(() => [
|
|
4870
|
-
|
|
4861
|
+
_(s(ct), { placeholder: t.placeholder }, null, 8, ["placeholder"])
|
|
4871
4862
|
]),
|
|
4872
4863
|
_: 1
|
|
4873
4864
|
}),
|
|
4874
|
-
|
|
4865
|
+
_(s(lt), null, {
|
|
4875
4866
|
default: u(() => [
|
|
4876
|
-
(r(!0), l(F, null, G(t.options, (
|
|
4877
|
-
key: String(
|
|
4878
|
-
value: String(
|
|
4867
|
+
(r(!0), l(F, null, G(t.options, (v) => (r(), g(s(it), {
|
|
4868
|
+
key: String(v.value),
|
|
4869
|
+
value: String(v.value)
|
|
4879
4870
|
}, {
|
|
4880
4871
|
default: u(() => [
|
|
4881
|
-
O(I(
|
|
4872
|
+
O(I(v.label), 1)
|
|
4882
4873
|
]),
|
|
4883
4874
|
_: 2
|
|
4884
4875
|
}, 1032, ["value"]))), 128))
|
|
@@ -4902,7 +4893,7 @@ const Ol = Al("chevron-down", [
|
|
|
4902
4893
|
setup(t) {
|
|
4903
4894
|
const e = t, a = D(e, "class");
|
|
4904
4895
|
return (o, n) => (r(), g(s(Qe), b({ "data-slot": "separator-root" }, s(a), {
|
|
4905
|
-
class: s(
|
|
4896
|
+
class: s(C)(
|
|
4906
4897
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
4907
4898
|
e.class
|
|
4908
4899
|
)
|
|
@@ -4940,7 +4931,7 @@ const Ol = Al("chevron-down", [
|
|
|
4940
4931
|
}
|
|
4941
4932
|
},
|
|
4942
4933
|
setup(t) {
|
|
4943
|
-
const e = t, a = U(), o =
|
|
4934
|
+
const e = t, a = U(), o = w(() => e.align === "start" ? "justify-start" : e.align === "end" ? "justify-end" : "justify-center");
|
|
4944
4935
|
return (n, i) => (r(), g(s(Wl), b({
|
|
4945
4936
|
role: t.role,
|
|
4946
4937
|
"aria-orientation": t.orientation,
|
|
@@ -4956,7 +4947,7 @@ const Ol = Al("chevron-down", [
|
|
|
4956
4947
|
default: u(() => [
|
|
4957
4948
|
t.text ? (r(), l("div", ql, [
|
|
4958
4949
|
c("div", {
|
|
4959
|
-
class:
|
|
4950
|
+
class: k(["relative flex w-full", o.value])
|
|
4960
4951
|
}, [
|
|
4961
4952
|
c("span", Kl, I(t.text), 1)
|
|
4962
4953
|
], 2)
|
|
@@ -4979,18 +4970,18 @@ const Ol = Al("chevron-down", [
|
|
|
4979
4970
|
emits: ["update:open"],
|
|
4980
4971
|
setup(t) {
|
|
4981
4972
|
return (e, a) => (r(), g(Pt, { to: "body" }, [
|
|
4982
|
-
|
|
4973
|
+
_(Oe, { name: "fade" }, {
|
|
4983
4974
|
default: u(() => [
|
|
4984
4975
|
t.open ? (r(), l("div", Xl)) : z("", !0)
|
|
4985
4976
|
]),
|
|
4986
4977
|
_: 1
|
|
4987
4978
|
}),
|
|
4988
|
-
|
|
4979
|
+
_(Oe, { name: "slide" }, {
|
|
4989
4980
|
default: u(() => [
|
|
4990
4981
|
t.open ? (r(), l("div", {
|
|
4991
4982
|
key: 0,
|
|
4992
4983
|
"data-slot": "sheet-content",
|
|
4993
|
-
class:
|
|
4984
|
+
class: k([
|
|
4994
4985
|
"bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out",
|
|
4995
4986
|
t.side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
4996
4987
|
t.side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -5042,7 +5033,7 @@ const Ol = Al("chevron-down", [
|
|
|
5042
5033
|
return (o, n) => e.collapsible === "none" ? (r(), l("div", b({
|
|
5043
5034
|
key: 0,
|
|
5044
5035
|
"data-slot": "sidebar",
|
|
5045
|
-
class: s(
|
|
5036
|
+
class: s(C)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", e.class)
|
|
5046
5037
|
}, o.$attrs), [
|
|
5047
5038
|
d(o.$slots, "default")
|
|
5048
5039
|
], 16)) : s(a).isMobile ? (r(), g(Zl, b({
|
|
@@ -5051,7 +5042,7 @@ const Ol = Al("chevron-down", [
|
|
|
5051
5042
|
"onUpdate:open": s(a).setOpenMobile
|
|
5052
5043
|
}, o.$attrs), {
|
|
5053
5044
|
default: u(() => [
|
|
5054
|
-
|
|
5045
|
+
_(co, {
|
|
5055
5046
|
"data-sidebar": "sidebar",
|
|
5056
5047
|
"data-slot": "sidebar",
|
|
5057
5048
|
"data-mobile": "true",
|
|
@@ -5060,15 +5051,15 @@ const Ol = Al("chevron-down", [
|
|
|
5060
5051
|
side: e.side
|
|
5061
5052
|
}, {
|
|
5062
5053
|
default: u(() => [
|
|
5063
|
-
|
|
5054
|
+
_(po, { class: "sr-only" }, {
|
|
5064
5055
|
default: u(() => [
|
|
5065
|
-
|
|
5056
|
+
_(fo, null, {
|
|
5066
5057
|
default: u(() => [...n[0] || (n[0] = [
|
|
5067
5058
|
O("Sidebar", -1)
|
|
5068
5059
|
])]),
|
|
5069
5060
|
_: 1
|
|
5070
5061
|
}),
|
|
5071
|
-
|
|
5062
|
+
_(uo, null, {
|
|
5072
5063
|
default: u(() => [...n[1] || (n[1] = [
|
|
5073
5064
|
O("Displays the mobile sidebar.", -1)
|
|
5074
5065
|
])]),
|
|
@@ -5096,7 +5087,7 @@ const Ol = Al("chevron-down", [
|
|
|
5096
5087
|
}, [
|
|
5097
5088
|
c("div", {
|
|
5098
5089
|
"data-slot": "sidebar-gap",
|
|
5099
|
-
class:
|
|
5090
|
+
class: k(s(C)(
|
|
5100
5091
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
5101
5092
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
5102
5093
|
"group-data-[side=right]:rotate-180",
|
|
@@ -5105,7 +5096,7 @@ const Ol = Al("chevron-down", [
|
|
|
5105
5096
|
}, null, 2),
|
|
5106
5097
|
c("div", b({
|
|
5107
5098
|
"data-slot": "sidebar-container",
|
|
5108
|
-
class: s(
|
|
5099
|
+
class: s(C)(
|
|
5109
5100
|
"fixed inset-y-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
5110
5101
|
e.side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
5111
5102
|
e.variant === "floating" || e.variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-autocollapse)+var(--spacing-4)+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
@@ -5133,10 +5124,10 @@ const Ol = Al("chevron-down", [
|
|
|
5133
5124
|
e.onChange && e.onChange(n.value);
|
|
5134
5125
|
}
|
|
5135
5126
|
return (o, n) => (r(), l("div", {
|
|
5136
|
-
class:
|
|
5127
|
+
class: k(["mb-4 px-1", e.class])
|
|
5137
5128
|
}, [
|
|
5138
5129
|
c("div", ai, [
|
|
5139
|
-
|
|
5130
|
+
_(s(me), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
5140
5131
|
c("input", {
|
|
5141
5132
|
type: "text",
|
|
5142
5133
|
placeholder: e.placeholder,
|
|
@@ -5171,11 +5162,11 @@ const Ol = Al("chevron-down", [
|
|
|
5171
5162
|
e.onChange && e.onChange(p.value);
|
|
5172
5163
|
}
|
|
5173
5164
|
return (i, p) => (r(), l("div", {
|
|
5174
|
-
class:
|
|
5165
|
+
class: k(["mb-4 px-1 relative z-10", e.class])
|
|
5175
5166
|
}, [
|
|
5176
5167
|
c("div", ri, [
|
|
5177
5168
|
e.isExpanded || e.isLocked ? (r(), l("div", ni, [
|
|
5178
|
-
|
|
5169
|
+
_(s(me), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
5179
5170
|
c("input", {
|
|
5180
5171
|
ref_key: "inputRef",
|
|
5181
5172
|
ref: a,
|
|
@@ -5192,7 +5183,7 @@ const Ol = Al("chevron-down", [
|
|
|
5192
5183
|
class: "w-10 h-10 min-w-10 flex items-center justify-center rounded-lg transition-all duration-200 group hover:bg-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset text-muted-foreground hover:text-foreground opacity-100 relative z-20"
|
|
5193
5184
|
}, [
|
|
5194
5185
|
c("div", di, [
|
|
5195
|
-
|
|
5186
|
+
_(s(me), { class: "w-4 h-4" })
|
|
5196
5187
|
])
|
|
5197
5188
|
], 8, ii))
|
|
5198
5189
|
])
|
|
@@ -5207,7 +5198,7 @@ const Ol = Al("chevron-down", [
|
|
|
5207
5198
|
setup(t) {
|
|
5208
5199
|
const e = t;
|
|
5209
5200
|
return (a, o) => (r(), l("div", {
|
|
5210
|
-
class:
|
|
5201
|
+
class: k(s(C)("flex w-full border overflow-hidden relative z-0 bg-background", e.height, e.class))
|
|
5211
5202
|
}, [
|
|
5212
5203
|
d(a.$slots, "default")
|
|
5213
5204
|
], 2));
|
|
@@ -5224,41 +5215,41 @@ const Ol = Al("chevron-down", [
|
|
|
5224
5215
|
setup(t) {
|
|
5225
5216
|
const e = t;
|
|
5226
5217
|
function a() {
|
|
5227
|
-
const
|
|
5228
|
-
|
|
5218
|
+
const S = V(!1), B = () => {
|
|
5219
|
+
S.value = window.matchMedia("(max-width: 768px)").matches;
|
|
5229
5220
|
};
|
|
5230
5221
|
return re(() => {
|
|
5231
5222
|
B(), window.addEventListener("resize", B);
|
|
5232
5223
|
}), ne(() => {
|
|
5233
5224
|
window.removeEventListener("resize", B);
|
|
5234
|
-
}),
|
|
5225
|
+
}), S;
|
|
5235
5226
|
}
|
|
5236
|
-
const o = a(), n = V(!1), i = (
|
|
5237
|
-
n.value =
|
|
5238
|
-
}, p = V(e.defaultOpen), m =
|
|
5239
|
-
const B = typeof
|
|
5227
|
+
const o = a(), n = V(!1), i = (S) => {
|
|
5228
|
+
n.value = S;
|
|
5229
|
+
}, p = V(e.defaultOpen), m = w(() => e.open !== void 0 ? e.open : p.value), $ = (S) => {
|
|
5230
|
+
const B = typeof S == "function" ? S(m.value) : S;
|
|
5240
5231
|
e.onOpenChange ? e.onOpenChange(B) : p.value = B, document.cookie = `${fi}=${B}; path=/; max-age=${mi}`;
|
|
5241
|
-
},
|
|
5242
|
-
o.value ? i(!n.value) :
|
|
5232
|
+
}, h = () => {
|
|
5233
|
+
o.value ? i(!n.value) : $((S) => !S);
|
|
5243
5234
|
};
|
|
5244
|
-
function
|
|
5245
|
-
|
|
5235
|
+
function v(S) {
|
|
5236
|
+
S.key.toLowerCase() === gi && (S.metaKey || S.ctrlKey) && (S.preventDefault(), h());
|
|
5246
5237
|
}
|
|
5247
5238
|
re(() => {
|
|
5248
|
-
window.addEventListener("keydown",
|
|
5239
|
+
window.addEventListener("keydown", v);
|
|
5249
5240
|
}), ne(() => {
|
|
5250
|
-
window.removeEventListener("keydown",
|
|
5241
|
+
window.removeEventListener("keydown", v);
|
|
5251
5242
|
});
|
|
5252
|
-
const
|
|
5253
|
-
state:
|
|
5243
|
+
const y = w(() => m.value ? "expanded" : "collapsed"), x = w(() => ({
|
|
5244
|
+
state: y.value,
|
|
5254
5245
|
open: m.value,
|
|
5255
|
-
setOpen:
|
|
5246
|
+
setOpen: $,
|
|
5256
5247
|
isMobile: o.value,
|
|
5257
5248
|
openMobile: n.value,
|
|
5258
5249
|
setOpenMobile: i,
|
|
5259
|
-
toggleSidebar:
|
|
5250
|
+
toggleSidebar: h
|
|
5260
5251
|
}));
|
|
5261
|
-
return ue("sidebarContext",
|
|
5252
|
+
return ue("sidebarContext", x.value), (S, B) => (r(), l("div", b({
|
|
5262
5253
|
"data-slot": "sidebar-wrapper",
|
|
5263
5254
|
style: {
|
|
5264
5255
|
"--sidebar-width": ci,
|
|
@@ -5267,8 +5258,8 @@ const Ol = Al("chevron-down", [
|
|
|
5267
5258
|
...e.style
|
|
5268
5259
|
},
|
|
5269
5260
|
class: ["group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full", e.class]
|
|
5270
|
-
},
|
|
5271
|
-
d(
|
|
5261
|
+
}, S.$attrs), [
|
|
5262
|
+
d(S.$slots, "default")
|
|
5272
5263
|
], 16));
|
|
5273
5264
|
}
|
|
5274
5265
|
}), bi = {
|
|
@@ -5288,33 +5279,33 @@ const Ol = Al("chevron-down", [
|
|
|
5288
5279
|
class: String
|
|
5289
5280
|
},
|
|
5290
5281
|
setup(t) {
|
|
5291
|
-
const e = t, a = ve("sidebarContext"), o =
|
|
5292
|
-
() =>
|
|
5282
|
+
const e = t, a = ve("sidebarContext"), o = w(() => a && a.state === "collapsed" && !a.isMobile), n = w(
|
|
5283
|
+
() => C(
|
|
5293
5284
|
"relative w-full flex items-center gap-2 pl-2 pr-3 py-2 rounded-lg text-left transition-all duration-200 group hover:bg-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
5294
5285
|
o.value && "justify-center px-2 w-10 h-10 min-w-10",
|
|
5295
5286
|
e.class
|
|
5296
5287
|
)
|
|
5297
|
-
), i =
|
|
5298
|
-
() =>
|
|
5288
|
+
), i = w(
|
|
5289
|
+
() => C(
|
|
5299
5290
|
e.isActive ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"
|
|
5300
5291
|
)
|
|
5301
|
-
), p =
|
|
5302
|
-
() =>
|
|
5292
|
+
), p = w(
|
|
5293
|
+
() => C(
|
|
5303
5294
|
"relative w-6 h-6 rounded-md flex items-center justify-center transition-colors duration-200",
|
|
5304
5295
|
o.value ? "bg-transparent" : e.isActive ? "bg-primary/15 text-primary" : "bg-muted group-hover:bg-accent text-muted-foreground group-hover:text-foreground"
|
|
5305
5296
|
)
|
|
5306
5297
|
);
|
|
5307
|
-
return (m,
|
|
5298
|
+
return (m, $) => o.value ? (r(), g(ft, { key: 0 }, {
|
|
5308
5299
|
default: u(() => [
|
|
5309
|
-
|
|
5300
|
+
_(gt, { "as-child": "" }, {
|
|
5310
5301
|
default: u(() => [
|
|
5311
5302
|
c("button", {
|
|
5312
|
-
class:
|
|
5313
|
-
onClick:
|
|
5314
|
-
(...
|
|
5303
|
+
class: k(s(C)(n.value, i.value)),
|
|
5304
|
+
onClick: $[0] || ($[0] = //@ts-ignore
|
|
5305
|
+
(...h) => e.onClick && e.onClick(...h))
|
|
5315
5306
|
}, [
|
|
5316
5307
|
c("div", {
|
|
5317
|
-
class:
|
|
5308
|
+
class: k(p.value)
|
|
5318
5309
|
}, [
|
|
5319
5310
|
e.icon ? (r(), g(Y(e.icon), {
|
|
5320
5311
|
key: 0,
|
|
@@ -5325,7 +5316,7 @@ const Ol = Al("chevron-down", [
|
|
|
5325
5316
|
]),
|
|
5326
5317
|
_: 1
|
|
5327
5318
|
}),
|
|
5328
|
-
|
|
5319
|
+
_(mt, {
|
|
5329
5320
|
side: "right",
|
|
5330
5321
|
align: "center"
|
|
5331
5322
|
}, {
|
|
@@ -5340,11 +5331,11 @@ const Ol = Al("chevron-down", [
|
|
|
5340
5331
|
})) : (r(), l("button", {
|
|
5341
5332
|
key: 1,
|
|
5342
5333
|
type: "button",
|
|
5343
|
-
onClick:
|
|
5344
|
-
class:
|
|
5334
|
+
onClick: $[1] || ($[1] = (h) => e.onClick && e.onClick(h)),
|
|
5335
|
+
class: k(s(C)(n.value, i.value, e.class))
|
|
5345
5336
|
}, [
|
|
5346
5337
|
c("div", {
|
|
5347
|
-
class:
|
|
5338
|
+
class: k(s(C)(
|
|
5348
5339
|
"relative w-6 h-6 rounded-md flex items-center justify-center transition-colors duration-200",
|
|
5349
5340
|
o.value ? "bg-transparent" : e.isActive ? "bg-primary/15 text-primary" : "bg-muted group-hover:bg-accent text-muted-foreground group-hover:text-foreground"
|
|
5350
5341
|
))
|
|
@@ -5357,7 +5348,7 @@ const Ol = Al("chevron-down", [
|
|
|
5357
5348
|
o.value ? z("", !0) : (r(), l("span", vi, I(e.label), 1)),
|
|
5358
5349
|
!o.value && e.badge ? (r(), l("span", {
|
|
5359
5350
|
key: 1,
|
|
5360
|
-
class:
|
|
5351
|
+
class: k(s(C)(
|
|
5361
5352
|
"absolute right-3 inline-flex items-center justify-center px-2 py-0.5 text-xs font-medium rounded-full min-w-[1.25rem] h-5",
|
|
5362
5353
|
e.isActive ? "bg-primary/20 text-primary" : "bg-muted text-muted-foreground group-hover:bg-accent group-hover:text-foreground"
|
|
5363
5354
|
))
|
|
@@ -5386,7 +5377,7 @@ const Ol = Al("chevron-down", [
|
|
|
5386
5377
|
d(a.$slots, "default")
|
|
5387
5378
|
]),
|
|
5388
5379
|
e.showFooter !== !1 ? (r(), l("div", yi, [
|
|
5389
|
-
|
|
5380
|
+
_(hi, {
|
|
5390
5381
|
icon: s(Gt),
|
|
5391
5382
|
label: e.footerUser ?? "John Doe",
|
|
5392
5383
|
isActive: e.activeItem === "profile",
|
|
@@ -5401,8 +5392,8 @@ const Ol = Al("chevron-down", [
|
|
|
5401
5392
|
class: { type: String, default: "" }
|
|
5402
5393
|
},
|
|
5403
5394
|
setup(t) {
|
|
5404
|
-
const e = t, a =
|
|
5405
|
-
() =>
|
|
5395
|
+
const e = t, a = w(
|
|
5396
|
+
() => C(
|
|
5406
5397
|
"bg-background relative flex w-full flex-1 flex-col",
|
|
5407
5398
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
5408
5399
|
e.class
|
|
@@ -5410,7 +5401,7 @@ const Ol = Al("chevron-down", [
|
|
|
5410
5401
|
);
|
|
5411
5402
|
return (o, n) => (r(), l("main", {
|
|
5412
5403
|
"data-slot": "sidebar-inset",
|
|
5413
|
-
class:
|
|
5404
|
+
class: k(a.value)
|
|
5414
5405
|
}, [
|
|
5415
5406
|
d(o.$slots, "default")
|
|
5416
5407
|
], 2));
|
|
@@ -5428,13 +5419,13 @@ const Ol = Al("chevron-down", [
|
|
|
5428
5419
|
"data-slot": "sidebar-trigger",
|
|
5429
5420
|
variant: "ghost",
|
|
5430
5421
|
size: "icon",
|
|
5431
|
-
class:
|
|
5422
|
+
class: k(["size-7", n.$props.class]),
|
|
5432
5423
|
onClick: i[0] || (i[0] = (p) => {
|
|
5433
5424
|
o("click", p), s(a)?.toggleSidebar();
|
|
5434
5425
|
})
|
|
5435
5426
|
}, {
|
|
5436
5427
|
default: u(() => [
|
|
5437
|
-
|
|
5428
|
+
_(s(Wt), { class: "w-4 h-4" }),
|
|
5438
5429
|
i[1] || (i[1] = c("span", { class: "sr-only" }, "Toggle Sidebar", -1))
|
|
5439
5430
|
]),
|
|
5440
5431
|
_: 1
|
|
@@ -5448,7 +5439,7 @@ const Ol = Al("chevron-down", [
|
|
|
5448
5439
|
setup(t) {
|
|
5449
5440
|
const e = t;
|
|
5450
5441
|
return (a, o) => (r(), l("div", {
|
|
5451
|
-
class:
|
|
5442
|
+
class: k(["sidebar-group", e.class])
|
|
5452
5443
|
}, [
|
|
5453
5444
|
d(a.$slots, "default")
|
|
5454
5445
|
], 2));
|
|
@@ -5467,7 +5458,7 @@ const Tu = /* @__PURE__ */ T(xi, [["render", ki]]), Du = /* @__PURE__ */ f({
|
|
|
5467
5458
|
setup(t) {
|
|
5468
5459
|
const e = t;
|
|
5469
5460
|
return (a, o) => (r(), l("div", {
|
|
5470
|
-
class:
|
|
5461
|
+
class: k(["sidebar-group-content", e.class])
|
|
5471
5462
|
}, [
|
|
5472
5463
|
d(a.$slots, "default")
|
|
5473
5464
|
], 2));
|
|
@@ -5486,7 +5477,7 @@ const Vu = /* @__PURE__ */ T($i, [["render", Ci]]), Pu = /* @__PURE__ */ f({
|
|
|
5486
5477
|
setup(t) {
|
|
5487
5478
|
const e = t;
|
|
5488
5479
|
return (a, o) => (r(), l("li", {
|
|
5489
|
-
class:
|
|
5480
|
+
class: k(["sidebar-menu-item", e.class])
|
|
5490
5481
|
}, [
|
|
5491
5482
|
d(a.$slots, "default")
|
|
5492
5483
|
], 2));
|
|
@@ -5501,7 +5492,7 @@ const Vu = /* @__PURE__ */ T($i, [["render", Ci]]), Pu = /* @__PURE__ */ f({
|
|
|
5501
5492
|
setup(t) {
|
|
5502
5493
|
const e = t;
|
|
5503
5494
|
return (a, o) => (r(), l("button", {
|
|
5504
|
-
class:
|
|
5495
|
+
class: k([
|
|
5505
5496
|
"sidebar-menu-button w-full flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium transition-colors",
|
|
5506
5497
|
e.isActive ? "bg-accent text-accent-foreground" : "hover:bg-accent hover:text-accent-foreground",
|
|
5507
5498
|
e.class
|
|
@@ -5526,7 +5517,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5526
5517
|
return (a, o) => (r(), l("ul", {
|
|
5527
5518
|
"data-slot": "sidebar-menu-sub",
|
|
5528
5519
|
"data-sidebar": "menu-sub",
|
|
5529
|
-
class:
|
|
5520
|
+
class: k([
|
|
5530
5521
|
"border-sidebar-border ml-4.5 pl-2 pr-4.5 flex min-w-0 translate-x-px flex-col gap-1 border-l pt-1 pb-0.5",
|
|
5531
5522
|
"group-data-[collapsible=icon]:hidden",
|
|
5532
5523
|
e.class
|
|
@@ -5543,7 +5534,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5543
5534
|
setup(t) {
|
|
5544
5535
|
const e = t;
|
|
5545
5536
|
return (a, o) => (r(), l("ul", {
|
|
5546
|
-
class:
|
|
5537
|
+
class: k(["sidebar-menu-sub-content", e.class])
|
|
5547
5538
|
}, [
|
|
5548
5539
|
d(a.$slots, "default")
|
|
5549
5540
|
], 2));
|
|
@@ -5556,7 +5547,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5556
5547
|
setup(t) {
|
|
5557
5548
|
const e = t;
|
|
5558
5549
|
return (a, o) => (r(), l("li", {
|
|
5559
|
-
class:
|
|
5550
|
+
class: k(["sidebar-menu-sub-item", e.class])
|
|
5560
5551
|
}, [
|
|
5561
5552
|
d(a.$slots, "default")
|
|
5562
5553
|
], 2));
|
|
@@ -5569,7 +5560,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5569
5560
|
setup(t) {
|
|
5570
5561
|
const e = t;
|
|
5571
5562
|
return (a, o) => (r(), l("button", {
|
|
5572
|
-
class:
|
|
5563
|
+
class: k(["sidebar-menu-sub-trigger", e.class])
|
|
5573
5564
|
}, [
|
|
5574
5565
|
d(a.$slots, "default")
|
|
5575
5566
|
], 2));
|
|
@@ -5582,7 +5573,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5582
5573
|
setup(t) {
|
|
5583
5574
|
const e = t;
|
|
5584
5575
|
return (a, o) => (r(), l("header", {
|
|
5585
|
-
class:
|
|
5576
|
+
class: k(["sidebar-header", e.class])
|
|
5586
5577
|
}, [
|
|
5587
5578
|
d(a.$slots, "default")
|
|
5588
5579
|
], 2));
|
|
@@ -5595,7 +5586,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5595
5586
|
setup(t) {
|
|
5596
5587
|
const e = t;
|
|
5597
5588
|
return (a, o) => (r(), l("footer", {
|
|
5598
|
-
class:
|
|
5589
|
+
class: k(["sidebar-footer", e.class])
|
|
5599
5590
|
}, [
|
|
5600
5591
|
d(a.$slots, "default")
|
|
5601
5592
|
], 2));
|
|
@@ -5608,7 +5599,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5608
5599
|
setup(t) {
|
|
5609
5600
|
const e = t;
|
|
5610
5601
|
return (a, o) => (r(), l("div", {
|
|
5611
|
-
class:
|
|
5602
|
+
class: k(["sidebar-title", e.class])
|
|
5612
5603
|
}, [
|
|
5613
5604
|
d(a.$slots, "default")
|
|
5614
5605
|
], 2));
|
|
@@ -5621,7 +5612,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5621
5612
|
setup(t) {
|
|
5622
5613
|
const e = t;
|
|
5623
5614
|
return (a, o) => (r(), l("div", {
|
|
5624
|
-
class:
|
|
5615
|
+
class: k(["sidebar-description", e.class])
|
|
5625
5616
|
}, [
|
|
5626
5617
|
d(a.$slots, "default")
|
|
5627
5618
|
], 2));
|
|
@@ -5634,7 +5625,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5634
5625
|
setup(t) {
|
|
5635
5626
|
const e = t;
|
|
5636
5627
|
return (a, o) => (r(), l("hr", {
|
|
5637
|
-
class:
|
|
5628
|
+
class: k(["sidebar-separator", e.class])
|
|
5638
5629
|
}, null, 2));
|
|
5639
5630
|
}
|
|
5640
5631
|
}), Wu = /* @__PURE__ */ f({
|
|
@@ -5645,7 +5636,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5645
5636
|
setup(t) {
|
|
5646
5637
|
const e = t;
|
|
5647
5638
|
return (a, o) => (r(), l("div", {
|
|
5648
|
-
class:
|
|
5639
|
+
class: k(["sidebar-scroll-area", e.class])
|
|
5649
5640
|
}, [
|
|
5650
5641
|
d(a.$slots, "default")
|
|
5651
5642
|
], 2));
|
|
@@ -5658,7 +5649,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5658
5649
|
setup(t) {
|
|
5659
5650
|
const e = t;
|
|
5660
5651
|
return (a, o) => (r(), l("span", {
|
|
5661
|
-
class:
|
|
5652
|
+
class: k(["sidebar-shortcut", e.class])
|
|
5662
5653
|
}, [
|
|
5663
5654
|
d(a.$slots, "default")
|
|
5664
5655
|
], 2));
|
|
@@ -5671,7 +5662,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5671
5662
|
setup(t) {
|
|
5672
5663
|
const e = t;
|
|
5673
5664
|
return (a, o) => (r(), l("button", {
|
|
5674
|
-
class:
|
|
5665
|
+
class: k(["sidebar-collapse-button", e.class])
|
|
5675
5666
|
}, [
|
|
5676
5667
|
d(a.$slots, "default")
|
|
5677
5668
|
], 2));
|
|
@@ -5684,7 +5675,7 @@ const Ou = /* @__PURE__ */ T(Bi, [["render", Ii]]), ju = /* @__PURE__ */ f({
|
|
|
5684
5675
|
setup(t) {
|
|
5685
5676
|
const e = t;
|
|
5686
5677
|
return (a, o) => (r(), l("button", {
|
|
5687
|
-
class:
|
|
5678
|
+
class: k(["sidebar-expand-button", e.class])
|
|
5688
5679
|
}, [
|
|
5689
5680
|
d(a.$slots, "default")
|
|
5690
5681
|
], 2));
|
|
@@ -5697,16 +5688,16 @@ function Mi({
|
|
|
5697
5688
|
unlockCollapseDelay: o = 300,
|
|
5698
5689
|
onLockToggle: n
|
|
5699
5690
|
} = {}) {
|
|
5700
|
-
const i = V(t), p = V(!1), m = { current: void 0 },
|
|
5701
|
-
|
|
5702
|
-
},
|
|
5703
|
-
|
|
5691
|
+
const i = V(t), p = V(!1), m = { current: void 0 }, $ = w(() => !i.value && !e.trim()), h = w(() => i.value || e.trim() ? !0 : p.value), v = () => {
|
|
5692
|
+
$.value && (m.current && clearTimeout(m.current), p.value = !0);
|
|
5693
|
+
}, y = () => {
|
|
5694
|
+
$.value && (m.current = setTimeout(() => {
|
|
5704
5695
|
p.value = !1;
|
|
5705
5696
|
}, a));
|
|
5706
|
-
},
|
|
5697
|
+
}, x = () => {
|
|
5707
5698
|
i.value = !i.value, n && n(i.value);
|
|
5708
|
-
},
|
|
5709
|
-
|
|
5699
|
+
}, S = () => {
|
|
5700
|
+
h.value || (p.value = !0);
|
|
5710
5701
|
};
|
|
5711
5702
|
return ne(() => {
|
|
5712
5703
|
m.current && clearTimeout(m.current);
|
|
@@ -5715,12 +5706,12 @@ function Mi({
|
|
|
5715
5706
|
}), {
|
|
5716
5707
|
isLocked: i,
|
|
5717
5708
|
isHovered: p,
|
|
5718
|
-
isExpanded:
|
|
5719
|
-
shouldAutoCollapse:
|
|
5720
|
-
handleMouseEnter:
|
|
5721
|
-
handleMouseLeave:
|
|
5722
|
-
toggleLock:
|
|
5723
|
-
handleSearchClick:
|
|
5709
|
+
isExpanded: h,
|
|
5710
|
+
shouldAutoCollapse: $,
|
|
5711
|
+
handleMouseEnter: v,
|
|
5712
|
+
handleMouseLeave: y,
|
|
5713
|
+
toggleLock: x,
|
|
5714
|
+
handleSearchClick: S
|
|
5724
5715
|
};
|
|
5725
5716
|
}
|
|
5726
5717
|
const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" }, Pi = {
|
|
@@ -5764,16 +5755,16 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5764
5755
|
};
|
|
5765
5756
|
}
|
|
5766
5757
|
e.variant === "basic" && a(e.initialActiveItem, e.initialActiveSubItem);
|
|
5767
|
-
const o = V(e.defaultOpen), n = V(""), i =
|
|
5758
|
+
const o = V(e.defaultOpen), n = V(""), i = w(() => e.open !== void 0 ? e.open : o.value), p = (A) => {
|
|
5768
5759
|
e.onOpenChange ? e.onOpenChange(A) : o.value = A;
|
|
5769
|
-
}, m =
|
|
5760
|
+
}, m = w(() => e.searchValue || n.value), $ = (A) => {
|
|
5770
5761
|
e.onSearchChange ? e.onSearchChange(A) : n.value = A;
|
|
5771
5762
|
}, {
|
|
5772
|
-
isLocked:
|
|
5773
|
-
isExpanded:
|
|
5774
|
-
isLockButtonHovered:
|
|
5775
|
-
handleLockButtonMouseEnter:
|
|
5776
|
-
handleLockButtonMouseLeave:
|
|
5763
|
+
isLocked: h,
|
|
5764
|
+
isExpanded: v,
|
|
5765
|
+
isLockButtonHovered: y,
|
|
5766
|
+
handleLockButtonMouseEnter: x,
|
|
5767
|
+
handleLockButtonMouseLeave: S,
|
|
5777
5768
|
handleMouseEnter: B,
|
|
5778
5769
|
handleMouseLeave: P,
|
|
5779
5770
|
toggleLock: R,
|
|
@@ -5784,17 +5775,17 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5784
5775
|
i.value,
|
|
5785
5776
|
p,
|
|
5786
5777
|
e.onLockToggle
|
|
5787
|
-
), X = () => e.variant === "collapsible" || e.variant === "autocollapse" ? "icon" : "none", E =
|
|
5778
|
+
), X = () => e.variant === "collapsible" || e.variant === "autocollapse" ? "icon" : "none", E = w(() => [
|
|
5788
5779
|
"transition-all duration-300 ease-in-out",
|
|
5789
|
-
e.variant === "autocollapse" && !
|
|
5780
|
+
e.variant === "autocollapse" && !v.value && "overflow-hidden",
|
|
5790
5781
|
e.className
|
|
5791
5782
|
].filter(Boolean).join(" "));
|
|
5792
5783
|
return (A, j) => e.variant === "basic" ? (r(), l("div", {
|
|
5793
5784
|
key: 0,
|
|
5794
|
-
class:
|
|
5785
|
+
class: k(["w-64 border bg-card p-3 flex flex-col", e.height, e.className].filter(Boolean).join(" "))
|
|
5795
5786
|
}, [
|
|
5796
|
-
|
|
5797
|
-
|
|
5787
|
+
_(s(oi)),
|
|
5788
|
+
_($e, {
|
|
5798
5789
|
navigationItems: e.navigationItems,
|
|
5799
5790
|
recentItems: e.recentItems,
|
|
5800
5791
|
activeItem: e.initialActiveItem,
|
|
@@ -5817,14 +5808,14 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5817
5808
|
}, {
|
|
5818
5809
|
default: u(() => [
|
|
5819
5810
|
c("div", Ti, [
|
|
5820
|
-
|
|
5821
|
-
open: s(
|
|
5811
|
+
_(He, {
|
|
5812
|
+
open: s(v),
|
|
5822
5813
|
onOpenChange: () => {
|
|
5823
5814
|
}
|
|
5824
5815
|
}, {
|
|
5825
5816
|
default: u(() => [
|
|
5826
5817
|
c("div", {
|
|
5827
|
-
class:
|
|
5818
|
+
class: k(["group relative z-10 transition-all duration-300 overflow-visible", s(y) ? "border-r-2 border-r-primary" : "border-r border-r-border"]),
|
|
5828
5819
|
onMouseenter: j[3] || (j[3] = //@ts-ignore
|
|
5829
5820
|
(...L) => s(B) && s(B)(...L)),
|
|
5830
5821
|
onMouseleave: j[4] || (j[4] = //@ts-ignore
|
|
@@ -5834,20 +5825,20 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5834
5825
|
onClick: j[0] || (j[0] = //@ts-ignore
|
|
5835
5826
|
(...L) => s(R) && s(R)(...L)),
|
|
5836
5827
|
onMouseenter: j[1] || (j[1] = //@ts-ignore
|
|
5837
|
-
(...L) => s(
|
|
5828
|
+
(...L) => s(x) && s(x)(...L)),
|
|
5838
5829
|
onMouseleave: j[2] || (j[2] = //@ts-ignore
|
|
5839
|
-
(...L) => s(
|
|
5840
|
-
class:
|
|
5830
|
+
(...L) => s(S) && s(S)(...L)),
|
|
5831
|
+
class: k([
|
|
5841
5832
|
"absolute top-4 z-20 w-7 h-7 rounded-full bg-card border",
|
|
5842
5833
|
"flex items-center justify-center text-primary hover:text-primary-foreground",
|
|
5843
5834
|
"transition-all duration-300 hover:bg-primary shadow-sm",
|
|
5844
5835
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
5845
5836
|
"opacity-0 group-hover:opacity-100 transition-opacity duration-200",
|
|
5846
|
-
(s(
|
|
5837
|
+
(s(v), "-right-3.5")
|
|
5847
5838
|
]),
|
|
5848
|
-
title: s(
|
|
5839
|
+
title: s(h) ? "Click to enable auto-collapse" : "Click to lock sidebar open"
|
|
5849
5840
|
}, [
|
|
5850
|
-
s(
|
|
5841
|
+
s(h) ? (r(), g(s(qt), {
|
|
5851
5842
|
key: 0,
|
|
5852
5843
|
class: "w-3.5 h-3.5"
|
|
5853
5844
|
})) : (r(), g(s(Kt), {
|
|
@@ -5855,7 +5846,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5855
5846
|
class: "w-3.5 h-3.5"
|
|
5856
5847
|
}))
|
|
5857
5848
|
], 42, Di),
|
|
5858
|
-
|
|
5849
|
+
_(ke, {
|
|
5859
5850
|
collapsible: "icon",
|
|
5860
5851
|
class: "relative bg-card py-2 overflow-visible"
|
|
5861
5852
|
}, {
|
|
@@ -5863,22 +5854,22 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5863
5854
|
c("div", {
|
|
5864
5855
|
class: "flex flex-col h-full",
|
|
5865
5856
|
style: H({
|
|
5866
|
-
paddingLeft: s(
|
|
5867
|
-
paddingRight: s(
|
|
5857
|
+
paddingLeft: s(v) ? "8px" : "4px",
|
|
5858
|
+
paddingRight: s(v) ? "16px" : "4px",
|
|
5868
5859
|
width: "100%",
|
|
5869
5860
|
minWidth: 0,
|
|
5870
5861
|
overflow: "visible"
|
|
5871
5862
|
})
|
|
5872
5863
|
}, [
|
|
5873
|
-
|
|
5874
|
-
isExpanded: s(
|
|
5875
|
-
isLocked: s(
|
|
5864
|
+
_(Ne, {
|
|
5865
|
+
isExpanded: s(v),
|
|
5866
|
+
isLocked: s(h),
|
|
5876
5867
|
onSearchClick: s(K),
|
|
5877
5868
|
value: m.value,
|
|
5878
|
-
onChange:
|
|
5869
|
+
onChange: $,
|
|
5879
5870
|
placeholder: e.data?.searchPlaceholder || "Search..."
|
|
5880
5871
|
}, null, 8, ["isExpanded", "isLocked", "onSearchClick", "value", "placeholder"]),
|
|
5881
|
-
|
|
5872
|
+
_($e, {
|
|
5882
5873
|
navigationItems: e.navigationItems,
|
|
5883
5874
|
recentItems: e.recentItems,
|
|
5884
5875
|
activeItem: e.initialActiveItem,
|
|
@@ -5902,7 +5893,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5902
5893
|
_: 3
|
|
5903
5894
|
}, 8, ["open"])
|
|
5904
5895
|
]),
|
|
5905
|
-
|
|
5896
|
+
_(Ge, { class: "bg-background z-[-1]" }, {
|
|
5906
5897
|
default: u(() => [
|
|
5907
5898
|
c("div", Vi, [
|
|
5908
5899
|
d(A.$slots, "activeContent")
|
|
@@ -5913,23 +5904,23 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5913
5904
|
]),
|
|
5914
5905
|
_: 3
|
|
5915
5906
|
})) : e.variant === "collapsible" ? (r(), l("div", Pi, [
|
|
5916
|
-
|
|
5907
|
+
_(He, {
|
|
5917
5908
|
open: i.value,
|
|
5918
5909
|
onOpenChange: p
|
|
5919
5910
|
}, {
|
|
5920
5911
|
default: u(() => [
|
|
5921
|
-
|
|
5912
|
+
_(Ue, { height: "h-[500px]" }, {
|
|
5922
5913
|
default: u(() => [
|
|
5923
|
-
|
|
5914
|
+
_(ke, {
|
|
5924
5915
|
collapsible: "icon",
|
|
5925
5916
|
class: "relative bg-card px-1 py-2"
|
|
5926
5917
|
}, {
|
|
5927
5918
|
default: u(() => [
|
|
5928
|
-
|
|
5919
|
+
_(Ne, {
|
|
5929
5920
|
isExpanded: i.value,
|
|
5930
5921
|
onSearchClick: () => p(!0)
|
|
5931
5922
|
}, null, 8, ["isExpanded", "onSearchClick"]),
|
|
5932
|
-
|
|
5923
|
+
_($e, {
|
|
5933
5924
|
navigationItems: e.navigationItems,
|
|
5934
5925
|
recentItems: e.recentItems,
|
|
5935
5926
|
activeItem: e.initialActiveItem,
|
|
@@ -5949,7 +5940,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5949
5940
|
]),
|
|
5950
5941
|
_: 3
|
|
5951
5942
|
}),
|
|
5952
|
-
|
|
5943
|
+
_(Ge, { class: "bg-background" }, {
|
|
5953
5944
|
default: u(() => [
|
|
5954
5945
|
c("div", Ai, [
|
|
5955
5946
|
d(A.$slots, "activeContent")
|
|
@@ -5984,7 +5975,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
5984
5975
|
setup(t) {
|
|
5985
5976
|
const e = t;
|
|
5986
5977
|
return (a, o) => (r(), l("section", {
|
|
5987
|
-
class:
|
|
5978
|
+
class: k(["sidebar-section", e.class])
|
|
5988
5979
|
}, [
|
|
5989
5980
|
d(a.$slots, "default")
|
|
5990
5981
|
], 2));
|
|
@@ -6025,26 +6016,26 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6025
6016
|
const a = t, o = e, n = D(a, "class"), i = N(n, o);
|
|
6026
6017
|
return (p, m) => (r(), g(s(ss), b({
|
|
6027
6018
|
"data-slot": "slider",
|
|
6028
|
-
class: s(
|
|
6019
|
+
class: s(C)(
|
|
6029
6020
|
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
6030
6021
|
a.class
|
|
6031
6022
|
)
|
|
6032
6023
|
}, s(i)), {
|
|
6033
|
-
default: u(({ modelValue:
|
|
6034
|
-
|
|
6024
|
+
default: u(({ modelValue: $ }) => [
|
|
6025
|
+
_(s(os), {
|
|
6035
6026
|
"data-slot": "slider-track",
|
|
6036
6027
|
class: "h-2 bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
6037
6028
|
}, {
|
|
6038
6029
|
default: u(() => [
|
|
6039
|
-
|
|
6030
|
+
_(s(rs), {
|
|
6040
6031
|
"data-slot": "slider-range",
|
|
6041
6032
|
class: "h-full bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
6042
6033
|
})
|
|
6043
6034
|
]),
|
|
6044
6035
|
_: 1
|
|
6045
6036
|
}),
|
|
6046
|
-
(r(!0), l(F, null, G(
|
|
6047
|
-
key:
|
|
6037
|
+
(r(!0), l(F, null, G($, (h, v) => (r(), g(s(ns), {
|
|
6038
|
+
key: v,
|
|
6048
6039
|
"data-slot": "slider-thumb",
|
|
6049
6040
|
class: "data-[orientation=vertical]:-left-[7px] border-primary h-5 w-5 bg-slider-thumb bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
6050
6041
|
}))), 128))
|
|
@@ -6067,7 +6058,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6067
6058
|
},
|
|
6068
6059
|
emits: ["update:modelValue"],
|
|
6069
6060
|
setup(t, { emit: e }) {
|
|
6070
|
-
const a = t, o = e, n =
|
|
6061
|
+
const a = t, o = e, n = w({
|
|
6071
6062
|
get: () => [a.modelValue],
|
|
6072
6063
|
set: (i) => o("update:modelValue", i[0])
|
|
6073
6064
|
});
|
|
@@ -6078,7 +6069,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6078
6069
|
max: t.max,
|
|
6079
6070
|
step: t.step,
|
|
6080
6071
|
disabled: t.disabled,
|
|
6081
|
-
class:
|
|
6072
|
+
class: k(t.class)
|
|
6082
6073
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "class"]));
|
|
6083
6074
|
}
|
|
6084
6075
|
}), ji = {
|
|
@@ -6095,9 +6086,9 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6095
6086
|
setup(t) {
|
|
6096
6087
|
const e = V([]);
|
|
6097
6088
|
let a = 0;
|
|
6098
|
-
function o({ title: i, description: p, icon: m, duration:
|
|
6099
|
-
const
|
|
6100
|
-
e.value.push({ id:
|
|
6089
|
+
function o({ title: i, description: p, icon: m, duration: $ = 3e3 }) {
|
|
6090
|
+
const h = ++a;
|
|
6091
|
+
e.value.push({ id: h, title: i, description: p, icon: m, visible: !0 }), setTimeout(() => n(h), $);
|
|
6101
6092
|
}
|
|
6102
6093
|
function n(i) {
|
|
6103
6094
|
const p = e.value.findIndex((m) => m.id === i);
|
|
@@ -6113,7 +6104,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6113
6104
|
class: "fixed z-50 w-full flex flex-col items-center pointer-events-none top-4 left-0"
|
|
6114
6105
|
}, {
|
|
6115
6106
|
default: u(() => [
|
|
6116
|
-
(r(!0), l(F, null, G(e.value, (m,
|
|
6107
|
+
(r(!0), l(F, null, G(e.value, (m, $) => (r(), l("div", {
|
|
6117
6108
|
key: m.id,
|
|
6118
6109
|
class: "bg-card border border-border shadow-lg rounded-lg px-4 py-3 mb-2 flex items-center gap-3 pointer-events-auto min-w-[240px] max-w-xs",
|
|
6119
6110
|
style: H({ opacity: m.visible ? 1 : 0 })
|
|
@@ -6125,7 +6116,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6125
6116
|
]),
|
|
6126
6117
|
c("button", {
|
|
6127
6118
|
class: "ml-2 text-muted-foreground hover:text-foreground focus:outline-none",
|
|
6128
|
-
onClick: (
|
|
6119
|
+
onClick: (h) => n(m.id),
|
|
6129
6120
|
"aria-label": "Close"
|
|
6130
6121
|
}, " × ", 8, Ei)
|
|
6131
6122
|
], 4))), 128))
|
|
@@ -6171,7 +6162,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6171
6162
|
emits: ["select"],
|
|
6172
6163
|
setup(t, { emit: e }) {
|
|
6173
6164
|
return (a, o) => (r(), l("button", {
|
|
6174
|
-
class:
|
|
6165
|
+
class: k(["inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow", { "bg-background text-foreground shadow": t.active }]),
|
|
6175
6166
|
disabled: t.disabled,
|
|
6176
6167
|
onClick: o[0] || (o[0] = (n) => a.$emit("select", t.value)),
|
|
6177
6168
|
type: "button"
|
|
@@ -6191,7 +6182,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6191
6182
|
const a = M("[&_tr:last-child]:border-0", t.class);
|
|
6192
6183
|
return (o, n) => (r(), l("tbody", {
|
|
6193
6184
|
"data-slot": "table-body",
|
|
6194
|
-
class:
|
|
6185
|
+
class: k(s(a))
|
|
6195
6186
|
}, [
|
|
6196
6187
|
d(o.$slots, "default")
|
|
6197
6188
|
], 2));
|
|
@@ -6224,7 +6215,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6224
6215
|
const a = M("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", t.class);
|
|
6225
6216
|
return (o, n) => (r(), l("td", {
|
|
6226
6217
|
"data-slot": "table-cell",
|
|
6227
|
-
class:
|
|
6218
|
+
class: k(s(a))
|
|
6228
6219
|
}, [
|
|
6229
6220
|
d(o.$slots, "default")
|
|
6230
6221
|
], 2));
|
|
@@ -6238,10 +6229,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6238
6229
|
}
|
|
6239
6230
|
},
|
|
6240
6231
|
setup(t) {
|
|
6241
|
-
const a = M("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", t.class);
|
|
6232
|
+
const a = M("bg-muted/50 border-t border-border font-medium [&>tr]:last:border-b-0", t.class);
|
|
6242
6233
|
return (o, n) => (r(), l("tfoot", {
|
|
6243
6234
|
"data-slot": "table-footer",
|
|
6244
|
-
class:
|
|
6235
|
+
class: k(s(a))
|
|
6245
6236
|
}, [
|
|
6246
6237
|
d(o.$slots, "default")
|
|
6247
6238
|
], 2));
|
|
@@ -6275,17 +6266,17 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6275
6266
|
Z(() => a.width, (B) => {
|
|
6276
6267
|
B && (p.value = B);
|
|
6277
6268
|
});
|
|
6278
|
-
const m =
|
|
6269
|
+
const m = w(
|
|
6279
6270
|
() => M(
|
|
6280
6271
|
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
6281
6272
|
a.sortable && "cursor-pointer select-none hover:bg-muted/50 focus-visible:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-colors",
|
|
6282
6273
|
"relative group",
|
|
6283
6274
|
a.class
|
|
6284
6275
|
)
|
|
6285
|
-
),
|
|
6276
|
+
), $ = w(() => {
|
|
6286
6277
|
if (a.sortable)
|
|
6287
6278
|
return a.sortDirection === "asc" ? "ascending" : a.sortDirection === "desc" ? "descending" : "none";
|
|
6288
|
-
}),
|
|
6279
|
+
}), h = w(() => {
|
|
6289
6280
|
if (!a.sortable) return null;
|
|
6290
6281
|
switch (a.sortDirection) {
|
|
6291
6282
|
case "asc":
|
|
@@ -6295,18 +6286,18 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6295
6286
|
default:
|
|
6296
6287
|
return se(Xt, { class: "ml-2 h-4 w-4 opacity-50" });
|
|
6297
6288
|
}
|
|
6298
|
-
}),
|
|
6289
|
+
}), v = w(() => ({
|
|
6299
6290
|
width: a.resizable ? p.value + "px" : a.width ? a.width + "px" : void 0,
|
|
6300
6291
|
minWidth: a.resizable ? a.minWidth + "px" : void 0,
|
|
6301
6292
|
maxWidth: a.resizable ? a.maxWidth + "px" : void 0
|
|
6302
6293
|
}));
|
|
6303
|
-
function
|
|
6294
|
+
function y() {
|
|
6304
6295
|
a.sortable && !i.value && n("sort");
|
|
6305
6296
|
}
|
|
6306
|
-
function
|
|
6297
|
+
function x(B) {
|
|
6307
6298
|
a.sortable && (B.key === "Enter" || B.key === " ") && (B.preventDefault(), n("sort"));
|
|
6308
6299
|
}
|
|
6309
|
-
function
|
|
6300
|
+
function S(B) {
|
|
6310
6301
|
if (!a.resizable) return;
|
|
6311
6302
|
B.preventDefault(), i.value = !0;
|
|
6312
6303
|
const P = B.clientX, R = p.value;
|
|
@@ -6323,22 +6314,22 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6323
6314
|
ref_key: "headerRef",
|
|
6324
6315
|
ref: o,
|
|
6325
6316
|
"data-slot": "table-header",
|
|
6326
|
-
class:
|
|
6317
|
+
class: k(m.value),
|
|
6327
6318
|
tabindex: t.sortable ? 0 : void 0,
|
|
6328
6319
|
role: t.sortable ? "button" : void 0,
|
|
6329
|
-
"aria-sort":
|
|
6330
|
-
onClick: P[0] || (P[0] = (R) => t.sortable ?
|
|
6331
|
-
onKeydown: P[1] || (P[1] = (R) => t.sortable ?
|
|
6332
|
-
style: H(
|
|
6320
|
+
"aria-sort": $.value,
|
|
6321
|
+
onClick: P[0] || (P[0] = (R) => t.sortable ? y : void 0),
|
|
6322
|
+
onKeydown: P[1] || (P[1] = (R) => t.sortable ? x : void 0),
|
|
6323
|
+
style: H(v.value)
|
|
6333
6324
|
}, [
|
|
6334
6325
|
c("div", Wi, [
|
|
6335
6326
|
d(B.$slots, "default"),
|
|
6336
|
-
t.sortable ? (r(), g(Y(
|
|
6327
|
+
t.sortable ? (r(), g(Y(h.value), { key: 0 })) : z("", !0)
|
|
6337
6328
|
]),
|
|
6338
6329
|
t.resizable ? (r(), l("div", {
|
|
6339
6330
|
key: 0,
|
|
6340
6331
|
class: "absolute right-0 top-0 w-1 h-full cursor-col-resize bg-transparent hover:bg-blue-500/50 transition-colors opacity-0 group-hover:opacity-100",
|
|
6341
|
-
onMousedown:
|
|
6332
|
+
onMousedown: S
|
|
6342
6333
|
}, null, 32)) : z("", !0)
|
|
6343
6334
|
], 46, Gi));
|
|
6344
6335
|
}
|
|
@@ -6351,21 +6342,21 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6351
6342
|
}
|
|
6352
6343
|
},
|
|
6353
6344
|
setup(t) {
|
|
6354
|
-
const a = M("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", t.class);
|
|
6345
|
+
const a = M("hover:bg-muted/50 data-[state=selected]:bg-muted border-b border-border transition-colors", t.class);
|
|
6355
6346
|
return (o, n) => (r(), l("tr", {
|
|
6356
6347
|
"data-slot": "table-row",
|
|
6357
|
-
class:
|
|
6348
|
+
class: k(s(a))
|
|
6358
6349
|
}, [
|
|
6359
6350
|
d(o.$slots, "default")
|
|
6360
6351
|
], 2));
|
|
6361
6352
|
}
|
|
6362
6353
|
}), qi = {
|
|
6363
6354
|
"data-slot": "table-container",
|
|
6364
|
-
class: "relative w-full overflow-x-auto"
|
|
6355
|
+
class: "relative w-full overflow-x-auto rounded-md border border-border"
|
|
6365
6356
|
}, Ki = {
|
|
6366
6357
|
key: 0,
|
|
6367
6358
|
"data-slot": "table-head",
|
|
6368
|
-
class: "[&_tr]:border-b"
|
|
6359
|
+
class: "[&_tr]:border-b [&_tr]:border-border"
|
|
6369
6360
|
}, Xi = {
|
|
6370
6361
|
key: 1,
|
|
6371
6362
|
"data-slot": "table-body",
|
|
@@ -6383,10 +6374,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6383
6374
|
}
|
|
6384
6375
|
},
|
|
6385
6376
|
setup(t) {
|
|
6386
|
-
const e = t, a = le(), o =
|
|
6377
|
+
const e = t, a = le(), o = w(() => (a.default ? a.default() : []).filter((p) => {
|
|
6387
6378
|
const m = p.type;
|
|
6388
6379
|
return m && (m.name === "TableRow" || m.__name === "TableRow");
|
|
6389
|
-
})), n =
|
|
6380
|
+
})), n = w(
|
|
6390
6381
|
() => M(
|
|
6391
6382
|
"w-full caption-bottom text-sm",
|
|
6392
6383
|
e.resizable && "table-fixed",
|
|
@@ -6396,14 +6387,14 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6396
6387
|
return (i, p) => (r(), l("div", qi, [
|
|
6397
6388
|
c("table", {
|
|
6398
6389
|
"data-slot": "table",
|
|
6399
|
-
class:
|
|
6390
|
+
class: k(n.value)
|
|
6400
6391
|
}, [
|
|
6401
6392
|
d(i.$slots, "caption"),
|
|
6402
6393
|
o.value.length ? (r(), l("thead", Ki, [
|
|
6403
6394
|
(r(), g(Y(o.value[0])))
|
|
6404
6395
|
])) : z("", !0),
|
|
6405
6396
|
o.value.length > 1 ? (r(), l("tbody", Xi, [
|
|
6406
|
-
(r(!0), l(F, null, G(o.value.slice(1), (m,
|
|
6397
|
+
(r(!0), l(F, null, G(o.value.slice(1), (m, $) => (r(), g(Y(m), { key: $ }))), 128))
|
|
6407
6398
|
])) : z("", !0),
|
|
6408
6399
|
d(i.$slots, "default")
|
|
6409
6400
|
], 2)
|
|
@@ -6504,8 +6495,8 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6504
6495
|
c("textarea", b({
|
|
6505
6496
|
id: t.id,
|
|
6506
6497
|
"data-slot": "textarea",
|
|
6507
|
-
class: s(
|
|
6508
|
-
"resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-
|
|
6498
|
+
class: s(C)(
|
|
6499
|
+
"resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
6509
6500
|
t.validationState === "error" && "border-red-500 focus:border-red-500 focus:ring-red-500",
|
|
6510
6501
|
t.validationState === "success" && "border-green-500 focus:border-green-500 focus:ring-green-500",
|
|
6511
6502
|
s(a).class
|
|
@@ -6517,17 +6508,17 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6517
6508
|
onInput: n[0] || (n[0] = (i) => o.$emit("update:modelValue", i.target.value))
|
|
6518
6509
|
}), null, 16, Yi),
|
|
6519
6510
|
t.validationState === "error" && t.validationText ? (r(), l("p", Qi, [
|
|
6520
|
-
|
|
6511
|
+
_(s(Xe), { class: "h-4 w-4" }),
|
|
6521
6512
|
O(" " + I(t.validationText), 1)
|
|
6522
6513
|
])) : t.validationState === "success" && t.validationText ? (r(), l("p", ed, [
|
|
6523
|
-
|
|
6514
|
+
_(s(_e), { class: "h-4 w-4" }),
|
|
6524
6515
|
O(" " + I(t.validationText), 1)
|
|
6525
6516
|
])) : z("", !0)
|
|
6526
6517
|
])) : (r(), l("textarea", b({
|
|
6527
6518
|
key: 1,
|
|
6528
6519
|
"data-slot": "textarea",
|
|
6529
|
-
class: s(
|
|
6530
|
-
"resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-
|
|
6520
|
+
class: s(C)(
|
|
6521
|
+
"resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
6531
6522
|
s(a).class
|
|
6532
6523
|
)
|
|
6533
6524
|
}, s(a), {
|
|
@@ -6548,27 +6539,27 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6548
6539
|
snapToSegmentCenter: { type: Boolean, default: !1 }
|
|
6549
6540
|
},
|
|
6550
6541
|
setup(t) {
|
|
6551
|
-
const e = t, { value: a, level: o, size: n, gapDegrees: i, thicknessRatio: p, snapToSegmentCenter: m } = Ce(e),
|
|
6542
|
+
const e = t, { value: a, level: o, size: n, gapDegrees: i, thicknessRatio: p, snapToSegmentCenter: m } = Ce(e), $ = {
|
|
6552
6543
|
LOW: "var(--success-500)",
|
|
6553
6544
|
MEDIUM: "var(--warning-400)",
|
|
6554
6545
|
HIGH: "var(--warning-600)",
|
|
6555
6546
|
CRITICAL: "var(--error-500)"
|
|
6556
|
-
},
|
|
6547
|
+
}, h = ["LOW", "MEDIUM", "HIGH", "CRITICAL"], v = [
|
|
6557
6548
|
[0, 25],
|
|
6558
6549
|
[25, 50],
|
|
6559
6550
|
[50, 75],
|
|
6560
6551
|
[75, 100.0001]
|
|
6561
|
-
],
|
|
6562
|
-
() =>
|
|
6563
|
-
const J = ae * (
|
|
6552
|
+
], y = w(() => Math.max(0, Math.min(i.value, 30)) / 180), x = w(() => y.value * (We - 1)), S = w(() => (1 - x.value) / We), B = w(
|
|
6553
|
+
() => h.map((W, ae) => {
|
|
6554
|
+
const J = ae * (S.value + y.value), de = J + S.value;
|
|
6564
6555
|
return {
|
|
6565
6556
|
key: W,
|
|
6566
|
-
color:
|
|
6567
|
-
range:
|
|
6557
|
+
color: $[W],
|
|
6558
|
+
range: v[ae],
|
|
6568
6559
|
tRange: [J, de]
|
|
6569
6560
|
};
|
|
6570
6561
|
})
|
|
6571
|
-
), P =
|
|
6562
|
+
), P = w(() => Math.max(4, n.value * p.value)), R = w(() => n.value * 0.45), K = w(() => n.value / 2), X = w(() => n.value * 0.65), E = w(() => Math.min(Math.max(a.value, 0), 100)), A = w(
|
|
6572
6563
|
() => B.value.find((W) => W.key === o.value) || B.value.find((W) => E.value >= W.range[0] && E.value < W.range[1]) || B.value[0]
|
|
6573
6564
|
);
|
|
6574
6565
|
function j(W, ae, J = 42) {
|
|
@@ -6579,11 +6570,11 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6579
6570
|
}
|
|
6580
6571
|
return `M ${de[0]} L ${de.slice(1).join(" ")}`;
|
|
6581
6572
|
}
|
|
6582
|
-
const [L, te] =
|
|
6573
|
+
const [L, te] = w(() => A.value.range).value, ie = w(
|
|
6583
6574
|
() => m.value ? (L + te) / 2 : Math.min(Math.max(E.value, L), te)
|
|
6584
|
-
), vt =
|
|
6575
|
+
), vt = w(() => (ie.value - L) / (te - L)), [De, ht] = w(() => A.value.tRange).value, _t = w(() => De + (ht - De) * vt.value), Ve = w(() => Math.PI * (1 - _t.value)), yt = w(() => K.value + R.value * Math.cos(Ve.value)), xt = w(() => X.value - R.value * Math.sin(Ve.value)), wt = w(() => n.value * 0.12), kt = w(() => Math.max(8, n.value * 0.04)), $t = w(() => Math.max(2.5, n.value * 0.015));
|
|
6585
6576
|
return (W, ae) => (r(), l("div", {
|
|
6586
|
-
class:
|
|
6577
|
+
class: k(["relative", W.$attrs.class]),
|
|
6587
6578
|
style: H({ width: `${s(n)}px`, height: `${s(n)}px` })
|
|
6588
6579
|
}, [
|
|
6589
6580
|
(r(), l("svg", {
|
|
@@ -6614,7 +6605,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6614
6605
|
style: H({
|
|
6615
6606
|
top: "50%",
|
|
6616
6607
|
transform: "translate(-50%, -50%)",
|
|
6617
|
-
color:
|
|
6608
|
+
color: $[s(o)],
|
|
6618
6609
|
fontSize: `${wt.value}px`,
|
|
6619
6610
|
lineHeight: 1.1
|
|
6620
6611
|
})
|
|
@@ -6639,10 +6630,10 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6639
6630
|
setup(t, { emit: e }) {
|
|
6640
6631
|
const a = t, o = e, n = D(a, "class", "size", "variant"), i = N(n, o);
|
|
6641
6632
|
return (p, m) => (r(), g(s(ls), b({ "data-slot": "toggle" }, s(i), {
|
|
6642
|
-
class: s(
|
|
6633
|
+
class: s(C)(s(nd)({ variant: t.variant, size: t.size }), a.class)
|
|
6643
6634
|
}), {
|
|
6644
|
-
default: u((
|
|
6645
|
-
d(p.$slots, "default", Q(ee(
|
|
6635
|
+
default: u(($) => [
|
|
6636
|
+
d(p.$slots, "default", Q(ee($)))
|
|
6646
6637
|
]),
|
|
6647
6638
|
_: 3
|
|
6648
6639
|
}, 16, ["class"]));
|
|
@@ -6695,7 +6686,7 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6695
6686
|
default: "h-9 px-2 min-w-9",
|
|
6696
6687
|
sm: "h-8 px-1.5 min-w-8",
|
|
6697
6688
|
lg: "h-10 px-2.5 min-w-10"
|
|
6698
|
-
},
|
|
6689
|
+
}, $ = w(
|
|
6699
6690
|
() => M(
|
|
6700
6691
|
id,
|
|
6701
6692
|
p[a.variant],
|
|
@@ -6703,19 +6694,19 @@ const Ti = { class: "relative isolate" }, Di = ["title"], Vi = { class: "p-4" },
|
|
|
6703
6694
|
a.class
|
|
6704
6695
|
)
|
|
6705
6696
|
);
|
|
6706
|
-
return (
|
|
6707
|
-
|
|
6697
|
+
return (h, v) => (r(), l("div", ld, [
|
|
6698
|
+
_(s(rd), b({
|
|
6708
6699
|
id: t.id,
|
|
6709
6700
|
"data-slot": "toggle",
|
|
6710
|
-
class:
|
|
6701
|
+
class: $.value,
|
|
6711
6702
|
"aria-label": t.ariaLabel,
|
|
6712
6703
|
disabled: t.disabled
|
|
6713
6704
|
}, s(n), {
|
|
6714
6705
|
modelValue: s(i),
|
|
6715
|
-
"onUpdate:modelValue":
|
|
6706
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => fe(i) ? i.value = y : null)
|
|
6716
6707
|
}), {
|
|
6717
6708
|
default: u(() => [
|
|
6718
|
-
d(
|
|
6709
|
+
d(h.$slots, "default")
|
|
6719
6710
|
]),
|
|
6720
6711
|
_: 3
|
|
6721
6712
|
}, 16, ["id", "class", "aria-label", "disabled", "modelValue"]),
|