@agrotools1/at-components 2.0.13 → 2.0.14-beta.1
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/accordion/Accordion.vue.js +30 -0
- package/dist/accordion/Accordion.vue2.js +4 -0
- package/dist/accordion/AccordionContent.vue.js +29 -0
- package/dist/accordion/AccordionContent.vue2.js +4 -0
- package/dist/accordion/AccordionItem.vue.js +29 -0
- package/dist/accordion/AccordionItem.vue2.js +4 -0
- package/dist/accordion/AccordionTrigger.vue.js +38 -0
- package/dist/accordion/AccordionTrigger.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialog.vue.js +22 -0
- package/dist/alert-dialog/AlertDialog.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogAction.vue.js +29 -0
- package/dist/alert-dialog/AlertDialogAction.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogCancel.vue.js +29 -0
- package/dist/alert-dialog/AlertDialogCancel.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogContent.vue.js +44 -0
- package/dist/alert-dialog/AlertDialogContent.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogDescription.vue.js +26 -0
- package/dist/alert-dialog/AlertDialogDescription.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogFooter.vue.js +25 -0
- package/dist/alert-dialog/AlertDialogFooter.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogHeader.vue.js +20 -0
- package/dist/alert-dialog/AlertDialogHeader.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogTitle.vue.js +26 -0
- package/dist/alert-dialog/AlertDialogTitle.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogTrigger.vue.js +21 -0
- package/dist/alert-dialog/AlertDialogTrigger.vue2.js +4 -0
- package/dist/assets/illustrations/renovabio/biomass.svg.js +16 -0
- package/dist/assets/illustrations/renovabio/volume.svg.js +16 -0
- package/dist/assets/illustrations/system/add-file.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-connection.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-download.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-upload.svg.js +16 -0
- package/dist/assets/illustrations/system/corrupted-file.svg.js +16 -0
- package/dist/assets/illustrations/system/dynamic-production.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-box.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-folder.svg.js +16 -0
- package/dist/assets/illustrations/system/empty.svg.js +16 -0
- package/dist/assets/illustrations/system/error-illustration.svg.js +16 -0
- package/dist/assets/illustrations/system/error.svg.js +16 -0
- package/dist/assets/illustrations/system/file-backup-2.svg.js +16 -0
- package/dist/assets/illustrations/system/file-backup.svg.js +16 -0
- package/dist/assets/illustrations/system/filtering-upload.svg.js +16 -0
- package/dist/assets/illustrations/system/flight.svg.js +16 -0
- package/dist/assets/illustrations/system/fly.svg.js +16 -0
- package/dist/assets/illustrations/system/movies.svg.js +16 -0
- package/dist/assets/illustrations/system/multimedia.svg.js +16 -0
- package/dist/assets/illustrations/system/notification-bell.svg.js +16 -0
- package/dist/assets/illustrations/system/page-2.svg.js +16 -0
- package/dist/assets/illustrations/system/page.svg.js +16 -0
- package/dist/assets/illustrations/system/photos.svg.js +16 -0
- package/dist/assets/illustrations/system/recycle-bin.svg.js +16 -0
- package/dist/assets/illustrations/system/rocket-launch.svg.js +16 -0
- package/dist/assets/illustrations/system/search-territory.svg.js +16 -0
- package/dist/assets/illustrations/system/signal.svg.js +16 -0
- package/dist/assets/illustrations/system/siren.svg.js +16 -0
- package/dist/assets/illustrations/system/wrong.svg.js +16 -0
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +17 -0
- package/dist/assets/illustrations/tools/agriculture.svg.js +16 -0
- package/dist/assets/illustrations/tools/alert-center.svg.js +16 -0
- package/dist/assets/illustrations/tools/area.svg.js +16 -0
- package/dist/assets/illustrations/tools/at-insights.svg.js +16 -0
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +16 -0
- package/dist/assets/illustrations/tools/credit.svg.js +16 -0
- package/dist/assets/illustrations/tools/deforestation.svg.js +16 -0
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +16 -0
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +16 -0
- package/dist/assets/illustrations/tools/extract.svg.js +16 -0
- package/dist/assets/illustrations/tools/farm.svg.js +16 -0
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +16 -0
- package/dist/assets/illustrations/tools/gix.svg.js +16 -0
- package/dist/assets/illustrations/tools/inapto.svg.js +16 -0
- package/dist/assets/illustrations/tools/insurance.svg.js +16 -0
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +16 -0
- package/dist/assets/illustrations/tools/lockdown.svg.js +16 -0
- package/dist/assets/illustrations/tools/map.svg.js +31 -0
- package/dist/assets/illustrations/tools/pasture.svg.js +16 -0
- package/dist/assets/illustrations/tools/rating-2.svg.js +16 -0
- package/dist/assets/illustrations/tools/rating.svg.js +16 -0
- package/dist/assets/illustrations/tools/recurrence.svg.js +16 -0
- package/dist/assets/illustrations/tools/refrigerators.svg.js +16 -0
- package/dist/assets/illustrations/tools/settings.svg.js +16 -0
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +16 -0
- package/dist/assets/illustrations/tools/soil-use.svg.js +16 -0
- package/dist/assets/illustrations/tools/storm.svg.js +16 -0
- package/dist/assets/illustrations/tools/territory-details.svg.js +16 -0
- package/dist/assets/illustrations/tools/timeline.svg.js +16 -0
- package/dist/avatar/Avatar.vue.js +37 -0
- package/dist/avatar/Avatar.vue2.js +4 -0
- package/dist/avatar/AvatarFallback.vue.js +30 -0
- package/dist/avatar/AvatarFallback.vue2.js +4 -0
- package/dist/avatar/AvatarImage.vue.js +24 -0
- package/dist/avatar/AvatarImage.vue2.js +4 -0
- package/dist/badge/Badge.vue.js +30 -0
- package/dist/badge/Badge.vue2.js +4 -0
- package/dist/badge/index.js +29 -0
- package/dist/breadcrumb/Breadcrumb.vue.js +20 -0
- package/dist/breadcrumb/Breadcrumb.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.js +20 -0
- package/dist/breadcrumb/BreadcrumbItem.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbLink.vue.js +35 -0
- package/dist/breadcrumb/BreadcrumbLink.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbList.vue.js +25 -0
- package/dist/breadcrumb/BreadcrumbList.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbSeparator.vue.js +25 -0
- package/dist/breadcrumb/BreadcrumbSeparator.vue2.js +4 -0
- package/dist/button/Button.vue.js +31 -0
- package/dist/button/Button.vue2.js +4 -0
- package/dist/button/index.js +27 -0
- package/dist/calendar/Calendar.vue.js +216 -0
- package/dist/calendar/Calendar.vue2.js +4 -0
- package/dist/calendar/CalendarCell.vue.js +31 -0
- package/dist/calendar/CalendarCell.vue2.js +4 -0
- package/dist/calendar/CalendarCellTrigger.vue.js +43 -0
- package/dist/calendar/CalendarCellTrigger.vue2.js +4 -0
- package/dist/calendar/CalendarGrid.vue.js +27 -0
- package/dist/calendar/CalendarGrid.vue2.js +4 -0
- package/dist/calendar/CalendarGridBody.vue.js +21 -0
- package/dist/calendar/CalendarGridBody.vue2.js +4 -0
- package/dist/calendar/CalendarGridHead.vue.js +22 -0
- package/dist/calendar/CalendarGridHead.vue2.js +4 -0
- package/dist/calendar/CalendarGridRow.vue.js +27 -0
- package/dist/calendar/CalendarGridRow.vue2.js +4 -0
- package/dist/calendar/CalendarHeadCell.vue.js +27 -0
- package/dist/calendar/CalendarHeadCell.vue2.js +4 -0
- package/dist/calendar/CalendarHeader.vue.js +27 -0
- package/dist/calendar/CalendarHeader.vue2.js +4 -0
- package/dist/calendar/CalendarHeading.vue.js +34 -0
- package/dist/calendar/CalendarHeading.vue2.js +4 -0
- package/dist/calendar/CalendarNextButton.vue.js +37 -0
- package/dist/calendar/CalendarNextButton.vue2.js +4 -0
- package/dist/calendar/CalendarPrevButton.vue.js +37 -0
- package/dist/calendar/CalendarPrevButton.vue2.js +4 -0
- package/dist/card/Card.vue.js +51 -0
- package/dist/card/Card.vue2.js +4 -0
- package/dist/card/CardDescription.vue.js +33 -0
- package/dist/card/CardDescription.vue2.js +4 -0
- package/dist/card/CardTitle.vue.js +35 -0
- package/dist/card/CardTitle.vue2.js +4 -0
- package/dist/carousel/Carousel.vue.js +62 -0
- package/dist/carousel/Carousel.vue2.js +4 -0
- package/dist/carousel/CarouselContent.vue.js +28 -0
- package/dist/carousel/CarouselContent.vue2.js +4 -0
- package/dist/carousel/CarouselItem.vue.js +29 -0
- package/dist/carousel/CarouselItem.vue2.js +4 -0
- package/dist/carousel/CarouselNext.vue.js +44 -0
- package/dist/carousel/CarouselNext.vue2.js +4 -0
- package/dist/carousel/CarouselPrevious.vue.js +44 -0
- package/dist/carousel/CarouselPrevious.vue2.js +4 -0
- package/dist/carousel/useCarousel.js +48 -0
- package/dist/checkbox/Checkbox.vue.js +74 -0
- package/dist/checkbox/Checkbox.vue2.js +4 -0
- package/dist/combobox/Combobox.vue.js +38 -0
- package/dist/combobox/Combobox.vue2.js +4 -0
- package/dist/combobox/ComboboxAnchor.vue.js +27 -0
- package/dist/combobox/ComboboxAnchor.vue2.js +4 -0
- package/dist/combobox/ComboboxEmpty.vue.js +26 -0
- package/dist/combobox/ComboboxEmpty.vue2.js +4 -0
- package/dist/combobox/ComboboxGroup.vue.js +36 -0
- package/dist/combobox/ComboboxGroup.vue2.js +4 -0
- package/dist/combobox/ComboboxInput.vue.js +82 -0
- package/dist/combobox/ComboboxInput.vue2.js +4 -0
- package/dist/combobox/ComboboxItem.vue.js +33 -0
- package/dist/combobox/ComboboxItem.vue2.js +4 -0
- package/dist/combobox/ComboboxItemIndicator.vue.js +26 -0
- package/dist/combobox/ComboboxItemIndicator.vue2.js +4 -0
- package/dist/combobox/ComboboxList.vue.js +57 -0
- package/dist/combobox/ComboboxList.vue2.js +4 -0
- package/dist/combobox/ComboboxSeparator.vue.js +26 -0
- package/dist/combobox/ComboboxSeparator.vue2.js +4 -0
- package/dist/combobox/ComboboxViewport.vue.js +27 -0
- package/dist/combobox/ComboboxViewport.vue2.js +4 -0
- package/dist/command/Command.vue.js +102 -0
- package/dist/command/Command.vue2.js +4 -0
- package/dist/command/CommandDialog.vue.js +58 -0
- package/dist/command/CommandDialog.vue2.js +4 -0
- package/dist/command/CommandEmpty.vue.js +30 -0
- package/dist/command/CommandEmpty.vue2.js +4 -0
- package/dist/command/CommandGroup.vue.js +40 -0
- package/dist/command/CommandGroup.vue2.js +4 -0
- package/dist/command/CommandInput.vue.js +43 -0
- package/dist/command/CommandInput.vue2.js +4 -0
- package/dist/command/CommandItem.vue.js +51 -0
- package/dist/command/CommandItem.vue2.js +4 -0
- package/dist/command/CommandList.vue.js +28 -0
- package/dist/command/CommandList.vue2.js +4 -0
- package/dist/command/CommandSeparator.vue.js +28 -0
- package/dist/command/CommandSeparator.vue2.js +4 -0
- package/dist/command/CommandShortcut.vue.js +20 -0
- package/dist/command/CommandShortcut.vue2.js +4 -0
- package/dist/command/contexts.js +8 -0
- package/dist/composables/use-file-upload.js +146 -0
- package/dist/data-table/DataTable.vue.js +171 -0
- package/dist/data-table/DataTable.vue2.js +4 -0
- package/dist/data-table/DataTableColumnHeader.vue.js +33 -0
- package/dist/data-table/DataTableColumnHeader.vue2.js +4 -0
- package/dist/data-table/DataTablePagination.vue.js +56 -0
- package/dist/data-table/DataTablePagination.vue2.js +4 -0
- package/dist/date-picker/DatePicker.vue.js +104 -0
- package/dist/date-picker/DatePicker.vue2.js +4 -0
- package/dist/date-range-picker/DateRangePicker.vue.js +79 -0
- package/dist/date-range-picker/DateRangePicker.vue2.js +4 -0
- package/dist/dialog/Dialog.vue.js +23 -0
- package/dist/dialog/Dialog.vue2.js +4 -0
- package/dist/dialog/DialogBody.vue.js +20 -0
- package/dist/dialog/DialogBody.vue2.js +4 -0
- package/dist/dialog/DialogClose.vue.js +21 -0
- package/dist/dialog/DialogClose.vue2.js +4 -0
- package/dist/dialog/DialogContent.vue.js +50 -0
- package/dist/dialog/DialogContent.vue2.js +4 -0
- package/dist/dialog/DialogDescription.vue.js +26 -0
- package/dist/dialog/DialogDescription.vue2.js +4 -0
- package/dist/dialog/DialogFooter.vue.js +25 -0
- package/dist/dialog/DialogFooter.vue2.js +4 -0
- package/dist/dialog/DialogHeader.vue.js +20 -0
- package/dist/dialog/DialogHeader.vue2.js +4 -0
- package/dist/dialog/DialogOverlay.vue.js +30 -0
- package/dist/dialog/DialogOverlay.vue2.js +4 -0
- package/dist/dialog/DialogScrollContent.vue.js +58 -0
- package/dist/dialog/DialogScrollContent.vue2.js +4 -0
- package/dist/dialog/DialogTitle.vue.js +26 -0
- package/dist/dialog/DialogTitle.vue2.js +4 -0
- package/dist/dialog/DialogTrigger.vue.js +21 -0
- package/dist/dialog/DialogTrigger.vue2.js +4 -0
- package/dist/dialog/index.js +20 -0
- package/dist/dropdown-menu/DropdownMenu.vue.js +24 -0
- package/dist/dropdown-menu/DropdownMenu.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +42 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +54 -0
- package/dist/dropdown-menu/DropdownMenuContent.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuGroup.vue.js +21 -0
- package/dist/dropdown-menu/DropdownMenuGroup.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuItem.vue.js +38 -0
- package/dist/dropdown-menu/DropdownMenuItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuLabel.vue.js +30 -0
- package/dist/dropdown-menu/DropdownMenuLabel.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue.js +23 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.js +43 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.vue.js +21 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuShortcut.vue.js +20 -0
- package/dist/dropdown-menu/DropdownMenuShortcut.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSub.vue.js +22 -0
- package/dist/dropdown-menu/DropdownMenuSub.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSubContent.vue.js +47 -0
- package/dist/dropdown-menu/DropdownMenuSubContent.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.js +34 -0
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.vue.js +22 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.vue2.js +4 -0
- package/dist/illustration/Illustration.vue.js +17 -0
- package/dist/illustration/Illustration.vue2.js +4 -0
- package/dist/illustration/illustrations.js +127 -0
- package/dist/index.css +1 -1
- package/dist/index.js +454 -30969
- package/dist/input/Input.vue.js +43 -0
- package/dist/input/Input.vue2.js +4 -0
- package/dist/label/Label.vue.js +30 -0
- package/dist/label/Label.vue2.js +4 -0
- package/dist/lib/date.js +34 -0
- package/dist/lib/utils.js +13 -0
- package/dist/multi-select/MultiSelectContent.vue.js +69 -0
- package/dist/multi-select/MultiSelectContent.vue2.js +4 -0
- package/dist/multi-select/MultiSelectEmpty.vue.js +22 -0
- package/dist/multi-select/MultiSelectEmpty.vue2.js +4 -0
- package/dist/multi-select/MultiSelectGroup.vue.js +26 -0
- package/dist/multi-select/MultiSelectGroup.vue2.js +4 -0
- package/dist/multi-select/MultiSelectItem.vue.js +71 -0
- package/dist/multi-select/MultiSelectItem.vue2.js +4 -0
- package/dist/multi-select/MultiSelectLabel.vue.js +28 -0
- package/dist/multi-select/MultiSelectLabel.vue2.js +4 -0
- package/dist/multi-select/MultiSelectRoot.vue.js +76 -0
- package/dist/multi-select/MultiSelectRoot.vue2.js +4 -0
- package/dist/multi-select/MultiSelectSeparator.vue.js +25 -0
- package/dist/multi-select/MultiSelectSeparator.vue2.js +4 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +61 -0
- package/dist/multi-select/MultiSelectTrigger.vue2.js +4 -0
- package/dist/multi-select/MultiSelectValue.vue.js +79 -0
- package/dist/multi-select/MultiSelectValue.vue2.js +4 -0
- package/dist/multi-select/contexts.js +10 -0
- package/dist/multi-select/utils.js +11 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/CalendarDate.js +219 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/conversion.js +137 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/manipulation.js +214 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/queries.js +60 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/string.js +27 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/utils.js +6 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1771 -0
- package/dist/node_modules/.pnpm/@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_/node_modules/@tanstack/vue-table/build/lib/index.js +168 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/Icon.js +39 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-left.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-right.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/calendar.js +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js +11 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-left.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-left.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-right.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-check.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-x.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/ellipsis.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/info.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle-alert.js +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle.js +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js +20 -0
- package/dist/node_modules/.pnpm/reka-ui@2.5.0_typescript@5.8.3_vue@3.5.19_typescript@5.8.3_/node_modules/reka-ui/dist/date/comparators.js +10 -0
- package/dist/pagination/Pagination.vue.js +34 -0
- package/dist/pagination/Pagination.vue2.js +4 -0
- package/dist/pagination/PaginationContent.vue.js +26 -0
- package/dist/pagination/PaginationContent.vue2.js +4 -0
- package/dist/pagination/PaginationEllipsis.vue.js +30 -0
- package/dist/pagination/PaginationEllipsis.vue2.js +4 -0
- package/dist/pagination/PaginationFirst.vue.js +37 -0
- package/dist/pagination/PaginationFirst.vue2.js +4 -0
- package/dist/pagination/PaginationItem.vue.js +38 -0
- package/dist/pagination/PaginationItem.vue2.js +4 -0
- package/dist/pagination/PaginationLast.vue.js +37 -0
- package/dist/pagination/PaginationLast.vue2.js +4 -0
- package/dist/pagination/PaginationNext.vue.js +37 -0
- package/dist/pagination/PaginationNext.vue2.js +4 -0
- package/dist/pagination/PaginationPrevious.vue.js +37 -0
- package/dist/pagination/PaginationPrevious.vue2.js +4 -0
- package/dist/popover/Popover.vue.js +23 -0
- package/dist/popover/Popover.vue2.js +4 -0
- package/dist/popover/PopoverAnchor.vue.js +22 -0
- package/dist/popover/PopoverAnchor.vue2.js +4 -0
- package/dist/popover/PopoverContent.vue.js +55 -0
- package/dist/popover/PopoverContent.vue2.js +4 -0
- package/dist/popover/PopoverTrigger.vue.js +21 -0
- package/dist/popover/PopoverTrigger.vue2.js +4 -0
- package/dist/radio-group/RadioGroup.vue.js +36 -0
- package/dist/radio-group/RadioGroup.vue2.js +4 -0
- package/dist/radio-group/RadioGroupItem.vue.js +62 -0
- package/dist/radio-group/RadioGroupItem.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendar.vue.js +219 -0
- package/dist/range-calendar/RangeCalendar.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarCell.vue.js +31 -0
- package/dist/range-calendar/RangeCalendarCell.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarCellTrigger.vue.js +47 -0
- package/dist/range-calendar/RangeCalendarCellTrigger.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGrid.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarGrid.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridBody.vue.js +21 -0
- package/dist/range-calendar/RangeCalendarGridBody.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridHead.vue.js +21 -0
- package/dist/range-calendar/RangeCalendarGridHead.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridRow.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarGridRow.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeadCell.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarHeadCell.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeader.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarHeader.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeading.vue.js +34 -0
- package/dist/range-calendar/RangeCalendarHeading.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarNextButton.vue.js +37 -0
- package/dist/range-calendar/RangeCalendarNextButton.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarPrevButton.vue.js +37 -0
- package/dist/range-calendar/RangeCalendarPrevButton.vue2.js +4 -0
- package/dist/select/Select.vue.js +31 -0
- package/dist/select/Select.vue2.js +4 -0
- package/dist/select/SelectContent.vue.js +73 -0
- package/dist/select/SelectContent.vue2.js +4 -0
- package/dist/select/SelectGroup.vue.js +21 -0
- package/dist/select/SelectGroup.vue2.js +4 -0
- package/dist/select/SelectItem.vue.js +46 -0
- package/dist/select/SelectItem.vue2.js +4 -0
- package/dist/select/SelectItemText.vue.js +21 -0
- package/dist/select/SelectItemText.vue2.js +4 -0
- package/dist/select/SelectLabel.vue.js +27 -0
- package/dist/select/SelectLabel.vue2.js +4 -0
- package/dist/select/SelectScrollDownButton.vue.js +29 -0
- package/dist/select/SelectScrollDownButton.vue2.js +4 -0
- package/dist/select/SelectScrollUpButton.vue.js +29 -0
- package/dist/select/SelectScrollUpButton.vue2.js +4 -0
- package/dist/select/SelectSeparator.vue.js +21 -0
- package/dist/select/SelectSeparator.vue2.js +4 -0
- package/dist/select/SelectTrigger.vue.js +60 -0
- package/dist/select/SelectTrigger.vue2.js +4 -0
- package/dist/select/SelectValue.vue.js +22 -0
- package/dist/select/SelectValue.vue2.js +4 -0
- package/dist/separator/Separator.vue.js +26 -0
- package/dist/separator/Separator.vue2.js +4 -0
- package/dist/sheet/Sheet.vue.js +23 -0
- package/dist/sheet/Sheet.vue2.js +4 -0
- package/dist/sheet/SheetClose.vue.js +21 -0
- package/dist/sheet/SheetClose.vue2.js +4 -0
- package/dist/sheet/SheetContent.vue.js +54 -0
- package/dist/sheet/SheetContent.vue2.js +4 -0
- package/dist/sheet/SheetDescription.vue.js +27 -0
- package/dist/sheet/SheetDescription.vue2.js +4 -0
- package/dist/sheet/SheetFooter.vue.js +20 -0
- package/dist/sheet/SheetFooter.vue2.js +4 -0
- package/dist/sheet/SheetHeader.vue.js +20 -0
- package/dist/sheet/SheetHeader.vue2.js +4 -0
- package/dist/sheet/SheetOverlay.vue.js +31 -0
- package/dist/sheet/SheetOverlay.vue2.js +4 -0
- package/dist/sheet/SheetTitle.vue.js +27 -0
- package/dist/sheet/SheetTitle.vue2.js +4 -0
- package/dist/sheet/SheetTrigger.vue.js +21 -0
- package/dist/sheet/SheetTrigger.vue2.js +4 -0
- package/dist/sidebar/Sidebar.vue.js +63 -0
- package/dist/sidebar/Sidebar.vue2.js +4 -0
- package/dist/sidebar/SidebarContent.vue.js +26 -0
- package/dist/sidebar/SidebarContent.vue2.js +4 -0
- package/dist/sidebar/SidebarFooter.vue.js +21 -0
- package/dist/sidebar/SidebarFooter.vue2.js +4 -0
- package/dist/sidebar/SidebarGroup.vue.js +21 -0
- package/dist/sidebar/SidebarGroup.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupAction.vue.js +36 -0
- package/dist/sidebar/SidebarGroupAction.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupContent.vue.js +21 -0
- package/dist/sidebar/SidebarGroupContent.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupLabel.vue.js +35 -0
- package/dist/sidebar/SidebarGroupLabel.vue2.js +4 -0
- package/dist/sidebar/SidebarHeader.vue.js +21 -0
- package/dist/sidebar/SidebarHeader.vue2.js +4 -0
- package/dist/sidebar/SidebarInput.vue.js +30 -0
- package/dist/sidebar/SidebarInput.vue2.js +4 -0
- package/dist/sidebar/SidebarInset.vue.js +20 -0
- package/dist/sidebar/SidebarInset.vue2.js +4 -0
- package/dist/sidebar/SidebarMenu.vue.js +21 -0
- package/dist/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuAction.vue.js +41 -0
- package/dist/sidebar/SidebarMenuAction.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuBadge.vue.js +31 -0
- package/dist/sidebar/SidebarMenuBadge.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuButton.vue.js +59 -0
- package/dist/sidebar/SidebarMenuButton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuButtonChild.vue.js +35 -0
- package/dist/sidebar/SidebarMenuButtonChild.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuItem.vue.js +21 -0
- package/dist/sidebar/SidebarMenuItem.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSkeleton.vue.js +35 -0
- package/dist/sidebar/SidebarMenuSkeleton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSub.vue.js +27 -0
- package/dist/sidebar/SidebarMenuSub.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSubButton.vue.js +42 -0
- package/dist/sidebar/SidebarMenuSubButton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSubItem.vue.js +21 -0
- package/dist/sidebar/SidebarMenuSubItem.vue2.js +4 -0
- package/dist/sidebar/SidebarProvider.vue.js +39 -0
- package/dist/sidebar/SidebarProvider.vue2.js +4 -0
- package/dist/sidebar/SidebarSeparator.vue.js +25 -0
- package/dist/sidebar/SidebarSeparator.vue2.js +4 -0
- package/dist/sidebar/index.js +24 -0
- package/dist/sidebar/utils.js +8 -0
- package/dist/skeleton/Skeleton.vue.js +18 -0
- package/dist/skeleton/Skeleton.vue2.js +4 -0
- package/dist/sonner/Sonner.vue.js +31 -0
- package/dist/sonner/Sonner.vue2.js +4 -0
- package/dist/sonner/Toast.vue.js +70 -0
- package/dist/sonner/Toast.vue2.js +4 -0
- package/dist/sonner/index.js +22 -0
- package/dist/sonner/toast.js +12 -0
- package/dist/stepper/Stepper.vue.js +32 -0
- package/dist/stepper/Stepper.vue2.js +4 -0
- package/dist/stepper/StepperDescription.vue.js +26 -0
- package/dist/stepper/StepperDescription.vue2.js +4 -0
- package/dist/stepper/StepperIndicator.vue.js +37 -0
- package/dist/stepper/StepperIndicator.vue2.js +4 -0
- package/dist/stepper/StepperItem.vue.js +32 -0
- package/dist/stepper/StepperItem.vue2.js +4 -0
- package/dist/stepper/StepperSeparator.vue.js +34 -0
- package/dist/stepper/StepperSeparator.vue2.js +4 -0
- package/dist/stepper/StepperTitle.vue.js +26 -0
- package/dist/stepper/StepperTitle.vue2.js +4 -0
- package/dist/stepper/StepperTrigger.vue.js +29 -0
- package/dist/stepper/StepperTrigger.vue2.js +4 -0
- package/dist/switch/Switch.vue.js +62 -0
- package/dist/switch/Switch.vue2.js +4 -0
- package/dist/table/Table.vue.js +30 -0
- package/dist/table/Table.vue2.js +4 -0
- package/dist/table/TableBody.vue.js +25 -0
- package/dist/table/TableBody.vue2.js +4 -0
- package/dist/table/TableCaption.vue.js +20 -0
- package/dist/table/TableCaption.vue2.js +4 -0
- package/dist/table/TableCell.vue.js +25 -0
- package/dist/table/TableCell.vue2.js +4 -0
- package/dist/table/TableEmpty.vue.js +49 -0
- package/dist/table/TableEmpty.vue2.js +4 -0
- package/dist/table/TableFooter.vue.js +20 -0
- package/dist/table/TableFooter.vue2.js +4 -0
- package/dist/table/TableHead.vue.js +26 -0
- package/dist/table/TableHead.vue2.js +4 -0
- package/dist/table/TableHeader.vue.js +22 -0
- package/dist/table/TableHeader.vue2.js +4 -0
- package/dist/table/TableRow.vue.js +20 -0
- package/dist/table/TableRow.vue2.js +4 -0
- package/dist/table/utils.js +6 -0
- package/dist/tabs/Tabs.vue.js +33 -0
- package/dist/tabs/Tabs.vue2.js +4 -0
- package/dist/tabs/TabsContent.vue.js +29 -0
- package/dist/tabs/TabsContent.vue2.js +4 -0
- package/dist/tabs/TabsList.vue.js +30 -0
- package/dist/tabs/TabsList.vue2.js +4 -0
- package/dist/tabs/TabsTrigger.vue.js +33 -0
- package/dist/tabs/TabsTrigger.vue2.js +4 -0
- package/dist/tabs/index.js +18 -0
- package/dist/tag/Tag.vue.js +31 -0
- package/dist/tag/Tag.vue2.js +4 -0
- package/dist/tag/index.js +35 -0
- package/dist/textarea/Textarea.vue.js +35 -0
- package/dist/textarea/Textarea.vue2.js +4 -0
- package/dist/time-picker/TimePicker.vue.js +142 -0
- package/dist/time-picker/TimePicker.vue2.js +4 -0
- package/dist/tooltip/Tooltip.vue.js +27 -0
- package/dist/tooltip/Tooltip.vue2.js +4 -0
- package/dist/tooltip/TooltipContent.vue.js +51 -0
- package/dist/tooltip/TooltipContent.vue2.js +4 -0
- package/dist/tooltip/TooltipProvider.vue.js +25 -0
- package/dist/tooltip/TooltipProvider.vue2.js +4 -0
- package/dist/tooltip/TooltipTrigger.vue.js +22 -0
- package/dist/tooltip/TooltipTrigger.vue2.js +4 -0
- package/dist/upload/UploadContent.vue.js +30 -0
- package/dist/upload/UploadContent.vue2.js +4 -0
- package/dist/upload/UploadContentDescription.vue.js +37 -0
- package/dist/upload/UploadContentDescription.vue2.js +4 -0
- package/dist/upload/UploadContentLoadingDescription.vue.js +37 -0
- package/dist/upload/UploadContentLoadingDescription.vue2.js +4 -0
- package/dist/upload/UploadContentSuccessDescription.vue.js +37 -0
- package/dist/upload/UploadContentSuccessDescription.vue2.js +4 -0
- package/dist/upload/UploadContentTitle.vue.js +35 -0
- package/dist/upload/UploadContentTitle.vue2.js +4 -0
- package/dist/upload/UploadFileItem.vue.js +106 -0
- package/dist/upload/UploadFileItem.vue2.js +4 -0
- package/dist/upload/UploadRoot.vue.js +109 -0
- package/dist/upload/UploadRoot.vue2.js +4 -0
- package/dist/upload/upload-context.js +6 -0
- package/package.json +5 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as n, createBlock as u, openBlock as m, unref as t, withCtx as p, withDirectives as c, createElementVNode as f, mergeProps as b, isRef as g, vModelDynamic as v } from "vue";
|
|
2
|
+
import { useVModel as x, reactiveOmit as V } from "@vueuse/core";
|
|
3
|
+
import { useForwardProps as h, Primitive as w } from "reka-ui";
|
|
4
|
+
import { cn as y } from "../lib/utils.js";
|
|
5
|
+
const M = /* @__PURE__ */ n({
|
|
6
|
+
__name: "Input",
|
|
7
|
+
props: {
|
|
8
|
+
defaultValue: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
class: {},
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: { default: "input" }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(a, { emit: l }) {
|
|
16
|
+
const e = a, r = x(e, "modelValue", l, {
|
|
17
|
+
passive: !0,
|
|
18
|
+
defaultValue: e.defaultValue
|
|
19
|
+
}), i = V(e, "class", "modelValue", "defaultValue"), s = h(i);
|
|
20
|
+
return (P, o) => (m(), u(t(w), { "as-child": "" }, {
|
|
21
|
+
default: p(() => [
|
|
22
|
+
c(f("input", b({
|
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => g(r) ? r.value = d : null),
|
|
24
|
+
"data-slot": "input",
|
|
25
|
+
class: t(y)(
|
|
26
|
+
"selection:bg-primary selection:text-primary-foreground border-input shadow-xs flex h-10 w-full min-w-0 rounded-md border bg-transparent p-2.5 text-sm text-gray-800 outline-none transition-[color,box-shadow] placeholder:text-gray-600 md:text-sm",
|
|
27
|
+
"hover:ring-ring/24 hover:ring-[2px]",
|
|
28
|
+
"focus-visible:ring-ring/24 focus-visible:border-neutral-600 focus-visible:ring-[2px]",
|
|
29
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-gray-100 disabled:text-gray-700",
|
|
30
|
+
"aria-invalid:ring-destructive/24 aria-invalid:border-destructive",
|
|
31
|
+
e.class
|
|
32
|
+
)
|
|
33
|
+
}, t(s)), null, 16), [
|
|
34
|
+
[v, t(r)]
|
|
35
|
+
])
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
M as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as l, openBlock as n, unref as e, mergeProps as d, withCtx as p, renderSlot as c } from "vue";
|
|
2
|
+
import { reactiveOmit as i } from "@vueuse/core";
|
|
3
|
+
import { Label as m } from "reka-ui";
|
|
4
|
+
import { cn as f } from "../lib/utils.js";
|
|
5
|
+
const y = /* @__PURE__ */ s({
|
|
6
|
+
__name: "Label",
|
|
7
|
+
props: {
|
|
8
|
+
for: {},
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(a) {
|
|
14
|
+
const t = a, o = i(t, "class");
|
|
15
|
+
return (r, u) => (n(), l(e(m), d({ "data-slot": "label" }, e(o), {
|
|
16
|
+
class: e(f)(
|
|
17
|
+
"flex select-none items-center gap-2 text-xs font-semibold leading-4 text-gray-900 peer-disabled:cursor-not-allowed peer-disabled:text-gray-700 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:text-gray-700",
|
|
18
|
+
t.class
|
|
19
|
+
)
|
|
20
|
+
}), {
|
|
21
|
+
default: p(() => [
|
|
22
|
+
c(r.$slots, "default")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16, ["class"]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
y as default
|
|
30
|
+
};
|
package/dist/lib/date.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { toValue as o } from "vue";
|
|
2
|
+
import { cycleInRange as u } from "./utils.js";
|
|
3
|
+
function y(n, t) {
|
|
4
|
+
return Array.from({ length: t }, (a, r) => {
|
|
5
|
+
const e = o(n), s = u(r + 1, 1, 12), c = Math.floor((r + 1) / 12);
|
|
6
|
+
return e.set({
|
|
7
|
+
month: s,
|
|
8
|
+
year: e.year + c
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function d(n, t) {
|
|
13
|
+
const a = o(n), r = Math.floor(a.year / t) * t;
|
|
14
|
+
return Array.from({ length: t }, (e, s) => a.set({ year: r + s }));
|
|
15
|
+
}
|
|
16
|
+
function l({
|
|
17
|
+
defaultText: n,
|
|
18
|
+
placeholder: t,
|
|
19
|
+
timeZone: a,
|
|
20
|
+
view: r,
|
|
21
|
+
yearsRange: e,
|
|
22
|
+
locale: s
|
|
23
|
+
}) {
|
|
24
|
+
if (o(r) === "days") return n;
|
|
25
|
+
if (o(r) === "months")
|
|
26
|
+
return o(t).toDate(a).toLocaleString(s, { year: "numeric" });
|
|
27
|
+
const c = Math.floor(o(t).year / e) * e, f = c + e - 1;
|
|
28
|
+
return `${c} - ${f}`;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
y as generateMonthsList,
|
|
32
|
+
d as generateYearsList,
|
|
33
|
+
l as getDatePickerHeadingText
|
|
34
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { clsx as o } from "clsx";
|
|
2
|
+
import { twMerge as c } from "tailwind-merge";
|
|
3
|
+
function g(...r) {
|
|
4
|
+
return c(o(r));
|
|
5
|
+
}
|
|
6
|
+
function i(r, e, t) {
|
|
7
|
+
const n = t - e + 1;
|
|
8
|
+
return (r - e + n) % n + e;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
g as cn,
|
|
12
|
+
i as cycleInRange
|
|
13
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as p, createBlock as u, openBlock as m, unref as e, mergeProps as f, withCtx as t, createVNode as a, renderSlot as h } from "vue";
|
|
2
|
+
import { reactiveOmit as y } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as _ } from "reka-ui";
|
|
4
|
+
import { cn as g } from "../lib/utils.js";
|
|
5
|
+
import { injectMultiSelectContext as B } from "./contexts.js";
|
|
6
|
+
import P from "../popover/PopoverContent.vue.js";
|
|
7
|
+
import v from "../command/Command.vue.js";
|
|
8
|
+
import w from "../command/CommandInput.vue.js";
|
|
9
|
+
import O from "../command/CommandList.vue.js";
|
|
10
|
+
const E = /* @__PURE__ */ p({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "MultiSelectContent",
|
|
13
|
+
props: {
|
|
14
|
+
class: {},
|
|
15
|
+
enableSearch: { type: Boolean, default: !0 },
|
|
16
|
+
searchInputPlaceholder: { default: "" },
|
|
17
|
+
forceMount: { type: Boolean },
|
|
18
|
+
side: {},
|
|
19
|
+
sideOffset: { default: 4 },
|
|
20
|
+
sideFlip: { type: Boolean },
|
|
21
|
+
align: { default: "center" },
|
|
22
|
+
alignOffset: {},
|
|
23
|
+
alignFlip: { type: Boolean },
|
|
24
|
+
avoidCollisions: { type: Boolean },
|
|
25
|
+
collisionBoundary: {},
|
|
26
|
+
collisionPadding: {},
|
|
27
|
+
arrowPadding: {},
|
|
28
|
+
sticky: {},
|
|
29
|
+
hideWhenDetached: { type: Boolean },
|
|
30
|
+
positionStrategy: {},
|
|
31
|
+
updatePositionStrategy: {},
|
|
32
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
33
|
+
prioritizePosition: { type: Boolean },
|
|
34
|
+
reference: {},
|
|
35
|
+
asChild: { type: Boolean },
|
|
36
|
+
as: {},
|
|
37
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
38
|
+
},
|
|
39
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
40
|
+
setup(l, { emit: n }) {
|
|
41
|
+
const r = l, s = n, i = B(), c = y(r, "class"), d = _(c, s);
|
|
42
|
+
return (o, C) => (m(), u(e(P), f({ "data-slot": "multi-select-content" }, { ...e(d), ...o.$attrs }, {
|
|
43
|
+
class: e(g)("w-(--reka-popover-trigger-width) p-2", !e(i).open.value && "hidden!"),
|
|
44
|
+
"force-mount": ""
|
|
45
|
+
}), {
|
|
46
|
+
default: t(() => [
|
|
47
|
+
a(e(v), {
|
|
48
|
+
"model-value": e(i).modelValue.value,
|
|
49
|
+
"highlight-on-hover": ""
|
|
50
|
+
}, {
|
|
51
|
+
default: t(() => [
|
|
52
|
+
a(e(w), { placeholder: o.searchInputPlaceholder }, null, 8, ["placeholder"]),
|
|
53
|
+
a(e(O), { class: "mt-2" }, {
|
|
54
|
+
default: t(() => [
|
|
55
|
+
h(o.$slots, "default")
|
|
56
|
+
]),
|
|
57
|
+
_: 3
|
|
58
|
+
})
|
|
59
|
+
]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 8, ["model-value"])
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 16, ["class"]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
E as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as s, unref as n, normalizeProps as p, guardReactiveProps as l, withCtx as c, renderSlot as i } from "vue";
|
|
2
|
+
import m from "../command/CommandEmpty.vue.js";
|
|
3
|
+
const d = /* @__PURE__ */ r({
|
|
4
|
+
__name: "MultiSelectEmpty",
|
|
5
|
+
props: {
|
|
6
|
+
asChild: { type: Boolean },
|
|
7
|
+
as: {},
|
|
8
|
+
class: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
const t = e;
|
|
12
|
+
return (o, f) => (s(), a(n(m), p(l(t)), {
|
|
13
|
+
default: c(() => [
|
|
14
|
+
i(o.$slots, "default")
|
|
15
|
+
]),
|
|
16
|
+
_: 3
|
|
17
|
+
}, 16));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
d as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as a, createBlock as p, openBlock as s, unref as o, mergeProps as i, withCtx as n, renderSlot as c } from "vue";
|
|
2
|
+
import { useId as u } from "reka-ui";
|
|
3
|
+
import { provideMultiSelectGroupContext as m } from "./contexts.js";
|
|
4
|
+
import d from "../command/CommandGroup.vue.js";
|
|
5
|
+
const g = /* @__PURE__ */ a({
|
|
6
|
+
__name: "MultiSelectGroup",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {}
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const r = t, e = u(void 0, "at-multi-select-group");
|
|
13
|
+
return m({ id: e }), (l, f) => (s(), p(o(d), i({
|
|
14
|
+
class: "space-y-1",
|
|
15
|
+
role: "group"
|
|
16
|
+
}, r, { "aria-labelledby": o(e) }), {
|
|
17
|
+
default: n(() => [
|
|
18
|
+
c(l.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16, ["aria-labelledby"]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
g as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as y, toRefs as V, ref as P, computed as m, onMounted as $, onUnmounted as h, createBlock as k, openBlock as E, unref as o, mergeProps as B, withCtx as c, renderSlot as p, createVNode as v, nextTick as I } from "vue";
|
|
2
|
+
import { reactiveOmit as M } from "@vueuse/core";
|
|
3
|
+
import { useForwardExpose as O, useForwardPropsEmits as R, useId as z, Primitive as F } from "reka-ui";
|
|
4
|
+
import { cn as T } from "../lib/utils.js";
|
|
5
|
+
import { injectMultiSelectContext as j } from "./contexts.js";
|
|
6
|
+
import { valueComparator as A } from "./utils.js";
|
|
7
|
+
import N from "../command/CommandItem.vue.js";
|
|
8
|
+
import U from "../checkbox/Checkbox.vue.js";
|
|
9
|
+
const W = /* @__PURE__ */ y({
|
|
10
|
+
__name: "MultiSelectItem",
|
|
11
|
+
props: {
|
|
12
|
+
class: {},
|
|
13
|
+
value: {},
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
textValue: {},
|
|
16
|
+
as: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["select"],
|
|
19
|
+
setup(f, { emit: x }) {
|
|
20
|
+
const t = f, s = x, { disabled: b } = V(t), a = j(), { forwardRef: g, currentElement: n } = O(), _ = M(t, "class", "textValue", "value"), C = R(_, s), r = P(t.textValue ?? ""), i = z(void 0, "at-multi-select-item-text"), u = m(
|
|
21
|
+
() => {
|
|
22
|
+
var e;
|
|
23
|
+
return A((e = a.modelValue) == null ? void 0 : e.value, t.value, a.by);
|
|
24
|
+
}
|
|
25
|
+
), d = m(() => {
|
|
26
|
+
var e, l;
|
|
27
|
+
return {
|
|
28
|
+
value: t.value,
|
|
29
|
+
disabled: t.disabled,
|
|
30
|
+
textContent: ((e = n.value) == null ? void 0 : e.textContent) ?? ((l = t.value) == null ? void 0 : l.toString()) ?? ""
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
async function S(e) {
|
|
34
|
+
await I(), s("select", e), !e.defaultPrevented && (b.value || a.onValueChange(t.value));
|
|
35
|
+
}
|
|
36
|
+
return $(() => {
|
|
37
|
+
n.value && (r.value = ((r.value || n.value.textContent) ?? "").trim(), a.onOptionAdd(d.value));
|
|
38
|
+
}), h(() => {
|
|
39
|
+
a.onOptionRemove(d.value);
|
|
40
|
+
}), (e, l) => (E(), k(o(N), B({ ...e.$attrs, ...o(C) }, {
|
|
41
|
+
role: "option",
|
|
42
|
+
class: o(T)(
|
|
43
|
+
"outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm font-semibold data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-neutral-100 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
44
|
+
t.class
|
|
45
|
+
),
|
|
46
|
+
value: e.value,
|
|
47
|
+
"aria-labelledby": o(i),
|
|
48
|
+
onSelect: l[0] || (l[0] = (w) => S(w))
|
|
49
|
+
}), {
|
|
50
|
+
default: c(() => [
|
|
51
|
+
p(e.$slots, "indicator", { isSelected: u.value }, () => [
|
|
52
|
+
v(o(U), { "model-value": u.value }, null, 8, ["model-value"])
|
|
53
|
+
]),
|
|
54
|
+
v(o(F), {
|
|
55
|
+
id: o(i),
|
|
56
|
+
ref: o(g),
|
|
57
|
+
as: "span"
|
|
58
|
+
}, {
|
|
59
|
+
default: c(() => [
|
|
60
|
+
p(e.$slots, "default")
|
|
61
|
+
]),
|
|
62
|
+
_: 3
|
|
63
|
+
}, 8, ["id"])
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["class", "value", "aria-labelledby"]));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
W as default
|
|
71
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as l, createBlock as i, openBlock as n, unref as t, mergeProps as p, withCtx as a, renderSlot as c } from "vue";
|
|
2
|
+
import { Primitive as m } from "reka-ui";
|
|
3
|
+
import { cn as d } from "../lib/utils.js";
|
|
4
|
+
import { injectMultiSelectGroupContext as f } from "./contexts.js";
|
|
5
|
+
const B = /* @__PURE__ */ l({
|
|
6
|
+
__name: "MultiSelectLabel",
|
|
7
|
+
props: {
|
|
8
|
+
for: {},
|
|
9
|
+
class: {},
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: { default: "div" }
|
|
12
|
+
},
|
|
13
|
+
setup(o) {
|
|
14
|
+
const e = o, r = f({ id: "" });
|
|
15
|
+
return (s, u) => (n(), i(t(m), p(e, {
|
|
16
|
+
id: t(r).id,
|
|
17
|
+
class: t(d)("px-2 py-1.5 text-sm font-bold", e.class)
|
|
18
|
+
}), {
|
|
19
|
+
default: a(() => [
|
|
20
|
+
c(s.$slots, "default")
|
|
21
|
+
]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 16, ["id", "class"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
B as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as V, computed as y, ref as h, toRef as b, createBlock as g, openBlock as C, unref as u, mergeProps as S, isRef as _, withCtx as w, renderSlot as x } from "vue";
|
|
2
|
+
import { useVModel as p } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as A } from "reka-ui";
|
|
4
|
+
import { provideMultiSelectContext as B } from "./contexts.js";
|
|
5
|
+
import { compare as O } from "./utils.js";
|
|
6
|
+
import M from "../popover/Popover.vue.js";
|
|
7
|
+
const F = /* @__PURE__ */ V({
|
|
8
|
+
__name: "MultiSelectRoot",
|
|
9
|
+
props: {
|
|
10
|
+
open: { type: Boolean, default: void 0 },
|
|
11
|
+
defaultOpen: { type: Boolean },
|
|
12
|
+
defaultValue: {},
|
|
13
|
+
modelValue: { default: void 0 },
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
by: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue", "update:open"],
|
|
18
|
+
setup(r, { emit: i }) {
|
|
19
|
+
const o = r, s = i, l = p(o, "modelValue", s, {
|
|
20
|
+
defaultValue: o.defaultValue ?? [],
|
|
21
|
+
passive: o.modelValue === void 0,
|
|
22
|
+
deep: !0
|
|
23
|
+
}), a = p(o, "open", s, {
|
|
24
|
+
defaultValue: o.defaultOpen,
|
|
25
|
+
passive: o.open === void 0
|
|
26
|
+
}), m = A(o, s), f = y(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return ((e = l.value) == null ? void 0 : e.length) === 0;
|
|
29
|
+
}), n = h(/* @__PURE__ */ new Set());
|
|
30
|
+
function c(e) {
|
|
31
|
+
const t = Array.isArray(l.value) ? [...l.value] : [], d = t.findIndex((v) => O(v, e, o.by));
|
|
32
|
+
d === -1 ? t.push(e) : t.splice(d, 1), l.value = [...t];
|
|
33
|
+
}
|
|
34
|
+
return B({
|
|
35
|
+
open: a,
|
|
36
|
+
modelValue: l,
|
|
37
|
+
disabled: b(() => o.disabled),
|
|
38
|
+
isEmptyModelValue: f,
|
|
39
|
+
isAllSelected: () => {
|
|
40
|
+
var e;
|
|
41
|
+
return n.value.size === ((e = l.value) == null ? void 0 : e.length);
|
|
42
|
+
},
|
|
43
|
+
onOpenChange: (e) => a.value = e,
|
|
44
|
+
// @ts-expect-error Missing infer for AcceptableValue
|
|
45
|
+
onValueChange: c,
|
|
46
|
+
clear: () => {
|
|
47
|
+
l.value = [];
|
|
48
|
+
},
|
|
49
|
+
by: o.by,
|
|
50
|
+
selectAll: () => {
|
|
51
|
+
const e = [];
|
|
52
|
+
for (const t of n.value.values())
|
|
53
|
+
e.push(t.value);
|
|
54
|
+
l.value = e;
|
|
55
|
+
},
|
|
56
|
+
optionsSet: n,
|
|
57
|
+
onOptionAdd: (e) => n.value.add(e),
|
|
58
|
+
onOptionRemove: (e) => n.value.delete(e)
|
|
59
|
+
}), (e, t) => (C(), g(u(M), S(u(m), {
|
|
60
|
+
open: u(a),
|
|
61
|
+
"onUpdate:open": t[0] || (t[0] = (d) => _(a) ? a.value = d : null),
|
|
62
|
+
"data-slot": "multi-select"
|
|
63
|
+
}), {
|
|
64
|
+
default: w(() => [
|
|
65
|
+
x(e.$slots, "default", {
|
|
66
|
+
modelValue: u(l),
|
|
67
|
+
open: u(a)
|
|
68
|
+
})
|
|
69
|
+
]),
|
|
70
|
+
_: 3
|
|
71
|
+
}, 16, ["open"]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
F as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as a, openBlock as n, unref as r, mergeProps as p, withCtx as l, renderSlot as c } from "vue";
|
|
2
|
+
import { Primitive as i } from "reka-ui";
|
|
3
|
+
import { cn as m } from "../lib/utils.js";
|
|
4
|
+
const h = /* @__PURE__ */ s({
|
|
5
|
+
__name: "MultiSelectSeparator",
|
|
6
|
+
props: {
|
|
7
|
+
class: {},
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {}
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const e = t;
|
|
13
|
+
return (o, d) => (n(), a(r(i), p({ "aria-hidden": "true" }, e, {
|
|
14
|
+
class: r(m)("bg-border pointer-events-none -mx-1 my-1 h-px", e.class)
|
|
15
|
+
}), {
|
|
16
|
+
default: l(() => [
|
|
17
|
+
c(o.$slots, "default")
|
|
18
|
+
]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 16, ["class"]));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
h as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as u, createBlock as p, openBlock as l, unref as a, mergeProps as m, withCtx as b, renderSlot as f, createElementVNode as r, createElementBlock as g, createCommentVNode as v, createVNode as i } from "vue";
|
|
2
|
+
import { cn as h } from "../lib/utils.js";
|
|
3
|
+
import { injectMultiSelectContext as x } from "./contexts.js";
|
|
4
|
+
import C from "../popover/PopoverTrigger.vue.js";
|
|
5
|
+
import y from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
|
|
6
|
+
import w from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js";
|
|
7
|
+
const k = { class: "inline-flex gap-1" }, _ = { "aria-hidden": "true" }, j = /* @__PURE__ */ u({
|
|
8
|
+
__name: "MultiSelectTrigger",
|
|
9
|
+
props: {
|
|
10
|
+
class: {},
|
|
11
|
+
placeholder: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: { default: "button" }
|
|
15
|
+
},
|
|
16
|
+
setup(d) {
|
|
17
|
+
const n = d, t = x();
|
|
18
|
+
function c(e) {
|
|
19
|
+
e.stopPropagation(), t.clear();
|
|
20
|
+
}
|
|
21
|
+
return (e, B) => {
|
|
22
|
+
var o, s;
|
|
23
|
+
return l(), p(a(C), m({
|
|
24
|
+
"data-slot": "multi-select-trigger",
|
|
25
|
+
as: e.as,
|
|
26
|
+
"as-child": e.asChild,
|
|
27
|
+
type: e.as === "button" ? "button" : void 0,
|
|
28
|
+
role: "combobox",
|
|
29
|
+
class: a(h)(
|
|
30
|
+
"border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-xl border bg-transparent p-2.5 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-gray-100 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=multi-select-value]:flex *:data-[slot=multi-select-value]:items-stretch *:data-[slot=multi-select-value]:gap-2 [&_svg]:shrink-0",
|
|
31
|
+
n.class
|
|
32
|
+
),
|
|
33
|
+
disabled: ((o = a(t).disabled) == null ? void 0 : o.value) || e.disabled,
|
|
34
|
+
"aria-expanded": a(t).open.value || !1,
|
|
35
|
+
"aria-haspopup": !0,
|
|
36
|
+
"data-state": a(t).open.value ? "open" : "closed",
|
|
37
|
+
"data-disabled": (s = a(t).disabled) != null && s.value || e.disabled ? "" : void 0
|
|
38
|
+
}, e.$attrs), {
|
|
39
|
+
default: b(() => [
|
|
40
|
+
f(e.$slots, "default"),
|
|
41
|
+
r("div", k, [
|
|
42
|
+
a(t).isEmptyModelValue.value ? v("", !0) : (l(), g("button", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "text-primary-500 cursor-pointer bg-none",
|
|
45
|
+
onClick: c
|
|
46
|
+
}, [
|
|
47
|
+
i(a(y), { class: "size-5" })
|
|
48
|
+
])),
|
|
49
|
+
r("span", _, [
|
|
50
|
+
i(a(w), { class: "size-5 text-gray-800" })
|
|
51
|
+
])
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 16, ["as", "as-child", "type", "class", "disabled", "aria-expanded", "data-state", "data-disabled"]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
j as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as V, computed as m, createBlock as d, openBlock as n, unref as s, withCtx as p, createElementBlock as f, Fragment as v, createTextVNode as h, toDisplayString as C, createCommentVNode as B, renderList as N, createElementVNode as z, createVNode as w } from "vue";
|
|
2
|
+
import { Primitive as E } from "reka-ui";
|
|
3
|
+
import { injectMultiSelectContext as M } from "./contexts.js";
|
|
4
|
+
import { valueComparator as P } from "./utils.js";
|
|
5
|
+
import k from "../tag/Tag.vue.js";
|
|
6
|
+
import j from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
|
|
7
|
+
const A = ["onClick"], X = /* @__PURE__ */ V({
|
|
8
|
+
__name: "MultiSelectValue",
|
|
9
|
+
props: {
|
|
10
|
+
placeholder: { default: "" },
|
|
11
|
+
maxCount: { default: 3 },
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: { default: "span" }
|
|
14
|
+
},
|
|
15
|
+
setup(y) {
|
|
16
|
+
const r = y, u = M(), t = m(() => {
|
|
17
|
+
const e = u.modelValue.value, i = u.optionsSet.value;
|
|
18
|
+
if (!(e != null && e.length)) return [];
|
|
19
|
+
let l = [];
|
|
20
|
+
const c = Array.from(i), x = (a) => c.find((o) => P(a, o.value));
|
|
21
|
+
return l = e.map((a) => {
|
|
22
|
+
var o, _;
|
|
23
|
+
return {
|
|
24
|
+
label: ((o = x(a)) == null ? void 0 : o.textContent) ?? "",
|
|
25
|
+
value: (_ = x(a)) == null ? void 0 : _.value
|
|
26
|
+
};
|
|
27
|
+
}), l.filter(({ value: a, label: o }) => a && o);
|
|
28
|
+
}), b = m(() => t.value.length <= r.maxCount ? t.value : t.value.slice(0, r.maxCount)), g = m(() => t.value.length <= r.maxCount ? 0 : t.value.length - r.maxCount);
|
|
29
|
+
function S(e, i) {
|
|
30
|
+
e.stopPropagation(), u.onValueChange(i);
|
|
31
|
+
}
|
|
32
|
+
return (e, i) => (n(), d(s(E), {
|
|
33
|
+
as: e.as,
|
|
34
|
+
"as-child": e.asChild,
|
|
35
|
+
"data-placeholder": t.value.length ? void 0 : r.placeholder,
|
|
36
|
+
"data-slot": "multi-select-value",
|
|
37
|
+
class: "h-full flex-1 overflow-x-hidden"
|
|
38
|
+
}, {
|
|
39
|
+
default: p(() => [
|
|
40
|
+
t.value.length ? (n(), f(v, { key: 1 }, [
|
|
41
|
+
(n(!0), f(v, null, N(b.value, (l) => (n(), d(s(k), {
|
|
42
|
+
key: l.value,
|
|
43
|
+
variant: "primary-light",
|
|
44
|
+
size: "sm",
|
|
45
|
+
class: "mr-1 font-semibold"
|
|
46
|
+
}, {
|
|
47
|
+
default: p(() => [
|
|
48
|
+
h(C(l.label) + " ", 1),
|
|
49
|
+
z("button", {
|
|
50
|
+
class: "ml-1 cursor-pointer",
|
|
51
|
+
onClick: (c) => S(c, l.value)
|
|
52
|
+
}, [
|
|
53
|
+
w(s(j), { class: "size-3.5" })
|
|
54
|
+
], 8, A)
|
|
55
|
+
]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, 1024))), 128)),
|
|
58
|
+
g.value > 0 ? (n(), d(s(k), {
|
|
59
|
+
key: 0,
|
|
60
|
+
variant: "primary-light",
|
|
61
|
+
size: "sm",
|
|
62
|
+
class: "mr-1 font-semibold"
|
|
63
|
+
}, {
|
|
64
|
+
default: p(() => [
|
|
65
|
+
h(" +" + C(g.value), 1)
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})) : B("", !0)
|
|
69
|
+
], 64)) : (n(), f(v, { key: 0 }, [
|
|
70
|
+
h(C(e.placeholder), 1)
|
|
71
|
+
], 64))
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["as", "as-child", "data-placeholder"]));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
X as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext as t } from "reka-ui";
|
|
2
|
+
const [o, l] = t("MultiSelectRoot"), [c, i] = t("MultiSelectGroup"), [n, u] = t("MultiSelectItem");
|
|
3
|
+
export {
|
|
4
|
+
o as injectMultiSelectContext,
|
|
5
|
+
c as injectMultiSelectGroupContext,
|
|
6
|
+
n as injectMultiSelectItemContext,
|
|
7
|
+
l as provideMultiSelectContext,
|
|
8
|
+
i as provideMultiSelectGroupContext,
|
|
9
|
+
u as provideMultiSelectItemContext
|
|
10
|
+
};
|