@agrotools1/at-components 2.0.36 → 2.0.37
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 +7 -7
- package/dist/accordion/AccordionContent.vue.js +6 -6
- package/dist/accordion/AccordionItem.vue.js +8 -8
- package/dist/accordion/AccordionTrigger.vue.js +2 -2
- package/dist/alert-dialog/AlertDialogAction.vue.js +6 -6
- package/dist/alert-dialog/AlertDialogDescription.vue.js +1 -1
- package/dist/alert-dialog/AlertDialogTitle.vue.js +6 -6
- package/dist/alert-dialog/AlertDialogTrigger.vue.js +6 -6
- package/dist/assets/illustrations/renovabio/biomass.svg.js +2 -2
- package/dist/assets/illustrations/renovabio/volume.svg.js +2 -2
- package/dist/assets/illustrations/system/add-file.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-connection.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-download.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-upload.svg.js +2 -2
- package/dist/assets/illustrations/system/corrupted-file.svg.js +2 -2
- package/dist/assets/illustrations/system/dynamic-production.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-box.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-folder.svg.js +2 -2
- package/dist/assets/illustrations/system/empty.svg.js +2 -2
- package/dist/assets/illustrations/system/error-illustration.svg.js +2 -2
- package/dist/assets/illustrations/system/error.svg.js +2 -2
- package/dist/assets/illustrations/system/file-backup-2.svg.js +2 -2
- package/dist/assets/illustrations/system/file-backup.svg.js +2 -2
- package/dist/assets/illustrations/system/filtering-upload.svg.js +2 -2
- package/dist/assets/illustrations/system/flight.svg.js +2 -2
- package/dist/assets/illustrations/system/fly.svg.js +2 -2
- package/dist/assets/illustrations/system/movies.svg.js +2 -2
- package/dist/assets/illustrations/system/multimedia.svg.js +2 -2
- package/dist/assets/illustrations/system/notification-bell.svg.js +2 -2
- package/dist/assets/illustrations/system/page-2.svg.js +2 -2
- package/dist/assets/illustrations/system/page.svg.js +2 -2
- package/dist/assets/illustrations/system/photos.svg.js +2 -2
- package/dist/assets/illustrations/system/recycle-bin.svg.js +2 -2
- package/dist/assets/illustrations/system/rocket-launch.svg.js +2 -2
- package/dist/assets/illustrations/system/search-territory.svg.js +2 -2
- package/dist/assets/illustrations/system/signal.svg.js +2 -2
- package/dist/assets/illustrations/system/siren.svg.js +2 -2
- package/dist/assets/illustrations/system/wrong.svg.js +2 -2
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +2 -2
- package/dist/assets/illustrations/tools/agriculture.svg.js +2 -2
- package/dist/assets/illustrations/tools/alert-center.svg.js +2 -2
- package/dist/assets/illustrations/tools/area.svg.js +2 -2
- package/dist/assets/illustrations/tools/at-insights.svg.js +2 -2
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +2 -2
- package/dist/assets/illustrations/tools/credit.svg.js +2 -2
- package/dist/assets/illustrations/tools/deforestation.svg.js +2 -2
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +2 -2
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +2 -2
- package/dist/assets/illustrations/tools/extract.svg.js +2 -2
- package/dist/assets/illustrations/tools/farm.svg.js +2 -2
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +2 -2
- package/dist/assets/illustrations/tools/gix.svg.js +2 -2
- package/dist/assets/illustrations/tools/inapto.svg.js +2 -2
- package/dist/assets/illustrations/tools/insurance.svg.js +2 -2
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +2 -2
- package/dist/assets/illustrations/tools/lockdown.svg.js +2 -2
- package/dist/assets/illustrations/tools/map.svg.js +2 -2
- package/dist/assets/illustrations/tools/pasture.svg.js +2 -2
- package/dist/assets/illustrations/tools/rating-2.svg.js +2 -2
- package/dist/assets/illustrations/tools/rating.svg.js +2 -2
- package/dist/assets/illustrations/tools/recurrence.svg.js +2 -2
- package/dist/assets/illustrations/tools/refrigerators.svg.js +2 -2
- package/dist/assets/illustrations/tools/settings.svg.js +2 -2
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +2 -2
- package/dist/assets/illustrations/tools/soil-use.svg.js +2 -2
- package/dist/assets/illustrations/tools/storm.svg.js +2 -2
- package/dist/assets/illustrations/tools/territory-details.svg.js +2 -2
- package/dist/assets/illustrations/tools/timeline.svg.js +2 -2
- package/dist/avatar/AvatarFallback.vue.js +9 -9
- package/dist/avatar/AvatarImage.vue.js +6 -6
- package/dist/badge/Badge.vue.js +12 -12
- package/dist/breadcrumb/BreadcrumbLink.vue.js +11 -11
- package/dist/breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/dist/button/Button.vue.js +14 -14
- package/dist/button-new/ButtonNew.vue.js +26 -26
- package/dist/calendar/Calendar.vue.js +1 -1
- package/dist/calendar/CalendarCell.vue.js +3 -3
- package/dist/calendar/CalendarCellTrigger.vue.js +8 -8
- package/dist/calendar/CalendarGrid.vue.js +7 -7
- package/dist/calendar/CalendarGridBody.vue.js +5 -5
- package/dist/calendar/CalendarGridHead.vue.js +6 -6
- package/dist/calendar/CalendarGridRow.vue.js +10 -10
- package/dist/calendar/CalendarHeadCell.vue.js +8 -8
- package/dist/calendar/CalendarHeader.vue.js +10 -10
- package/dist/calendar/CalendarHeading.vue.js +16 -16
- package/dist/calendar/CalendarNextButton.vue.js +13 -13
- package/dist/calendar/CalendarPrevButton.vue.js +15 -15
- package/dist/card/Card.vue.js +16 -16
- package/dist/card/CardDescription.vue.js +7 -7
- package/dist/card/CardTitle.vue.js +7 -7
- package/dist/carousel/CarouselNext.vue.js +1 -1
- package/dist/carousel/CarouselPrevious.vue.js +1 -1
- package/dist/changelog/versions/components/index.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.37.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.37.d.ts.map +1 -0
- package/dist/checkbox/Checkbox.vue.js +9 -9
- package/dist/combobox/Combobox.vue.js +8 -8
- package/dist/combobox/ComboboxAnchor.vue.js +7 -7
- package/dist/combobox/ComboboxEmpty.vue.js +9 -9
- package/dist/combobox/ComboboxGroup.vue.js +12 -12
- package/dist/combobox/ComboboxInput.vue.js +3 -3
- package/dist/combobox/ComboboxItem.vue.js +9 -9
- package/dist/combobox/ComboboxItemIndicator.vue.js +9 -9
- package/dist/combobox/ComboboxList.vue.d.ts +9 -3
- package/dist/combobox/ComboboxList.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxList.vue.js +31 -22
- package/dist/combobox/ComboboxSeparator.vue.js +13 -13
- package/dist/combobox/ComboboxViewport.vue.js +7 -7
- package/dist/command/CommandEmpty.vue.js +9 -9
- package/dist/command/CommandGroup.vue.js +6 -6
- package/dist/command/CommandInput.vue.js +8 -8
- package/dist/command/CommandItem.vue.js +11 -11
- package/dist/command/CommandList.vue.js +9 -9
- package/dist/command/CommandSeparator.vue.js +10 -10
- package/dist/data-table/DataTable.vue.js +1 -1
- package/dist/date-picker/DatePicker.vue.js +1 -1
- package/dist/date-range-picker/DateRangePicker.vue.js +1 -1
- package/dist/dialog/DialogClose.vue.js +5 -5
- package/dist/dialog/DialogContent.vue.js +19 -18
- package/dist/dialog/DialogDescription.vue.js +7 -7
- package/dist/dialog/DialogOverlay.vue.js +8 -8
- package/dist/dialog/DialogScrollContent.vue.js +21 -20
- package/dist/dialog/DialogTitle.vue.js +8 -8
- package/dist/dialog/DialogTrigger.vue.js +7 -7
- package/dist/document-input/DocumentAutoComplete.vue.d.ts.map +1 -1
- package/dist/document-input/DocumentAutoComplete.vue.js +113 -108
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +10 -3
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +31 -21
- package/dist/dropdown-menu/DropdownMenuGroup.vue.js +5 -5
- package/dist/dropdown-menu/DropdownMenuLabel.vue.js +11 -11
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.js +13 -13
- package/dist/dropdown-menu/DropdownMenuSeparator.vue.js +6 -6
- package/dist/dropdown-menu/DropdownMenuSubContent.vue.js +5 -5
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuTrigger.vue.js +7 -7
- package/dist/index.css +1 -1
- package/dist/input/Input.vue.js +8 -8
- package/dist/label/Label.vue.js +5 -5
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +37 -8
- package/dist/multi-select/MultiSelectContent.vue.d.ts +3 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts.map +1 -1
- package/dist/multi-select/MultiSelectContent.vue.js +15 -15
- package/dist/multi-select/MultiSelectEmpty.vue.js +4 -4
- package/dist/multi-select/MultiSelectGroup.vue.js +9 -9
- package/dist/multi-select/MultiSelectItem.vue.js +14 -14
- package/dist/multi-select/MultiSelectLabel.vue.js +7 -7
- package/dist/multi-select/MultiSelectSeparator.vue.js +10 -10
- package/dist/multi-select/MultiSelectTrigger.vue.js +20 -20
- package/dist/multi-select/MultiSelectValue.vue.js +21 -21
- package/dist/pagination/Pagination.vue.js +10 -10
- package/dist/pagination/PaginationContent.vue.js +8 -8
- package/dist/pagination/PaginationEllipsis.vue.js +7 -7
- package/dist/pagination/PaginationFirst.vue.js +1 -1
- package/dist/pagination/PaginationLast.vue.js +1 -1
- package/dist/pagination/PaginationNext.vue.js +1 -1
- package/dist/pagination/PaginationPrevious.vue.js +1 -1
- package/dist/popover/PopoverAnchor.vue.js +6 -6
- package/dist/popover/PopoverContent.vue.d.ts +8 -2
- package/dist/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/popover/PopoverContent.vue.js +32 -23
- package/dist/popover/PopoverTrigger.vue.js +8 -8
- package/dist/radio-group/RadioGroup.vue.js +12 -12
- package/dist/radio-group/RadioGroupItem.vue.js +10 -10
- package/dist/range-calendar/RangeCalendar.vue.js +1 -1
- package/dist/range-calendar/RangeCalendarCell.vue.js +5 -5
- package/dist/range-calendar/RangeCalendarCellTrigger.vue.js +5 -5
- package/dist/range-calendar/RangeCalendarGrid.vue.js +7 -7
- package/dist/range-calendar/RangeCalendarGridBody.vue.js +6 -6
- package/dist/range-calendar/RangeCalendarGridHead.vue.js +6 -6
- package/dist/range-calendar/RangeCalendarGridRow.vue.js +7 -7
- package/dist/range-calendar/RangeCalendarHeadCell.vue.js +9 -9
- package/dist/range-calendar/RangeCalendarHeader.vue.js +11 -11
- package/dist/range-calendar/RangeCalendarHeading.vue.js +15 -15
- package/dist/range-calendar/RangeCalendarNextButton.vue.js +10 -10
- package/dist/range-calendar/RangeCalendarPrevButton.vue.js +11 -11
- package/dist/select/SelectContent.vue.d.ts +9 -2
- package/dist/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/select/SelectContent.vue.js +42 -33
- package/dist/select/SelectGroup.vue.js +8 -8
- package/dist/select/SelectItem.vue.js +10 -10
- package/dist/select/SelectItemText.vue.js +7 -7
- package/dist/select/SelectLabel.vue.js +5 -5
- package/dist/select/SelectScrollDownButton.vue.js +13 -13
- package/dist/select/SelectScrollUpButton.vue.js +14 -14
- package/dist/select/SelectSeparator.vue.js +9 -9
- package/dist/select/SelectTrigger.vue.js +2 -2
- package/dist/select/SelectValue.vue.js +6 -6
- package/dist/sheet/SheetClose.vue.js +8 -8
- package/dist/sheet/SheetContent.vue.d.ts +3 -0
- package/dist/sheet/SheetContent.vue.d.ts.map +1 -1
- package/dist/sheet/SheetContent.vue.js +26 -21
- package/dist/sheet/SheetDescription.vue.js +9 -9
- package/dist/sheet/SheetOverlay.vue.js +6 -6
- package/dist/sheet/SheetTitle.vue.js +8 -8
- package/dist/sheet/SheetTrigger.vue.js +8 -8
- package/dist/sidebar/Sidebar.vue.js +2 -2
- package/dist/sidebar/SidebarGroupAction.vue.js +10 -10
- package/dist/sidebar/SidebarGroupLabel.vue.js +11 -11
- package/dist/sidebar/SidebarMenuAction.vue.js +1 -1
- package/dist/sidebar/SidebarMenuButton.vue.js +17 -17
- package/dist/sidebar/SidebarMenuButtonChild.vue.js +8 -8
- package/dist/sidebar/SidebarMenuSubButton.vue.js +7 -7
- package/dist/sonner/Toast.vue.js +5 -5
- package/dist/stepper/StepperDescription.vue.js +9 -9
- package/dist/stepper/StepperIndicator.vue.js +6 -6
- package/dist/stepper/StepperItem.vue.js +7 -7
- package/dist/stepper/StepperSeparator.vue.js +3 -3
- package/dist/stepper/StepperTitle.vue.js +7 -7
- package/dist/stepper/StepperTrigger.vue.js +5 -5
- package/dist/switch/Switch.vue.js +8 -8
- package/dist/tabs/Tabs.vue.js +10 -10
- package/dist/tabs/TabsContent.vue.js +6 -6
- package/dist/tabs/TabsList.vue.js +5 -5
- package/dist/tabs/TabsTrigger.vue.js +9 -9
- package/dist/tag/Tag.vue.js +13 -13
- package/dist/time-picker/TimePicker.vue.js +2 -2
- package/dist/tooltip/TooltipTrigger.vue.js +8 -8
- package/dist/upload/UploadContent.vue.js +12 -12
- package/dist/upload/UploadContentDescription.vue.js +8 -8
- package/dist/upload/UploadContentLoadingDescription.vue.js +9 -9
- package/dist/upload/UploadContentSuccessDescription.vue.js +7 -7
- package/dist/upload/UploadContentTitle.vue.js +5 -5
- package/dist/upload/UploadFileItem.vue.js +7 -7
- package/dist/upload/UploadRoot.vue.js +28 -28
- package/package.json +1 -1
- /package/dist/node_modules/.pnpm/{@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_ → @tanstack_vue-table@8.21.3_vue@3.5.16_typescript@5.8.3_}/node_modules/@tanstack/vue-table/build/lib/index.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/Icon.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/arrow-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/arrow-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/calendar.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/check.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevrons-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevrons-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle-check.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle-x.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/ellipsis.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/info.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/loader-circle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/search.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/triangle-alert.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/triangle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/x.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{reka-ui@2.5.0_typescript@5.8.3_vue@3.5.19_typescript@5.8.3_ → reka-ui@2.5.0_typescript@5.8.3_vue@3.5.16_typescript@5.8.3_}/node_modules/reka-ui/dist/date/comparators.js +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { AtCheckCircleRegularIcon as
|
|
4
|
-
import { AtCheckSolidIcon as
|
|
5
|
-
import { AtCircleXMarkRegularIcon as
|
|
1
|
+
import { defineComponent as ue, useId as ce, ref as v, watch as pe, computed as U, createElementBlock as g, openBlock as i, normalizeClass as S, unref as o, createBlock as T, createCommentVNode as y, createVNode as d, withCtx as m, createTextVNode as z, toDisplayString as A, mergeProps as de, createElementVNode as _, renderSlot as k, withModifiers as O, withDirectives as fe, Fragment as me, renderList as he, vShow as ge, nextTick as D } from "vue";
|
|
2
|
+
import { cn as E } from "../lib/utils.js";
|
|
3
|
+
import { AtCheckCircleRegularIcon as ye } from "../packages/at-icons/dist/AtCheckCircleRegularIcon/index.js";
|
|
4
|
+
import { AtCheckSolidIcon as ve } from "../packages/at-icons/dist/AtCheckSolidIcon/index.js";
|
|
5
|
+
import { AtCircleXMarkRegularIcon as Te } from "../packages/at-icons/dist/AtCircleXMarkRegularIcon/index.js";
|
|
6
6
|
import { AtCircleXMarkSolidIcon as R } from "../packages/at-icons/dist/AtCircleXMarkSolidIcon/index.js";
|
|
7
|
-
import { reactiveOmit as
|
|
7
|
+
import { reactiveOmit as Ae } from "@vueuse/core";
|
|
8
8
|
import { useForwardPropsEmits as ke } from "reka-ui";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
9
|
+
import xe from "../combobox/Combobox.vue.js";
|
|
10
|
+
import we from "../combobox/ComboboxAnchor.vue.js";
|
|
11
|
+
import Ce from "../combobox/ComboboxEmpty.vue.js";
|
|
12
|
+
import Ve from "../combobox/ComboboxGroup.vue.js";
|
|
13
|
+
import be from "../combobox/ComboboxInput.vue.js";
|
|
14
|
+
import _e from "../combobox/ComboboxItem.vue.js";
|
|
15
|
+
import Ie from "../combobox/ComboboxItemIndicator.vue.js";
|
|
16
|
+
import Me from "../combobox/ComboboxList.vue.js";
|
|
17
17
|
import $e from "../combobox/ComboboxViewport.vue.js";
|
|
18
|
-
import
|
|
19
|
-
import { isValidCpf as x, isValidCnpj as w, applyCpfMask as
|
|
20
|
-
import
|
|
21
|
-
const
|
|
18
|
+
import je from "../label/Label.vue.js";
|
|
19
|
+
import { isValidCpf as x, isValidCnpj as w, applyCpfMask as X, applyCnpjMask as H } from "./utils.js";
|
|
20
|
+
import Be from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/loader-circle.js";
|
|
21
|
+
const Ue = { key: 0 }, Se = { class: "relative flex items-center" }, Ze = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "py-6 flex items-center justify-center text-sm text-gray-500"
|
|
24
|
-
},
|
|
24
|
+
}, ze = { class: "flex items-center gap-2" }, at = /* @__PURE__ */ ue({
|
|
25
25
|
__name: "DocumentAutoComplete",
|
|
26
26
|
props: {
|
|
27
27
|
id: {},
|
|
@@ -51,8 +51,13 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
51
51
|
withClearIcon: { type: Boolean, default: !0 }
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue", "update:searchTerm", "select", "validate", "blur", "focus", "clear"],
|
|
54
|
-
setup(
|
|
55
|
-
|
|
54
|
+
setup(J, { emit: G }) {
|
|
55
|
+
var P;
|
|
56
|
+
const e = J, a = G, C = e.id || ce(), K = `error-${C}`, Q = `desc-${C}`;
|
|
57
|
+
typeof process < "u" && ((P = process.env) == null ? void 0 : P.NODE_ENV) !== "production" && e.documentType !== "generic" && e.customMask && console.warn(
|
|
58
|
+
'[AgtDocumentAutoComplete] A propriedade customMask é ignorada quando o documentType não é "generic".'
|
|
59
|
+
);
|
|
60
|
+
const W = Ae(
|
|
56
61
|
e,
|
|
57
62
|
"modelValue",
|
|
58
63
|
"documentType",
|
|
@@ -75,8 +80,8 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
75
80
|
"notFoundText",
|
|
76
81
|
"loadingText",
|
|
77
82
|
"optionId"
|
|
78
|
-
),
|
|
79
|
-
function
|
|
83
|
+
), Y = ke(W, a), s = v(""), V = v(!1), I = v(!1), F = v(!1), M = v(null), $ = v(e.modelValue);
|
|
84
|
+
function ee(t, l) {
|
|
80
85
|
if (!l) return t;
|
|
81
86
|
const r = t.replace(/[^0-9A-Za-z]/g, "");
|
|
82
87
|
if (!r) return "";
|
|
@@ -87,13 +92,13 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
87
92
|
}
|
|
88
93
|
return f;
|
|
89
94
|
}
|
|
90
|
-
function
|
|
95
|
+
function N(t) {
|
|
91
96
|
if (e.customMask && e.documentType === "generic")
|
|
92
|
-
return
|
|
97
|
+
return ee(t, e.customMask);
|
|
93
98
|
const l = /[A-Z]/i.test(t);
|
|
94
|
-
return e.documentType === "cpf" ?
|
|
99
|
+
return e.documentType === "cpf" ? X(t) : e.documentType === "cnpj" ? H(t, e.allowAlpha) : e.documentType === "cpf-cnpj" ? e.allowAlpha && l || t.length > 11 ? H(t, e.allowAlpha) : X(t) : t;
|
|
95
100
|
}
|
|
96
|
-
const
|
|
101
|
+
const L = (t) => {
|
|
97
102
|
if (!t) return s.value || "";
|
|
98
103
|
if (e.documentType === "custom")
|
|
99
104
|
return typeof t == "string" ? t : t.text || t.label || t.identifier || t.value || "";
|
|
@@ -102,27 +107,27 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
102
107
|
e.documentType === "generic" && e.customMask || e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g,
|
|
103
108
|
""
|
|
104
109
|
);
|
|
105
|
-
return
|
|
110
|
+
return N(l);
|
|
106
111
|
}
|
|
107
112
|
return t.text || t.label || t.identifier || t.value || "";
|
|
108
113
|
};
|
|
109
|
-
|
|
114
|
+
pe(
|
|
110
115
|
() => e.modelValue,
|
|
111
116
|
(t) => {
|
|
112
|
-
if (
|
|
113
|
-
s.value !== "" && (s.value = ""),
|
|
117
|
+
if ($.value = t, t == null || t === "") {
|
|
118
|
+
s.value !== "" && (s.value = ""), $.value = void 0;
|
|
114
119
|
return;
|
|
115
120
|
}
|
|
116
|
-
const l =
|
|
121
|
+
const l = L(t);
|
|
117
122
|
s.value !== l && (s.value = l);
|
|
118
123
|
},
|
|
119
124
|
{ immediate: !0 }
|
|
120
125
|
);
|
|
121
|
-
const
|
|
126
|
+
const te = U(() => {
|
|
122
127
|
if (e.maxLength) return e.maxLength;
|
|
123
128
|
if (e.documentType !== "custom")
|
|
124
129
|
return e.customMask && e.documentType === "generic" ? e.customMask.length : e.documentType === "cpf" ? 14 : 18;
|
|
125
|
-
}),
|
|
130
|
+
}), le = U(() => {
|
|
126
131
|
switch (e.documentType) {
|
|
127
132
|
case "cnpj":
|
|
128
133
|
return e.allowAlpha ? "AA.AAA.AAA/AAAA-DV" : "00.000.000/0000-00";
|
|
@@ -141,7 +146,7 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
141
146
|
if (!t || I.value) return !1;
|
|
142
147
|
const r = (typeof t == "string" ? t : t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
143
148
|
if (!r) return !1;
|
|
144
|
-
if (r.length === 11 && !x(r) || r.length === 14 && !w(r) ||
|
|
149
|
+
if (r.length === 11 && !x(r) || r.length === 14 && !w(r) || F.value && (e.documentType === "cpf" && r.length !== 11 || e.documentType === "cnpj" && r.length !== 14 || e.documentType === "cpf-cnpj" && r.length !== 11 && r.length !== 14))
|
|
145
150
|
return !0;
|
|
146
151
|
}
|
|
147
152
|
return !1;
|
|
@@ -160,20 +165,20 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
160
165
|
}
|
|
161
166
|
return !1;
|
|
162
167
|
});
|
|
163
|
-
function
|
|
168
|
+
function Z(t) {
|
|
164
169
|
if (e.documentType === "custom") {
|
|
165
|
-
|
|
170
|
+
a("validate", !!t);
|
|
166
171
|
return;
|
|
167
172
|
}
|
|
168
173
|
let l = !1;
|
|
169
|
-
e.documentType === "cpf" ? l = x(t) : e.documentType === "cnpj" ? l = w(t) : e.documentType === "cpf-cnpj" && (l = t.length === 11 ? x(t) : w(t)),
|
|
174
|
+
e.documentType === "cpf" ? l = x(t) : e.documentType === "cnpj" ? l = w(t) : e.documentType === "cpf-cnpj" && (l = t.length === 11 ? x(t) : w(t)), a("validate", l);
|
|
170
175
|
}
|
|
171
|
-
function
|
|
176
|
+
function re(t) {
|
|
172
177
|
const l = t.target;
|
|
173
178
|
let r = l.value;
|
|
174
179
|
const f = l.selectionStart || 0;
|
|
175
180
|
if (I.value = !1, e.toUpperCase && (r = r.toUpperCase()), e.documentType === "custom") {
|
|
176
|
-
|
|
181
|
+
a("update:modelValue", r || void 0), a("update:searchTerm", r), Z(r), s.value = r;
|
|
177
182
|
return;
|
|
178
183
|
}
|
|
179
184
|
let n = r.replace(
|
|
@@ -181,66 +186,66 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
181
186
|
""
|
|
182
187
|
), c = e.maxLength;
|
|
183
188
|
c || (e.customMask && e.documentType === "generic" ? c = e.customMask.length : c = e.documentType === "cpf" ? 11 : 14), n = n.slice(0, c);
|
|
184
|
-
const u =
|
|
185
|
-
|
|
189
|
+
const u = N(n), p = e.allowAlpha ? /[A-Z0-9]/gi : /[0-9]/g, se = (r.slice(0, f).match(p) || []).length, ie = (e.unmask ? n : u) || void 0;
|
|
190
|
+
a("update:modelValue", ie), a("update:searchTerm", n), Z(n), s.value = u, D(() => {
|
|
186
191
|
l.value = u;
|
|
187
|
-
let B = 0,
|
|
188
|
-
for (let b = 0; b < u.length && ((e.documentType === "generic" && e.customMask || e.allowAlpha ? /[A-Z0-9]/i.test(u[b]) : /[0-9]/.test(u[b])) &&
|
|
192
|
+
let B = 0, q = 0;
|
|
193
|
+
for (let b = 0; b < u.length && ((e.documentType === "generic" && e.customMask || e.allowAlpha ? /[A-Z0-9]/i.test(u[b]) : /[0-9]/.test(u[b])) && q++, B = b + 1, !(q >= se)); b++)
|
|
189
194
|
;
|
|
190
195
|
l.setSelectionRange(B, B);
|
|
191
196
|
});
|
|
192
197
|
}
|
|
193
|
-
function
|
|
194
|
-
s.value = "",
|
|
195
|
-
if (
|
|
196
|
-
const l =
|
|
197
|
-
r && (r.value = "", r.dispatchEvent(new Event("input", { bubbles: !0 }))),
|
|
198
|
+
function oe(t) {
|
|
199
|
+
s.value = "", a("update:searchTerm", ""), $.value = null, a("update:modelValue", null), D(() => {
|
|
200
|
+
if (!M.value) return;
|
|
201
|
+
const l = M.value.querySelector(`[id="${C}"]`) || M.value.querySelector("input"), r = (l == null ? void 0 : l.tagName) === "INPUT" ? l : l == null ? void 0 : l.querySelector("input");
|
|
202
|
+
r && (r.value = "", r.dispatchEvent(new Event("input", { bubbles: !0 }))), D(() => {
|
|
198
203
|
V.value = !1;
|
|
199
204
|
});
|
|
200
|
-
}), I.value = !0,
|
|
205
|
+
}), I.value = !0, a("validate", !1), a("clear"), V.value = !1;
|
|
201
206
|
}
|
|
202
207
|
function ae(t) {
|
|
203
208
|
if (!t) {
|
|
204
|
-
s.value = "",
|
|
209
|
+
s.value = "", a("update:searchTerm", ""), I.value = !0, a("update:modelValue", null);
|
|
205
210
|
return;
|
|
206
211
|
}
|
|
207
|
-
if (
|
|
208
|
-
|
|
212
|
+
if (a("update:modelValue", t), a("select", t), s.value = t.text || t.label || t.identifier || t.value || "", e.documentType === "custom")
|
|
213
|
+
a("update:searchTerm", s.value), a("validate", !0);
|
|
209
214
|
else {
|
|
210
215
|
const l = (t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
211
|
-
|
|
216
|
+
a("update:searchTerm", l), Z(l);
|
|
212
217
|
}
|
|
213
218
|
V.value = !1;
|
|
214
219
|
}
|
|
215
|
-
function
|
|
216
|
-
if (
|
|
220
|
+
function ne(t) {
|
|
221
|
+
if (F.value = !0, a("blur", t), e.documentType === "custom") return;
|
|
217
222
|
const l = s.value.replace(e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g, "");
|
|
218
223
|
let r = !1;
|
|
219
|
-
l.length === 11 ? r = x(l) : l.length === 14 && (r = w(l)), r &&
|
|
224
|
+
l.length === 11 ? r = x(l) : l.length === 14 && (r = w(l)), r && a("update:modelValue", e.toUpperCase ? l.toUpperCase() : l);
|
|
220
225
|
}
|
|
221
226
|
return (t, l) => (i(), g("div", {
|
|
222
|
-
class: S(
|
|
227
|
+
class: S(o(E)("space-y-1.5 w-full", e.class)),
|
|
223
228
|
ref_key: "wrapperRef",
|
|
224
|
-
ref:
|
|
229
|
+
ref: M
|
|
225
230
|
}, [
|
|
226
|
-
e.label ? (i(), T(
|
|
231
|
+
e.label ? (i(), T(o(je), {
|
|
227
232
|
key: 0,
|
|
228
|
-
for:
|
|
233
|
+
for: o(C),
|
|
229
234
|
class: S(
|
|
230
|
-
|
|
235
|
+
o(E)(
|
|
231
236
|
"text-[#101011] font-normal text-[10px] leading-[10px]",
|
|
232
237
|
h.value ? "text-[var(--alert-red-dark,#831511)]" : ""
|
|
233
238
|
)
|
|
234
239
|
)
|
|
235
240
|
}, {
|
|
236
241
|
default: m(() => [
|
|
237
|
-
|
|
238
|
-
e.required && !e.label.includes("(Obrigatório)") ? (i(), g("span",
|
|
242
|
+
z(A(e.label), 1),
|
|
243
|
+
e.required && !e.label.includes("(Obrigatório)") ? (i(), g("span", Ue, " (Obrigatório)")) : y("", !0)
|
|
239
244
|
]),
|
|
240
245
|
_: 1
|
|
241
246
|
}, 8, ["for", "class"])) : y("", !0),
|
|
242
|
-
d(
|
|
243
|
-
"model-value":
|
|
247
|
+
d(o(xe), de(o(Y), {
|
|
248
|
+
"model-value": $.value,
|
|
244
249
|
searchTerm: s.value,
|
|
245
250
|
"onUpdate:searchTerm": l[3] || (l[3] = (r) => s.value = r),
|
|
246
251
|
open: V.value,
|
|
@@ -250,30 +255,30 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
250
255
|
"onUpdate:modelValue": ae
|
|
251
256
|
}), {
|
|
252
257
|
default: m(() => [
|
|
253
|
-
_("div",
|
|
254
|
-
d(
|
|
258
|
+
_("div", Se, [
|
|
259
|
+
d(o(we), { class: "w-full h-full" }, {
|
|
255
260
|
default: m(() => [
|
|
256
|
-
|
|
257
|
-
d(
|
|
258
|
-
id:
|
|
259
|
-
"display-value":
|
|
260
|
-
placeholder: e.placeholder ??
|
|
261
|
+
k(t.$slots, "input", {}, () => [
|
|
262
|
+
d(o(be), {
|
|
263
|
+
id: o(C),
|
|
264
|
+
"display-value": L,
|
|
265
|
+
placeholder: e.placeholder ?? le.value,
|
|
261
266
|
"with-icon": e.withIcon,
|
|
262
267
|
"with-clear-button": !1,
|
|
263
268
|
disabled: e.disabled,
|
|
264
269
|
error: h.value,
|
|
265
270
|
success: j.value,
|
|
266
271
|
class: S(
|
|
267
|
-
|
|
272
|
+
o(E)(
|
|
268
273
|
"pr-20",
|
|
269
274
|
h.value || j.value ? "border-[#3E2E46]" : "",
|
|
270
275
|
e.inputClass
|
|
271
276
|
)
|
|
272
277
|
),
|
|
273
|
-
maxlength:
|
|
274
|
-
onInput:
|
|
275
|
-
onBlur:
|
|
276
|
-
onFocus: l[0] || (l[0] = (r) =>
|
|
278
|
+
maxlength: te.value,
|
|
279
|
+
onInput: re,
|
|
280
|
+
onBlur: ne,
|
|
281
|
+
onFocus: l[0] || (l[0] = (r) => a("focus", r))
|
|
277
282
|
}, null, 8, ["id", "placeholder", "with-icon", "disabled", "error", "success", "class", "maxlength"])
|
|
278
283
|
])
|
|
279
284
|
]),
|
|
@@ -285,60 +290,60 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
285
290
|
(h.value || e.modelValue && !j.value) && !e.disabled && e.withClearIcon ? (i(), g("div", {
|
|
286
291
|
key: 0,
|
|
287
292
|
class: "flex items-center justify-center w-full h-full cursor-pointer",
|
|
288
|
-
onMousedown: l[1] || (l[1] =
|
|
289
|
-
onClick: l[2] || (l[2] =
|
|
293
|
+
onMousedown: l[1] || (l[1] = O((r) => !e.disabled && oe(), ["stop", "prevent"])),
|
|
294
|
+
onClick: l[2] || (l[2] = O(() => {
|
|
290
295
|
}, ["stop", "prevent"]))
|
|
291
296
|
}, [
|
|
292
|
-
h.value ? (i(), T(
|
|
297
|
+
h.value ? (i(), T(o(R), {
|
|
293
298
|
key: 0,
|
|
294
299
|
size: "20",
|
|
295
300
|
class: "text-[var(--alert-red-dark,#831511)] transition-opacity hover:opacity-80"
|
|
296
|
-
})) : (i(), T(
|
|
301
|
+
})) : (i(), T(o(Te), {
|
|
297
302
|
key: 1,
|
|
298
303
|
size: "20",
|
|
299
304
|
class: "text-gray-400 transition-colors hover:text-[#831511]"
|
|
300
305
|
}))
|
|
301
|
-
], 32)) : j.value ? (i(), T(
|
|
306
|
+
], 32)) : j.value ? (i(), T(o(ye), {
|
|
302
307
|
key: 1,
|
|
303
308
|
size: "20",
|
|
304
309
|
class: "text-[#4b715c] pointer-events-none"
|
|
305
310
|
})) : y("", !0)
|
|
306
311
|
], 2)
|
|
307
312
|
]),
|
|
308
|
-
|
|
309
|
-
d(
|
|
313
|
+
k(t.$slots, "list", {}, () => [
|
|
314
|
+
d(o(Me), null, {
|
|
310
315
|
default: m(() => [
|
|
311
|
-
e.loading && (e.loadingText || t.$slots.loading) ? (i(), g("div",
|
|
312
|
-
|
|
313
|
-
_("div",
|
|
314
|
-
d(
|
|
315
|
-
_("span", null,
|
|
316
|
+
e.loading && (e.loadingText || t.$slots.loading) ? (i(), g("div", Ze, [
|
|
317
|
+
k(t.$slots, "loading", {}, () => [
|
|
318
|
+
_("div", ze, [
|
|
319
|
+
d(o(Be), { class: "size-4 animate-spin" }),
|
|
320
|
+
_("span", null, A(e.loadingText), 1)
|
|
316
321
|
])
|
|
317
322
|
])
|
|
318
|
-
])) : !e.loading && (e.notFoundText || t.$slots.empty) ? (i(), T(
|
|
323
|
+
])) : !e.loading && (e.notFoundText || t.$slots.empty) ? (i(), T(o(Ce), { key: 1 }, {
|
|
319
324
|
default: m(() => [
|
|
320
|
-
|
|
321
|
-
|
|
325
|
+
k(t.$slots, "empty", {}, () => [
|
|
326
|
+
z(A(e.notFoundText), 1)
|
|
322
327
|
])
|
|
323
328
|
]),
|
|
324
329
|
_: 3
|
|
325
330
|
})) : y("", !0),
|
|
326
|
-
|
|
331
|
+
fe(d(o($e), null, {
|
|
327
332
|
default: m(() => [
|
|
328
|
-
d(
|
|
333
|
+
d(o(Ve), null, {
|
|
329
334
|
default: m(() => [
|
|
330
|
-
|
|
331
|
-
e.options && e.options.length ? (i(!0), g(
|
|
335
|
+
k(t.$slots, "default", {}, () => [
|
|
336
|
+
e.options && e.options.length ? (i(!0), g(me, { key: 0 }, he(e.options, (r, f) => (i(), T(o(_e), {
|
|
332
337
|
key: r[e.optionId] || f,
|
|
333
338
|
value: r
|
|
334
339
|
}, {
|
|
335
340
|
default: m(() => [
|
|
336
|
-
|
|
337
|
-
|
|
341
|
+
k(t.$slots, "option", { item: r }, () => [
|
|
342
|
+
z(A(r.text || r.label || r), 1)
|
|
338
343
|
]),
|
|
339
|
-
d(
|
|
344
|
+
d(o(Ie), { class: "ml-auto" }, {
|
|
340
345
|
default: m(() => [
|
|
341
|
-
d(
|
|
346
|
+
d(o(ve), { size: "16" })
|
|
342
347
|
]),
|
|
343
348
|
_: 1
|
|
344
349
|
})
|
|
@@ -352,7 +357,7 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
352
357
|
]),
|
|
353
358
|
_: 3
|
|
354
359
|
}, 512), [
|
|
355
|
-
[
|
|
360
|
+
[ge, !e.loading]
|
|
356
361
|
])
|
|
357
362
|
]),
|
|
358
363
|
_: 3
|
|
@@ -363,23 +368,23 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
363
368
|
}, 16, ["model-value", "searchTerm", "open"]),
|
|
364
369
|
e.description && !h.value ? (i(), g("div", {
|
|
365
370
|
key: 1,
|
|
366
|
-
id:
|
|
371
|
+
id: Q,
|
|
367
372
|
class: "text-gray-500 text-[11px] leading-tight"
|
|
368
|
-
},
|
|
373
|
+
}, A(e.description), 1)) : y("", !0),
|
|
369
374
|
typeof e.error == "string" && h.value ? (i(), g("div", {
|
|
370
375
|
key: 2,
|
|
371
|
-
id:
|
|
376
|
+
id: K,
|
|
372
377
|
class: "text-[var(--alert-red-dark,#831511)] flex items-center gap-1 text-[11px] font-medium leading-tight pt-0.5"
|
|
373
378
|
}, [
|
|
374
|
-
d(
|
|
379
|
+
d(o(R), {
|
|
375
380
|
size: "14",
|
|
376
381
|
class: "text-[var(--alert-red-dark,#831511)] shrink-0"
|
|
377
382
|
}),
|
|
378
|
-
_("span", null,
|
|
383
|
+
_("span", null, A(e.error), 1)
|
|
379
384
|
])) : y("", !0)
|
|
380
385
|
], 2));
|
|
381
386
|
}
|
|
382
387
|
});
|
|
383
388
|
export {
|
|
384
|
-
|
|
389
|
+
at as default
|
|
385
390
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, createBlock as p, openBlock as m, unref as e, mergeProps as u, withCtx as o, createElementVNode as f, renderSlot as _, createVNode as s } from "vue";
|
|
2
2
|
import { reactiveOmit as h } from "@vueuse/core";
|
|
3
|
-
import { useForwardPropsEmits as
|
|
3
|
+
import { useForwardPropsEmits as b, DropdownMenuCheckboxItem as g, DropdownMenuItemIndicator as x } from "reka-ui";
|
|
4
4
|
import { cn as v } from "../lib/utils.js";
|
|
5
|
-
import k from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.
|
|
6
|
-
const w = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, D = /* @__PURE__ */
|
|
5
|
+
import k from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js";
|
|
6
|
+
const w = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" }, D = /* @__PURE__ */ d({
|
|
7
7
|
__name: "DropdownMenuCheckboxItem",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { type: [Boolean, String] },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
11
|
textValue: {},
|
|
12
12
|
asChild: { type: Boolean },
|
|
13
|
-
as: {},
|
|
13
|
+
as: { type: [String, Object, Function] },
|
|
14
14
|
class: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["select", "update:modelValue"],
|
|
17
17
|
setup(n, { emit: r }) {
|
|
18
|
-
const t = n, a = r, l = h(t, "class"), c =
|
|
19
|
-
return (
|
|
18
|
+
const t = n, a = r, l = h(t, "class"), c = b(l, a);
|
|
19
|
+
return (i, y) => (m(), p(e(g), u({ "data-slot": "dropdown-menu-checkbox-item" }, e(c), {
|
|
20
20
|
class: e(v)(
|
|
21
21
|
"focus:bg-accent/24 outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
22
22
|
t.class
|
|
@@ -24,14 +24,14 @@ const w = { class: "pointer-events-none absolute left-2 flex size-3.5 items-cent
|
|
|
24
24
|
}), {
|
|
25
25
|
default: o(() => [
|
|
26
26
|
f("span", w, [
|
|
27
|
-
s(e(
|
|
27
|
+
s(e(x), null, {
|
|
28
28
|
default: o(() => [
|
|
29
29
|
s(e(k), { class: "size-4" })
|
|
30
30
|
]),
|
|
31
31
|
_: 1
|
|
32
32
|
})
|
|
33
33
|
]),
|
|
34
|
-
_(
|
|
34
|
+
_(i.$slots, "default")
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
}, 16, ["class"]));
|
|
@@ -10,8 +10,10 @@ declare function __VLS_template(): {
|
|
|
10
10
|
slots: {
|
|
11
11
|
default?(_: {}): any;
|
|
12
12
|
};
|
|
13
|
-
refs: {
|
|
14
|
-
|
|
13
|
+
refs: {
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
rootEl: any;
|
|
15
17
|
};
|
|
16
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
19
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -27,10 +29,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
27
29
|
onInteractOutside?: ((event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
28
30
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
31
|
}>, {
|
|
32
|
+
align: "end" | "start" | "center";
|
|
33
|
+
side: "top" | "right" | "bottom" | "left";
|
|
30
34
|
sideOffset: number;
|
|
35
|
+
collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
31
36
|
positionStrategy: "absolute" | "fixed";
|
|
32
37
|
disablePortal: boolean;
|
|
33
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
rootEl: HTMLDivElement;
|
|
40
|
+
}, any>;
|
|
34
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
42
|
export default _default;
|
|
36
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu/DropdownMenuContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu/DropdownMenuContent.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAA4B,wBAAwB,EAAE,MAAM,SAAS,CAAA;AACjF,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AASxD,KAAK,WAAW,GAAG,wBAAwB,GAAG;IACxC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CACxC,CAAC;AAiCN,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;mBAnIC,OAAO;;;OA4I3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { reactiveOmit as
|
|
3
|
-
import { useForwardPropsEmits as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as u, ref as c, computed as m, createElementBlock as y, openBlock as g, createVNode as i, unref as o, withCtx as n, mergeProps as h, renderSlot as w } from "vue";
|
|
2
|
+
import { reactiveOmit as b } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as B, DropdownMenuPortal as v, DropdownMenuContent as P } from "reka-ui";
|
|
4
|
+
import { hasCssZoom as S, cn as C } from "../lib/utils.js";
|
|
5
|
+
const E = /* @__PURE__ */ u({
|
|
6
|
+
inheritAttrs: !1,
|
|
6
7
|
__name: "DropdownMenuContent",
|
|
7
8
|
props: {
|
|
8
9
|
forceMount: { type: Boolean },
|
|
9
10
|
loop: { type: Boolean },
|
|
10
|
-
side: {},
|
|
11
|
+
side: { default: "bottom" },
|
|
11
12
|
sideOffset: { default: 4 },
|
|
12
13
|
sideFlip: { type: Boolean },
|
|
13
|
-
align: {},
|
|
14
|
+
align: { default: "start" },
|
|
14
15
|
alignOffset: {},
|
|
15
16
|
alignFlip: { type: Boolean },
|
|
16
17
|
avoidCollisions: { type: Boolean },
|
|
17
18
|
collisionBoundary: {},
|
|
18
|
-
collisionPadding: {},
|
|
19
|
+
collisionPadding: { default: 8 },
|
|
19
20
|
arrowPadding: {},
|
|
20
21
|
sticky: {},
|
|
21
22
|
hideWhenDetached: { type: Boolean },
|
|
@@ -27,31 +28,40 @@ const b = { class: "relative" }, D = /* @__PURE__ */ p({
|
|
|
27
28
|
asChild: { type: Boolean },
|
|
28
29
|
as: {},
|
|
29
30
|
class: {},
|
|
30
|
-
disablePortal: { type: Boolean, default: !
|
|
31
|
+
disablePortal: { type: Boolean, default: !1 }
|
|
31
32
|
},
|
|
32
33
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
return (
|
|
36
|
-
|
|
34
|
+
setup(s, { emit: r }) {
|
|
35
|
+
const e = s, d = r, l = b(e, "class", "disablePortal", "positionStrategy"), p = B(l, d), t = c(null), f = m(() => e.disablePortal || S(t.value));
|
|
36
|
+
return (a, D) => (g(), y("div", {
|
|
37
|
+
ref_key: "rootEl",
|
|
38
|
+
ref: t,
|
|
39
|
+
class: "relative"
|
|
40
|
+
}, [
|
|
41
|
+
i(o(v), { disabled: f.value }, {
|
|
37
42
|
default: n(() => [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
i(o(P), h({ "data-slot": "dropdown-menu-content" }, {
|
|
44
|
+
...o(p),
|
|
45
|
+
...a.$attrs,
|
|
46
|
+
positionStrategy: e.positionStrategy,
|
|
47
|
+
strategy: e.positionStrategy
|
|
48
|
+
}, {
|
|
49
|
+
class: o(C)(
|
|
50
|
+
"border-input 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md relative",
|
|
51
|
+
e.class
|
|
42
52
|
)
|
|
43
53
|
}), {
|
|
44
54
|
default: n(() => [
|
|
45
|
-
|
|
55
|
+
w(a.$slots, "default")
|
|
46
56
|
]),
|
|
47
57
|
_: 3
|
|
48
58
|
}, 16, ["class"])
|
|
49
59
|
]),
|
|
50
60
|
_: 3
|
|
51
|
-
})
|
|
52
|
-
]));
|
|
61
|
+
}, 8, ["disabled"])
|
|
62
|
+
], 512));
|
|
53
63
|
}
|
|
54
64
|
});
|
|
55
65
|
export {
|
|
56
|
-
|
|
66
|
+
E as default
|
|
57
67
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as t, createBlock as n, openBlock as p, unref as
|
|
2
|
-
import { DropdownMenuGroup as
|
|
1
|
+
import { defineComponent as t, createBlock as n, openBlock as p, unref as u, mergeProps as a, withCtx as s, renderSlot as d } from "vue";
|
|
2
|
+
import { DropdownMenuGroup as c } from "reka-ui";
|
|
3
3
|
const i = /* @__PURE__ */ t({
|
|
4
4
|
__name: "DropdownMenuGroup",
|
|
5
5
|
props: {
|
|
6
6
|
asChild: { type: Boolean },
|
|
7
|
-
as: {}
|
|
7
|
+
as: { type: [String, Object, Function] }
|
|
8
8
|
},
|
|
9
9
|
setup(o) {
|
|
10
10
|
const e = o;
|
|
11
|
-
return (r,
|
|
12
|
-
default:
|
|
11
|
+
return (r, l) => (p(), n(u(c), a({ "data-slot": "dropdown-menu-group" }, e), {
|
|
12
|
+
default: s(() => [
|
|
13
13
|
d(r.$slots, "default")
|
|
14
14
|
]),
|
|
15
15
|
_: 3
|