@agrotools1/at-components 2.0.35 → 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.35.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.36.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.36.d.ts.map +1 -0
- 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 +12 -2
- package/dist/combobox/ComboboxList.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxList.vue.js +42 -30
- 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.d.ts +0 -8
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.js +28 -31
- 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 +114 -110
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +13 -2
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +42 -29
- 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 +12 -2
- package/dist/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/popover/PopoverContent.vue.js +41 -29
- 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 +13 -2
- package/dist/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/select/SelectContent.vue.js +56 -44
- 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 +29 -30
- package/dist/sheet/SheetDescription.vue.js +9 -9
- package/dist/sheet/SheetFooter.vue.js +3 -3
- 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/sheet/sheetContent.variants.d.ts +6 -0
- package/dist/sheet/sheetContent.variants.d.ts.map +1 -0
- package/dist/sheet/sheetContent.variants.js +20 -0
- 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,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as m, createBlock as g, openBlock as v, unref as
|
|
2
|
-
import { reactiveOmit as
|
|
3
|
-
import { useForwardPropsEmits as b, DialogPortal as
|
|
1
|
+
import { defineComponent as m, createBlock as g, openBlock as v, unref as t, withCtx as o, createVNode as s, mergeProps as y, renderSlot as w, createElementVNode as D } from "vue";
|
|
2
|
+
import { reactiveOmit as _ } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as b, DialogPortal as C, DialogOverlay as O, DialogContent as x, DialogClose as P } from "reka-ui";
|
|
4
4
|
import { cn as k } from "../lib/utils.js";
|
|
5
5
|
import { dialogContentVariants as B } from "./index.js";
|
|
6
|
-
import E from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.
|
|
7
|
-
const
|
|
6
|
+
import E 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/x.js";
|
|
7
|
+
const N = /* @__PURE__ */ m({
|
|
8
8
|
__name: "DialogScrollContent",
|
|
9
9
|
props: {
|
|
10
10
|
class: {},
|
|
@@ -12,35 +12,36 @@ const S = /* @__PURE__ */ m({
|
|
|
12
12
|
forceMount: { type: Boolean },
|
|
13
13
|
disableOutsidePointerEvents: { type: Boolean },
|
|
14
14
|
asChild: { type: Boolean },
|
|
15
|
-
as: {}
|
|
15
|
+
as: { type: [String, Object, Function] }
|
|
16
16
|
},
|
|
17
17
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
18
18
|
setup(d, { emit: c }) {
|
|
19
|
-
const n = d, u = c, f =
|
|
20
|
-
return (r,
|
|
19
|
+
const n = d, u = c, f = _(n, "class"), p = b(f, u);
|
|
20
|
+
return (r, e) => (v(), g(t(C), null, {
|
|
21
21
|
default: o(() => [
|
|
22
|
-
s(
|
|
22
|
+
s(t(O), { class: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80" }, {
|
|
23
23
|
default: o(() => [
|
|
24
|
-
s(
|
|
25
|
-
class:
|
|
26
|
-
|
|
24
|
+
s(t(x), y({
|
|
25
|
+
class: t(k)(
|
|
26
|
+
t(B)({ variant: r.variant }),
|
|
27
27
|
"relative my-8 max-w-lg sm:rounded-xl md:w-full",
|
|
28
28
|
n.class
|
|
29
29
|
)
|
|
30
|
-
},
|
|
31
|
-
onPointerDownOutside:
|
|
30
|
+
}, t(p), {
|
|
31
|
+
onPointerDownOutside: e[0] || (e[0] = (i) => {
|
|
32
32
|
const a = i.detail.originalEvent, l = a.target;
|
|
33
33
|
(a.offsetX > l.clientWidth || a.offsetY > l.clientHeight) && i.preventDefault();
|
|
34
34
|
})
|
|
35
35
|
}), {
|
|
36
36
|
default: o(() => [
|
|
37
|
-
|
|
38
|
-
s(
|
|
37
|
+
w(r.$slots, "default"),
|
|
38
|
+
s(t(P), { class: "ring-offset-background focus:ring-ring data-[state=open]:text-primary-500 rounded-xs focus:outline-hidden absolute right-4 top-5 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0" }, {
|
|
39
39
|
default: o(() => [
|
|
40
|
-
s(
|
|
41
|
-
|
|
40
|
+
s(t(E)),
|
|
41
|
+
e[1] || (e[1] = D("span", { class: "sr-only" }, "Close", -1))
|
|
42
42
|
]),
|
|
43
|
-
_: 1
|
|
43
|
+
_: 1,
|
|
44
|
+
__: [1]
|
|
44
45
|
})
|
|
45
46
|
]),
|
|
46
47
|
_: 3
|
|
@@ -54,5 +55,5 @@ const S = /* @__PURE__ */ m({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
N as default
|
|
58
59
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as l, createBlock as
|
|
1
|
+
import { defineComponent as l, createBlock as n, openBlock as c, unref as t, mergeProps as i, withCtx as p, renderSlot as d } from "vue";
|
|
2
2
|
import { reactiveOmit as m } from "@vueuse/core";
|
|
3
3
|
import { useForwardProps as f, DialogTitle as u } from "reka-ui";
|
|
4
4
|
import { cn as g } from "../lib/utils.js";
|
|
5
|
-
const
|
|
5
|
+
const y = /* @__PURE__ */ l({
|
|
6
6
|
__name: "DialogTitle",
|
|
7
7
|
props: {
|
|
8
8
|
asChild: { type: Boolean },
|
|
9
|
-
as: {},
|
|
9
|
+
as: { type: [String, Object, Function] },
|
|
10
10
|
class: {}
|
|
11
11
|
},
|
|
12
12
|
setup(e) {
|
|
13
|
-
const
|
|
14
|
-
return (a, _) => (
|
|
15
|
-
class:
|
|
13
|
+
const o = e, r = m(o, "class"), s = f(r);
|
|
14
|
+
return (a, _) => (c(), n(t(u), i({ "data-slot": "dialog-title" }, t(s), {
|
|
15
|
+
class: t(g)("text-sm font-bold text-gray-800", o.class)
|
|
16
16
|
}), {
|
|
17
|
-
default:
|
|
17
|
+
default: p(() => [
|
|
18
18
|
d(a.$slots, "default")
|
|
19
19
|
]),
|
|
20
20
|
_: 3
|
|
@@ -22,5 +22,5 @@ const B = /* @__PURE__ */ l({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
y as default
|
|
26
26
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as n, unref as i, mergeProps as l, withCtx as p, renderSlot as s } from "vue";
|
|
2
2
|
import { DialogTrigger as g } from "reka-ui";
|
|
3
|
-
const m = /* @__PURE__ */
|
|
3
|
+
const m = /* @__PURE__ */ r({
|
|
4
4
|
__name: "DialogTrigger",
|
|
5
5
|
props: {
|
|
6
6
|
asChild: { type: Boolean },
|
|
7
|
-
as: {}
|
|
7
|
+
as: { type: [String, Object, Function] }
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const
|
|
11
|
-
return (
|
|
12
|
-
default:
|
|
13
|
-
|
|
10
|
+
const t = e;
|
|
11
|
+
return (o, c) => (n(), a(i(g), l({ "data-slot": "dialog-trigger" }, t), {
|
|
12
|
+
default: p(() => [
|
|
13
|
+
s(o.$slots, "default")
|
|
14
14
|
]),
|
|
15
15
|
_: 3
|
|
16
16
|
}, 16));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentAutoComplete.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentAutoComplete.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentAutoComplete.vue.d.ts","sourceRoot":"","sources":["../../src/document-input/DocumentAutoComplete.vue"],"names":[],"mappings":"AAoqBA,UAAU,KAAK;IACb,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAA;IACjE,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uEAAuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,wCAAwC;IACxC,UAAU,CAAC,EAAE,GAAG,CAAA;IAChB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kDAAkD;IAClD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,GAAG,EAAE,CAAA;IACf,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAuaD,iBAAS,cAAc;WAqWT,OAAO,IAA6B;;uBAhBtB,GAAG;sBACJ,GAAG;yBACA,GAAG;uBACL,GAAG;yBACD,GAAG;;;YACJ,GAAG;;;;;;EAgB/B;AA4CD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;cA/2BR,OAAO;iBAeJ,OAAO;aARX,OAAO;WAFT,OAAO,GAAG,MAAM;cAuBb,OAAO;gBAnBL,OAAO;kBAjBL,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ;4BAsCxC,OAAO;YAVvB,OAAO;mBA4BA,OAAO;cALZ,MAAM;;;kBA80BjB,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,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",
|
|
@@ -74,10 +79,9 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
74
79
|
"loading",
|
|
75
80
|
"notFoundText",
|
|
76
81
|
"loadingText",
|
|
77
|
-
"optionId"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function Y(t, l) {
|
|
82
|
+
"optionId"
|
|
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) {
|
|
81
85
|
if (!l) return t;
|
|
82
86
|
const r = t.replace(/[^0-9A-Za-z]/g, "");
|
|
83
87
|
if (!r) return "";
|
|
@@ -88,13 +92,13 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
88
92
|
}
|
|
89
93
|
return f;
|
|
90
94
|
}
|
|
91
|
-
function
|
|
95
|
+
function N(t) {
|
|
92
96
|
if (e.customMask && e.documentType === "generic")
|
|
93
|
-
return
|
|
97
|
+
return ee(t, e.customMask);
|
|
94
98
|
const l = /[A-Z]/i.test(t);
|
|
95
|
-
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;
|
|
96
100
|
}
|
|
97
|
-
const
|
|
101
|
+
const L = (t) => {
|
|
98
102
|
if (!t) return s.value || "";
|
|
99
103
|
if (e.documentType === "custom")
|
|
100
104
|
return typeof t == "string" ? t : t.text || t.label || t.identifier || t.value || "";
|
|
@@ -103,27 +107,27 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
103
107
|
e.documentType === "generic" && e.customMask || e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g,
|
|
104
108
|
""
|
|
105
109
|
);
|
|
106
|
-
return
|
|
110
|
+
return N(l);
|
|
107
111
|
}
|
|
108
112
|
return t.text || t.label || t.identifier || t.value || "";
|
|
109
113
|
};
|
|
110
|
-
|
|
114
|
+
pe(
|
|
111
115
|
() => e.modelValue,
|
|
112
116
|
(t) => {
|
|
113
|
-
if (
|
|
114
|
-
s.value !== "" && (s.value = ""),
|
|
117
|
+
if ($.value = t, t == null || t === "") {
|
|
118
|
+
s.value !== "" && (s.value = ""), $.value = void 0;
|
|
115
119
|
return;
|
|
116
120
|
}
|
|
117
|
-
const l =
|
|
121
|
+
const l = L(t);
|
|
118
122
|
s.value !== l && (s.value = l);
|
|
119
123
|
},
|
|
120
124
|
{ immediate: !0 }
|
|
121
125
|
);
|
|
122
|
-
const
|
|
126
|
+
const te = U(() => {
|
|
123
127
|
if (e.maxLength) return e.maxLength;
|
|
124
128
|
if (e.documentType !== "custom")
|
|
125
129
|
return e.customMask && e.documentType === "generic" ? e.customMask.length : e.documentType === "cpf" ? 14 : 18;
|
|
126
|
-
}),
|
|
130
|
+
}), le = U(() => {
|
|
127
131
|
switch (e.documentType) {
|
|
128
132
|
case "cnpj":
|
|
129
133
|
return e.allowAlpha ? "AA.AAA.AAA/AAAA-DV" : "00.000.000/0000-00";
|
|
@@ -142,7 +146,7 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
142
146
|
if (!t || I.value) return !1;
|
|
143
147
|
const r = (typeof t == "string" ? t : t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
144
148
|
if (!r) return !1;
|
|
145
|
-
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))
|
|
146
150
|
return !0;
|
|
147
151
|
}
|
|
148
152
|
return !1;
|
|
@@ -161,20 +165,20 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
161
165
|
}
|
|
162
166
|
return !1;
|
|
163
167
|
});
|
|
164
|
-
function
|
|
168
|
+
function Z(t) {
|
|
165
169
|
if (e.documentType === "custom") {
|
|
166
|
-
|
|
170
|
+
a("validate", !!t);
|
|
167
171
|
return;
|
|
168
172
|
}
|
|
169
173
|
let l = !1;
|
|
170
|
-
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);
|
|
171
175
|
}
|
|
172
|
-
function
|
|
176
|
+
function re(t) {
|
|
173
177
|
const l = t.target;
|
|
174
178
|
let r = l.value;
|
|
175
179
|
const f = l.selectionStart || 0;
|
|
176
180
|
if (I.value = !1, e.toUpperCase && (r = r.toUpperCase()), e.documentType === "custom") {
|
|
177
|
-
|
|
181
|
+
a("update:modelValue", r || void 0), a("update:searchTerm", r), Z(r), s.value = r;
|
|
178
182
|
return;
|
|
179
183
|
}
|
|
180
184
|
let n = r.replace(
|
|
@@ -182,66 +186,66 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
182
186
|
""
|
|
183
187
|
), c = e.maxLength;
|
|
184
188
|
c || (e.customMask && e.documentType === "generic" ? c = e.customMask.length : c = e.documentType === "cpf" ? 11 : 14), n = n.slice(0, c);
|
|
185
|
-
const u =
|
|
186
|
-
|
|
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(() => {
|
|
187
191
|
l.value = u;
|
|
188
|
-
let B = 0,
|
|
189
|
-
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++)
|
|
190
194
|
;
|
|
191
195
|
l.setSelectionRange(B, B);
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
|
-
function
|
|
195
|
-
s.value = "",
|
|
196
|
-
if (
|
|
197
|
-
const l =
|
|
198
|
-
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(() => {
|
|
199
203
|
V.value = !1;
|
|
200
204
|
});
|
|
201
|
-
}), I.value = !0,
|
|
205
|
+
}), I.value = !0, a("validate", !1), a("clear"), V.value = !1;
|
|
202
206
|
}
|
|
203
207
|
function ae(t) {
|
|
204
208
|
if (!t) {
|
|
205
|
-
s.value = "",
|
|
209
|
+
s.value = "", a("update:searchTerm", ""), I.value = !0, a("update:modelValue", null);
|
|
206
210
|
return;
|
|
207
211
|
}
|
|
208
|
-
if (
|
|
209
|
-
|
|
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);
|
|
210
214
|
else {
|
|
211
215
|
const l = (t.identifier || t.value || "").replace(/[^A-Z0-9]/gi, "");
|
|
212
|
-
|
|
216
|
+
a("update:searchTerm", l), Z(l);
|
|
213
217
|
}
|
|
214
218
|
V.value = !1;
|
|
215
219
|
}
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
220
|
+
function ne(t) {
|
|
221
|
+
if (F.value = !0, a("blur", t), e.documentType === "custom") return;
|
|
218
222
|
const l = s.value.replace(e.allowAlpha ? /[^A-Z0-9]/gi : /[^0-9]/g, "");
|
|
219
223
|
let r = !1;
|
|
220
|
-
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);
|
|
221
225
|
}
|
|
222
226
|
return (t, l) => (i(), g("div", {
|
|
223
|
-
class: S(
|
|
227
|
+
class: S(o(E)("space-y-1.5 w-full", e.class)),
|
|
224
228
|
ref_key: "wrapperRef",
|
|
225
|
-
ref:
|
|
229
|
+
ref: M
|
|
226
230
|
}, [
|
|
227
|
-
e.label ? (i(), T(
|
|
231
|
+
e.label ? (i(), T(o(je), {
|
|
228
232
|
key: 0,
|
|
229
|
-
for:
|
|
233
|
+
for: o(C),
|
|
230
234
|
class: S(
|
|
231
|
-
|
|
235
|
+
o(E)(
|
|
232
236
|
"text-[#101011] font-normal text-[10px] leading-[10px]",
|
|
233
237
|
h.value ? "text-[var(--alert-red-dark,#831511)]" : ""
|
|
234
238
|
)
|
|
235
239
|
)
|
|
236
240
|
}, {
|
|
237
241
|
default: m(() => [
|
|
238
|
-
|
|
239
|
-
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)
|
|
240
244
|
]),
|
|
241
245
|
_: 1
|
|
242
246
|
}, 8, ["for", "class"])) : y("", !0),
|
|
243
|
-
d(
|
|
244
|
-
"model-value":
|
|
247
|
+
d(o(xe), de(o(Y), {
|
|
248
|
+
"model-value": $.value,
|
|
245
249
|
searchTerm: s.value,
|
|
246
250
|
"onUpdate:searchTerm": l[3] || (l[3] = (r) => s.value = r),
|
|
247
251
|
open: V.value,
|
|
@@ -251,30 +255,30 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
251
255
|
"onUpdate:modelValue": ae
|
|
252
256
|
}), {
|
|
253
257
|
default: m(() => [
|
|
254
|
-
_("div",
|
|
255
|
-
d(
|
|
258
|
+
_("div", Se, [
|
|
259
|
+
d(o(we), { class: "w-full h-full" }, {
|
|
256
260
|
default: m(() => [
|
|
257
|
-
|
|
258
|
-
d(
|
|
259
|
-
id:
|
|
260
|
-
"display-value":
|
|
261
|
-
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,
|
|
262
266
|
"with-icon": e.withIcon,
|
|
263
267
|
"with-clear-button": !1,
|
|
264
268
|
disabled: e.disabled,
|
|
265
269
|
error: h.value,
|
|
266
270
|
success: j.value,
|
|
267
271
|
class: S(
|
|
268
|
-
|
|
272
|
+
o(E)(
|
|
269
273
|
"pr-20",
|
|
270
274
|
h.value || j.value ? "border-[#3E2E46]" : "",
|
|
271
275
|
e.inputClass
|
|
272
276
|
)
|
|
273
277
|
),
|
|
274
|
-
maxlength:
|
|
275
|
-
onInput:
|
|
276
|
-
onBlur:
|
|
277
|
-
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))
|
|
278
282
|
}, null, 8, ["id", "placeholder", "with-icon", "disabled", "error", "success", "class", "maxlength"])
|
|
279
283
|
])
|
|
280
284
|
]),
|
|
@@ -286,60 +290,60 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
286
290
|
(h.value || e.modelValue && !j.value) && !e.disabled && e.withClearIcon ? (i(), g("div", {
|
|
287
291
|
key: 0,
|
|
288
292
|
class: "flex items-center justify-center w-full h-full cursor-pointer",
|
|
289
|
-
onMousedown: l[1] || (l[1] =
|
|
290
|
-
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(() => {
|
|
291
295
|
}, ["stop", "prevent"]))
|
|
292
296
|
}, [
|
|
293
|
-
h.value ? (i(), T(
|
|
297
|
+
h.value ? (i(), T(o(R), {
|
|
294
298
|
key: 0,
|
|
295
299
|
size: "20",
|
|
296
300
|
class: "text-[var(--alert-red-dark,#831511)] transition-opacity hover:opacity-80"
|
|
297
|
-
})) : (i(), T(
|
|
301
|
+
})) : (i(), T(o(Te), {
|
|
298
302
|
key: 1,
|
|
299
303
|
size: "20",
|
|
300
304
|
class: "text-gray-400 transition-colors hover:text-[#831511]"
|
|
301
305
|
}))
|
|
302
|
-
], 32)) : j.value ? (i(), T(
|
|
306
|
+
], 32)) : j.value ? (i(), T(o(ye), {
|
|
303
307
|
key: 1,
|
|
304
308
|
size: "20",
|
|
305
309
|
class: "text-[#4b715c] pointer-events-none"
|
|
306
310
|
})) : y("", !0)
|
|
307
311
|
], 2)
|
|
308
312
|
]),
|
|
309
|
-
|
|
310
|
-
d(
|
|
313
|
+
k(t.$slots, "list", {}, () => [
|
|
314
|
+
d(o(Me), null, {
|
|
311
315
|
default: m(() => [
|
|
312
|
-
e.loading && (e.loadingText || t.$slots.loading) ? (i(), g("div",
|
|
313
|
-
|
|
314
|
-
_("div",
|
|
315
|
-
d(
|
|
316
|
-
_("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)
|
|
317
321
|
])
|
|
318
322
|
])
|
|
319
|
-
])) : !e.loading && (e.notFoundText || t.$slots.empty) ? (i(), T(
|
|
323
|
+
])) : !e.loading && (e.notFoundText || t.$slots.empty) ? (i(), T(o(Ce), { key: 1 }, {
|
|
320
324
|
default: m(() => [
|
|
321
|
-
|
|
322
|
-
|
|
325
|
+
k(t.$slots, "empty", {}, () => [
|
|
326
|
+
z(A(e.notFoundText), 1)
|
|
323
327
|
])
|
|
324
328
|
]),
|
|
325
329
|
_: 3
|
|
326
330
|
})) : y("", !0),
|
|
327
|
-
|
|
331
|
+
fe(d(o($e), null, {
|
|
328
332
|
default: m(() => [
|
|
329
|
-
d(
|
|
333
|
+
d(o(Ve), null, {
|
|
330
334
|
default: m(() => [
|
|
331
|
-
|
|
332
|
-
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), {
|
|
333
337
|
key: r[e.optionId] || f,
|
|
334
338
|
value: r
|
|
335
339
|
}, {
|
|
336
340
|
default: m(() => [
|
|
337
|
-
|
|
338
|
-
|
|
341
|
+
k(t.$slots, "option", { item: r }, () => [
|
|
342
|
+
z(A(r.text || r.label || r), 1)
|
|
339
343
|
]),
|
|
340
|
-
d(
|
|
344
|
+
d(o(Ie), { class: "ml-auto" }, {
|
|
341
345
|
default: m(() => [
|
|
342
|
-
d(
|
|
346
|
+
d(o(ve), { size: "16" })
|
|
343
347
|
]),
|
|
344
348
|
_: 1
|
|
345
349
|
})
|
|
@@ -353,7 +357,7 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
353
357
|
]),
|
|
354
358
|
_: 3
|
|
355
359
|
}, 512), [
|
|
356
|
-
[
|
|
360
|
+
[ge, !e.loading]
|
|
357
361
|
])
|
|
358
362
|
]),
|
|
359
363
|
_: 3
|
|
@@ -364,23 +368,23 @@ const Be = { key: 0 }, Ue = { class: "relative flex items-center" }, Se = {
|
|
|
364
368
|
}, 16, ["model-value", "searchTerm", "open"]),
|
|
365
369
|
e.description && !h.value ? (i(), g("div", {
|
|
366
370
|
key: 1,
|
|
367
|
-
id:
|
|
371
|
+
id: Q,
|
|
368
372
|
class: "text-gray-500 text-[11px] leading-tight"
|
|
369
|
-
},
|
|
373
|
+
}, A(e.description), 1)) : y("", !0),
|
|
370
374
|
typeof e.error == "string" && h.value ? (i(), g("div", {
|
|
371
375
|
key: 2,
|
|
372
|
-
id:
|
|
376
|
+
id: K,
|
|
373
377
|
class: "text-[var(--alert-red-dark,#831511)] flex items-center gap-1 text-[11px] font-medium leading-tight pt-0.5"
|
|
374
378
|
}, [
|
|
375
|
-
d(
|
|
379
|
+
d(o(R), {
|
|
376
380
|
size: "14",
|
|
377
381
|
class: "text-[var(--alert-red-dark,#831511)] shrink-0"
|
|
378
382
|
}),
|
|
379
|
-
_("span", null,
|
|
383
|
+
_("span", null, A(e.error), 1)
|
|
380
384
|
])) : y("", !0)
|
|
381
385
|
], 2));
|
|
382
386
|
}
|
|
383
387
|
});
|
|
384
388
|
export {
|
|
385
|
-
|
|
389
|
+
at as default
|
|
386
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"]));
|