pukaad-ui-lib 1.282.0 → 1.282.2
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/module.json +1 -1
- package/dist/runtime/assets/json/social-icon.json +76 -76
- package/dist/runtime/assets/svg/bell-outline.svg +3 -3
- package/dist/runtime/assets/svg/bookmark-solid.svg +2 -2
- package/dist/runtime/assets/svg/box.svg +22 -22
- package/dist/runtime/assets/svg/camera-plus.svg +9 -9
- package/dist/runtime/assets/svg/clock-fading.svg +46 -46
- package/dist/runtime/assets/svg/coin.svg +20 -20
- package/dist/runtime/assets/svg/empty-document.svg +15 -15
- package/dist/runtime/assets/svg/map-location-dot.svg +9 -9
- package/dist/runtime/assets/svg/map-pin.svg +6 -6
- package/dist/runtime/assets/svg/memsg-circle.svg +7 -7
- package/dist/runtime/assets/svg/memsg-fade.svg +5 -5
- package/dist/runtime/assets/svg/memsg-logo-outline.svg +3 -3
- package/dist/runtime/assets/svg/memsg-square.svg +9 -9
- package/dist/runtime/assets/svg/message.svg +3 -3
- package/dist/runtime/assets/svg/page-not-found.svg +9 -9
- package/dist/runtime/assets/svg/share-from-square.svg +3 -3
- package/dist/runtime/assets/svg/share.svg +2 -2
- package/dist/runtime/assets/svg/shopping-cart.svg +16 -16
- package/dist/runtime/assets/svg/socials/Email.svg +12 -12
- package/dist/runtime/assets/svg/socials/Facebook.svg +4 -4
- package/dist/runtime/assets/svg/socials/Line.svg +11 -11
- package/dist/runtime/assets/svg/socials/LinkedIn.svg +5 -5
- package/dist/runtime/assets/svg/socials/Pinterest.svg +4 -4
- package/dist/runtime/assets/svg/socials/SnapChat.svg +5 -5
- package/dist/runtime/assets/svg/socials/Threads.svg +12 -12
- package/dist/runtime/assets/svg/socials/{TikTok.svg → Tiktok.svg} +6 -6
- package/dist/runtime/assets/svg/socials/Tumblr.svg +4 -4
- package/dist/runtime/assets/svg/socials/Website.svg +11 -11
- package/dist/runtime/assets/svg/socials/Whatsapp.svg +5 -5
- package/dist/runtime/assets/svg/socials/X.svg +4 -4
- package/dist/runtime/assets/svg/socials/{YouTube.svg → Youtube.svg} +5 -5
- package/dist/runtime/assets/svg/socials/{Instagram.svg → instagram.svg} +14 -14
- package/dist/runtime/assets/svg/tag-empty.svg +25 -25
- package/dist/runtime/assets/svg/thumbs-up-regular.svg +9 -9
- package/dist/runtime/assets/svg/thumbs-up-solid.svg +2 -2
- package/dist/runtime/assets/svg/vector.svg +2 -2
- package/dist/runtime/assets/svg/verify.svg +10 -10
- package/dist/runtime/assets/svg/write-review.svg +15 -15
- package/dist/runtime/components/avatar-profile.vue +29 -29
- package/dist/runtime/components/avatar.vue +20 -20
- package/dist/runtime/components/button.vue +9 -9
- package/dist/runtime/components/card/card-announce2.vue +102 -104
- package/dist/runtime/components/card/card-blog.vue +45 -45
- package/dist/runtime/components/card/card-place-detail.vue +51 -51
- package/dist/runtime/components/card/card-place.vue +28 -28
- package/dist/runtime/components/card/card-profile-about.vue +81 -81
- package/dist/runtime/components/card/card-profile-header.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-profile-header.vue +94 -94
- package/dist/runtime/components/card/card-profile-header.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-reaction.vue +23 -23
- package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-recommend-blog.vue +42 -42
- package/dist/runtime/components/card/card-recommend-place.vue +45 -45
- package/dist/runtime/components/card/card-recommend-profile.vue +46 -46
- package/dist/runtime/components/card/card-review.vue +57 -57
- package/dist/runtime/components/card/card-user-blog.vue +76 -76
- package/dist/runtime/components/card/card-user-item.vue +24 -24
- package/dist/runtime/components/card/card.vue +29 -29
- package/dist/runtime/components/carousel.vue +31 -31
- package/dist/runtime/components/chip.vue +10 -10
- package/dist/runtime/components/collapse/collapse-multiple.vue +42 -42
- package/dist/runtime/components/collapse/collapse.vue +23 -23
- package/dist/runtime/components/comment.vue +204 -204
- package/dist/runtime/components/data-list.vue +49 -49
- package/dist/runtime/components/data-table.vue +131 -131
- package/dist/runtime/components/display/display-image-place.d.vue.ts +1 -1
- package/dist/runtime/components/display/display-image-place.vue +88 -88
- package/dist/runtime/components/display/display-image-place.vue.d.ts +1 -1
- package/dist/runtime/components/display/display-image-review.vue +10 -10
- package/dist/runtime/components/display/display-image.vue +49 -49
- package/dist/runtime/components/display/display-rating-summary.vue +34 -34
- package/dist/runtime/components/divider.vue +8 -8
- package/dist/runtime/components/draggable.vue +15 -15
- package/dist/runtime/components/drawer/drawer-post-blog.vue +70 -70
- package/dist/runtime/components/drawer/drawer-post-review.vue +67 -67
- package/dist/runtime/components/drawer/drawer-profile-about.vue +52 -52
- package/dist/runtime/components/drawer/drawer-profile-network.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-profile-network.vue +136 -136
- package/dist/runtime/components/drawer/drawer-profile-network.vue.d.ts +1 -1
- package/dist/runtime/components/drawer/drawer-suggest-place/drawer-suggest-place.vue +92 -92
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-form.vue +70 -70
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-map.vue +5 -5
- package/dist/runtime/components/drawer/drawer.vue +24 -24
- package/dist/runtime/components/dropdown.vue +8 -8
- package/dist/runtime/components/filter/filter-list-chip.vue +10 -10
- package/dist/runtime/components/filter/filter-list.vue +17 -17
- package/dist/runtime/components/icons.vue +1 -1
- package/dist/runtime/components/image/image-cropper.vue +9 -9
- package/dist/runtime/components/image/image.vue +27 -27
- package/dist/runtime/components/input/input-OTP.vue +27 -27
- package/dist/runtime/components/input/input-address.vue +147 -147
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-autocomplete.vue +80 -80
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-birth-date.vue +20 -20
- package/dist/runtime/components/input/input-checkbox.vue +17 -17
- package/dist/runtime/components/input/input-combobox.vue +100 -100
- package/dist/runtime/components/input/input-comment.vue +6 -6
- package/dist/runtime/components/input/input-content.vue +32 -32
- package/dist/runtime/components/input/input-date-opening.vue +96 -96
- package/dist/runtime/components/input/input-date-picker.vue +102 -102
- package/dist/runtime/components/input/input-email.vue +9 -9
- package/dist/runtime/components/input/input-file.vue +125 -125
- package/dist/runtime/components/input/input-link.vue +35 -35
- package/dist/runtime/components/input/input-media.vue +36 -36
- package/dist/runtime/components/input/input-password.vue +43 -43
- package/dist/runtime/components/input/input-phone.vue +11 -11
- package/dist/runtime/components/input/input-profile-name.vue +10 -10
- package/dist/runtime/components/input/input-radio.vue +55 -55
- package/dist/runtime/components/input/input-rating.vue +13 -13
- package/dist/runtime/components/input/input-recaptcha.vue +19 -19
- package/dist/runtime/components/input/input-search.vue +71 -71
- package/dist/runtime/components/input/input-select-province.vue +94 -94
- package/dist/runtime/components/input/input-select-tag.vue +51 -51
- package/dist/runtime/components/input/input-select.vue +52 -52
- package/dist/runtime/components/input/input-slider.vue +19 -19
- package/dist/runtime/components/input/input-switch.vue +25 -25
- package/dist/runtime/components/input/input-tag.vue +145 -145
- package/dist/runtime/components/input/input-text-field.vue +90 -90
- package/dist/runtime/components/input/input-textarea.vue +58 -58
- package/dist/runtime/components/label/label-announce-time.vue +9 -9
- package/dist/runtime/components/label/label-card-atom.vue +8 -8
- package/dist/runtime/components/list/list-menu.vue +13 -13
- package/dist/runtime/components/loading.vue +8 -8
- package/dist/runtime/components/modal/modal-2FA-generate.vue +48 -48
- package/dist/runtime/components/modal/modal-2FA.vue +28 -28
- package/dist/runtime/components/modal/modal-account-disabled-alert.vue +33 -33
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue +32 -32
- package/dist/runtime/components/modal/modal-account-disabled-reason.vue +45 -45
- package/dist/runtime/components/modal/modal-account-disabled.vue +9 -9
- package/dist/runtime/components/modal/modal-display-image.vue +38 -38
- package/dist/runtime/components/modal/modal-email-OTP.vue +32 -32
- package/dist/runtime/components/modal/modal-forgot-password.vue +9 -9
- package/dist/runtime/components/modal/modal-media-view.vue +12 -12
- package/dist/runtime/components/modal/modal-password-confirmed.vue +30 -30
- package/dist/runtime/components/modal/modal-password-new.vue +14 -14
- package/dist/runtime/components/modal/modal-password-verify.vue +13 -13
- package/dist/runtime/components/modal/modal-personal-card-ID.vue +167 -167
- package/dist/runtime/components/modal/modal-phone-OTP.vue +49 -49
- package/dist/runtime/components/modal/modal-profile-edit.vue +69 -71
- package/dist/runtime/components/modal/modal-province-domain.vue +23 -23
- package/dist/runtime/components/modal/modal-report.vue +47 -47
- package/dist/runtime/components/modal/modal-review-detail.vue +118 -118
- package/dist/runtime/components/modal/modal-secure.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-secure.vue +7 -7
- package/dist/runtime/components/modal/modal-secure.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-share.vue +20 -20
- package/dist/runtime/components/modal/modal-user-account-search.vue +69 -69
- package/dist/runtime/components/modal/modal.vue +27 -27
- package/dist/runtime/components/pagination.vue +47 -47
- package/dist/runtime/components/picker/picker-image-cover-profile.vue +80 -80
- package/dist/runtime/components/picker/picker-image-profile.vue +102 -102
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +18 -18
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue +26 -26
- package/dist/runtime/components/profile-cover.vue +80 -80
- package/dist/runtime/components/progress-bar.vue +9 -9
- package/dist/runtime/components/read-more-text.vue +1 -1
- package/dist/runtime/components/tab_old.vue +78 -78
- package/dist/runtime/components/table.vue +79 -79
- package/dist/runtime/components/tooltip.vue +12 -12
- package/dist/runtime/components/ui/accordion/Accordion.vue +3 -3
- package/dist/runtime/components/ui/accordion/AccordionContent.vue +9 -9
- package/dist/runtime/components/ui/accordion/AccordionItem.vue +8 -8
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue +16 -16
- package/dist/runtime/components/ui/alert/Alert.vue +7 -7
- package/dist/runtime/components/ui/alert/AlertDescription.vue +6 -6
- package/dist/runtime/components/ui/alert/AlertTitle.vue +6 -6
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +3 -3
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +3 -3
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +6 -6
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +13 -13
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +7 -7
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +6 -6
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +6 -6
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +7 -7
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +3 -3
- package/dist/runtime/components/ui/avatar/Avatar.vue +6 -6
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +7 -7
- package/dist/runtime/components/ui/avatar/AvatarImage.vue +7 -7
- package/dist/runtime/components/ui/badge/Badge.vue +7 -7
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +7 -7
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +11 -11
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +6 -6
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +8 -8
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +6 -6
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +9 -9
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +10 -10
- package/dist/runtime/components/ui/button/Button.vue +8 -8
- package/dist/runtime/components/ui/calendar/Calendar.vue +128 -128
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +7 -7
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +7 -7
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +7 -7
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +6 -6
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +6 -6
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +6 -6
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +7 -7
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +7 -7
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +10 -10
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +9 -9
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +9 -9
- package/dist/runtime/components/ui/card/Card.vue +8 -8
- package/dist/runtime/components/ui/card/CardAction.vue +6 -6
- package/dist/runtime/components/ui/card/CardContent.vue +6 -6
- package/dist/runtime/components/ui/card/CardDescription.vue +6 -6
- package/dist/runtime/components/ui/card/CardFooter.vue +6 -6
- package/dist/runtime/components/ui/card/CardHeader.vue +6 -6
- package/dist/runtime/components/ui/card/CardTitle.vue +6 -6
- package/dist/runtime/components/ui/carousel/Carousel.vue +10 -10
- package/dist/runtime/components/ui/carousel/CarouselContent.vue +12 -12
- package/dist/runtime/components/ui/carousel/CarouselItem.vue +8 -8
- package/dist/runtime/components/ui/carousel/CarouselNext.vue +13 -13
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue +13 -13
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +8 -8
- package/dist/runtime/components/ui/command/Command.vue +7 -7
- package/dist/runtime/components/ui/command/CommandDialog.vue +11 -11
- package/dist/runtime/components/ui/command/CommandEmpty.vue +16 -16
- package/dist/runtime/components/ui/command/CommandGroup.vue +16 -16
- package/dist/runtime/components/ui/command/CommandInput.vue +13 -13
- package/dist/runtime/components/ui/command/CommandItem.vue +11 -11
- package/dist/runtime/components/ui/command/CommandList.vue +9 -9
- package/dist/runtime/components/ui/command/CommandSeparator.vue +7 -7
- package/dist/runtime/components/ui/command/CommandShortcut.vue +6 -6
- package/dist/runtime/components/ui/dialog/Dialog.vue +3 -3
- package/dist/runtime/components/ui/dialog/DialogClose.vue +3 -3
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogContent.vue +26 -26
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +7 -7
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +6 -6
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +6 -6
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +7 -7
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +20 -20
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +7 -7
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +6 -6
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +12 -12
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +10 -10
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +6 -6
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +9 -9
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +8 -8
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +6 -6
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +16 -16
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +5 -5
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +6 -6
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +7 -7
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +8 -8
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +6 -6
- package/dist/runtime/components/ui/form/FormControl.vue +8 -8
- package/dist/runtime/components/ui/form/FormDescription.vue +7 -7
- package/dist/runtime/components/ui/form/FormItem.vue +3 -3
- package/dist/runtime/components/ui/form/FormLabel.vue +8 -8
- package/dist/runtime/components/ui/form/FormMessage.vue +7 -7
- package/dist/runtime/components/ui/input/Input.vue +7 -7
- package/dist/runtime/components/ui/input-group/InputGroup.vue +7 -7
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +9 -9
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue +8 -8
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +5 -5
- package/dist/runtime/components/ui/input-group/InputGroupText.vue +5 -5
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +4 -4
- package/dist/runtime/components/ui/label/Label.vue +7 -7
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +19 -19
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +3 -3
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +3 -3
- package/dist/runtime/components/ui/pagination/Pagination.vue +8 -8
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +8 -8
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +10 -10
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +10 -10
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +7 -7
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +10 -10
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +10 -10
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +10 -10
- package/dist/runtime/components/ui/pin-input/PinInput.vue +7 -7
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue +7 -7
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +3 -3
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue +5 -5
- package/dist/runtime/components/ui/popover/Popover.vue +7 -7
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +6 -6
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/popover/PopoverContent.vue +9 -9
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +6 -6
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +14 -14
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +10 -10
- package/dist/runtime/components/ui/select/Select.vue +7 -7
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectContent.vue +10 -10
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectGroup.vue +6 -6
- package/dist/runtime/components/ui/select/SelectItem.vue +17 -17
- package/dist/runtime/components/ui/select/SelectItemText.vue +6 -6
- package/dist/runtime/components/ui/select/SelectLabel.vue +6 -6
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +9 -9
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +9 -9
- package/dist/runtime/components/ui/select/SelectSeparator.vue +5 -5
- package/dist/runtime/components/ui/select/SelectTrigger.vue +11 -11
- package/dist/runtime/components/ui/select/SelectValue.vue +6 -6
- package/dist/runtime/components/ui/separator/Separator.vue +5 -5
- package/dist/runtime/components/ui/sheet/Sheet.vue +3 -3
- package/dist/runtime/components/ui/sheet/SheetClose.vue +3 -3
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sheet/SheetContent.vue +26 -26
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +7 -7
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +6 -6
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +6 -6
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +7 -7
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +7 -7
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +3 -3
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +4 -4
- package/dist/runtime/components/ui/spinner/Spinner.vue +6 -6
- package/dist/runtime/components/ui/table/Table.vue +5 -5
- package/dist/runtime/components/ui/table/TableBody.vue +6 -6
- package/dist/runtime/components/ui/table/TableCaption.vue +6 -6
- package/dist/runtime/components/ui/table/TableCell.vue +6 -6
- package/dist/runtime/components/ui/table/TableEmpty.vue +15 -15
- package/dist/runtime/components/ui/table/TableFooter.vue +6 -6
- package/dist/runtime/components/ui/table/TableHead.vue +6 -6
- package/dist/runtime/components/ui/table/TableHeader.vue +6 -6
- package/dist/runtime/components/ui/table/TableRow.vue +6 -6
- package/dist/runtime/components/ui/tabs/Tabs.vue +8 -8
- package/dist/runtime/components/ui/tabs/TabsContent.vue +7 -7
- package/dist/runtime/components/ui/tabs/TabsList.vue +7 -7
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +7 -7
- package/dist/runtime/components/ui/textarea/Textarea.vue +5 -5
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +7 -7
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +13 -13
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue +3 -3
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +6 -6
- package/dist/runtime/components/video.vue +2 -2
- package/dist/runtime/composables/useApi.d.ts +1 -1
- package/dist/runtime/composables/useApi.js +6 -77
- package/dist/runtime/geo/README.md +87 -87
- package/dist/runtime/geo/postal_codes.json +5569 -5569
- package/package.json +2 -2
|
@@ -1,157 +1,157 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ShadPopover v-model:open="popoverOpen">
|
|
3
|
-
<ShadPopoverAnchor as-child>
|
|
4
|
-
<ShadFormField :name="props.name" v-model="modelValue">
|
|
5
|
-
<ShadFormItem>
|
|
6
|
-
<ShadFormLabel v-if="props.label" class="w-full">
|
|
7
|
-
<div class="font-body-large-prominent text-gray-500">
|
|
8
|
-
{{ props.label }}
|
|
9
|
-
<span v-if="props.required" class="text-destructive">*</span>
|
|
10
|
-
</div>
|
|
11
|
-
</ShadFormLabel>
|
|
12
|
-
<div
|
|
2
|
+
<ShadPopover v-model:open="popoverOpen">
|
|
3
|
+
<ShadPopoverAnchor as-child>
|
|
4
|
+
<ShadFormField :name="props.name" v-model="modelValue">
|
|
5
|
+
<ShadFormItem>
|
|
6
|
+
<ShadFormLabel v-if="props.label" class="w-full">
|
|
7
|
+
<div class="font-body-large-prominent text-gray-500">
|
|
8
|
+
{{ props.label }}
|
|
9
|
+
<span v-if="props.required" class="text-destructive">*</span>
|
|
10
|
+
</div>
|
|
11
|
+
</ShadFormLabel>
|
|
12
|
+
<div
|
|
13
13
|
:class="[
|
|
14
14
|
'flex flex-wrap items-center gap-2 min-h-10 w-full rounded-lg bg-background px-[12px] py-[4px] cursor-text',
|
|
15
15
|
props.state === 'admin' && 'border',
|
|
16
16
|
props.state === 'admin' && (popoverOpen ? 'border-primary' : 'border-mercury')
|
|
17
|
-
]"
|
|
18
|
-
@mousedown="handleContainerClick"
|
|
19
|
-
>
|
|
20
|
-
<!-- Selected Tags as Chips -->
|
|
21
|
-
<Chip
|
|
22
|
-
v-for="tag in selectedTags"
|
|
23
|
-
:key="tag.id"
|
|
24
|
-
closable
|
|
25
|
-
@closable="onRemoveTag(tag.id)"
|
|
26
|
-
class="bg-bright"
|
|
27
|
-
>
|
|
28
|
-
{{ tag.name }}
|
|
29
|
-
</Chip>
|
|
30
|
-
<!-- Input for search -->
|
|
31
|
-
<InputTextField
|
|
32
|
-
v-if="!isLimitReached"
|
|
33
|
-
ref="inputRef"
|
|
34
|
-
id="input-tag-search"
|
|
35
|
-
name="input-tag-search"
|
|
36
|
-
v-model="searchQuery"
|
|
37
|
-
disabled-border
|
|
38
|
-
:placeholder="props.placeholder"
|
|
39
|
-
class="flex-1 min-w-[100px] p-0"
|
|
40
|
-
:readonly="props.state === 'admin'"
|
|
41
|
-
@keydown="onKeydown"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</ShadFormItem>
|
|
45
|
-
</ShadFormField>
|
|
46
|
-
</ShadPopoverAnchor>
|
|
47
|
-
<ShadPopoverContent
|
|
48
|
-
@openAutoFocus.prevent
|
|
49
|
-
@interactOutside="handleInteractOutside"
|
|
50
|
-
>
|
|
51
|
-
<ShadCommand :filter="() => 1">
|
|
52
|
-
<ShadCommandInput
|
|
53
|
-
v-if="props.state === 'admin'"
|
|
54
|
-
placeholder="ค้นหาแท็ก"
|
|
55
|
-
/>
|
|
56
|
-
<ShadTabs v-model="currentTab" class="w-full p-2">
|
|
57
|
-
<ShadTabsList class="w-full grid grid-cols-2">
|
|
58
|
-
<ShadTabsTrigger value="popular">ยอดนิยม</ShadTabsTrigger>
|
|
59
|
-
<ShadTabsTrigger value="latest">ล่าสุด</ShadTabsTrigger>
|
|
60
|
-
</ShadTabsList>
|
|
61
|
-
|
|
62
|
-
<!-- Popular Tab -->
|
|
63
|
-
<ShadTabsContent value="popular" class="m-0">
|
|
64
|
-
<ShadCommandList class="max-h-64 overflow-y-auto">
|
|
65
|
-
<ShadCommandGroup>
|
|
66
|
-
<ShadCommandItem
|
|
67
|
-
v-for="tag in filteredPopularTags"
|
|
68
|
-
:key="tag.value"
|
|
69
|
-
:value="tag.value"
|
|
70
|
-
class="flex w-full justify-between"
|
|
71
|
-
@select="onSelectTag(tag)"
|
|
72
|
-
>
|
|
73
|
-
<span class="font-body-medium">{{ tag.label }}</span>
|
|
74
|
-
<div class="font-body-small text-gray">
|
|
75
|
-
{{ convertNumber(tag.postCount) }} โพสต์
|
|
76
|
-
</div>
|
|
77
|
-
</ShadCommandItem>
|
|
78
|
-
</ShadCommandGroup>
|
|
79
|
-
|
|
80
|
-
<!-- Initital Loading / Empty State -->
|
|
81
|
-
<ShadCommandEmpty
|
|
17
|
+
]"
|
|
18
|
+
@mousedown="handleContainerClick"
|
|
19
|
+
>
|
|
20
|
+
<!-- Selected Tags as Chips -->
|
|
21
|
+
<Chip
|
|
22
|
+
v-for="tag in selectedTags"
|
|
23
|
+
:key="tag.id"
|
|
24
|
+
closable
|
|
25
|
+
@closable="onRemoveTag(tag.id)"
|
|
26
|
+
class="bg-bright"
|
|
27
|
+
>
|
|
28
|
+
{{ tag.name }}
|
|
29
|
+
</Chip>
|
|
30
|
+
<!-- Input for search -->
|
|
31
|
+
<InputTextField
|
|
32
|
+
v-if="!isLimitReached"
|
|
33
|
+
ref="inputRef"
|
|
34
|
+
id="input-tag-search"
|
|
35
|
+
name="input-tag-search"
|
|
36
|
+
v-model="searchQuery"
|
|
37
|
+
disabled-border
|
|
38
|
+
:placeholder="props.placeholder"
|
|
39
|
+
class="flex-1 min-w-[100px] p-0"
|
|
40
|
+
:readonly="props.state === 'admin'"
|
|
41
|
+
@keydown="onKeydown"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</ShadFormItem>
|
|
45
|
+
</ShadFormField>
|
|
46
|
+
</ShadPopoverAnchor>
|
|
47
|
+
<ShadPopoverContent
|
|
48
|
+
@openAutoFocus.prevent
|
|
49
|
+
@interactOutside="handleInteractOutside"
|
|
50
|
+
>
|
|
51
|
+
<ShadCommand :filter="() => 1">
|
|
52
|
+
<ShadCommandInput
|
|
53
|
+
v-if="props.state === 'admin'"
|
|
54
|
+
placeholder="ค้นหาแท็ก"
|
|
55
|
+
/>
|
|
56
|
+
<ShadTabs v-model="currentTab" class="w-full p-2">
|
|
57
|
+
<ShadTabsList class="w-full grid grid-cols-2">
|
|
58
|
+
<ShadTabsTrigger value="popular">ยอดนิยม</ShadTabsTrigger>
|
|
59
|
+
<ShadTabsTrigger value="latest">ล่าสุด</ShadTabsTrigger>
|
|
60
|
+
</ShadTabsList>
|
|
61
|
+
|
|
62
|
+
<!-- Popular Tab -->
|
|
63
|
+
<ShadTabsContent value="popular" class="m-0">
|
|
64
|
+
<ShadCommandList class="max-h-64 overflow-y-auto">
|
|
65
|
+
<ShadCommandGroup>
|
|
66
|
+
<ShadCommandItem
|
|
67
|
+
v-for="tag in filteredPopularTags"
|
|
68
|
+
:key="tag.value"
|
|
69
|
+
:value="tag.value"
|
|
70
|
+
class="flex w-full justify-between"
|
|
71
|
+
@select="onSelectTag(tag)"
|
|
72
|
+
>
|
|
73
|
+
<span class="font-body-medium">{{ tag.label }}</span>
|
|
74
|
+
<div class="font-body-small text-gray">
|
|
75
|
+
{{ convertNumber(tag.postCount) }} โพสต์
|
|
76
|
+
</div>
|
|
77
|
+
</ShadCommandItem>
|
|
78
|
+
</ShadCommandGroup>
|
|
79
|
+
|
|
80
|
+
<!-- Initital Loading / Empty State -->
|
|
81
|
+
<ShadCommandEmpty
|
|
82
82
|
:force-show="
|
|
83
83
|
filteredPopularTags.length === 0 && !popularState.loading
|
|
84
|
-
"
|
|
85
|
-
>
|
|
86
|
-
<div
|
|
87
|
-
class="flex flex-col items-center justify-center h-full gap-2"
|
|
88
|
-
>
|
|
89
|
-
<Icon name="pukaad:tag-empty" class="h-[123px] w-[180px]" />
|
|
90
|
-
<div class="text-gray font-body-medium">ไม่พบข้อมูล</div>
|
|
91
|
-
</div>
|
|
92
|
-
</ShadCommandEmpty>
|
|
93
|
-
|
|
94
|
-
<!-- Loading Indicator -->
|
|
95
|
-
<div v-if="popularState.loading" class="flex justify-center p-2">
|
|
96
|
-
<Icon
|
|
97
|
-
name="lucide:loader-2"
|
|
98
|
-
class="animate-spin h-5 w-5 text-primary"
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
<!-- Sentinel for Infinite Scroll -->
|
|
103
|
-
<div ref="popularSentinel" class="h-1" />
|
|
104
|
-
</ShadCommandList>
|
|
105
|
-
</ShadTabsContent>
|
|
106
|
-
|
|
107
|
-
<!-- Latest Tab -->
|
|
108
|
-
<ShadTabsContent value="latest" class="m-0">
|
|
109
|
-
<ShadCommandList class="max-h-64 overflow-y-auto">
|
|
110
|
-
<ShadCommandGroup>
|
|
111
|
-
<ShadCommandItem
|
|
112
|
-
v-for="tag in filteredLatestTags"
|
|
113
|
-
:key="tag.value"
|
|
114
|
-
:value="tag.value"
|
|
115
|
-
class="flex w-full justify-between"
|
|
116
|
-
@select="onSelectTag(tag)"
|
|
117
|
-
>
|
|
118
|
-
<span class="font-body-medium">{{ tag.label }}</span>
|
|
119
|
-
<div class="font-body-small text-gray">
|
|
120
|
-
{{ convertNumber(tag.postCount) }} โพสต์
|
|
121
|
-
</div>
|
|
122
|
-
</ShadCommandItem>
|
|
123
|
-
</ShadCommandGroup>
|
|
124
|
-
|
|
125
|
-
<!-- Initital Loading / Empty State -->
|
|
126
|
-
<ShadCommandEmpty
|
|
84
|
+
"
|
|
85
|
+
>
|
|
86
|
+
<div
|
|
87
|
+
class="flex flex-col items-center justify-center h-full gap-2"
|
|
88
|
+
>
|
|
89
|
+
<Icon name="pukaad:tag-empty" class="h-[123px] w-[180px]" />
|
|
90
|
+
<div class="text-gray font-body-medium">ไม่พบข้อมูล</div>
|
|
91
|
+
</div>
|
|
92
|
+
</ShadCommandEmpty>
|
|
93
|
+
|
|
94
|
+
<!-- Loading Indicator -->
|
|
95
|
+
<div v-if="popularState.loading" class="flex justify-center p-2">
|
|
96
|
+
<Icon
|
|
97
|
+
name="lucide:loader-2"
|
|
98
|
+
class="animate-spin h-5 w-5 text-primary"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<!-- Sentinel for Infinite Scroll -->
|
|
103
|
+
<div ref="popularSentinel" class="h-1" />
|
|
104
|
+
</ShadCommandList>
|
|
105
|
+
</ShadTabsContent>
|
|
106
|
+
|
|
107
|
+
<!-- Latest Tab -->
|
|
108
|
+
<ShadTabsContent value="latest" class="m-0">
|
|
109
|
+
<ShadCommandList class="max-h-64 overflow-y-auto">
|
|
110
|
+
<ShadCommandGroup>
|
|
111
|
+
<ShadCommandItem
|
|
112
|
+
v-for="tag in filteredLatestTags"
|
|
113
|
+
:key="tag.value"
|
|
114
|
+
:value="tag.value"
|
|
115
|
+
class="flex w-full justify-between"
|
|
116
|
+
@select="onSelectTag(tag)"
|
|
117
|
+
>
|
|
118
|
+
<span class="font-body-medium">{{ tag.label }}</span>
|
|
119
|
+
<div class="font-body-small text-gray">
|
|
120
|
+
{{ convertNumber(tag.postCount) }} โพสต์
|
|
121
|
+
</div>
|
|
122
|
+
</ShadCommandItem>
|
|
123
|
+
</ShadCommandGroup>
|
|
124
|
+
|
|
125
|
+
<!-- Initital Loading / Empty State -->
|
|
126
|
+
<ShadCommandEmpty
|
|
127
127
|
:force-show="
|
|
128
128
|
filteredLatestTags.length === 0 && !latestState.loading
|
|
129
|
-
"
|
|
130
|
-
>
|
|
131
|
-
<div
|
|
132
|
-
class="flex flex-col items-center justify-center h-full gap-2"
|
|
133
|
-
>
|
|
134
|
-
<Icon name="pukaad:tag-empty" class="h-[123px] w-[180px]" />
|
|
135
|
-
<div class="text-gray font-body-medium">ไม่พบข้อมูล</div>
|
|
136
|
-
</div>
|
|
137
|
-
</ShadCommandEmpty>
|
|
138
|
-
|
|
139
|
-
<!-- Loading Indicator -->
|
|
140
|
-
<div v-if="latestState.loading" class="flex justify-center p-2">
|
|
141
|
-
<Icon
|
|
142
|
-
name="lucide:loader-2"
|
|
143
|
-
class="animate-spin h-5 w-5 text-primary"
|
|
144
|
-
/>
|
|
145
|
-
</div>
|
|
146
|
-
|
|
147
|
-
<!-- Sentinel for Infinite Scroll -->
|
|
148
|
-
<div ref="latestSentinel" class="h-1" />
|
|
149
|
-
</ShadCommandList>
|
|
150
|
-
</ShadTabsContent>
|
|
151
|
-
</ShadTabs>
|
|
152
|
-
</ShadCommand>
|
|
153
|
-
</ShadPopoverContent>
|
|
154
|
-
</ShadPopover>
|
|
129
|
+
"
|
|
130
|
+
>
|
|
131
|
+
<div
|
|
132
|
+
class="flex flex-col items-center justify-center h-full gap-2"
|
|
133
|
+
>
|
|
134
|
+
<Icon name="pukaad:tag-empty" class="h-[123px] w-[180px]" />
|
|
135
|
+
<div class="text-gray font-body-medium">ไม่พบข้อมูล</div>
|
|
136
|
+
</div>
|
|
137
|
+
</ShadCommandEmpty>
|
|
138
|
+
|
|
139
|
+
<!-- Loading Indicator -->
|
|
140
|
+
<div v-if="latestState.loading" class="flex justify-center p-2">
|
|
141
|
+
<Icon
|
|
142
|
+
name="lucide:loader-2"
|
|
143
|
+
class="animate-spin h-5 w-5 text-primary"
|
|
144
|
+
/>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<!-- Sentinel for Infinite Scroll -->
|
|
148
|
+
<div ref="latestSentinel" class="h-1" />
|
|
149
|
+
</ShadCommandList>
|
|
150
|
+
</ShadTabsContent>
|
|
151
|
+
</ShadTabs>
|
|
152
|
+
</ShadCommand>
|
|
153
|
+
</ShadPopoverContent>
|
|
154
|
+
</ShadPopover>
|
|
155
155
|
</template>
|
|
156
156
|
|
|
157
157
|
<script setup>
|
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ShadFormField
|
|
3
|
-
ref="fieldRef"
|
|
4
|
-
:name="props.name"
|
|
5
|
-
:rules="props.rules || defaultRules"
|
|
6
|
-
v-slot="{ componentField, errorMessage }"
|
|
7
|
-
v-model="modelValue"
|
|
8
|
-
>
|
|
9
|
-
<ShadFormItem>
|
|
10
|
-
<ShadFormLabel v-if="props.label || $slots.label" class="w-full">
|
|
11
|
-
<slot name="label">
|
|
12
|
-
<div
|
|
2
|
+
<ShadFormField
|
|
3
|
+
ref="fieldRef"
|
|
4
|
+
:name="props.name"
|
|
5
|
+
:rules="props.rules || defaultRules"
|
|
6
|
+
v-slot="{ componentField, errorMessage }"
|
|
7
|
+
v-model="modelValue"
|
|
8
|
+
>
|
|
9
|
+
<ShadFormItem>
|
|
10
|
+
<ShadFormLabel v-if="props.label || $slots.label" class="w-full">
|
|
11
|
+
<slot name="label">
|
|
12
|
+
<div
|
|
13
13
|
:class="[
|
|
14
14
|
'flex-1',
|
|
15
15
|
props.disabledBorder && 'font-body-small-prominent'
|
|
16
|
-
]"
|
|
17
|
-
>
|
|
18
|
-
{{ props.label }}
|
|
19
|
-
<span v-if="props.required" class="text-destructive">*</span>
|
|
20
|
-
</div>
|
|
21
|
-
</slot>
|
|
22
|
-
<div
|
|
23
|
-
v-if="props.showCounter"
|
|
24
|
-
:class="[props.disabledBorder && 'font-body-small']"
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
v-if="props.limit > 0"
|
|
28
|
-
:class="[modelValue.length > props.limit && 'text-destructive']"
|
|
29
|
-
>
|
|
30
|
-
{{ modelValue.length }}/{{ props.limit }}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</ShadFormLabel>
|
|
34
|
-
|
|
35
|
-
<ShadInputGroup
|
|
16
|
+
]"
|
|
17
|
+
>
|
|
18
|
+
{{ props.label }}
|
|
19
|
+
<span v-if="props.required" class="text-destructive">*</span>
|
|
20
|
+
</div>
|
|
21
|
+
</slot>
|
|
22
|
+
<div
|
|
23
|
+
v-if="props.showCounter"
|
|
24
|
+
:class="[props.disabledBorder && 'font-body-small']"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
v-if="props.limit > 0"
|
|
28
|
+
:class="[modelValue.length > props.limit && 'text-destructive']"
|
|
29
|
+
>
|
|
30
|
+
{{ modelValue.length }}/{{ props.limit }}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</ShadFormLabel>
|
|
34
|
+
|
|
35
|
+
<ShadInputGroup
|
|
36
36
|
:class="[
|
|
37
37
|
'bg-white',
|
|
38
38
|
props.disabledBorder && 'border-0 ring-0 focus-within:border-0 focus-within:ring-0 '
|
|
39
|
-
]"
|
|
40
|
-
>
|
|
41
|
-
<ShadFormControl>
|
|
42
|
-
<ShadInputGroupInput
|
|
43
|
-
v-bind="componentField"
|
|
44
|
-
:id="props.id || props.name"
|
|
45
|
-
:class="props.class"
|
|
46
|
-
:readonly="props.readonly"
|
|
47
|
-
:disabled="props.disabled"
|
|
48
|
-
:placeholder="props.placeholder"
|
|
49
|
-
:type="props.type"
|
|
50
|
-
:maxlength="props.maxLength"
|
|
51
|
-
@click="emits('click', $event)"
|
|
52
|
-
@keydown="emits('keydown', $event)"
|
|
53
|
-
>
|
|
54
|
-
</ShadInputGroupInput>
|
|
55
|
-
</ShadFormControl>
|
|
56
|
-
<ShadInputGroupAddon
|
|
57
|
-
v-if="$slots.prepend || props.iconPrepend"
|
|
58
|
-
align="inline-start"
|
|
59
|
-
@click="emits('clickPrepend', $event)"
|
|
60
|
-
>
|
|
61
|
-
<ShadInputGroupButton
|
|
62
|
-
class="rounded-full"
|
|
63
|
-
size="icon-xs"
|
|
64
|
-
@click="emits('clickIconPrepend', $event)"
|
|
65
|
-
>
|
|
66
|
-
<slot name="prepend">
|
|
67
|
-
<Icon :name="props.iconPrepend" size="16" />
|
|
68
|
-
</slot>
|
|
69
|
-
</ShadInputGroupButton>
|
|
70
|
-
</ShadInputGroupAddon>
|
|
71
|
-
<ShadInputGroupAddon
|
|
72
|
-
v-if="$slots.append || props.iconAppend"
|
|
73
|
-
align="inline-end"
|
|
74
|
-
@click="emits('clickAppend', $event)"
|
|
75
|
-
>
|
|
76
|
-
<slot name="append">
|
|
77
|
-
<ShadInputGroupButton
|
|
78
|
-
class="rounded-full"
|
|
79
|
-
@click="emits('clickIconAppend', $event)"
|
|
80
|
-
>
|
|
81
|
-
<Icon :name="props.iconAppend" size="16" />
|
|
82
|
-
</ShadInputGroupButton>
|
|
83
|
-
</slot>
|
|
84
|
-
</ShadInputGroupAddon>
|
|
85
|
-
</ShadInputGroup>
|
|
86
|
-
|
|
87
|
-
<ShadFormDescription v-if="props.description">
|
|
88
|
-
{{ props.description }}
|
|
89
|
-
</ShadFormDescription>
|
|
90
|
-
<p
|
|
91
|
-
v-if="!props.disabledErrorMessage && errorMessage"
|
|
92
|
-
class="font-body-small text-destructive"
|
|
93
|
-
>
|
|
94
|
-
{{ errorMessage }}
|
|
95
|
-
</p>
|
|
96
|
-
</ShadFormItem>
|
|
97
|
-
</ShadFormField>
|
|
39
|
+
]"
|
|
40
|
+
>
|
|
41
|
+
<ShadFormControl>
|
|
42
|
+
<ShadInputGroupInput
|
|
43
|
+
v-bind="componentField"
|
|
44
|
+
:id="props.id || props.name"
|
|
45
|
+
:class="props.class"
|
|
46
|
+
:readonly="props.readonly"
|
|
47
|
+
:disabled="props.disabled"
|
|
48
|
+
:placeholder="props.placeholder"
|
|
49
|
+
:type="props.type"
|
|
50
|
+
:maxlength="props.maxLength"
|
|
51
|
+
@click="emits('click', $event)"
|
|
52
|
+
@keydown="emits('keydown', $event)"
|
|
53
|
+
>
|
|
54
|
+
</ShadInputGroupInput>
|
|
55
|
+
</ShadFormControl>
|
|
56
|
+
<ShadInputGroupAddon
|
|
57
|
+
v-if="$slots.prepend || props.iconPrepend"
|
|
58
|
+
align="inline-start"
|
|
59
|
+
@click="emits('clickPrepend', $event)"
|
|
60
|
+
>
|
|
61
|
+
<ShadInputGroupButton
|
|
62
|
+
class="rounded-full"
|
|
63
|
+
size="icon-xs"
|
|
64
|
+
@click="emits('clickIconPrepend', $event)"
|
|
65
|
+
>
|
|
66
|
+
<slot name="prepend">
|
|
67
|
+
<Icon :name="props.iconPrepend" size="16" />
|
|
68
|
+
</slot>
|
|
69
|
+
</ShadInputGroupButton>
|
|
70
|
+
</ShadInputGroupAddon>
|
|
71
|
+
<ShadInputGroupAddon
|
|
72
|
+
v-if="$slots.append || props.iconAppend"
|
|
73
|
+
align="inline-end"
|
|
74
|
+
@click="emits('clickAppend', $event)"
|
|
75
|
+
>
|
|
76
|
+
<slot name="append">
|
|
77
|
+
<ShadInputGroupButton
|
|
78
|
+
class="rounded-full"
|
|
79
|
+
@click="emits('clickIconAppend', $event)"
|
|
80
|
+
>
|
|
81
|
+
<Icon :name="props.iconAppend" size="16" />
|
|
82
|
+
</ShadInputGroupButton>
|
|
83
|
+
</slot>
|
|
84
|
+
</ShadInputGroupAddon>
|
|
85
|
+
</ShadInputGroup>
|
|
86
|
+
|
|
87
|
+
<ShadFormDescription v-if="props.description">
|
|
88
|
+
{{ props.description }}
|
|
89
|
+
</ShadFormDescription>
|
|
90
|
+
<p
|
|
91
|
+
v-if="!props.disabledErrorMessage && errorMessage"
|
|
92
|
+
class="font-body-small text-destructive"
|
|
93
|
+
>
|
|
94
|
+
{{ errorMessage }}
|
|
95
|
+
</p>
|
|
96
|
+
</ShadFormItem>
|
|
97
|
+
</ShadFormField>
|
|
98
98
|
</template>
|
|
99
99
|
|
|
100
100
|
<script setup>
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ShadFormField
|
|
3
|
-
ref="fieldRef"
|
|
4
|
-
:name="props.name"
|
|
5
|
-
:rules="props.rules || defaultRules"
|
|
6
|
-
v-slot="{ componentField }"
|
|
7
|
-
v-model="modelValue"
|
|
8
|
-
>
|
|
9
|
-
<ShadFormItem>
|
|
10
|
-
<ShadFormLabel class="w-full">
|
|
11
|
-
<slot name="label">
|
|
12
|
-
<div
|
|
2
|
+
<ShadFormField
|
|
3
|
+
ref="fieldRef"
|
|
4
|
+
:name="props.name"
|
|
5
|
+
:rules="props.rules || defaultRules"
|
|
6
|
+
v-slot="{ componentField }"
|
|
7
|
+
v-model="modelValue"
|
|
8
|
+
>
|
|
9
|
+
<ShadFormItem>
|
|
10
|
+
<ShadFormLabel class="w-full">
|
|
11
|
+
<slot name="label">
|
|
12
|
+
<div
|
|
13
13
|
:class="[
|
|
14
14
|
'flex-1',
|
|
15
15
|
props.disabledBorder && 'font-body-small-prominent'
|
|
16
|
-
]"
|
|
17
|
-
>
|
|
18
|
-
{{ props.label }}
|
|
19
|
-
<span v-if="props.required" class="text-destructive">*</span>
|
|
20
|
-
</div>
|
|
21
|
-
</slot>
|
|
22
|
-
<div
|
|
23
|
-
v-if="props.showCounter"
|
|
24
|
-
:class="[props.disabledBorder && 'font-body-small']"
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
v-if="props.limit > 0"
|
|
28
|
-
:class="[modelValue.length > props.limit && 'text-destructive']"
|
|
29
|
-
>
|
|
30
|
-
{{ modelValue.length }}/{{ props.limit }}
|
|
31
|
-
</div>
|
|
32
|
-
<div v-else>{{ modelValue.length }} ตัวอักษร</div>
|
|
33
|
-
</div>
|
|
34
|
-
</ShadFormLabel>
|
|
35
|
-
|
|
36
|
-
<ShadInputGroup
|
|
16
|
+
]"
|
|
17
|
+
>
|
|
18
|
+
{{ props.label }}
|
|
19
|
+
<span v-if="props.required" class="text-destructive">*</span>
|
|
20
|
+
</div>
|
|
21
|
+
</slot>
|
|
22
|
+
<div
|
|
23
|
+
v-if="props.showCounter"
|
|
24
|
+
:class="[props.disabledBorder && 'font-body-small']"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
v-if="props.limit > 0"
|
|
28
|
+
:class="[modelValue.length > props.limit && 'text-destructive']"
|
|
29
|
+
>
|
|
30
|
+
{{ modelValue.length }}/{{ props.limit }}
|
|
31
|
+
</div>
|
|
32
|
+
<div v-else>{{ modelValue.length }} ตัวอักษร</div>
|
|
33
|
+
</div>
|
|
34
|
+
</ShadFormLabel>
|
|
35
|
+
|
|
36
|
+
<ShadInputGroup
|
|
37
37
|
:class="[
|
|
38
38
|
props.disabledBorder && 'border-0 ring-0 focus-within:border-0 focus-within:ring-0'
|
|
39
|
-
]"
|
|
40
|
-
>
|
|
41
|
-
<ShadFormControl>
|
|
42
|
-
<ShadInputGroupTextarea
|
|
43
|
-
v-bind="componentField"
|
|
44
|
-
ref="textareaRef"
|
|
45
|
-
:id="props.id || props.name"
|
|
46
|
-
:class="props.class"
|
|
47
|
-
:readonly="props.readonly"
|
|
48
|
-
:disabled="props.disabled"
|
|
49
|
-
:placeholder="props.placeholder"
|
|
50
|
-
:rows="props.rows"
|
|
39
|
+
]"
|
|
40
|
+
>
|
|
41
|
+
<ShadFormControl>
|
|
42
|
+
<ShadInputGroupTextarea
|
|
43
|
+
v-bind="componentField"
|
|
44
|
+
ref="textareaRef"
|
|
45
|
+
:id="props.id || props.name"
|
|
46
|
+
:class="props.class"
|
|
47
|
+
:readonly="props.readonly"
|
|
48
|
+
:disabled="props.disabled"
|
|
49
|
+
:placeholder="props.placeholder"
|
|
50
|
+
:rows="props.rows"
|
|
51
51
|
:style="{
|
|
52
52
|
resize: props.resize,
|
|
53
53
|
height: props.fullHeight ? '100%' : props.height ? `${props.height}px` : void 0,
|
|
54
54
|
width: props.fullWidth ? '100%' : props.width ? `${props.width}px` : void 0
|
|
55
|
-
}"
|
|
56
|
-
@input="autoHeight()"
|
|
57
|
-
@keydown.space="handleSpace"
|
|
58
|
-
>
|
|
59
|
-
</ShadInputGroupTextarea>
|
|
60
|
-
</ShadFormControl>
|
|
61
|
-
</ShadInputGroup>
|
|
62
|
-
|
|
63
|
-
<ShadFormDescription v-if="props.description">
|
|
64
|
-
{{ props.description }}
|
|
65
|
-
</ShadFormDescription>
|
|
66
|
-
<ShadFormMessage v-if="!props.disabledErrorMessage" />
|
|
67
|
-
</ShadFormItem>
|
|
68
|
-
</ShadFormField>
|
|
55
|
+
}"
|
|
56
|
+
@input="autoHeight()"
|
|
57
|
+
@keydown.space="handleSpace"
|
|
58
|
+
>
|
|
59
|
+
</ShadInputGroupTextarea>
|
|
60
|
+
</ShadFormControl>
|
|
61
|
+
</ShadInputGroup>
|
|
62
|
+
|
|
63
|
+
<ShadFormDescription v-if="props.description">
|
|
64
|
+
{{ props.description }}
|
|
65
|
+
</ShadFormDescription>
|
|
66
|
+
<ShadFormMessage v-if="!props.disabledErrorMessage" />
|
|
67
|
+
</ShadFormItem>
|
|
68
|
+
</ShadFormField>
|
|
69
69
|
</template>
|
|
70
70
|
|
|
71
71
|
<script setup>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<!-- <div
|
|
3
|
-
v-if="timeStatus.show"
|
|
4
|
-
:class="[
|
|
5
|
-
'inline-flex rounded-[4px] p-[4px] font-body-small text-white',
|
|
6
|
-
timeStatus.backgroundColor,
|
|
7
|
-
]"
|
|
8
|
-
>
|
|
9
|
-
{{ timeStatus.text }}
|
|
10
|
-
</div> -->
|
|
2
|
+
<!-- <div
|
|
3
|
+
v-if="timeStatus.show"
|
|
4
|
+
:class="[
|
|
5
|
+
'inline-flex rounded-[4px] p-[4px] font-body-small text-white',
|
|
6
|
+
timeStatus.backgroundColor,
|
|
7
|
+
]"
|
|
8
|
+
>
|
|
9
|
+
{{ timeStatus.text }}
|
|
10
|
+
</div> -->
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script setup>
|