@tb-dev/vue-components 4.0.0 → 4.1.0
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/components/__base/command/Command.vue.d.ts +40 -0
- package/dist/components/__base/command/CommandDialog.vue.d.ts +29 -0
- package/dist/components/__base/command/CommandEmpty.vue.d.ts +22 -0
- package/dist/components/__base/command/CommandGroup.vue.d.ts +23 -0
- package/dist/components/__base/command/CommandInput.vue.d.ts +7 -0
- package/dist/components/__base/command/CommandItem.vue.d.ts +30 -0
- package/dist/components/__base/command/CommandList.vue.d.ts +22 -0
- package/dist/components/__base/command/CommandSeparator.vue.d.ts +22 -0
- package/dist/components/__base/command/CommandShortcut.vue.d.ts +21 -0
- package/dist/components/__base/command/index.d.ts +90 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +771 -376
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createElementBlock, computed, normalizeStyle, toDisplayString, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createTextVNode, mergeModels, useModel,
|
|
2
|
-
import { useForwardPropsEmits, AccordionRoot, AccordionContent, useForwardProps, AccordionItem, AccordionHeader, AccordionTrigger, AlertDialogRoot, Primitive, AlertDialogAction, AlertDialogCancel, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, AvatarRoot, AvatarFallback, AvatarImage, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, CalendarRoot, CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNext, CalendarPrev, CheckboxRoot, CheckboxIndicator, ComboboxRoot, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createElementBlock, computed, normalizeStyle, toDisplayString, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createTextVNode, mergeModels, useModel, ref, reactive, watch, normalizeProps, guardReactiveProps, onMounted, onUnmounted, withDirectives, isRef, vModelText, useTemplateRef, createSlots } from 'vue';
|
|
2
|
+
import { useForwardPropsEmits, AccordionRoot, AccordionContent, useForwardProps, AccordionItem, AccordionHeader, AccordionTrigger, AlertDialogRoot, Primitive, AlertDialogAction, AlertDialogCancel, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, AvatarRoot, AvatarFallback, AvatarImage, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, CalendarRoot, CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNext, CalendarPrev, CheckboxRoot, CheckboxIndicator, ComboboxRoot, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, useFilter, ListboxRoot, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, useId, ListboxGroup, ListboxGroupLabel, ListboxFilter, ListboxItem, ListboxContent, Separator, createContext, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCardRoot, HoverCardPortal, HoverCardContent, HoverCardTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Label, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenuViewport, NavigationMenuRoot, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, PaginationRoot, PaginationList, PaginationEllipsis, PaginationFirst, PaginationListItem, PaginationLast, PaginationNext, PaginationPrev, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SplitterResizeHandle, SplitterPanel, SplitterGroup, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SliderRoot, SliderTrack, SliderRange, SliderThumb, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
|
|
3
3
|
export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal, PaginationList, PaginationListItem } from 'reka-ui';
|
|
4
|
-
import { reactiveOmit, useVModel, useMediaQuery } from '@vueuse/core';
|
|
4
|
+
import { reactiveOmit, useCurrentElement, useVModel, useMediaQuery } from '@vueuse/core';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
7
|
-
import { ChevronDown, ChevronRight, ChevronLeft, Check, SearchIcon,
|
|
7
|
+
import { ChevronDown, ChevronRight, ChevronLeft, Check, SearchIcon, X, Search, Circle, Minus, Plus, LoaderCircle, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, GripVertical, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
9
|
import { RouterLink } from 'vue-router';
|
|
10
10
|
import { toPixel } from '@tb-dev/utils';
|
|
@@ -12,7 +12,7 @@ import { DrawerRoot, DrawerClose, DrawerOverlay, DrawerPortal, DrawerContent, Dr
|
|
|
12
12
|
import { Toaster } from 'vue-sonner';
|
|
13
13
|
export { toast as sonner } from 'vue-sonner';
|
|
14
14
|
|
|
15
|
-
const _sfc_main$
|
|
15
|
+
const _sfc_main$3R = /* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "Accordion",
|
|
17
17
|
props: {
|
|
18
18
|
collapsible: { type: Boolean },
|
|
@@ -46,7 +46,7 @@ function cn(...inputs) {
|
|
|
46
46
|
return twMerge(clsx(inputs));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
const _sfc_main$
|
|
49
|
+
const _sfc_main$3Q = /* @__PURE__ */ defineComponent({
|
|
50
50
|
__name: "AccordionContent",
|
|
51
51
|
props: {
|
|
52
52
|
forceMount: { type: Boolean },
|
|
@@ -72,7 +72,7 @@ const _sfc_main$3H = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
const _sfc_main$
|
|
75
|
+
const _sfc_main$3P = /* @__PURE__ */ defineComponent({
|
|
76
76
|
__name: "AccordionItem",
|
|
77
77
|
props: {
|
|
78
78
|
disabled: { type: Boolean },
|
|
@@ -99,7 +99,7 @@ const _sfc_main$3G = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
const _sfc_main$
|
|
102
|
+
const _sfc_main$3O = /* @__PURE__ */ defineComponent({
|
|
103
103
|
__name: "AccordionTrigger",
|
|
104
104
|
props: {
|
|
105
105
|
asChild: { type: Boolean },
|
|
@@ -133,7 +133,7 @@ const _sfc_main$3F = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
const _sfc_main$
|
|
136
|
+
const _sfc_main$3N = /* @__PURE__ */ defineComponent({
|
|
137
137
|
__name: "Alert",
|
|
138
138
|
props: {
|
|
139
139
|
class: {},
|
|
@@ -153,7 +153,7 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
const _sfc_main$
|
|
156
|
+
const _sfc_main$3M = /* @__PURE__ */ defineComponent({
|
|
157
157
|
__name: "AlertDescription",
|
|
158
158
|
props: {
|
|
159
159
|
class: {}
|
|
@@ -176,7 +176,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
const _sfc_main$
|
|
179
|
+
const _sfc_main$3L = /* @__PURE__ */ defineComponent({
|
|
180
180
|
__name: "AlertTitle",
|
|
181
181
|
props: {
|
|
182
182
|
class: {}
|
|
@@ -209,7 +209,7 @@ const alertVariants = cva(
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
|
|
212
|
-
const _sfc_main$
|
|
212
|
+
const _sfc_main$3K = /* @__PURE__ */ defineComponent({
|
|
213
213
|
__name: "AlertDialog",
|
|
214
214
|
props: {
|
|
215
215
|
open: { type: Boolean },
|
|
@@ -231,7 +231,7 @@ const _sfc_main$3B = /* @__PURE__ */ defineComponent({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
|
|
234
|
-
const _sfc_main$
|
|
234
|
+
const _sfc_main$3J = /* @__PURE__ */ defineComponent({
|
|
235
235
|
__name: "Button",
|
|
236
236
|
props: {
|
|
237
237
|
variant: {},
|
|
@@ -286,7 +286,7 @@ const buttonVariants = cva(
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
|
|
289
|
-
const _sfc_main$
|
|
289
|
+
const _sfc_main$3I = /* @__PURE__ */ defineComponent({
|
|
290
290
|
__name: "AlertDialogAction",
|
|
291
291
|
props: {
|
|
292
292
|
asChild: { type: Boolean },
|
|
@@ -309,7 +309,7 @@ const _sfc_main$3z = /* @__PURE__ */ defineComponent({
|
|
|
309
309
|
}
|
|
310
310
|
});
|
|
311
311
|
|
|
312
|
-
const _sfc_main$
|
|
312
|
+
const _sfc_main$3H = /* @__PURE__ */ defineComponent({
|
|
313
313
|
__name: "AlertDialogCancel",
|
|
314
314
|
props: {
|
|
315
315
|
asChild: { type: Boolean },
|
|
@@ -332,7 +332,7 @@ const _sfc_main$3y = /* @__PURE__ */ defineComponent({
|
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
const _sfc_main$
|
|
335
|
+
const _sfc_main$3G = /* @__PURE__ */ defineComponent({
|
|
336
336
|
__name: "AlertDialogContent",
|
|
337
337
|
props: {
|
|
338
338
|
forceMount: { type: Boolean },
|
|
@@ -372,7 +372,7 @@ const _sfc_main$3x = /* @__PURE__ */ defineComponent({
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
|
|
375
|
-
const _sfc_main$
|
|
375
|
+
const _sfc_main$3F = /* @__PURE__ */ defineComponent({
|
|
376
376
|
__name: "AlertDialogDescription",
|
|
377
377
|
props: {
|
|
378
378
|
asChild: { type: Boolean },
|
|
@@ -395,7 +395,7 @@ const _sfc_main$3w = /* @__PURE__ */ defineComponent({
|
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
|
|
398
|
-
const _sfc_main$
|
|
398
|
+
const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
399
399
|
__name: "AlertDialogFooter",
|
|
400
400
|
props: {
|
|
401
401
|
class: {}
|
|
@@ -413,7 +413,7 @@ const _sfc_main$3v = /* @__PURE__ */ defineComponent({
|
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
const _sfc_main$
|
|
416
|
+
const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
417
417
|
__name: "AlertDialogHeader",
|
|
418
418
|
props: {
|
|
419
419
|
class: {}
|
|
@@ -431,7 +431,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
|
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
|
|
434
|
-
const _sfc_main$
|
|
434
|
+
const _sfc_main$3C = /* @__PURE__ */ defineComponent({
|
|
435
435
|
__name: "AlertDialogTitle",
|
|
436
436
|
props: {
|
|
437
437
|
asChild: { type: Boolean },
|
|
@@ -454,7 +454,7 @@ const _sfc_main$3t = /* @__PURE__ */ defineComponent({
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
const _sfc_main$
|
|
457
|
+
const _sfc_main$3B = /* @__PURE__ */ defineComponent({
|
|
458
458
|
__name: "AlertDialogTrigger",
|
|
459
459
|
props: {
|
|
460
460
|
asChild: { type: Boolean },
|
|
@@ -473,7 +473,7 @@ const _sfc_main$3s = /* @__PURE__ */ defineComponent({
|
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
|
|
476
|
-
const _sfc_main$
|
|
476
|
+
const _sfc_main$3A = /* @__PURE__ */ defineComponent({
|
|
477
477
|
__name: "Avatar",
|
|
478
478
|
props: {
|
|
479
479
|
class: {}
|
|
@@ -494,7 +494,7 @@ const _sfc_main$3r = /* @__PURE__ */ defineComponent({
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
|
|
497
|
-
const _sfc_main$
|
|
497
|
+
const _sfc_main$3z = /* @__PURE__ */ defineComponent({
|
|
498
498
|
__name: "AvatarFallback",
|
|
499
499
|
props: {
|
|
500
500
|
delayMs: {},
|
|
@@ -518,7 +518,7 @@ const _sfc_main$3q = /* @__PURE__ */ defineComponent({
|
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
|
|
521
|
-
const _sfc_main$
|
|
521
|
+
const _sfc_main$3y = /* @__PURE__ */ defineComponent({
|
|
522
522
|
__name: "AvatarImage",
|
|
523
523
|
props: {
|
|
524
524
|
src: {},
|
|
@@ -540,7 +540,7 @@ const _sfc_main$3p = /* @__PURE__ */ defineComponent({
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
const _sfc_main$
|
|
543
|
+
const _sfc_main$3x = /* @__PURE__ */ defineComponent({
|
|
544
544
|
__name: "Badge",
|
|
545
545
|
props: {
|
|
546
546
|
asChild: { type: Boolean },
|
|
@@ -585,8 +585,8 @@ const badgeVariants = cva(
|
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
587
|
|
|
588
|
-
const _hoisted_1$
|
|
589
|
-
const _sfc_main$
|
|
588
|
+
const _hoisted_1$i = { key: 0 };
|
|
589
|
+
const _sfc_main$3w = /* @__PURE__ */ defineComponent({
|
|
590
590
|
__name: "ButtonLinkInner",
|
|
591
591
|
props: {
|
|
592
592
|
buttonClass: {},
|
|
@@ -599,7 +599,7 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
599
599
|
setup(__props) {
|
|
600
600
|
const props = __props;
|
|
601
601
|
return (_ctx, _cache) => {
|
|
602
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
602
|
+
return openBlock(), createBlock(unref(_sfc_main$3J), {
|
|
603
603
|
disabled: _ctx.disabled,
|
|
604
604
|
size: _ctx.size,
|
|
605
605
|
variant: _ctx.variant,
|
|
@@ -607,7 +607,7 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
607
607
|
class: normalizeClass(unref(cn)("size-full", props.buttonClass))
|
|
608
608
|
}, {
|
|
609
609
|
default: withCtx(() => [
|
|
610
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
610
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$i, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
611
611
|
]),
|
|
612
612
|
_: 3
|
|
613
613
|
}, 8, ["disabled", "size", "variant", "style", "class"]);
|
|
@@ -615,8 +615,8 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
|
|
618
|
-
const _hoisted_1$
|
|
619
|
-
const _sfc_main$
|
|
618
|
+
const _hoisted_1$h = { key: 0 };
|
|
619
|
+
const _sfc_main$3v = /* @__PURE__ */ defineComponent({
|
|
620
620
|
__name: "ButtonLink",
|
|
621
621
|
props: {
|
|
622
622
|
to: {},
|
|
@@ -629,8 +629,8 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
629
629
|
},
|
|
630
630
|
setup(__props) {
|
|
631
631
|
return (_ctx, _cache) => {
|
|
632
|
-
return _ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
633
|
-
createVNode(_sfc_main$
|
|
632
|
+
return _ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
633
|
+
createVNode(_sfc_main$3w, {
|
|
634
634
|
label: _ctx.label,
|
|
635
635
|
size: _ctx.size,
|
|
636
636
|
variant: _ctx.variant,
|
|
@@ -647,7 +647,7 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
647
647
|
to: { name: _ctx.to }
|
|
648
648
|
}, {
|
|
649
649
|
default: withCtx(() => [
|
|
650
|
-
createVNode(_sfc_main$
|
|
650
|
+
createVNode(_sfc_main$3w, {
|
|
651
651
|
label: _ctx.label,
|
|
652
652
|
size: _ctx.size,
|
|
653
653
|
variant: _ctx.variant,
|
|
@@ -666,7 +666,7 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
|
|
669
|
-
const _sfc_main$
|
|
669
|
+
const _sfc_main$3u = /* @__PURE__ */ defineComponent({
|
|
670
670
|
__name: "ButtonIcon",
|
|
671
671
|
props: {
|
|
672
672
|
buttonClass: {},
|
|
@@ -683,7 +683,7 @@ const _sfc_main$3l = /* @__PURE__ */ defineComponent({
|
|
|
683
683
|
return delegated;
|
|
684
684
|
});
|
|
685
685
|
return (_ctx, _cache) => {
|
|
686
|
-
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$
|
|
686
|
+
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$3v), mergeProps({ key: 0 }, delegatedProps.value, {
|
|
687
687
|
to: _ctx.to,
|
|
688
688
|
variant: "ghost",
|
|
689
689
|
size: "icon",
|
|
@@ -697,7 +697,7 @@ const _sfc_main$3l = /* @__PURE__ */ defineComponent({
|
|
|
697
697
|
}, null, 8, ["class", "size"]))
|
|
698
698
|
]),
|
|
699
699
|
_: 1
|
|
700
|
-
}, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
700
|
+
}, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$3J), mergeProps({ key: 1 }, delegatedProps.value, {
|
|
701
701
|
variant: "ghost",
|
|
702
702
|
size: "icon",
|
|
703
703
|
class: unref(cn)(props.class, _ctx.buttonClass)
|
|
@@ -714,7 +714,7 @@ const _sfc_main$3l = /* @__PURE__ */ defineComponent({
|
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
|
|
717
|
-
const _sfc_main$
|
|
717
|
+
const _sfc_main$3t = /* @__PURE__ */ defineComponent({
|
|
718
718
|
__name: "ScrollBar",
|
|
719
719
|
props: {
|
|
720
720
|
orientation: { default: "vertical" },
|
|
@@ -750,7 +750,7 @@ const _sfc_main$3k = /* @__PURE__ */ defineComponent({
|
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
|
|
753
|
-
const _sfc_main$
|
|
753
|
+
const _sfc_main$3s = /* @__PURE__ */ defineComponent({
|
|
754
754
|
__name: "ScrollArea",
|
|
755
755
|
props: {
|
|
756
756
|
type: {},
|
|
@@ -780,7 +780,7 @@ const _sfc_main$3j = /* @__PURE__ */ defineComponent({
|
|
|
780
780
|
]),
|
|
781
781
|
_: 3
|
|
782
782
|
}),
|
|
783
|
-
createVNode(_sfc_main$
|
|
783
|
+
createVNode(_sfc_main$3t),
|
|
784
784
|
createVNode(unref(ScrollAreaCorner))
|
|
785
785
|
]),
|
|
786
786
|
_: 3
|
|
@@ -789,7 +789,7 @@ const _sfc_main$3j = /* @__PURE__ */ defineComponent({
|
|
|
789
789
|
}
|
|
790
790
|
});
|
|
791
791
|
|
|
792
|
-
const _sfc_main$
|
|
792
|
+
const _sfc_main$3r = /* @__PURE__ */ defineComponent({
|
|
793
793
|
__name: "Card",
|
|
794
794
|
props: {
|
|
795
795
|
class: {}
|
|
@@ -812,7 +812,7 @@ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
|
|
|
812
812
|
}
|
|
813
813
|
});
|
|
814
814
|
|
|
815
|
-
const _sfc_main$
|
|
815
|
+
const _sfc_main$3q = /* @__PURE__ */ defineComponent({
|
|
816
816
|
__name: "CardContent",
|
|
817
817
|
props: {
|
|
818
818
|
class: {}
|
|
@@ -830,7 +830,7 @@ const _sfc_main$3h = /* @__PURE__ */ defineComponent({
|
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
|
|
833
|
-
const _sfc_main$
|
|
833
|
+
const _sfc_main$3p = /* @__PURE__ */ defineComponent({
|
|
834
834
|
__name: "CardDescription",
|
|
835
835
|
props: {
|
|
836
836
|
class: {}
|
|
@@ -848,7 +848,7 @@ const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
|
|
851
|
-
const _sfc_main$
|
|
851
|
+
const _sfc_main$3o = /* @__PURE__ */ defineComponent({
|
|
852
852
|
__name: "CardFooter",
|
|
853
853
|
props: {
|
|
854
854
|
class: {}
|
|
@@ -866,7 +866,7 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
const _sfc_main$
|
|
869
|
+
const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
870
870
|
__name: "CardHeader",
|
|
871
871
|
props: {
|
|
872
872
|
class: {}
|
|
@@ -889,7 +889,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
|
|
|
889
889
|
}
|
|
890
890
|
});
|
|
891
891
|
|
|
892
|
-
const _sfc_main$
|
|
892
|
+
const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
893
893
|
__name: "CardTitle",
|
|
894
894
|
props: {
|
|
895
895
|
class: {}
|
|
@@ -907,7 +907,7 @@ const _sfc_main$3d = /* @__PURE__ */ defineComponent({
|
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
|
|
910
|
-
const _sfc_main$
|
|
910
|
+
const _sfc_main$3l = /* @__PURE__ */ defineComponent({
|
|
911
911
|
__name: "Card",
|
|
912
912
|
props: {
|
|
913
913
|
contentClass: {},
|
|
@@ -920,14 +920,14 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
|
920
920
|
},
|
|
921
921
|
setup(__props) {
|
|
922
922
|
return (_ctx, _cache) => {
|
|
923
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
923
|
+
return openBlock(), createBlock(unref(_sfc_main$3r), null, {
|
|
924
924
|
default: withCtx(() => [
|
|
925
|
-
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$
|
|
925
|
+
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$3n), {
|
|
926
926
|
key: 0,
|
|
927
927
|
class: normalizeClass(_ctx.headerClass)
|
|
928
928
|
}, {
|
|
929
929
|
default: withCtx(() => [
|
|
930
|
-
createVNode(unref(_sfc_main$
|
|
930
|
+
createVNode(unref(_sfc_main$3m), {
|
|
931
931
|
class: normalizeClass(_ctx.titleClass)
|
|
932
932
|
}, {
|
|
933
933
|
default: withCtx(() => [
|
|
@@ -935,7 +935,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
|
935
935
|
]),
|
|
936
936
|
_: 3
|
|
937
937
|
}, 8, ["class"]),
|
|
938
|
-
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$
|
|
938
|
+
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$3p), {
|
|
939
939
|
key: 0,
|
|
940
940
|
class: normalizeClass(_ctx.descriptionClass)
|
|
941
941
|
}, {
|
|
@@ -947,12 +947,12 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
|
947
947
|
]),
|
|
948
948
|
_: 3
|
|
949
949
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
950
|
-
_ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$
|
|
950
|
+
_ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$3q), {
|
|
951
951
|
key: 1,
|
|
952
952
|
class: normalizeClass(unref(cn)("p-0", _ctx.contentClass))
|
|
953
953
|
}, {
|
|
954
954
|
default: withCtx(() => [
|
|
955
|
-
_ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
955
|
+
_ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$3s), {
|
|
956
956
|
key: 0,
|
|
957
957
|
class: normalizeClass(_ctx.scrollAreaClass),
|
|
958
958
|
style: normalizeStyle({ height: unref(toPixel)(_ctx.scrollAreaHeight) })
|
|
@@ -965,7 +965,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
|
965
965
|
]),
|
|
966
966
|
_: 3
|
|
967
967
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
968
|
-
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$
|
|
968
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$3o), {
|
|
969
969
|
key: 2,
|
|
970
970
|
class: normalizeClass(_ctx.footerClass)
|
|
971
971
|
}, {
|
|
@@ -981,9 +981,9 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
|
981
981
|
}
|
|
982
982
|
});
|
|
983
983
|
|
|
984
|
-
const _hoisted_1$
|
|
984
|
+
const _hoisted_1$g = { class: "flex items-center gap-1" };
|
|
985
985
|
const _hoisted_2$1 = { class: "mt-4 flex flex-col gap-y-4 sm:flex-row sm:gap-x-4 sm:gap-y-0" };
|
|
986
|
-
const _sfc_main$
|
|
986
|
+
const _sfc_main$3k = /* @__PURE__ */ defineComponent({
|
|
987
987
|
__name: "Calendar",
|
|
988
988
|
props: {
|
|
989
989
|
defaultValue: {},
|
|
@@ -1026,28 +1026,28 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
1026
1026
|
class: unref(cn)("p-3", props.class)
|
|
1027
1027
|
}, unref(forwarded)), {
|
|
1028
1028
|
default: withCtx(({ grid, weekDays }) => [
|
|
1029
|
-
createVNode(unref(_sfc_main$
|
|
1029
|
+
createVNode(unref(_sfc_main$3c), null, {
|
|
1030
1030
|
default: withCtx(() => [
|
|
1031
|
-
createVNode(unref(_sfc_main$
|
|
1032
|
-
createElementVNode("div", _hoisted_1$
|
|
1033
|
-
createVNode(unref(_sfc_main$
|
|
1034
|
-
createVNode(unref(_sfc_main$
|
|
1031
|
+
createVNode(unref(_sfc_main$3b)),
|
|
1032
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
1033
|
+
createVNode(unref(_sfc_main$39)),
|
|
1034
|
+
createVNode(unref(_sfc_main$3a))
|
|
1035
1035
|
])
|
|
1036
1036
|
]),
|
|
1037
1037
|
_: 1
|
|
1038
1038
|
}),
|
|
1039
1039
|
createElementVNode("div", _hoisted_2$1, [
|
|
1040
1040
|
(openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
|
|
1041
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1041
|
+
return openBlock(), createBlock(unref(_sfc_main$3h), {
|
|
1042
1042
|
key: month.value.toString()
|
|
1043
1043
|
}, {
|
|
1044
1044
|
default: withCtx(() => [
|
|
1045
|
-
createVNode(unref(_sfc_main$
|
|
1045
|
+
createVNode(unref(_sfc_main$3f), null, {
|
|
1046
1046
|
default: withCtx(() => [
|
|
1047
|
-
createVNode(unref(_sfc_main$
|
|
1047
|
+
createVNode(unref(_sfc_main$3e), null, {
|
|
1048
1048
|
default: withCtx(() => [
|
|
1049
1049
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
|
|
1050
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1050
|
+
return openBlock(), createBlock(unref(_sfc_main$3d), { key: day }, {
|
|
1051
1051
|
default: withCtx(() => [
|
|
1052
1052
|
createTextVNode(toDisplayString(day), 1)
|
|
1053
1053
|
]),
|
|
@@ -1060,21 +1060,21 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 2
|
|
1062
1062
|
}, 1024),
|
|
1063
|
-
createVNode(unref(_sfc_main$
|
|
1063
|
+
createVNode(unref(_sfc_main$3g), null, {
|
|
1064
1064
|
default: withCtx(() => [
|
|
1065
1065
|
(openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
|
|
1066
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1066
|
+
return openBlock(), createBlock(unref(_sfc_main$3e), {
|
|
1067
1067
|
key: `weekDate-${index}`,
|
|
1068
1068
|
class: "mt-2 w-full"
|
|
1069
1069
|
}, {
|
|
1070
1070
|
default: withCtx(() => [
|
|
1071
1071
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
1072
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1072
|
+
return openBlock(), createBlock(unref(_sfc_main$3j), {
|
|
1073
1073
|
key: weekDate.toString(),
|
|
1074
1074
|
date: weekDate
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: withCtx(() => [
|
|
1077
|
-
createVNode(unref(_sfc_main$
|
|
1077
|
+
createVNode(unref(_sfc_main$3i), {
|
|
1078
1078
|
day: weekDate,
|
|
1079
1079
|
month: month.value
|
|
1080
1080
|
}, null, 8, ["day", "month"])
|
|
@@ -1101,7 +1101,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
1101
1101
|
}
|
|
1102
1102
|
});
|
|
1103
1103
|
|
|
1104
|
-
const _sfc_main$
|
|
1104
|
+
const _sfc_main$3j = /* @__PURE__ */ defineComponent({
|
|
1105
1105
|
__name: "CalendarCell",
|
|
1106
1106
|
props: {
|
|
1107
1107
|
date: {},
|
|
@@ -1130,7 +1130,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
1132
|
|
|
1133
|
-
const _sfc_main$
|
|
1133
|
+
const _sfc_main$3i = /* @__PURE__ */ defineComponent({
|
|
1134
1134
|
__name: "CalendarCellTrigger",
|
|
1135
1135
|
props: {
|
|
1136
1136
|
day: {},
|
|
@@ -1170,7 +1170,7 @@ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
|
|
1173
|
-
const _sfc_main$
|
|
1173
|
+
const _sfc_main$3h = /* @__PURE__ */ defineComponent({
|
|
1174
1174
|
__name: "CalendarGrid",
|
|
1175
1175
|
props: {
|
|
1176
1176
|
asChild: { type: Boolean },
|
|
@@ -1195,7 +1195,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
|
1195
1195
|
}
|
|
1196
1196
|
});
|
|
1197
1197
|
|
|
1198
|
-
const _sfc_main$
|
|
1198
|
+
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
1199
1199
|
__name: "CalendarGridBody",
|
|
1200
1200
|
props: {
|
|
1201
1201
|
asChild: { type: Boolean },
|
|
@@ -1214,7 +1214,7 @@ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
1216
|
|
|
1217
|
-
const _sfc_main$
|
|
1217
|
+
const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
1218
1218
|
__name: "CalendarGridHead",
|
|
1219
1219
|
props: {
|
|
1220
1220
|
asChild: { type: Boolean },
|
|
@@ -1234,7 +1234,7 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
|
1234
1234
|
}
|
|
1235
1235
|
});
|
|
1236
1236
|
|
|
1237
|
-
const _sfc_main$
|
|
1237
|
+
const _sfc_main$3e = /* @__PURE__ */ defineComponent({
|
|
1238
1238
|
__name: "CalendarGridRow",
|
|
1239
1239
|
props: {
|
|
1240
1240
|
asChild: { type: Boolean },
|
|
@@ -1259,7 +1259,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
|
|
1262
|
-
const _sfc_main$
|
|
1262
|
+
const _sfc_main$3d = /* @__PURE__ */ defineComponent({
|
|
1263
1263
|
__name: "CalendarHeadCell",
|
|
1264
1264
|
props: {
|
|
1265
1265
|
asChild: { type: Boolean },
|
|
@@ -1284,7 +1284,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
1284
1284
|
}
|
|
1285
1285
|
});
|
|
1286
1286
|
|
|
1287
|
-
const _sfc_main$
|
|
1287
|
+
const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
1288
1288
|
__name: "CalendarHeader",
|
|
1289
1289
|
props: {
|
|
1290
1290
|
asChild: { type: Boolean },
|
|
@@ -1309,7 +1309,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
|
|
1312
|
-
const _sfc_main$
|
|
1312
|
+
const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
1313
1313
|
__name: "CalendarHeading",
|
|
1314
1314
|
props: {
|
|
1315
1315
|
asChild: { type: Boolean },
|
|
@@ -1336,7 +1336,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
|
1336
1336
|
}
|
|
1337
1337
|
});
|
|
1338
1338
|
|
|
1339
|
-
const _sfc_main$
|
|
1339
|
+
const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
1340
1340
|
__name: "CalendarNextButton",
|
|
1341
1341
|
props: {
|
|
1342
1342
|
nextPage: { type: Function },
|
|
@@ -1369,7 +1369,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
1371
|
|
|
1372
|
-
const _sfc_main$
|
|
1372
|
+
const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
1373
1373
|
__name: "CalendarPrevButton",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
prevPage: { type: Function },
|
|
@@ -1402,7 +1402,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
1402
1402
|
}
|
|
1403
1403
|
});
|
|
1404
1404
|
|
|
1405
|
-
const _sfc_main$
|
|
1405
|
+
const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
1406
1406
|
__name: "Checkbox",
|
|
1407
1407
|
props: {
|
|
1408
1408
|
defaultValue: { type: [Boolean, String] },
|
|
@@ -1451,7 +1451,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
|
|
|
1451
1451
|
}
|
|
1452
1452
|
});
|
|
1453
1453
|
|
|
1454
|
-
const _sfc_main$
|
|
1454
|
+
const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
1455
1455
|
__name: "Checkbox",
|
|
1456
1456
|
props: /* @__PURE__ */ mergeModels({
|
|
1457
1457
|
defaultValue: { type: [Boolean, String] },
|
|
@@ -1464,7 +1464,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
|
|
|
1464
1464
|
setup(__props) {
|
|
1465
1465
|
const value = useModel(__props, "modelValue");
|
|
1466
1466
|
return (_ctx, _cache) => {
|
|
1467
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1467
|
+
return openBlock(), createBlock(unref(_sfc_main$38), {
|
|
1468
1468
|
modelValue: value.value,
|
|
1469
1469
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
1470
1470
|
"default-value": _ctx.defaultValue,
|
|
@@ -1478,7 +1478,7 @@ function toBooleanCheckboxValue(value) {
|
|
|
1478
1478
|
return value === true;
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
const _sfc_main$
|
|
1481
|
+
const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
1482
1482
|
__name: "Combobox",
|
|
1483
1483
|
props: {
|
|
1484
1484
|
open: { type: Boolean },
|
|
@@ -1514,7 +1514,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
|
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
|
|
1517
|
-
const _sfc_main$
|
|
1517
|
+
const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
1518
1518
|
__name: "ComboboxAnchor",
|
|
1519
1519
|
props: {
|
|
1520
1520
|
reference: {},
|
|
@@ -1542,7 +1542,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
1544
|
|
|
1545
|
-
const _sfc_main$
|
|
1545
|
+
const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
1546
1546
|
__name: "ComboboxEmpty",
|
|
1547
1547
|
props: {
|
|
1548
1548
|
asChild: { type: Boolean },
|
|
@@ -1568,7 +1568,7 @@ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
|
|
|
1568
1568
|
}
|
|
1569
1569
|
});
|
|
1570
1570
|
|
|
1571
|
-
const _sfc_main$
|
|
1571
|
+
const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
1572
1572
|
__name: "ComboboxGroup",
|
|
1573
1573
|
props: {
|
|
1574
1574
|
asChild: { type: Boolean },
|
|
@@ -1604,11 +1604,11 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
|
1604
1604
|
}
|
|
1605
1605
|
});
|
|
1606
1606
|
|
|
1607
|
-
const _hoisted_1$
|
|
1607
|
+
const _hoisted_1$f = {
|
|
1608
1608
|
"data-slot": "command-input-wrapper",
|
|
1609
1609
|
class: "flex h-9 items-center gap-2 border-b px-3"
|
|
1610
1610
|
};
|
|
1611
|
-
const _sfc_main$
|
|
1611
|
+
const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
1612
1612
|
...{
|
|
1613
1613
|
inheritAttrs: false
|
|
1614
1614
|
},
|
|
@@ -1632,7 +1632,7 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
|
|
|
1632
1632
|
});
|
|
1633
1633
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1634
1634
|
return (_ctx, _cache) => {
|
|
1635
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1635
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1636
1636
|
createVNode(unref(SearchIcon), { class: "size-4 shrink-0 opacity-50" }),
|
|
1637
1637
|
createVNode(unref(ComboboxInput), mergeProps({
|
|
1638
1638
|
"data-slot": "command-input",
|
|
@@ -1651,7 +1651,7 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
|
|
|
1651
1651
|
}
|
|
1652
1652
|
});
|
|
1653
1653
|
|
|
1654
|
-
const _sfc_main$
|
|
1654
|
+
const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
1655
1655
|
__name: "ComboboxItem",
|
|
1656
1656
|
props: {
|
|
1657
1657
|
textValue: {},
|
|
@@ -1686,7 +1686,7 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
|
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
|
|
1689
|
-
const _sfc_main$
|
|
1689
|
+
const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
1690
1690
|
__name: "ComboboxItemIndicator",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
asChild: { type: Boolean },
|
|
@@ -1713,7 +1713,7 @@ const _sfc_main$2T = /* @__PURE__ */ defineComponent({
|
|
|
1713
1713
|
}
|
|
1714
1714
|
});
|
|
1715
1715
|
|
|
1716
|
-
const _sfc_main$
|
|
1716
|
+
const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
|
|
1717
1717
|
__name: "ComboboxList",
|
|
1718
1718
|
props: {
|
|
1719
1719
|
forceMount: { type: Boolean },
|
|
@@ -1767,7 +1767,7 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
|
|
|
1767
1767
|
}
|
|
1768
1768
|
});
|
|
1769
1769
|
|
|
1770
|
-
const _sfc_main$
|
|
1770
|
+
const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
|
|
1771
1771
|
__name: "ComboboxSeparator",
|
|
1772
1772
|
props: {
|
|
1773
1773
|
asChild: { type: Boolean },
|
|
@@ -1793,7 +1793,7 @@ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
|
|
1796
|
-
const _sfc_main$
|
|
1796
|
+
const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
|
|
1797
1797
|
__name: "ComboboxViewport",
|
|
1798
1798
|
props: {
|
|
1799
1799
|
nonce: {},
|
|
@@ -1821,10 +1821,98 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
|
|
|
1821
1821
|
}
|
|
1822
1822
|
});
|
|
1823
1823
|
|
|
1824
|
-
const _sfc_main$
|
|
1825
|
-
__name: "
|
|
1824
|
+
const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
1825
|
+
__name: "Command",
|
|
1826
1826
|
props: {
|
|
1827
|
+
modelValue: { default: "" },
|
|
1828
|
+
defaultValue: {},
|
|
1829
|
+
multiple: { type: Boolean },
|
|
1830
|
+
orientation: {},
|
|
1827
1831
|
dir: {},
|
|
1832
|
+
disabled: { type: Boolean },
|
|
1833
|
+
selectionBehavior: {},
|
|
1834
|
+
highlightOnHover: { type: Boolean },
|
|
1835
|
+
by: {},
|
|
1836
|
+
asChild: { type: Boolean },
|
|
1837
|
+
as: {},
|
|
1838
|
+
name: {},
|
|
1839
|
+
required: { type: Boolean },
|
|
1840
|
+
class: {}
|
|
1841
|
+
},
|
|
1842
|
+
emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
|
|
1843
|
+
setup(__props, { emit: __emit }) {
|
|
1844
|
+
const props = __props;
|
|
1845
|
+
const emits = __emit;
|
|
1846
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1847
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1848
|
+
const allItems = ref(/* @__PURE__ */ new Map());
|
|
1849
|
+
const allGroups = ref(/* @__PURE__ */ new Map());
|
|
1850
|
+
const { contains } = useFilter({ sensitivity: "base" });
|
|
1851
|
+
const filterState = reactive({
|
|
1852
|
+
search: "",
|
|
1853
|
+
filtered: {
|
|
1854
|
+
/** The count of all visible items. */
|
|
1855
|
+
count: 0,
|
|
1856
|
+
/** Map from visible item id to its search score. */
|
|
1857
|
+
items: /* @__PURE__ */ new Map(),
|
|
1858
|
+
/** Set of groups with at least one visible item. */
|
|
1859
|
+
groups: /* @__PURE__ */ new Set()
|
|
1860
|
+
}
|
|
1861
|
+
});
|
|
1862
|
+
function filterItems() {
|
|
1863
|
+
if (!filterState.search) {
|
|
1864
|
+
filterState.filtered.count = allItems.value.size;
|
|
1865
|
+
return;
|
|
1866
|
+
}
|
|
1867
|
+
filterState.filtered.groups = /* @__PURE__ */ new Set();
|
|
1868
|
+
let itemCount = 0;
|
|
1869
|
+
for (const [id, value] of allItems.value) {
|
|
1870
|
+
const score = contains(value, filterState.search);
|
|
1871
|
+
filterState.filtered.items.set(id, score ? 1 : 0);
|
|
1872
|
+
if (score) itemCount++;
|
|
1873
|
+
}
|
|
1874
|
+
for (const [groupId, group] of allGroups.value) {
|
|
1875
|
+
for (const itemId of group) {
|
|
1876
|
+
if (filterState.filtered.items.get(itemId) > 0) {
|
|
1877
|
+
filterState.filtered.groups.add(groupId);
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
filterState.filtered.count = itemCount;
|
|
1883
|
+
}
|
|
1884
|
+
watch(
|
|
1885
|
+
() => filterState.search,
|
|
1886
|
+
() => {
|
|
1887
|
+
filterItems();
|
|
1888
|
+
}
|
|
1889
|
+
);
|
|
1890
|
+
provideCommandContext({
|
|
1891
|
+
allItems,
|
|
1892
|
+
allGroups,
|
|
1893
|
+
filterState
|
|
1894
|
+
});
|
|
1895
|
+
return (_ctx, _cache) => {
|
|
1896
|
+
return openBlock(), createBlock(unref(ListboxRoot), mergeProps({ "data-slot": "command" }, unref(forwarded), {
|
|
1897
|
+
class: unref(cn)(
|
|
1898
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1899
|
+
props.class
|
|
1900
|
+
)
|
|
1901
|
+
}), {
|
|
1902
|
+
default: withCtx(() => [
|
|
1903
|
+
renderSlot(_ctx.$slots, "default")
|
|
1904
|
+
]),
|
|
1905
|
+
_: 3
|
|
1906
|
+
}, 16, ["class"]);
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
|
|
1911
|
+
const _sfc_main$2X = /* @__PURE__ */ defineComponent({
|
|
1912
|
+
__name: "Dialog",
|
|
1913
|
+
props: {
|
|
1914
|
+
open: { type: Boolean },
|
|
1915
|
+
defaultOpen: { type: Boolean },
|
|
1828
1916
|
modal: { type: Boolean }
|
|
1829
1917
|
},
|
|
1830
1918
|
emits: ["update:open"],
|
|
@@ -1833,7 +1921,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
|
|
|
1833
1921
|
const emits = __emit;
|
|
1834
1922
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
1835
1923
|
return (_ctx, _cache) => {
|
|
1836
|
-
return openBlock(), createBlock(unref(
|
|
1924
|
+
return openBlock(), createBlock(unref(DialogRoot), mergeProps({ "data-slot": "dialog" }, unref(forwarded)), {
|
|
1837
1925
|
default: withCtx(() => [
|
|
1838
1926
|
renderSlot(_ctx.$slots, "default")
|
|
1839
1927
|
]),
|
|
@@ -1843,42 +1931,47 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
|
|
|
1843
1931
|
}
|
|
1844
1932
|
});
|
|
1845
1933
|
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1848
|
-
__name: "ContextMenuCheckboxItem",
|
|
1934
|
+
const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
1935
|
+
__name: "DialogClose",
|
|
1849
1936
|
props: {
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1937
|
+
asChild: { type: Boolean },
|
|
1938
|
+
as: {}
|
|
1939
|
+
},
|
|
1940
|
+
setup(__props) {
|
|
1941
|
+
const props = __props;
|
|
1942
|
+
return (_ctx, _cache) => {
|
|
1943
|
+
return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "dialog-close" }, props), {
|
|
1944
|
+
default: withCtx(() => [
|
|
1945
|
+
renderSlot(_ctx.$slots, "default")
|
|
1946
|
+
]),
|
|
1947
|
+
_: 3
|
|
1948
|
+
}, 16);
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
|
|
1953
|
+
const _sfc_main$2V = /* @__PURE__ */ defineComponent({
|
|
1954
|
+
__name: "DialogOverlay",
|
|
1955
|
+
props: {
|
|
1956
|
+
forceMount: { type: Boolean },
|
|
1853
1957
|
asChild: { type: Boolean },
|
|
1854
1958
|
as: {},
|
|
1855
1959
|
class: {}
|
|
1856
1960
|
},
|
|
1857
|
-
|
|
1858
|
-
setup(__props, { emit: __emit }) {
|
|
1961
|
+
setup(__props) {
|
|
1859
1962
|
const props = __props;
|
|
1860
|
-
const emits = __emit;
|
|
1861
1963
|
const delegatedProps = computed(() => {
|
|
1862
1964
|
const { class: _, ...delegated } = props;
|
|
1863
1965
|
return delegated;
|
|
1864
1966
|
});
|
|
1865
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1866
1967
|
return (_ctx, _cache) => {
|
|
1867
|
-
return openBlock(), createBlock(unref(
|
|
1968
|
+
return openBlock(), createBlock(unref(DialogOverlay), mergeProps({ "data-slot": "dialog-overlay" }, delegatedProps.value, {
|
|
1868
1969
|
class: unref(cn)(
|
|
1869
|
-
|
|
1970
|
+
"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",
|
|
1870
1971
|
props.class
|
|
1871
1972
|
)
|
|
1872
1973
|
}), {
|
|
1873
1974
|
default: withCtx(() => [
|
|
1874
|
-
createElementVNode("span", _hoisted_1$c, [
|
|
1875
|
-
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
1876
|
-
default: withCtx(() => [
|
|
1877
|
-
createVNode(unref(Check), { class: "size-4" })
|
|
1878
|
-
]),
|
|
1879
|
-
_: 1
|
|
1880
|
-
})
|
|
1881
|
-
]),
|
|
1882
1975
|
renderSlot(_ctx.$slots, "default")
|
|
1883
1976
|
]),
|
|
1884
1977
|
_: 3
|
|
@@ -1887,26 +1980,16 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
|
|
|
1887
1980
|
}
|
|
1888
1981
|
});
|
|
1889
1982
|
|
|
1890
|
-
const _sfc_main$
|
|
1891
|
-
__name: "
|
|
1983
|
+
const _sfc_main$2U = /* @__PURE__ */ defineComponent({
|
|
1984
|
+
__name: "DialogContent",
|
|
1892
1985
|
props: {
|
|
1893
1986
|
forceMount: { type: Boolean },
|
|
1894
|
-
|
|
1895
|
-
alignOffset: {},
|
|
1896
|
-
avoidCollisions: { type: Boolean },
|
|
1897
|
-
collisionBoundary: {},
|
|
1898
|
-
collisionPadding: {},
|
|
1899
|
-
sticky: {},
|
|
1900
|
-
hideWhenDetached: { type: Boolean },
|
|
1901
|
-
positionStrategy: {},
|
|
1902
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1903
|
-
prioritizePosition: { type: Boolean },
|
|
1904
|
-
reference: {},
|
|
1987
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
1905
1988
|
asChild: { type: Boolean },
|
|
1906
1989
|
as: {},
|
|
1907
1990
|
class: {}
|
|
1908
1991
|
},
|
|
1909
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
1992
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
1910
1993
|
setup(__props, { emit: __emit }) {
|
|
1911
1994
|
const props = __props;
|
|
1912
1995
|
const emits = __emit;
|
|
@@ -1916,16 +1999,25 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
|
|
|
1916
1999
|
});
|
|
1917
2000
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1918
2001
|
return (_ctx, _cache) => {
|
|
1919
|
-
return openBlock(), createBlock(unref(
|
|
2002
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
1920
2003
|
default: withCtx(() => [
|
|
1921
|
-
createVNode(
|
|
2004
|
+
createVNode(_sfc_main$2V),
|
|
2005
|
+
createVNode(unref(DialogContent), mergeProps({ "data-slot": "dialog-content" }, unref(forwarded), {
|
|
1922
2006
|
class: unref(cn)(
|
|
1923
|
-
"bg-
|
|
2007
|
+
"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%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1924
2008
|
props.class
|
|
1925
2009
|
)
|
|
1926
2010
|
}), {
|
|
1927
2011
|
default: withCtx(() => [
|
|
1928
|
-
renderSlot(_ctx.$slots, "default")
|
|
2012
|
+
renderSlot(_ctx.$slots, "default"),
|
|
2013
|
+
createVNode(unref(DialogClose), { 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" }, {
|
|
2014
|
+
default: withCtx(() => [
|
|
2015
|
+
createVNode(unref(X)),
|
|
2016
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
2017
|
+
]),
|
|
2018
|
+
_: 1,
|
|
2019
|
+
__: [0]
|
|
2020
|
+
})
|
|
1929
2021
|
]),
|
|
1930
2022
|
_: 3
|
|
1931
2023
|
}, 16, ["class"])
|
|
@@ -1936,37 +2028,79 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
|
|
|
1936
2028
|
}
|
|
1937
2029
|
});
|
|
1938
2030
|
|
|
1939
|
-
const _sfc_main$
|
|
1940
|
-
__name: "
|
|
2031
|
+
const _sfc_main$2T = /* @__PURE__ */ defineComponent({
|
|
2032
|
+
__name: "DialogDescription",
|
|
1941
2033
|
props: {
|
|
1942
2034
|
asChild: { type: Boolean },
|
|
1943
|
-
as: {}
|
|
2035
|
+
as: {},
|
|
2036
|
+
class: {}
|
|
1944
2037
|
},
|
|
1945
2038
|
setup(__props) {
|
|
1946
2039
|
const props = __props;
|
|
2040
|
+
const delegatedProps = computed(() => {
|
|
2041
|
+
const { class: _, ...delegated } = props;
|
|
2042
|
+
return delegated;
|
|
2043
|
+
});
|
|
2044
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1947
2045
|
return (_ctx, _cache) => {
|
|
1948
|
-
return openBlock(), createBlock(unref(
|
|
2046
|
+
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "dialog-description" }, unref(forwardedProps), {
|
|
2047
|
+
class: unref(cn)("text-muted-foreground text-sm", props.class)
|
|
2048
|
+
}), {
|
|
1949
2049
|
default: withCtx(() => [
|
|
1950
2050
|
renderSlot(_ctx.$slots, "default")
|
|
1951
2051
|
]),
|
|
1952
2052
|
_: 3
|
|
1953
|
-
}, 16);
|
|
2053
|
+
}, 16, ["class"]);
|
|
1954
2054
|
};
|
|
1955
2055
|
}
|
|
1956
2056
|
});
|
|
1957
2057
|
|
|
1958
|
-
const _sfc_main$
|
|
1959
|
-
__name: "
|
|
2058
|
+
const _sfc_main$2S = /* @__PURE__ */ defineComponent({
|
|
2059
|
+
__name: "DialogFooter",
|
|
1960
2060
|
props: {
|
|
1961
|
-
|
|
1962
|
-
|
|
2061
|
+
class: {}
|
|
2062
|
+
},
|
|
2063
|
+
setup(__props) {
|
|
2064
|
+
const props = __props;
|
|
2065
|
+
return (_ctx, _cache) => {
|
|
2066
|
+
return openBlock(), createElementBlock("div", {
|
|
2067
|
+
"data-slot": "dialog-footer",
|
|
2068
|
+
class: normalizeClass(unref(cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", props.class))
|
|
2069
|
+
}, [
|
|
2070
|
+
renderSlot(_ctx.$slots, "default")
|
|
2071
|
+
], 2);
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
});
|
|
2075
|
+
|
|
2076
|
+
const _sfc_main$2R = /* @__PURE__ */ defineComponent({
|
|
2077
|
+
__name: "DialogHeader",
|
|
2078
|
+
props: {
|
|
2079
|
+
class: {}
|
|
2080
|
+
},
|
|
2081
|
+
setup(__props) {
|
|
2082
|
+
const props = __props;
|
|
2083
|
+
return (_ctx, _cache) => {
|
|
2084
|
+
return openBlock(), createElementBlock("div", {
|
|
2085
|
+
"data-slot": "dialog-header",
|
|
2086
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-2 text-center sm:text-left", props.class))
|
|
2087
|
+
}, [
|
|
2088
|
+
renderSlot(_ctx.$slots, "default")
|
|
2089
|
+
], 2);
|
|
2090
|
+
};
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
|
|
2094
|
+
const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
|
|
2095
|
+
__name: "DialogScrollContent",
|
|
2096
|
+
props: {
|
|
2097
|
+
forceMount: { type: Boolean },
|
|
2098
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
1963
2099
|
asChild: { type: Boolean },
|
|
1964
2100
|
as: {},
|
|
1965
|
-
class: {}
|
|
1966
|
-
inset: { type: Boolean },
|
|
1967
|
-
variant: { default: "default" }
|
|
2101
|
+
class: {}
|
|
1968
2102
|
},
|
|
1969
|
-
emits: ["
|
|
2103
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
1970
2104
|
setup(__props, { emit: __emit }) {
|
|
1971
2105
|
const props = __props;
|
|
1972
2106
|
const emits = __emit;
|
|
@@ -1976,32 +2110,53 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
|
|
|
1976
2110
|
});
|
|
1977
2111
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1978
2112
|
return (_ctx, _cache) => {
|
|
1979
|
-
return openBlock(), createBlock(unref(
|
|
1980
|
-
"data-slot": "context-menu-item",
|
|
1981
|
-
"data-inset": _ctx.inset ? "" : void 0,
|
|
1982
|
-
"data-variant": _ctx.variant
|
|
1983
|
-
}, unref(forwarded), {
|
|
1984
|
-
class: unref(cn)(
|
|
1985
|
-
`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-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 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1986
|
-
props.class
|
|
1987
|
-
)
|
|
1988
|
-
}), {
|
|
2113
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
1989
2114
|
default: withCtx(() => [
|
|
1990
|
-
|
|
2115
|
+
createVNode(unref(DialogOverlay), { class: "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 grid place-items-center overflow-y-auto bg-black/80" }, {
|
|
2116
|
+
default: withCtx(() => [
|
|
2117
|
+
createVNode(unref(DialogContent), mergeProps({
|
|
2118
|
+
class: unref(cn)(
|
|
2119
|
+
"border-border bg-background relative z-50 my-8 grid w-full max-w-lg gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
2120
|
+
props.class
|
|
2121
|
+
)
|
|
2122
|
+
}, unref(forwarded), {
|
|
2123
|
+
onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
|
|
2124
|
+
const originalEvent = event.detail.originalEvent;
|
|
2125
|
+
const target = originalEvent.target;
|
|
2126
|
+
if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
|
|
2127
|
+
event.preventDefault();
|
|
2128
|
+
}
|
|
2129
|
+
})
|
|
2130
|
+
}), {
|
|
2131
|
+
default: withCtx(() => [
|
|
2132
|
+
renderSlot(_ctx.$slots, "default"),
|
|
2133
|
+
createVNode(unref(DialogClose), { class: "hover:bg-secondary absolute top-4 right-4 rounded-md p-0.5 transition-colors" }, {
|
|
2134
|
+
default: withCtx(() => [
|
|
2135
|
+
createVNode(unref(X), { class: "h-4 w-4" }),
|
|
2136
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
2137
|
+
]),
|
|
2138
|
+
_: 1,
|
|
2139
|
+
__: [1]
|
|
2140
|
+
})
|
|
2141
|
+
]),
|
|
2142
|
+
_: 3
|
|
2143
|
+
}, 16, ["class"])
|
|
2144
|
+
]),
|
|
2145
|
+
_: 3
|
|
2146
|
+
})
|
|
1991
2147
|
]),
|
|
1992
2148
|
_: 3
|
|
1993
|
-
}
|
|
2149
|
+
});
|
|
1994
2150
|
};
|
|
1995
2151
|
}
|
|
1996
2152
|
});
|
|
1997
2153
|
|
|
1998
|
-
const _sfc_main$
|
|
1999
|
-
__name: "
|
|
2154
|
+
const _sfc_main$2P = /* @__PURE__ */ defineComponent({
|
|
2155
|
+
__name: "DialogTitle",
|
|
2000
2156
|
props: {
|
|
2001
2157
|
asChild: { type: Boolean },
|
|
2002
2158
|
as: {},
|
|
2003
|
-
class: {}
|
|
2004
|
-
inset: { type: Boolean }
|
|
2159
|
+
class: {}
|
|
2005
2160
|
},
|
|
2006
2161
|
setup(__props) {
|
|
2007
2162
|
const props = __props;
|
|
@@ -2009,38 +2164,84 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
|
2009
2164
|
const { class: _, ...delegated } = props;
|
|
2010
2165
|
return delegated;
|
|
2011
2166
|
});
|
|
2167
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
2012
2168
|
return (_ctx, _cache) => {
|
|
2013
|
-
return openBlock(), createBlock(unref(
|
|
2014
|
-
|
|
2015
|
-
"data-inset": _ctx.inset ? "" : void 0
|
|
2016
|
-
}, delegatedProps.value, {
|
|
2017
|
-
class: unref(cn)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
2169
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), {
|
|
2170
|
+
class: unref(cn)("text-lg leading-none font-semibold", props.class)
|
|
2018
2171
|
}), {
|
|
2019
2172
|
default: withCtx(() => [
|
|
2020
2173
|
renderSlot(_ctx.$slots, "default")
|
|
2021
2174
|
]),
|
|
2022
2175
|
_: 3
|
|
2023
|
-
}, 16, ["
|
|
2176
|
+
}, 16, ["class"]);
|
|
2024
2177
|
};
|
|
2025
2178
|
}
|
|
2026
2179
|
});
|
|
2027
2180
|
|
|
2028
|
-
const _sfc_main$
|
|
2029
|
-
__name: "
|
|
2181
|
+
const _sfc_main$2O = /* @__PURE__ */ defineComponent({
|
|
2182
|
+
__name: "DialogTrigger",
|
|
2030
2183
|
props: {
|
|
2031
|
-
modelValue: {},
|
|
2032
2184
|
asChild: { type: Boolean },
|
|
2033
2185
|
as: {}
|
|
2034
2186
|
},
|
|
2035
|
-
|
|
2187
|
+
setup(__props) {
|
|
2188
|
+
const props = __props;
|
|
2189
|
+
return (_ctx, _cache) => {
|
|
2190
|
+
return openBlock(), createBlock(unref(DialogTrigger), mergeProps({ "data-slot": "dialog-trigger" }, props), {
|
|
2191
|
+
default: withCtx(() => [
|
|
2192
|
+
renderSlot(_ctx.$slots, "default")
|
|
2193
|
+
]),
|
|
2194
|
+
_: 3
|
|
2195
|
+
}, 16);
|
|
2196
|
+
};
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
|
|
2200
|
+
const _sfc_main$2N = /* @__PURE__ */ defineComponent({
|
|
2201
|
+
__name: "CommandDialog",
|
|
2202
|
+
props: {
|
|
2203
|
+
open: { type: Boolean },
|
|
2204
|
+
defaultOpen: { type: Boolean },
|
|
2205
|
+
modal: { type: Boolean },
|
|
2206
|
+
title: { default: "Command Palette" },
|
|
2207
|
+
description: { default: "Search for a command to run..." }
|
|
2208
|
+
},
|
|
2209
|
+
emits: ["update:open"],
|
|
2036
2210
|
setup(__props, { emit: __emit }) {
|
|
2037
2211
|
const props = __props;
|
|
2038
2212
|
const emits = __emit;
|
|
2039
2213
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
2040
2214
|
return (_ctx, _cache) => {
|
|
2041
|
-
return openBlock(), createBlock(unref(
|
|
2215
|
+
return openBlock(), createBlock(unref(_sfc_main$2X), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
2042
2216
|
default: withCtx(() => [
|
|
2043
|
-
|
|
2217
|
+
createVNode(unref(_sfc_main$2U), { class: "overflow-hidden p-0" }, {
|
|
2218
|
+
default: withCtx(() => [
|
|
2219
|
+
createVNode(unref(_sfc_main$2R), { class: "sr-only" }, {
|
|
2220
|
+
default: withCtx(() => [
|
|
2221
|
+
createVNode(unref(_sfc_main$2P), null, {
|
|
2222
|
+
default: withCtx(() => [
|
|
2223
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
2224
|
+
]),
|
|
2225
|
+
_: 1
|
|
2226
|
+
}),
|
|
2227
|
+
createVNode(unref(_sfc_main$2T), null, {
|
|
2228
|
+
default: withCtx(() => [
|
|
2229
|
+
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
2230
|
+
]),
|
|
2231
|
+
_: 1
|
|
2232
|
+
})
|
|
2233
|
+
]),
|
|
2234
|
+
_: 1
|
|
2235
|
+
}),
|
|
2236
|
+
createVNode(_sfc_main$2Y, null, {
|
|
2237
|
+
default: withCtx(() => [
|
|
2238
|
+
renderSlot(_ctx.$slots, "default")
|
|
2239
|
+
]),
|
|
2240
|
+
_: 3
|
|
2241
|
+
})
|
|
2242
|
+
]),
|
|
2243
|
+
_: 3
|
|
2244
|
+
})
|
|
2044
2245
|
]),
|
|
2045
2246
|
_: 3
|
|
2046
2247
|
}, 16);
|
|
@@ -2048,13 +2249,125 @@ const _sfc_main$2J = /* @__PURE__ */ defineComponent({
|
|
|
2048
2249
|
}
|
|
2049
2250
|
});
|
|
2050
2251
|
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2053
|
-
|
|
2252
|
+
const _sfc_main$2M = /* @__PURE__ */ defineComponent({
|
|
2253
|
+
__name: "CommandEmpty",
|
|
2254
|
+
props: {
|
|
2255
|
+
asChild: { type: Boolean },
|
|
2256
|
+
as: {},
|
|
2257
|
+
class: {}
|
|
2258
|
+
},
|
|
2259
|
+
setup(__props) {
|
|
2260
|
+
const props = __props;
|
|
2261
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2262
|
+
const { filterState } = useCommand();
|
|
2263
|
+
const isRender = computed(() => !!filterState.search && filterState.filtered.count === 0);
|
|
2264
|
+
return (_ctx, _cache) => {
|
|
2265
|
+
return isRender.value ? (openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
2266
|
+
key: 0,
|
|
2267
|
+
"data-slot": "command-empty"
|
|
2268
|
+
}, unref(delegatedProps), {
|
|
2269
|
+
class: unref(cn)("py-6 text-center text-sm", props.class)
|
|
2270
|
+
}), {
|
|
2271
|
+
default: withCtx(() => [
|
|
2272
|
+
renderSlot(_ctx.$slots, "default")
|
|
2273
|
+
]),
|
|
2274
|
+
_: 3
|
|
2275
|
+
}, 16, ["class"])) : createCommentVNode("", true);
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
const _sfc_main$2L = /* @__PURE__ */ defineComponent({
|
|
2281
|
+
__name: "CommandGroup",
|
|
2282
|
+
props: {
|
|
2283
|
+
asChild: { type: Boolean },
|
|
2284
|
+
as: {},
|
|
2285
|
+
class: {},
|
|
2286
|
+
heading: {}
|
|
2287
|
+
},
|
|
2288
|
+
setup(__props) {
|
|
2289
|
+
const props = __props;
|
|
2290
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2291
|
+
const { allGroups, filterState } = useCommand();
|
|
2292
|
+
const id = useId();
|
|
2293
|
+
const isRender = computed(() => !filterState.search ? true : filterState.filtered.groups.has(id));
|
|
2294
|
+
provideCommandGroupContext({ id });
|
|
2295
|
+
onMounted(() => {
|
|
2296
|
+
if (!allGroups.value.has(id)) allGroups.value.set(id, /* @__PURE__ */ new Set());
|
|
2297
|
+
});
|
|
2298
|
+
onUnmounted(() => {
|
|
2299
|
+
allGroups.value.delete(id);
|
|
2300
|
+
});
|
|
2301
|
+
return (_ctx, _cache) => {
|
|
2302
|
+
return openBlock(), createBlock(unref(ListboxGroup), mergeProps(unref(delegatedProps), {
|
|
2303
|
+
id: unref(id),
|
|
2304
|
+
"data-slot": "command-group",
|
|
2305
|
+
class: unref(cn)("text-foreground overflow-hidden p-1", props.class),
|
|
2306
|
+
hidden: isRender.value ? void 0 : true
|
|
2307
|
+
}), {
|
|
2308
|
+
default: withCtx(() => [
|
|
2309
|
+
_ctx.heading ? (openBlock(), createBlock(unref(ListboxGroupLabel), {
|
|
2310
|
+
key: 0,
|
|
2311
|
+
class: "text-muted-foreground px-2 py-1.5 text-xs font-medium"
|
|
2312
|
+
}, {
|
|
2313
|
+
default: withCtx(() => [
|
|
2314
|
+
createTextVNode(toDisplayString(_ctx.heading), 1)
|
|
2315
|
+
]),
|
|
2316
|
+
_: 1
|
|
2317
|
+
})) : createCommentVNode("", true),
|
|
2318
|
+
renderSlot(_ctx.$slots, "default")
|
|
2319
|
+
]),
|
|
2320
|
+
_: 3
|
|
2321
|
+
}, 16, ["id", "class", "hidden"]);
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
});
|
|
2325
|
+
|
|
2326
|
+
const _hoisted_1$e = {
|
|
2327
|
+
"data-slot": "command-input-wrapper",
|
|
2328
|
+
class: "flex h-12 items-center gap-2 border-b px-3"
|
|
2329
|
+
};
|
|
2330
|
+
const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
2331
|
+
...{
|
|
2332
|
+
inheritAttrs: false
|
|
2333
|
+
},
|
|
2334
|
+
__name: "CommandInput",
|
|
2335
|
+
props: {
|
|
2336
|
+
modelValue: {},
|
|
2337
|
+
autoFocus: { type: Boolean },
|
|
2338
|
+
disabled: { type: Boolean },
|
|
2339
|
+
asChild: { type: Boolean },
|
|
2340
|
+
as: {},
|
|
2341
|
+
class: {}
|
|
2342
|
+
},
|
|
2343
|
+
setup(__props) {
|
|
2344
|
+
const props = __props;
|
|
2345
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2346
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
2347
|
+
const { filterState } = useCommand();
|
|
2348
|
+
return (_ctx, _cache) => {
|
|
2349
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2350
|
+
createVNode(unref(Search), { class: "size-4 shrink-0 opacity-50" }),
|
|
2351
|
+
createVNode(unref(ListboxFilter), mergeProps({ ...unref(forwardedProps), ..._ctx.$attrs }, {
|
|
2352
|
+
modelValue: unref(filterState).search,
|
|
2353
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(filterState).search = $event),
|
|
2354
|
+
"data-slot": "command-input",
|
|
2355
|
+
"auto-focus": "",
|
|
2356
|
+
class: unref(cn)(
|
|
2357
|
+
"placeholder:text-muted-foreground flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
2358
|
+
props.class
|
|
2359
|
+
)
|
|
2360
|
+
}), null, 16, ["modelValue", "class"])
|
|
2361
|
+
]);
|
|
2362
|
+
};
|
|
2363
|
+
}
|
|
2364
|
+
});
|
|
2365
|
+
|
|
2366
|
+
const _sfc_main$2J = /* @__PURE__ */ defineComponent({
|
|
2367
|
+
__name: "CommandItem",
|
|
2054
2368
|
props: {
|
|
2055
2369
|
value: {},
|
|
2056
2370
|
disabled: { type: Boolean },
|
|
2057
|
-
textValue: {},
|
|
2058
2371
|
asChild: { type: Boolean },
|
|
2059
2372
|
as: {},
|
|
2060
2373
|
class: {}
|
|
@@ -2063,58 +2376,116 @@ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
|
2063
2376
|
setup(__props, { emit: __emit }) {
|
|
2064
2377
|
const props = __props;
|
|
2065
2378
|
const emits = __emit;
|
|
2066
|
-
const delegatedProps =
|
|
2067
|
-
const { class: _, ...delegated } = props;
|
|
2068
|
-
return delegated;
|
|
2069
|
-
});
|
|
2379
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2070
2380
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2381
|
+
const id = useId();
|
|
2382
|
+
const { filterState, allItems, allGroups } = useCommand();
|
|
2383
|
+
const groupContext = useCommandGroup();
|
|
2384
|
+
const isRender = computed(() => {
|
|
2385
|
+
if (!filterState.search) {
|
|
2386
|
+
return true;
|
|
2387
|
+
} else {
|
|
2388
|
+
const filteredCurrentItem = filterState.filtered.items.get(id);
|
|
2389
|
+
if (filteredCurrentItem === void 0) {
|
|
2390
|
+
return true;
|
|
2391
|
+
}
|
|
2392
|
+
return filteredCurrentItem > 0;
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
const itemRef = ref();
|
|
2396
|
+
const currentElement = useCurrentElement(itemRef);
|
|
2397
|
+
onMounted(() => {
|
|
2398
|
+
if (!(currentElement.value instanceof HTMLElement)) return;
|
|
2399
|
+
allItems.value.set(id, currentElement.value.textContent ?? props.value?.toString() ?? "");
|
|
2400
|
+
const groupId = groupContext?.id;
|
|
2401
|
+
if (groupId) {
|
|
2402
|
+
if (!allGroups.value.has(groupId)) {
|
|
2403
|
+
allGroups.value.set(groupId, /* @__PURE__ */ new Set([id]));
|
|
2404
|
+
} else {
|
|
2405
|
+
allGroups.value.get(groupId)?.add(id);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
onUnmounted(() => {
|
|
2410
|
+
allItems.value.delete(id);
|
|
2411
|
+
});
|
|
2071
2412
|
return (_ctx, _cache) => {
|
|
2072
|
-
return openBlock(), createBlock(unref(
|
|
2413
|
+
return isRender.value ? (openBlock(), createBlock(unref(ListboxItem), mergeProps({ key: 0 }, unref(forwarded), {
|
|
2414
|
+
id: unref(id),
|
|
2415
|
+
ref_key: "itemRef",
|
|
2416
|
+
ref: itemRef,
|
|
2417
|
+
"data-slot": "command-item",
|
|
2073
2418
|
class: unref(cn)(
|
|
2074
|
-
`
|
|
2419
|
+
`data-[highlighted]: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-3 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
2075
2420
|
props.class
|
|
2076
|
-
)
|
|
2421
|
+
),
|
|
2422
|
+
onSelect: _cache[0] || (_cache[0] = () => {
|
|
2423
|
+
unref(filterState).search = "";
|
|
2424
|
+
})
|
|
2077
2425
|
}), {
|
|
2078
2426
|
default: withCtx(() => [
|
|
2079
|
-
createElementVNode("span", _hoisted_1$b, [
|
|
2080
|
-
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
2081
|
-
default: withCtx(() => [
|
|
2082
|
-
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
2083
|
-
]),
|
|
2084
|
-
_: 1
|
|
2085
|
-
})
|
|
2086
|
-
]),
|
|
2087
2427
|
renderSlot(_ctx.$slots, "default")
|
|
2088
2428
|
]),
|
|
2089
2429
|
_: 3
|
|
2430
|
+
}, 16, ["id", "class"])) : createCommentVNode("", true);
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2434
|
+
|
|
2435
|
+
const _hoisted_1$d = { role: "presentation" };
|
|
2436
|
+
const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
2437
|
+
__name: "CommandList",
|
|
2438
|
+
props: {
|
|
2439
|
+
asChild: { type: Boolean },
|
|
2440
|
+
as: {},
|
|
2441
|
+
class: {}
|
|
2442
|
+
},
|
|
2443
|
+
setup(__props) {
|
|
2444
|
+
const props = __props;
|
|
2445
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2446
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
2447
|
+
return (_ctx, _cache) => {
|
|
2448
|
+
return openBlock(), createBlock(unref(ListboxContent), mergeProps({ "data-slot": "command-list" }, unref(forwarded), {
|
|
2449
|
+
class: unref(cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", props.class)
|
|
2450
|
+
}), {
|
|
2451
|
+
default: withCtx(() => [
|
|
2452
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
2453
|
+
renderSlot(_ctx.$slots, "default")
|
|
2454
|
+
])
|
|
2455
|
+
]),
|
|
2456
|
+
_: 3
|
|
2090
2457
|
}, 16, ["class"]);
|
|
2091
2458
|
};
|
|
2092
2459
|
}
|
|
2093
2460
|
});
|
|
2094
2461
|
|
|
2095
2462
|
const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
2096
|
-
__name: "
|
|
2463
|
+
__name: "CommandSeparator",
|
|
2097
2464
|
props: {
|
|
2465
|
+
orientation: {},
|
|
2466
|
+
decorative: { type: Boolean },
|
|
2098
2467
|
asChild: { type: Boolean },
|
|
2099
2468
|
as: {},
|
|
2100
2469
|
class: {}
|
|
2101
2470
|
},
|
|
2102
2471
|
setup(__props) {
|
|
2103
2472
|
const props = __props;
|
|
2104
|
-
const delegatedProps =
|
|
2105
|
-
const { class: _, ...delegated } = props;
|
|
2106
|
-
return delegated;
|
|
2107
|
-
});
|
|
2473
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2108
2474
|
return (_ctx, _cache) => {
|
|
2109
|
-
return openBlock(), createBlock(unref(
|
|
2110
|
-
class: unref(cn)("bg-border -mx-1
|
|
2111
|
-
}),
|
|
2475
|
+
return openBlock(), createBlock(unref(Separator), mergeProps({ "data-slot": "command-separator" }, unref(delegatedProps), {
|
|
2476
|
+
class: unref(cn)("bg-border -mx-1 h-px", props.class)
|
|
2477
|
+
}), {
|
|
2478
|
+
default: withCtx(() => [
|
|
2479
|
+
renderSlot(_ctx.$slots, "default")
|
|
2480
|
+
]),
|
|
2481
|
+
_: 3
|
|
2482
|
+
}, 16, ["class"]);
|
|
2112
2483
|
};
|
|
2113
2484
|
}
|
|
2114
2485
|
});
|
|
2115
2486
|
|
|
2116
2487
|
const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
2117
|
-
__name: "
|
|
2488
|
+
__name: "CommandShortcut",
|
|
2118
2489
|
props: {
|
|
2119
2490
|
class: {}
|
|
2120
2491
|
},
|
|
@@ -2122,7 +2493,7 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
2122
2493
|
const props = __props;
|
|
2123
2494
|
return (_ctx, _cache) => {
|
|
2124
2495
|
return openBlock(), createElementBlock("span", {
|
|
2125
|
-
"data-slot": "
|
|
2496
|
+
"data-slot": "command-shortcut",
|
|
2126
2497
|
class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
|
|
2127
2498
|
}, [
|
|
2128
2499
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2131,11 +2502,14 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
2131
2502
|
}
|
|
2132
2503
|
});
|
|
2133
2504
|
|
|
2505
|
+
const [useCommand, provideCommandContext] = createContext("Command");
|
|
2506
|
+
const [useCommandGroup, provideCommandGroupContext] = createContext("CommandGroup");
|
|
2507
|
+
|
|
2134
2508
|
const _sfc_main$2F = /* @__PURE__ */ defineComponent({
|
|
2135
|
-
__name: "
|
|
2509
|
+
__name: "ContextMenu",
|
|
2136
2510
|
props: {
|
|
2137
|
-
|
|
2138
|
-
|
|
2511
|
+
dir: {},
|
|
2512
|
+
modal: { type: Boolean }
|
|
2139
2513
|
},
|
|
2140
2514
|
emits: ["update:open"],
|
|
2141
2515
|
setup(__props, { emit: __emit }) {
|
|
@@ -2143,7 +2517,7 @@ const _sfc_main$2F = /* @__PURE__ */ defineComponent({
|
|
|
2143
2517
|
const emits = __emit;
|
|
2144
2518
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
2145
2519
|
return (_ctx, _cache) => {
|
|
2146
|
-
return openBlock(), createBlock(unref(
|
|
2520
|
+
return openBlock(), createBlock(unref(ContextMenuRoot), mergeProps({ "data-slot": "context-menu" }, unref(forwarded)), {
|
|
2147
2521
|
default: withCtx(() => [
|
|
2148
2522
|
renderSlot(_ctx.$slots, "default")
|
|
2149
2523
|
]),
|
|
@@ -2153,29 +2527,18 @@ const _sfc_main$2F = /* @__PURE__ */ defineComponent({
|
|
|
2153
2527
|
}
|
|
2154
2528
|
});
|
|
2155
2529
|
|
|
2530
|
+
const _hoisted_1$c = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
2156
2531
|
const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
2157
|
-
__name: "
|
|
2532
|
+
__name: "ContextMenuCheckboxItem",
|
|
2158
2533
|
props: {
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
alignOffset: {},
|
|
2163
|
-
avoidCollisions: { type: Boolean },
|
|
2164
|
-
collisionBoundary: {},
|
|
2165
|
-
collisionPadding: {},
|
|
2166
|
-
arrowPadding: {},
|
|
2167
|
-
sticky: {},
|
|
2168
|
-
hideWhenDetached: { type: Boolean },
|
|
2169
|
-
positionStrategy: {},
|
|
2170
|
-
updatePositionStrategy: {},
|
|
2171
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
2172
|
-
prioritizePosition: { type: Boolean },
|
|
2173
|
-
reference: {},
|
|
2534
|
+
modelValue: { type: [Boolean, String] },
|
|
2535
|
+
disabled: { type: Boolean },
|
|
2536
|
+
textValue: {},
|
|
2174
2537
|
asChild: { type: Boolean },
|
|
2175
2538
|
as: {},
|
|
2176
2539
|
class: {}
|
|
2177
2540
|
},
|
|
2178
|
-
emits: ["
|
|
2541
|
+
emits: ["select", "update:modelValue"],
|
|
2179
2542
|
setup(__props, { emit: __emit }) {
|
|
2180
2543
|
const props = __props;
|
|
2181
2544
|
const emits = __emit;
|
|
@@ -2185,13 +2548,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
2185
2548
|
});
|
|
2186
2549
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2187
2550
|
return (_ctx, _cache) => {
|
|
2188
|
-
return openBlock(), createBlock(unref(
|
|
2551
|
+
return openBlock(), createBlock(unref(ContextMenuCheckboxItem), mergeProps({ "data-slot": "context-menu-checkbox-item" }, unref(forwarded), {
|
|
2189
2552
|
class: unref(cn)(
|
|
2190
|
-
|
|
2553
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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`,
|
|
2191
2554
|
props.class
|
|
2192
2555
|
)
|
|
2193
2556
|
}), {
|
|
2194
2557
|
default: withCtx(() => [
|
|
2558
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
2559
|
+
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
2560
|
+
default: withCtx(() => [
|
|
2561
|
+
createVNode(unref(Check), { class: "size-4" })
|
|
2562
|
+
]),
|
|
2563
|
+
_: 1
|
|
2564
|
+
})
|
|
2565
|
+
]),
|
|
2195
2566
|
renderSlot(_ctx.$slots, "default")
|
|
2196
2567
|
]),
|
|
2197
2568
|
_: 3
|
|
@@ -2201,54 +2572,64 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
2201
2572
|
});
|
|
2202
2573
|
|
|
2203
2574
|
const _sfc_main$2D = /* @__PURE__ */ defineComponent({
|
|
2204
|
-
__name: "
|
|
2575
|
+
__name: "ContextMenuContent",
|
|
2205
2576
|
props: {
|
|
2206
|
-
|
|
2207
|
-
|
|
2577
|
+
forceMount: { type: Boolean },
|
|
2578
|
+
loop: { type: Boolean },
|
|
2579
|
+
alignOffset: {},
|
|
2580
|
+
avoidCollisions: { type: Boolean },
|
|
2581
|
+
collisionBoundary: {},
|
|
2582
|
+
collisionPadding: {},
|
|
2583
|
+
sticky: {},
|
|
2584
|
+
hideWhenDetached: { type: Boolean },
|
|
2585
|
+
positionStrategy: {},
|
|
2586
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
2587
|
+
prioritizePosition: { type: Boolean },
|
|
2588
|
+
reference: {},
|
|
2208
2589
|
asChild: { type: Boolean },
|
|
2209
2590
|
as: {},
|
|
2210
|
-
class: {}
|
|
2211
|
-
inset: { type: Boolean }
|
|
2591
|
+
class: {}
|
|
2212
2592
|
},
|
|
2213
|
-
|
|
2593
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
2594
|
+
setup(__props, { emit: __emit }) {
|
|
2214
2595
|
const props = __props;
|
|
2596
|
+
const emits = __emit;
|
|
2215
2597
|
const delegatedProps = computed(() => {
|
|
2216
2598
|
const { class: _, ...delegated } = props;
|
|
2217
2599
|
return delegated;
|
|
2218
2600
|
});
|
|
2219
|
-
const
|
|
2601
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2220
2602
|
return (_ctx, _cache) => {
|
|
2221
|
-
return openBlock(), createBlock(unref(
|
|
2222
|
-
"data-slot": "context-menu-sub-trigger",
|
|
2223
|
-
"data-inset": _ctx.inset ? "" : void 0
|
|
2224
|
-
}, unref(forwardedProps), {
|
|
2225
|
-
class: unref(cn)(
|
|
2226
|
-
`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
2227
|
-
props.class
|
|
2228
|
-
)
|
|
2229
|
-
}), {
|
|
2603
|
+
return openBlock(), createBlock(unref(ContextMenuPortal), null, {
|
|
2230
2604
|
default: withCtx(() => [
|
|
2231
|
-
|
|
2232
|
-
|
|
2605
|
+
createVNode(unref(ContextMenuContent), mergeProps({ "data-slot": "context-menu-content" }, unref(forwarded), {
|
|
2606
|
+
class: unref(cn)(
|
|
2607
|
+
"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-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
2608
|
+
props.class
|
|
2609
|
+
)
|
|
2610
|
+
}), {
|
|
2611
|
+
default: withCtx(() => [
|
|
2612
|
+
renderSlot(_ctx.$slots, "default")
|
|
2613
|
+
]),
|
|
2614
|
+
_: 3
|
|
2615
|
+
}, 16, ["class"])
|
|
2233
2616
|
]),
|
|
2234
2617
|
_: 3
|
|
2235
|
-
}
|
|
2618
|
+
});
|
|
2236
2619
|
};
|
|
2237
2620
|
}
|
|
2238
2621
|
});
|
|
2239
2622
|
|
|
2240
2623
|
const _sfc_main$2C = /* @__PURE__ */ defineComponent({
|
|
2241
|
-
__name: "
|
|
2624
|
+
__name: "ContextMenuGroup",
|
|
2242
2625
|
props: {
|
|
2243
|
-
disabled: { type: Boolean },
|
|
2244
2626
|
asChild: { type: Boolean },
|
|
2245
2627
|
as: {}
|
|
2246
2628
|
},
|
|
2247
2629
|
setup(__props) {
|
|
2248
2630
|
const props = __props;
|
|
2249
|
-
const forwardedProps = useForwardProps(props);
|
|
2250
2631
|
return (_ctx, _cache) => {
|
|
2251
|
-
return openBlock(), createBlock(unref(
|
|
2632
|
+
return openBlock(), createBlock(unref(ContextMenuGroup), mergeProps({ "data-slot": "context-menu-group" }, props), {
|
|
2252
2633
|
default: withCtx(() => [
|
|
2253
2634
|
renderSlot(_ctx.$slots, "default")
|
|
2254
2635
|
]),
|
|
@@ -2259,87 +2640,110 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
|
|
|
2259
2640
|
});
|
|
2260
2641
|
|
|
2261
2642
|
const _sfc_main$2B = /* @__PURE__ */ defineComponent({
|
|
2262
|
-
__name: "
|
|
2643
|
+
__name: "ContextMenuItem",
|
|
2263
2644
|
props: {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2645
|
+
disabled: { type: Boolean },
|
|
2646
|
+
textValue: {},
|
|
2647
|
+
asChild: { type: Boolean },
|
|
2648
|
+
as: {},
|
|
2649
|
+
class: {},
|
|
2650
|
+
inset: { type: Boolean },
|
|
2651
|
+
variant: { default: "default" }
|
|
2267
2652
|
},
|
|
2268
|
-
emits: ["
|
|
2653
|
+
emits: ["select"],
|
|
2269
2654
|
setup(__props, { emit: __emit }) {
|
|
2270
2655
|
const props = __props;
|
|
2271
2656
|
const emits = __emit;
|
|
2272
|
-
const
|
|
2657
|
+
const delegatedProps = computed(() => {
|
|
2658
|
+
const { class: _, ...delegated } = props;
|
|
2659
|
+
return delegated;
|
|
2660
|
+
});
|
|
2661
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2273
2662
|
return (_ctx, _cache) => {
|
|
2274
|
-
return openBlock(), createBlock(unref(
|
|
2663
|
+
return openBlock(), createBlock(unref(ContextMenuItem), mergeProps({
|
|
2664
|
+
"data-slot": "context-menu-item",
|
|
2665
|
+
"data-inset": _ctx.inset ? "" : void 0,
|
|
2666
|
+
"data-variant": _ctx.variant
|
|
2667
|
+
}, unref(forwarded), {
|
|
2668
|
+
class: unref(cn)(
|
|
2669
|
+
`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-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 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
2670
|
+
props.class
|
|
2671
|
+
)
|
|
2672
|
+
}), {
|
|
2275
2673
|
default: withCtx(() => [
|
|
2276
2674
|
renderSlot(_ctx.$slots, "default")
|
|
2277
2675
|
]),
|
|
2278
2676
|
_: 3
|
|
2279
|
-
}, 16);
|
|
2677
|
+
}, 16, ["data-inset", "data-variant", "class"]);
|
|
2280
2678
|
};
|
|
2281
2679
|
}
|
|
2282
2680
|
});
|
|
2283
2681
|
|
|
2284
2682
|
const _sfc_main$2A = /* @__PURE__ */ defineComponent({
|
|
2285
|
-
__name: "
|
|
2683
|
+
__name: "ContextMenuLabel",
|
|
2286
2684
|
props: {
|
|
2287
2685
|
asChild: { type: Boolean },
|
|
2288
|
-
as: {}
|
|
2686
|
+
as: {},
|
|
2687
|
+
class: {},
|
|
2688
|
+
inset: { type: Boolean }
|
|
2289
2689
|
},
|
|
2290
2690
|
setup(__props) {
|
|
2291
2691
|
const props = __props;
|
|
2692
|
+
const delegatedProps = computed(() => {
|
|
2693
|
+
const { class: _, ...delegated } = props;
|
|
2694
|
+
return delegated;
|
|
2695
|
+
});
|
|
2292
2696
|
return (_ctx, _cache) => {
|
|
2293
|
-
return openBlock(), createBlock(unref(
|
|
2697
|
+
return openBlock(), createBlock(unref(ContextMenuLabel), mergeProps({
|
|
2698
|
+
"data-slot": "context-menu-label",
|
|
2699
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
2700
|
+
}, delegatedProps.value, {
|
|
2701
|
+
class: unref(cn)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
2702
|
+
}), {
|
|
2294
2703
|
default: withCtx(() => [
|
|
2295
2704
|
renderSlot(_ctx.$slots, "default")
|
|
2296
2705
|
]),
|
|
2297
2706
|
_: 3
|
|
2298
|
-
}, 16);
|
|
2707
|
+
}, 16, ["data-inset", "class"]);
|
|
2299
2708
|
};
|
|
2300
2709
|
}
|
|
2301
2710
|
});
|
|
2302
2711
|
|
|
2303
2712
|
const _sfc_main$2z = /* @__PURE__ */ defineComponent({
|
|
2304
|
-
__name: "
|
|
2713
|
+
__name: "ContextMenuRadioGroup",
|
|
2305
2714
|
props: {
|
|
2306
|
-
|
|
2715
|
+
modelValue: {},
|
|
2307
2716
|
asChild: { type: Boolean },
|
|
2308
|
-
as: {}
|
|
2309
|
-
class: {}
|
|
2717
|
+
as: {}
|
|
2310
2718
|
},
|
|
2311
|
-
|
|
2719
|
+
emits: ["update:modelValue"],
|
|
2720
|
+
setup(__props, { emit: __emit }) {
|
|
2312
2721
|
const props = __props;
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
return delegated;
|
|
2316
|
-
});
|
|
2722
|
+
const emits = __emit;
|
|
2723
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
2317
2724
|
return (_ctx, _cache) => {
|
|
2318
|
-
return openBlock(), createBlock(unref(
|
|
2319
|
-
class: unref(cn)(
|
|
2320
|
-
"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",
|
|
2321
|
-
props.class
|
|
2322
|
-
)
|
|
2323
|
-
}), {
|
|
2725
|
+
return openBlock(), createBlock(unref(ContextMenuRadioGroup), mergeProps({ "data-slot": "context-menu-radio-group" }, unref(forwarded)), {
|
|
2324
2726
|
default: withCtx(() => [
|
|
2325
2727
|
renderSlot(_ctx.$slots, "default")
|
|
2326
2728
|
]),
|
|
2327
2729
|
_: 3
|
|
2328
|
-
}, 16
|
|
2730
|
+
}, 16);
|
|
2329
2731
|
};
|
|
2330
2732
|
}
|
|
2331
2733
|
});
|
|
2332
2734
|
|
|
2735
|
+
const _hoisted_1$b = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
2333
2736
|
const _sfc_main$2y = /* @__PURE__ */ defineComponent({
|
|
2334
|
-
__name: "
|
|
2737
|
+
__name: "ContextMenuRadioItem",
|
|
2335
2738
|
props: {
|
|
2336
|
-
|
|
2337
|
-
|
|
2739
|
+
value: {},
|
|
2740
|
+
disabled: { type: Boolean },
|
|
2741
|
+
textValue: {},
|
|
2338
2742
|
asChild: { type: Boolean },
|
|
2339
2743
|
as: {},
|
|
2340
2744
|
class: {}
|
|
2341
2745
|
},
|
|
2342
|
-
emits: ["
|
|
2746
|
+
emits: ["select"],
|
|
2343
2747
|
setup(__props, { emit: __emit }) {
|
|
2344
2748
|
const props = __props;
|
|
2345
2749
|
const emits = __emit;
|
|
@@ -2349,37 +2753,31 @@ const _sfc_main$2y = /* @__PURE__ */ defineComponent({
|
|
|
2349
2753
|
});
|
|
2350
2754
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2351
2755
|
return (_ctx, _cache) => {
|
|
2352
|
-
return openBlock(), createBlock(unref(
|
|
2756
|
+
return openBlock(), createBlock(unref(ContextMenuRadioItem), mergeProps({ "data-slot": "context-menu-radio-item" }, unref(forwarded), {
|
|
2757
|
+
class: unref(cn)(
|
|
2758
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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`,
|
|
2759
|
+
props.class
|
|
2760
|
+
)
|
|
2761
|
+
}), {
|
|
2353
2762
|
default: withCtx(() => [
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
createVNode(unref(DialogClose), { 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" }, {
|
|
2364
|
-
default: withCtx(() => [
|
|
2365
|
-
createVNode(unref(X)),
|
|
2366
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
2367
|
-
]),
|
|
2368
|
-
_: 1,
|
|
2369
|
-
__: [0]
|
|
2370
|
-
})
|
|
2371
|
-
]),
|
|
2372
|
-
_: 3
|
|
2373
|
-
}, 16, ["class"])
|
|
2763
|
+
createElementVNode("span", _hoisted_1$b, [
|
|
2764
|
+
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
2765
|
+
default: withCtx(() => [
|
|
2766
|
+
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
2767
|
+
]),
|
|
2768
|
+
_: 1
|
|
2769
|
+
})
|
|
2770
|
+
]),
|
|
2771
|
+
renderSlot(_ctx.$slots, "default")
|
|
2374
2772
|
]),
|
|
2375
2773
|
_: 3
|
|
2376
|
-
});
|
|
2774
|
+
}, 16, ["class"]);
|
|
2377
2775
|
};
|
|
2378
2776
|
}
|
|
2379
2777
|
});
|
|
2380
2778
|
|
|
2381
2779
|
const _sfc_main$2x = /* @__PURE__ */ defineComponent({
|
|
2382
|
-
__name: "
|
|
2780
|
+
__name: "ContextMenuSeparator",
|
|
2383
2781
|
props: {
|
|
2384
2782
|
asChild: { type: Boolean },
|
|
2385
2783
|
as: {},
|
|
@@ -2391,31 +2789,25 @@ const _sfc_main$2x = /* @__PURE__ */ defineComponent({
|
|
|
2391
2789
|
const { class: _, ...delegated } = props;
|
|
2392
2790
|
return delegated;
|
|
2393
2791
|
});
|
|
2394
|
-
const forwardedProps = useForwardProps(delegatedProps);
|
|
2395
2792
|
return (_ctx, _cache) => {
|
|
2396
|
-
return openBlock(), createBlock(unref(
|
|
2397
|
-
class: unref(cn)("
|
|
2398
|
-
}),
|
|
2399
|
-
default: withCtx(() => [
|
|
2400
|
-
renderSlot(_ctx.$slots, "default")
|
|
2401
|
-
]),
|
|
2402
|
-
_: 3
|
|
2403
|
-
}, 16, ["class"]);
|
|
2793
|
+
return openBlock(), createBlock(unref(ContextMenuSeparator), mergeProps({ "data-slot": "context-menu-separator" }, delegatedProps.value, {
|
|
2794
|
+
class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
|
|
2795
|
+
}), null, 16, ["class"]);
|
|
2404
2796
|
};
|
|
2405
2797
|
}
|
|
2406
2798
|
});
|
|
2407
2799
|
|
|
2408
2800
|
const _sfc_main$2w = /* @__PURE__ */ defineComponent({
|
|
2409
|
-
__name: "
|
|
2801
|
+
__name: "ContextMenuShortcut",
|
|
2410
2802
|
props: {
|
|
2411
2803
|
class: {}
|
|
2412
2804
|
},
|
|
2413
2805
|
setup(__props) {
|
|
2414
2806
|
const props = __props;
|
|
2415
2807
|
return (_ctx, _cache) => {
|
|
2416
|
-
return openBlock(), createElementBlock("
|
|
2417
|
-
"data-slot": "
|
|
2418
|
-
class: normalizeClass(unref(cn)("
|
|
2808
|
+
return openBlock(), createElementBlock("span", {
|
|
2809
|
+
"data-slot": "context-menu-shortcut",
|
|
2810
|
+
class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
|
|
2419
2811
|
}, [
|
|
2420
2812
|
renderSlot(_ctx.$slots, "default")
|
|
2421
2813
|
], 2);
|
|
@@ -2424,33 +2816,50 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
|
|
|
2424
2816
|
});
|
|
2425
2817
|
|
|
2426
2818
|
const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
2427
|
-
__name: "
|
|
2819
|
+
__name: "ContextMenuSub",
|
|
2428
2820
|
props: {
|
|
2429
|
-
|
|
2821
|
+
defaultOpen: { type: Boolean },
|
|
2822
|
+
open: { type: Boolean }
|
|
2430
2823
|
},
|
|
2431
|
-
|
|
2824
|
+
emits: ["update:open"],
|
|
2825
|
+
setup(__props, { emit: __emit }) {
|
|
2432
2826
|
const props = __props;
|
|
2827
|
+
const emits = __emit;
|
|
2828
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
2433
2829
|
return (_ctx, _cache) => {
|
|
2434
|
-
return openBlock(),
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2830
|
+
return openBlock(), createBlock(unref(ContextMenuSub), mergeProps({ "data-slot": "context-menu-sub" }, unref(forwarded)), {
|
|
2831
|
+
default: withCtx(() => [
|
|
2832
|
+
renderSlot(_ctx.$slots, "default")
|
|
2833
|
+
]),
|
|
2834
|
+
_: 3
|
|
2835
|
+
}, 16);
|
|
2440
2836
|
};
|
|
2441
2837
|
}
|
|
2442
2838
|
});
|
|
2443
2839
|
|
|
2444
2840
|
const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
2445
|
-
__name: "
|
|
2841
|
+
__name: "ContextMenuSubContent",
|
|
2446
2842
|
props: {
|
|
2447
2843
|
forceMount: { type: Boolean },
|
|
2448
|
-
|
|
2844
|
+
loop: { type: Boolean },
|
|
2845
|
+
sideOffset: {},
|
|
2846
|
+
alignOffset: {},
|
|
2847
|
+
avoidCollisions: { type: Boolean },
|
|
2848
|
+
collisionBoundary: {},
|
|
2849
|
+
collisionPadding: {},
|
|
2850
|
+
arrowPadding: {},
|
|
2851
|
+
sticky: {},
|
|
2852
|
+
hideWhenDetached: { type: Boolean },
|
|
2853
|
+
positionStrategy: {},
|
|
2854
|
+
updatePositionStrategy: {},
|
|
2855
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
2856
|
+
prioritizePosition: { type: Boolean },
|
|
2857
|
+
reference: {},
|
|
2449
2858
|
asChild: { type: Boolean },
|
|
2450
2859
|
as: {},
|
|
2451
2860
|
class: {}
|
|
2452
2861
|
},
|
|
2453
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
2862
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
2454
2863
|
setup(__props, { emit: __emit }) {
|
|
2455
2864
|
const props = __props;
|
|
2456
2865
|
const emits = __emit;
|
|
@@ -2460,53 +2869,30 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
|
2460
2869
|
});
|
|
2461
2870
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2462
2871
|
return (_ctx, _cache) => {
|
|
2463
|
-
return openBlock(), createBlock(unref(
|
|
2872
|
+
return openBlock(), createBlock(unref(ContextMenuSubContent), mergeProps({ "data-slot": "context-menu-sub-content" }, unref(forwarded), {
|
|
2873
|
+
class: unref(cn)(
|
|
2874
|
+
"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 min-w-[8rem] origin-(--reka-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
2875
|
+
props.class
|
|
2876
|
+
)
|
|
2877
|
+
}), {
|
|
2464
2878
|
default: withCtx(() => [
|
|
2465
|
-
|
|
2466
|
-
default: withCtx(() => [
|
|
2467
|
-
createVNode(unref(DialogContent), mergeProps({
|
|
2468
|
-
class: unref(cn)(
|
|
2469
|
-
"border-border bg-background relative z-50 my-8 grid w-full max-w-lg gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
2470
|
-
props.class
|
|
2471
|
-
)
|
|
2472
|
-
}, unref(forwarded), {
|
|
2473
|
-
onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
|
|
2474
|
-
const originalEvent = event.detail.originalEvent;
|
|
2475
|
-
const target = originalEvent.target;
|
|
2476
|
-
if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
|
|
2477
|
-
event.preventDefault();
|
|
2478
|
-
}
|
|
2479
|
-
})
|
|
2480
|
-
}), {
|
|
2481
|
-
default: withCtx(() => [
|
|
2482
|
-
renderSlot(_ctx.$slots, "default"),
|
|
2483
|
-
createVNode(unref(DialogClose), { class: "hover:bg-secondary absolute top-4 right-4 rounded-md p-0.5 transition-colors" }, {
|
|
2484
|
-
default: withCtx(() => [
|
|
2485
|
-
createVNode(unref(X), { class: "h-4 w-4" }),
|
|
2486
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
2487
|
-
]),
|
|
2488
|
-
_: 1,
|
|
2489
|
-
__: [1]
|
|
2490
|
-
})
|
|
2491
|
-
]),
|
|
2492
|
-
_: 3
|
|
2493
|
-
}, 16, ["class"])
|
|
2494
|
-
]),
|
|
2495
|
-
_: 3
|
|
2496
|
-
})
|
|
2879
|
+
renderSlot(_ctx.$slots, "default")
|
|
2497
2880
|
]),
|
|
2498
2881
|
_: 3
|
|
2499
|
-
});
|
|
2882
|
+
}, 16, ["class"]);
|
|
2500
2883
|
};
|
|
2501
2884
|
}
|
|
2502
2885
|
});
|
|
2503
2886
|
|
|
2504
2887
|
const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
2505
|
-
__name: "
|
|
2888
|
+
__name: "ContextMenuSubTrigger",
|
|
2506
2889
|
props: {
|
|
2890
|
+
disabled: { type: Boolean },
|
|
2891
|
+
textValue: {},
|
|
2507
2892
|
asChild: { type: Boolean },
|
|
2508
2893
|
as: {},
|
|
2509
|
-
class: {}
|
|
2894
|
+
class: {},
|
|
2895
|
+
inset: { type: Boolean }
|
|
2510
2896
|
},
|
|
2511
2897
|
setup(__props) {
|
|
2512
2898
|
const props = __props;
|
|
@@ -2516,28 +2902,37 @@ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
|
2516
2902
|
});
|
|
2517
2903
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
2518
2904
|
return (_ctx, _cache) => {
|
|
2519
|
-
return openBlock(), createBlock(unref(
|
|
2520
|
-
|
|
2905
|
+
return openBlock(), createBlock(unref(ContextMenuSubTrigger), mergeProps({
|
|
2906
|
+
"data-slot": "context-menu-sub-trigger",
|
|
2907
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
2908
|
+
}, unref(forwardedProps), {
|
|
2909
|
+
class: unref(cn)(
|
|
2910
|
+
`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
2911
|
+
props.class
|
|
2912
|
+
)
|
|
2521
2913
|
}), {
|
|
2522
2914
|
default: withCtx(() => [
|
|
2523
|
-
renderSlot(_ctx.$slots, "default")
|
|
2915
|
+
renderSlot(_ctx.$slots, "default"),
|
|
2916
|
+
createVNode(unref(ChevronRight), { class: "ml-auto" })
|
|
2524
2917
|
]),
|
|
2525
2918
|
_: 3
|
|
2526
|
-
}, 16, ["class"]);
|
|
2919
|
+
}, 16, ["data-inset", "class"]);
|
|
2527
2920
|
};
|
|
2528
2921
|
}
|
|
2529
2922
|
});
|
|
2530
2923
|
|
|
2531
2924
|
const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
2532
|
-
__name: "
|
|
2925
|
+
__name: "ContextMenuTrigger",
|
|
2533
2926
|
props: {
|
|
2927
|
+
disabled: { type: Boolean },
|
|
2534
2928
|
asChild: { type: Boolean },
|
|
2535
2929
|
as: {}
|
|
2536
2930
|
},
|
|
2537
2931
|
setup(__props) {
|
|
2538
2932
|
const props = __props;
|
|
2933
|
+
const forwardedProps = useForwardProps(props);
|
|
2539
2934
|
return (_ctx, _cache) => {
|
|
2540
|
-
return openBlock(), createBlock(unref(
|
|
2935
|
+
return openBlock(), createBlock(unref(ContextMenuTrigger), mergeProps({ "data-slot": "context-menu-trigger" }, unref(forwardedProps)), {
|
|
2541
2936
|
default: withCtx(() => [
|
|
2542
2937
|
renderSlot(_ctx.$slots, "default")
|
|
2543
2938
|
]),
|
|
@@ -6611,7 +7006,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
6611
7006
|
const props = __props;
|
|
6612
7007
|
const { toggleSidebar } = useSidebar();
|
|
6613
7008
|
return (_ctx, _cache) => {
|
|
6614
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7009
|
+
return openBlock(), createBlock(unref(_sfc_main$3J), {
|
|
6615
7010
|
"data-sidebar": "trigger",
|
|
6616
7011
|
"data-slot": "sidebar-trigger",
|
|
6617
7012
|
variant: "ghost",
|
|
@@ -7553,4 +7948,4 @@ const toggleVariants = cva(
|
|
|
7553
7948
|
}
|
|
7554
7949
|
);
|
|
7555
7950
|
|
|
7556
|
-
export { _sfc_main$
|
|
7951
|
+
export { _sfc_main$3R as Accordion, _sfc_main$3Q as AccordionContent, _sfc_main$3P as AccordionItem, _sfc_main$3O as AccordionTrigger, _sfc_main$3N as Alert, _sfc_main$3M as AlertDescription, _sfc_main$3K as AlertDialog, _sfc_main$3I as AlertDialogAction, _sfc_main$3H as AlertDialogCancel, _sfc_main$3G as AlertDialogContent, _sfc_main$3F as AlertDialogDescription, _sfc_main$3E as AlertDialogFooter, _sfc_main$3D as AlertDialogHeader, _sfc_main$3C as AlertDialogTitle, _sfc_main$3B as AlertDialogTrigger, _sfc_main$3L as AlertTitle, _sfc_main$3A as Avatar, _sfc_main$3z as AvatarFallback, _sfc_main$3y as AvatarImage, _sfc_main$3x as Badge, _sfc_main$3J as Button, _sfc_main$3u as ButtonIcon, _sfc_main$3v as ButtonLink, _sfc_main$3k as Calendar, _sfc_main$3j as CalendarCell, _sfc_main$3i as CalendarCellTrigger, _sfc_main$3h as CalendarGrid, _sfc_main$3g as CalendarGridBody, _sfc_main$3f as CalendarGridHead, _sfc_main$3e as CalendarGridRow, _sfc_main$3d as CalendarHeadCell, _sfc_main$3c as CalendarHeader, _sfc_main$3b as CalendarHeading, _sfc_main$3a as CalendarNextButton, _sfc_main$39 as CalendarPrevButton, _sfc_main$3l as Card, _sfc_main$37 as Checkbox, _sfc_main$36 as Combobox, _sfc_main$35 as ComboboxAnchor, _sfc_main$34 as ComboboxEmpty, _sfc_main$33 as ComboboxGroup, _sfc_main$32 as ComboboxInput, _sfc_main$31 as ComboboxItem, _sfc_main$30 as ComboboxItemIndicator, _sfc_main$2$ as ComboboxList, _sfc_main$2_ as ComboboxSeparator, _sfc_main$2Z as ComboboxViewport, _sfc_main$2Y as Command, _sfc_main$2N as CommandDialog, _sfc_main$2M as CommandEmpty, _sfc_main$2L as CommandGroup, _sfc_main$2K as CommandInput, _sfc_main$2J as CommandItem, _sfc_main$2I as CommandList, _sfc_main$2H as CommandSeparator, _sfc_main$2G as CommandShortcut, _sfc_main$2F as ContextMenu, _sfc_main$2E as ContextMenuCheckboxItem, _sfc_main$2D as ContextMenuContent, _sfc_main$2C as ContextMenuGroup, _sfc_main$2B as ContextMenuItem, _sfc_main$2A as ContextMenuLabel, _sfc_main$2z as ContextMenuRadioGroup, _sfc_main$2y as ContextMenuRadioItem, _sfc_main$2x as ContextMenuSeparator, _sfc_main$2w as ContextMenuShortcut, _sfc_main$2v as ContextMenuSub, _sfc_main$2u as ContextMenuSubContent, _sfc_main$2t as ContextMenuSubTrigger, _sfc_main$2s as ContextMenuTrigger, _sfc_main$2X as Dialog, _sfc_main$2W as DialogClose, _sfc_main$2U as DialogContent, _sfc_main$2T as DialogDescription, _sfc_main$2S as DialogFooter, _sfc_main$2R as DialogHeader, _sfc_main$2V as DialogOverlay, _sfc_main$2Q as DialogScrollContent, _sfc_main$2P as DialogTitle, _sfc_main$2O as DialogTrigger, _sfc_main$2r as Drawer, _sfc_main$2q as DrawerClose, _sfc_main$2o as DrawerContent, _sfc_main$2n as DrawerDescription, _sfc_main$2m as DrawerFooter, _sfc_main$2l as DrawerHeader, _sfc_main$2p as DrawerOverlay, _sfc_main$2k as DrawerTitle, _sfc_main$2j as DrawerTrigger, _sfc_main$2i as DropdownMenu, _sfc_main$2h as DropdownMenuCheckboxItem, _sfc_main$2g as DropdownMenuContent, _sfc_main$2f as DropdownMenuGroup, _sfc_main$2e as DropdownMenuItem, _sfc_main$2d as DropdownMenuLabel, _sfc_main$2c as DropdownMenuRadioGroup, _sfc_main$2b as DropdownMenuRadioItem, _sfc_main$2a as DropdownMenuSeparator, _sfc_main$29 as DropdownMenuShortcut, _sfc_main$28 as DropdownMenuSub, _sfc_main$27 as DropdownMenuSubContent, _sfc_main$26 as DropdownMenuSubTrigger, _sfc_main$25 as DropdownMenuTrigger, _sfc_main$24 as HoverCard, _sfc_main$23 as HoverCardContent, _sfc_main$22 as HoverCardTrigger, _sfc_main$20 as Input, _sfc_main$1W as InputNumber, _sfc_main$1V as InputText, _sfc_main$1U as Label, _sfc_main$1T as Link, Loading, _sfc_main$1R as Menubar, _sfc_main$1Q as MenubarCheckboxItem, _sfc_main$1P as MenubarContent, _sfc_main$1O as MenubarGroup, _sfc_main$1N as MenubarItem, _sfc_main$1M as MenubarLabel, _sfc_main$1L as MenubarMenu, _sfc_main$1K as MenubarRadioGroup, _sfc_main$1J as MenubarRadioItem, _sfc_main$1I as MenubarSeparator, _sfc_main$1H as MenubarShortcut, _sfc_main$1G as MenubarSub, _sfc_main$1F as MenubarSubContent, _sfc_main$1E as MenubarSubTrigger, _sfc_main$1D as MenubarTrigger, _sfc_main$1B as NavigationMenu, _sfc_main$1A as NavigationMenuContent, _sfc_main$1z as NavigationMenuIndicator, _sfc_main$1y as NavigationMenuItem, _sfc_main$1x as NavigationMenuLink, _sfc_main$1w as NavigationMenuList, _sfc_main$1v as NavigationMenuTrigger, _sfc_main$1C as NavigationMenuViewport, _sfc_main$1u as Pagination, _sfc_main$1t as PaginationContent, _sfc_main$1s as PaginationEllipsis, _sfc_main$1r as PaginationFirst, _sfc_main$1q as PaginationItem, _sfc_main$1p as PaginationLast, _sfc_main$1o as PaginationNext, _sfc_main$1n as PaginationPrevious, _sfc_main$1m as Popover, _sfc_main$1l as PopoverAnchor, _sfc_main$1k as PopoverContent, _sfc_main$1j as PopoverTrigger, _sfc_main$1i as Progress, _sfc_main$1h as RadioGroup, _sfc_main$1g as RadioGroupItem, _sfc_main$1f as ResizableHandle, _sfc_main$1e as ResizablePanel, _sfc_main$1d as ResizablePanelGroup, _sfc_main$3s as ScrollArea, _sfc_main$11 as Select, _sfc_main$1a as SelectGroup, _sfc_main$19 as SelectItem, _sfc_main$18 as SelectItemText, _sfc_main$17 as SelectLabel, _sfc_main$16 as SelectScrollDownButton, _sfc_main$15 as SelectScrollUpButton, _sfc_main$14 as SelectSeparator, _sfc_main$10 as Separator, _sfc_main$$ as Sheet, _sfc_main$_ as SheetClose, _sfc_main$Y as SheetContent, _sfc_main$X as SheetDescription, _sfc_main$W as SheetFooter, _sfc_main$V as SheetHeader, _sfc_main$U as SheetTitle, _sfc_main$T as SheetTrigger, _sfc_main$S as Sidebar, _sfc_main$R as SidebarContent, _sfc_main$Q as SidebarFooter, _sfc_main$P as SidebarGroup, _sfc_main$O as SidebarGroupAction, _sfc_main$N as SidebarGroupContent, _sfc_main$M as SidebarGroupLabel, _sfc_main$L as SidebarHeader, _sfc_main$K as SidebarInput, _sfc_main$J as SidebarInset, _sfc_main$I as SidebarMenu, _sfc_main$H as SidebarMenuAction, _sfc_main$G as SidebarMenuBadge, _sfc_main$A as SidebarMenuButton, _sfc_main$z as SidebarMenuItem, _sfc_main$x as SidebarMenuSkeleton, _sfc_main$w as SidebarMenuSub, _sfc_main$v as SidebarMenuSubButton, _sfc_main$u as SidebarMenuSubItem, _sfc_main$t as SidebarProvider, _sfc_main$s as SidebarRail, _sfc_main$r as SidebarSeparator, _sfc_main$q as SidebarTrigger, _sfc_main$y as Skeleton, _sfc_main$p as Slider, _sfc_main$o as Sonner, _sfc_main$m as Switch, _sfc_main$d as Table, _sfc_main$l as TableBody, _sfc_main$k as TableCaption, _sfc_main$j as TableCell, _sfc_main$h as TableEmpty, _sfc_main$g as TableFooter, _sfc_main$f as TableHead, _sfc_main$e as TableHeader, _sfc_main$c as TableLink, _sfc_main$i as TableRow, _sfc_main$b as Tabs, _sfc_main$a as TabsContent, _sfc_main$9 as TabsList, _sfc_main$8 as TabsTrigger, _sfc_main$7 as TagsInput, _sfc_main$6 as TagsInputInput, _sfc_main$5 as TagsInputItem, _sfc_main$4 as TagsInputItemDelete, _sfc_main$3 as TagsInputItemText, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$F as Tooltip, _sfc_main$E as TooltipContent, _sfc_main$D as TooltipProvider, _sfc_main$C as TooltipTrigger, cn, navigationMenuTriggerStyle, sidebarMenuButtonVariants, toBooleanCheckboxValue, useSidebar };
|