pukaad-ui-lib 1.2.0 → 1.3.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 +77 -77
- 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/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 → 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 +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 +5 -5
- package/dist/runtime/assets/svg/socials/instagram.svg +14 -14
- 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/button.vue +8 -8
- package/dist/runtime/components/card/card-announce2.vue +102 -104
- package/dist/runtime/components/card/card-place-detail.vue +90 -90
- package/dist/runtime/components/card/card-profile-about.vue +50 -50
- package/dist/runtime/components/card/card-profile-header.vue +94 -94
- package/dist/runtime/components/card/card-reaction.vue +29 -29
- package/dist/runtime/components/card/card-recommend-blog.vue +49 -49
- package/dist/runtime/components/card/card-recommend-place.vue +50 -50
- package/dist/runtime/components/card/card-recommend-publisher.vue +51 -51
- package/dist/runtime/components/card/card-review.vue +74 -74
- package/dist/runtime/components/card/card-user-blog.vue +66 -66
- package/dist/runtime/components/card/card-user-item.vue +54 -54
- package/dist/runtime/components/card/card.vue +25 -25
- package/dist/runtime/components/carousel.vue +29 -29
- package/dist/runtime/components/chip.vue +12 -12
- package/dist/runtime/components/collapse/collapse-multiple.vue +38 -38
- package/dist/runtime/components/collapse/collapse.vue +23 -23
- package/dist/runtime/components/comment.vue +216 -216
- package/dist/runtime/components/dialog/dialog-2FA-generate.vue +58 -58
- package/dist/runtime/components/dialog/dialog-2FA.vue +20 -20
- package/dist/runtime/components/dialog/dialog-email-OTP.vue +26 -26
- package/dist/runtime/components/dialog/dialog-phone-OTP.vue +25 -25
- package/dist/runtime/components/display/display-image-place.vue +4 -4
- package/dist/runtime/components/display/display-image-review.vue +16 -16
- package/dist/runtime/components/display/display-image.vue +49 -49
- package/dist/runtime/components/divider.vue +8 -8
- package/dist/runtime/components/draggable.vue +13 -13
- package/dist/runtime/components/drawer/drawer-notification.vue +286 -286
- package/dist/runtime/components/drawer/drawer-post-blog.vue +80 -80
- package/dist/runtime/components/drawer/drawer-profile-about.vue +38 -38
- package/dist/runtime/components/drawer/drawer.vue +16 -16
- package/dist/runtime/components/dropdown.vue +8 -8
- package/dist/runtime/components/filter/filter-list-chip.vue +15 -15
- 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 +29 -29
- package/dist/runtime/components/input/input-OTP.vue +16 -16
- package/dist/runtime/components/input/input-address.vue +81 -81
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue +80 -80
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-checkbox.vue +103 -103
- package/dist/runtime/components/input/input-combobox.d.vue.ts +5 -1
- package/dist/runtime/components/input/input-combobox.vue +97 -81
- package/dist/runtime/components/input/input-combobox.vue.d.ts +5 -1
- package/dist/runtime/components/input/input-comment.vue +6 -6
- package/dist/runtime/components/input/input-content.vue +5 -5
- package/dist/runtime/components/input/input-date-opening.vue +175 -176
- package/dist/runtime/components/input/input-email.vue +8 -8
- package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-file.vue +76 -76
- package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-link.vue +39 -39
- package/dist/runtime/components/input/input-media.vue +36 -36
- package/dist/runtime/components/input/input-password.vue +40 -40
- package/dist/runtime/components/input/input-phone.vue +6 -6
- package/dist/runtime/components/input/input-radio.d.vue.ts +4 -4
- package/dist/runtime/components/input/input-radio.vue +87 -87
- package/dist/runtime/components/input/input-radio.vue.d.ts +4 -4
- 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 +69 -69
- package/dist/runtime/components/input/input-select-tag.vue +51 -51
- package/dist/runtime/components/input/input-select.vue +42 -42
- 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 +37 -37
- package/dist/runtime/components/input/input-text-field.vue +83 -83
- package/dist/runtime/components/input/input-textarea.vue +54 -54
- 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/modal/modal-2FA-generate.vue +62 -62
- package/dist/runtime/components/modal/modal-2FA.vue +21 -21
- 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-email-OTP.vue +31 -31
- package/dist/runtime/components/modal/modal-password-new.vue +27 -27
- package/dist/runtime/components/modal/modal-password.vue +27 -27
- package/dist/runtime/components/modal/modal-personal-card-ID.vue +194 -194
- package/dist/runtime/components/modal/modal-phone-OTP.vue +38 -38
- package/dist/runtime/components/modal/modal-profile-edit.vue +165 -165
- package/dist/runtime/components/modal/modal-province-domain.vue +23 -23
- package/dist/runtime/components/modal/modal-report.vue +49 -49
- package/dist/runtime/components/modal/modal-review-detail.vue +118 -118
- package/dist/runtime/components/modal/modal-secure.vue +10 -10
- package/dist/runtime/components/modal/modal-share.vue +24 -24
- package/dist/runtime/components/modal/modal-user-account-list.vue +29 -29
- package/dist/runtime/components/modal/modal-user-account-search.vue +24 -24
- package/dist/runtime/components/modal/modal.vue +27 -27
- package/dist/runtime/components/pagination.vue +43 -43
- package/dist/runtime/components/picker/picker-image-cover-profile.vue +91 -91
- package/dist/runtime/components/picker/picker-image-profile.vue +82 -82
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +14 -14
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue +27 -27
- 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.vue +78 -78
- package/dist/runtime/components/table.d.vue.ts +6 -6
- package/dist/runtime/components/table.vue +82 -82
- package/dist/runtime/components/table.vue.d.ts +6 -6
- package/dist/runtime/components/tooltip.vue +19 -19
- 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.vue +13 -13
- 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/button/Button.vue +8 -8
- 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/checkbox/Checkbox.vue +14 -14
- package/dist/runtime/components/ui/command/Command.vue +7 -7
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +1 -1
- package/dist/runtime/components/ui/command/CommandDialog.vue +11 -11
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +1 -1
- package/dist/runtime/components/ui/command/CommandEmpty.vue +10 -10
- package/dist/runtime/components/ui/command/CommandGroup.vue +12 -12
- 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.vue +21 -21
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +7 -7
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +3 -3
- 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.vue +20 -20
- 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.vue +9 -9
- 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.vue +7 -7
- 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 +5 -5
- 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 +7 -7
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +4 -4
- 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/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 +8 -8
- 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.vue +5 -5
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +6 -6
- package/dist/runtime/components/ui/select/Select.vue +7 -7
- package/dist/runtime/components/ui/select/SelectContent.vue +10 -10
- 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 +6 -6
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +6 -6
- 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/sheet/Sheet.vue +3 -3
- package/dist/runtime/components/ui/sheet/SheetClose.vue +3 -3
- package/dist/runtime/components/ui/sheet/SheetContent.vue +20 -20
- 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/spinner/Spinner.vue +5 -5
- 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 +10 -10
- 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/video.vue +2 -2
- package/package.json +2 -2
|
@@ -1,292 +1,292 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Drawer title="การแจ้งเตือน" v-model="isOpen" :width="707">
|
|
3
|
-
<template #header>
|
|
4
|
-
<div class="flex justify-between p-[16px]">
|
|
5
|
-
<div class="font-title-medium-prominent">การแจ้งเตือน</div>
|
|
6
|
-
<div class="flex gap-[16px]">
|
|
7
|
-
<Dropdown>
|
|
8
|
-
<template #default="{ isOpen }">
|
|
9
|
-
<Button color="black" variant="text" disabled-padding>
|
|
10
|
-
<Icon :size="24" name="lucide:settings" />
|
|
11
|
-
</Button>
|
|
12
|
-
</template>
|
|
13
|
-
<template #content>
|
|
14
|
-
<div class="w-[252px] font-body-large">
|
|
15
|
-
<div
|
|
16
|
-
class="hover:bg-bright cursor-pointer flex gap-[4px] p-[8px] items-center"
|
|
17
|
-
>
|
|
18
|
-
<Icon :size="16" name="lucide:check" />
|
|
19
|
-
<div class="font-body-medium">
|
|
20
|
-
ทำเครื่องหมายว่าอ่านแล้วทั้งหมด
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<Divider />
|
|
24
|
-
<NuxtLink
|
|
25
|
-
to="/setting/notification"
|
|
26
|
-
class="hover:bg-bright cursor-pointer flex gap-[4px] p-[8px] items-center"
|
|
27
|
-
@click="closeDrawer"
|
|
28
|
-
>
|
|
29
|
-
<Icon :size="20" name="lucide:settings" />
|
|
30
|
-
<div class="font-body-medium">ตั้งค่าการแจ้งเตือน</div>
|
|
31
|
-
</NuxtLink>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
</Dropdown>
|
|
35
|
-
<Button
|
|
36
|
-
color="black"
|
|
37
|
-
variant="text"
|
|
38
|
-
disabled-padding
|
|
39
|
-
@click="closeDrawer"
|
|
40
|
-
>
|
|
41
|
-
<Icon :name="'lucide:x'" :size="24" />
|
|
42
|
-
</Button>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</template>
|
|
46
|
-
<div class="flex flex-col gap-[16px]">
|
|
47
|
-
<Card full-width>
|
|
48
|
-
<Tab
|
|
49
|
-
:items="items"
|
|
50
|
-
disabled-content
|
|
51
|
-
tabButtonSize="small"
|
|
52
|
-
:tabButtonGap="16"
|
|
53
|
-
v-model="tab"
|
|
54
|
-
>
|
|
55
|
-
<template
|
|
56
|
-
v-for="(item, i) in items"
|
|
57
|
-
:key="i"
|
|
58
|
-
#[`tab-${item.value}-label-text`]
|
|
59
|
-
>
|
|
60
|
-
<div class="flex gap-[8px] items-center">
|
|
61
|
-
<Icon :name="item.icon" :size="20" />
|
|
62
|
-
<div class="relative">
|
|
63
|
-
{{ item.label }}
|
|
64
|
-
<!-- <Avatar
|
|
65
|
-
v-if="item.is_noti"
|
|
66
|
-
class="absolute top-0 -right-[8px]"
|
|
67
|
-
:size="8"
|
|
68
|
-
color="error"
|
|
69
|
-
/> -->
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</template>
|
|
73
|
-
</Tab>
|
|
74
|
-
</Card>
|
|
75
|
-
<Tab v-model="tab" :items="items" :tabButtonGap="16" disabled-header>
|
|
76
|
-
<template #tab-content-general>
|
|
77
|
-
<div class="flex flex-col gap-[4px] w-full">
|
|
78
|
-
<div v-for="(item, index) in props.items.general" :key="index">
|
|
79
|
-
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
80
|
-
<div class="flex gap-[8px] items-center">
|
|
81
|
-
<div>
|
|
82
|
-
<!-- <Avatar :size="40" :src="item.avatar" /> -->
|
|
83
|
-
</div>
|
|
84
|
-
<div class="flex flex-col gap-[4px]">
|
|
85
|
-
<div class="font-body-large">
|
|
86
|
-
{{ item.content }}
|
|
87
|
-
</div>
|
|
88
|
-
<div class="font-body-small text-gray">
|
|
89
|
-
{{ item.time_created }}
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
<div class="flex items-center gap-[8px] ml-auto">
|
|
93
|
-
<Image
|
|
94
|
-
v-if="item.image"
|
|
95
|
-
:width="40"
|
|
96
|
-
:height="40"
|
|
97
|
-
:src="item.image"
|
|
98
|
-
class="rounded-[4px]"
|
|
99
|
-
/>
|
|
100
|
-
<div
|
|
101
|
-
v-else-if="item.video_url"
|
|
102
|
-
class="relative w-[40px] h-[40px] rounded-[4px] bg-black flex justify-center items-center overflow-hidden"
|
|
103
|
-
>
|
|
104
|
-
<video
|
|
105
|
-
class="w-[40px] h-[40px] object-cover rounded-[4px]"
|
|
106
|
-
:src="item.video_url"
|
|
107
|
-
preload="metadata"
|
|
108
|
-
/>
|
|
109
|
-
<div
|
|
110
|
-
class="absolute bg-black/50 w-[24px] h-[24px] rounded-full flex justify-center items-center"
|
|
111
|
-
>
|
|
112
|
-
<Icon
|
|
113
|
-
name="material-symbols:play-arrow"
|
|
114
|
-
class="text-white"
|
|
115
|
-
/>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
<div class="w-[20px]">
|
|
119
|
-
<Icon
|
|
120
|
-
v-if="item.is_unread"
|
|
121
|
-
class="text-primary"
|
|
122
|
-
:size="20"
|
|
123
|
-
name="fad:armrecording"
|
|
124
|
-
/>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</Card>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</template>
|
|
132
|
-
|
|
133
|
-
<template #tab-content-order>
|
|
134
|
-
<div class="flex flex-col gap-[4px]">
|
|
135
|
-
<div v-for="(item, index) in props.items.order" :key="index">
|
|
136
|
-
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
137
|
-
<div class="flex gap-[8px] items-center">
|
|
138
|
-
<div>
|
|
139
|
-
<Image
|
|
140
|
-
v-if="item.image_url"
|
|
141
|
-
:width="40"
|
|
142
|
-
:height="40"
|
|
143
|
-
:src="item.image_url"
|
|
144
|
-
class="rounded-[4px]"
|
|
145
|
-
/>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="flex flex-col gap-[4px]">
|
|
148
|
-
<p class="font-body-large">
|
|
149
|
-
<template
|
|
150
|
-
v-for="(text, index) in item.content"
|
|
151
|
-
:key="index"
|
|
152
|
-
>
|
|
153
|
-
<span
|
|
2
|
+
<Drawer title="การแจ้งเตือน" v-model="isOpen" :width="707">
|
|
3
|
+
<template #header>
|
|
4
|
+
<div class="flex justify-between p-[16px]">
|
|
5
|
+
<div class="font-title-medium-prominent">การแจ้งเตือน</div>
|
|
6
|
+
<div class="flex gap-[16px]">
|
|
7
|
+
<Dropdown>
|
|
8
|
+
<template #default="{ isOpen }">
|
|
9
|
+
<Button color="black" variant="text" disabled-padding>
|
|
10
|
+
<Icon :size="24" name="lucide:settings" />
|
|
11
|
+
</Button>
|
|
12
|
+
</template>
|
|
13
|
+
<template #content>
|
|
14
|
+
<div class="w-[252px] font-body-large">
|
|
15
|
+
<div
|
|
16
|
+
class="hover:bg-bright cursor-pointer flex gap-[4px] p-[8px] items-center"
|
|
17
|
+
>
|
|
18
|
+
<Icon :size="16" name="lucide:check" />
|
|
19
|
+
<div class="font-body-medium">
|
|
20
|
+
ทำเครื่องหมายว่าอ่านแล้วทั้งหมด
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<Divider />
|
|
24
|
+
<NuxtLink
|
|
25
|
+
to="/setting/notification"
|
|
26
|
+
class="hover:bg-bright cursor-pointer flex gap-[4px] p-[8px] items-center"
|
|
27
|
+
@click="closeDrawer"
|
|
28
|
+
>
|
|
29
|
+
<Icon :size="20" name="lucide:settings" />
|
|
30
|
+
<div class="font-body-medium">ตั้งค่าการแจ้งเตือน</div>
|
|
31
|
+
</NuxtLink>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
</Dropdown>
|
|
35
|
+
<Button
|
|
36
|
+
color="black"
|
|
37
|
+
variant="text"
|
|
38
|
+
disabled-padding
|
|
39
|
+
@click="closeDrawer"
|
|
40
|
+
>
|
|
41
|
+
<Icon :name="'lucide:x'" :size="24" />
|
|
42
|
+
</Button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
<div class="flex flex-col gap-[16px]">
|
|
47
|
+
<Card full-width>
|
|
48
|
+
<Tab
|
|
49
|
+
:items="items"
|
|
50
|
+
disabled-content
|
|
51
|
+
tabButtonSize="small"
|
|
52
|
+
:tabButtonGap="16"
|
|
53
|
+
v-model="tab"
|
|
54
|
+
>
|
|
55
|
+
<template
|
|
56
|
+
v-for="(item, i) in items"
|
|
57
|
+
:key="i"
|
|
58
|
+
#[`tab-${item.value}-label-text`]
|
|
59
|
+
>
|
|
60
|
+
<div class="flex gap-[8px] items-center">
|
|
61
|
+
<Icon :name="item.icon" :size="20" />
|
|
62
|
+
<div class="relative">
|
|
63
|
+
{{ item.label }}
|
|
64
|
+
<!-- <Avatar
|
|
65
|
+
v-if="item.is_noti"
|
|
66
|
+
class="absolute top-0 -right-[8px]"
|
|
67
|
+
:size="8"
|
|
68
|
+
color="error"
|
|
69
|
+
/> -->
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
</Tab>
|
|
74
|
+
</Card>
|
|
75
|
+
<Tab v-model="tab" :items="items" :tabButtonGap="16" disabled-header>
|
|
76
|
+
<template #tab-content-general>
|
|
77
|
+
<div class="flex flex-col gap-[4px] w-full">
|
|
78
|
+
<div v-for="(item, index) in props.items.general" :key="index">
|
|
79
|
+
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
80
|
+
<div class="flex gap-[8px] items-center">
|
|
81
|
+
<div>
|
|
82
|
+
<!-- <Avatar :size="40" :src="item.avatar" /> -->
|
|
83
|
+
</div>
|
|
84
|
+
<div class="flex flex-col gap-[4px]">
|
|
85
|
+
<div class="font-body-large">
|
|
86
|
+
{{ item.content }}
|
|
87
|
+
</div>
|
|
88
|
+
<div class="font-body-small text-gray">
|
|
89
|
+
{{ item.time_created }}
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="flex items-center gap-[8px] ml-auto">
|
|
93
|
+
<Image
|
|
94
|
+
v-if="item.image"
|
|
95
|
+
:width="40"
|
|
96
|
+
:height="40"
|
|
97
|
+
:src="item.image"
|
|
98
|
+
class="rounded-[4px]"
|
|
99
|
+
/>
|
|
100
|
+
<div
|
|
101
|
+
v-else-if="item.video_url"
|
|
102
|
+
class="relative w-[40px] h-[40px] rounded-[4px] bg-black flex justify-center items-center overflow-hidden"
|
|
103
|
+
>
|
|
104
|
+
<video
|
|
105
|
+
class="w-[40px] h-[40px] object-cover rounded-[4px]"
|
|
106
|
+
:src="item.video_url"
|
|
107
|
+
preload="metadata"
|
|
108
|
+
/>
|
|
109
|
+
<div
|
|
110
|
+
class="absolute bg-black/50 w-[24px] h-[24px] rounded-full flex justify-center items-center"
|
|
111
|
+
>
|
|
112
|
+
<Icon
|
|
113
|
+
name="material-symbols:play-arrow"
|
|
114
|
+
class="text-white"
|
|
115
|
+
/>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="w-[20px]">
|
|
119
|
+
<Icon
|
|
120
|
+
v-if="item.is_unread"
|
|
121
|
+
class="text-primary"
|
|
122
|
+
:size="20"
|
|
123
|
+
name="fad:armrecording"
|
|
124
|
+
/>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</Card>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</template>
|
|
132
|
+
|
|
133
|
+
<template #tab-content-order>
|
|
134
|
+
<div class="flex flex-col gap-[4px]">
|
|
135
|
+
<div v-for="(item, index) in props.items.order" :key="index">
|
|
136
|
+
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
137
|
+
<div class="flex gap-[8px] items-center">
|
|
138
|
+
<div>
|
|
139
|
+
<Image
|
|
140
|
+
v-if="item.image_url"
|
|
141
|
+
:width="40"
|
|
142
|
+
:height="40"
|
|
143
|
+
:src="item.image_url"
|
|
144
|
+
class="rounded-[4px]"
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="flex flex-col gap-[4px]">
|
|
148
|
+
<p class="font-body-large">
|
|
149
|
+
<template
|
|
150
|
+
v-for="(text, index) in item.content"
|
|
151
|
+
:key="index"
|
|
152
|
+
>
|
|
153
|
+
<span
|
|
154
154
|
:class="
|
|
155
155
|
text.is_active ? 'text-primary' : 'text-black'
|
|
156
|
-
"
|
|
157
|
-
>
|
|
158
|
-
{{ text.text }}
|
|
159
|
-
</span>
|
|
160
|
-
</template>
|
|
161
|
-
</p>
|
|
162
|
-
|
|
163
|
-
<div class="font-body-small text-gray">
|
|
164
|
-
{{ item.time_created }}
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
<div class="flex items-center w-[20px] gap-[8px] ml-auto">
|
|
168
|
-
<Icon
|
|
169
|
-
v-if="item.is_unread"
|
|
170
|
-
class="text-primary"
|
|
171
|
-
:size="20"
|
|
172
|
-
name="fad:armrecording"
|
|
173
|
-
/>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</Card>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</template>
|
|
180
|
-
|
|
181
|
-
<template #tab-content-promotion>
|
|
182
|
-
<div class="flex flex-col gap-[4px]">
|
|
183
|
-
<div v-for="(item, index) in props.items.promotion" :key="index">
|
|
184
|
-
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
185
|
-
<div class="flex gap-[8px] items-center">
|
|
186
|
-
<div>
|
|
187
|
-
<Image
|
|
188
|
-
v-if="item.image_url"
|
|
189
|
-
:width="40"
|
|
190
|
-
:height="40"
|
|
191
|
-
:src="item.image_url"
|
|
192
|
-
class="rounded-[4px]"
|
|
193
|
-
/>
|
|
194
|
-
</div>
|
|
195
|
-
<div class="flex flex-col gap-[4px]">
|
|
196
|
-
<div class="font-body-large">
|
|
197
|
-
{{ item.content }}
|
|
198
|
-
</div>
|
|
199
|
-
<div class="font-body-small text-gray">
|
|
200
|
-
{{ item.time_created }}
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
204
|
-
<Icon
|
|
205
|
-
v-if="item.is_unread"
|
|
206
|
-
class="text-primary"
|
|
207
|
-
:size="20"
|
|
208
|
-
name="fad:armrecording"
|
|
209
|
-
/>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
</Card>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
</template>
|
|
216
|
-
|
|
217
|
-
<template #tab-content-activity>
|
|
218
|
-
<div class="flex flex-col gap-[4px]">
|
|
219
|
-
<div v-for="(item, index) in props.items.activity" :key="index">
|
|
220
|
-
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
221
|
-
<div class="flex gap-[8px] items-center">
|
|
222
|
-
<div>
|
|
223
|
-
<Image
|
|
224
|
-
v-if="item.image_url"
|
|
225
|
-
:width="40"
|
|
226
|
-
:height="40"
|
|
227
|
-
:src="item.image_url"
|
|
228
|
-
class="rounded-[4px]"
|
|
229
|
-
/>
|
|
230
|
-
</div>
|
|
231
|
-
<div class="flex flex-col gap-[4px]">
|
|
232
|
-
<div class="font-body-large">
|
|
233
|
-
{{ item.content }}
|
|
234
|
-
</div>
|
|
235
|
-
<div class="font-body-small text-gray">
|
|
236
|
-
{{ item.time_created }}
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
240
|
-
<Icon
|
|
241
|
-
v-if="item.is_unread"
|
|
242
|
-
class="text-primary"
|
|
243
|
-
:size="20"
|
|
244
|
-
name="fad:armrecording"
|
|
245
|
-
/>
|
|
246
|
-
</div>
|
|
247
|
-
</div>
|
|
248
|
-
</Card>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
</template>
|
|
252
|
-
|
|
253
|
-
<template #tab-content-system>
|
|
254
|
-
<div class="flex flex-col gap-[4px]">
|
|
255
|
-
<div v-for="(item, index) in props.items.system" :key="index">
|
|
256
|
-
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
257
|
-
<div class="flex gap-[8px] items-center">
|
|
258
|
-
<div>
|
|
259
|
-
<Icon
|
|
260
|
-
class="text-gray"
|
|
261
|
-
name="pukaad:memsg-square"
|
|
262
|
-
:width="40"
|
|
263
|
-
:height="40"
|
|
264
|
-
/>
|
|
265
|
-
</div>
|
|
266
|
-
<div class="flex flex-col gap-[4px]">
|
|
267
|
-
<div class="font-body-large">
|
|
268
|
-
{{ item.content }}
|
|
269
|
-
</div>
|
|
270
|
-
<div class="font-body-small text-gray">
|
|
271
|
-
{{ item.time_created }}
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
275
|
-
<Icon
|
|
276
|
-
v-if="item.is_unread"
|
|
277
|
-
class="text-primary"
|
|
278
|
-
:size="20"
|
|
279
|
-
name="fad:armrecording"
|
|
280
|
-
/>
|
|
281
|
-
</div>
|
|
282
|
-
</div>
|
|
283
|
-
</Card>
|
|
284
|
-
</div>
|
|
285
|
-
</div>
|
|
286
|
-
</template>
|
|
287
|
-
</Tab>
|
|
288
|
-
</div>
|
|
289
|
-
</Drawer>
|
|
156
|
+
"
|
|
157
|
+
>
|
|
158
|
+
{{ text.text }}
|
|
159
|
+
</span>
|
|
160
|
+
</template>
|
|
161
|
+
</p>
|
|
162
|
+
|
|
163
|
+
<div class="font-body-small text-gray">
|
|
164
|
+
{{ item.time_created }}
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="flex items-center w-[20px] gap-[8px] ml-auto">
|
|
168
|
+
<Icon
|
|
169
|
+
v-if="item.is_unread"
|
|
170
|
+
class="text-primary"
|
|
171
|
+
:size="20"
|
|
172
|
+
name="fad:armrecording"
|
|
173
|
+
/>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</Card>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</template>
|
|
180
|
+
|
|
181
|
+
<template #tab-content-promotion>
|
|
182
|
+
<div class="flex flex-col gap-[4px]">
|
|
183
|
+
<div v-for="(item, index) in props.items.promotion" :key="index">
|
|
184
|
+
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
185
|
+
<div class="flex gap-[8px] items-center">
|
|
186
|
+
<div>
|
|
187
|
+
<Image
|
|
188
|
+
v-if="item.image_url"
|
|
189
|
+
:width="40"
|
|
190
|
+
:height="40"
|
|
191
|
+
:src="item.image_url"
|
|
192
|
+
class="rounded-[4px]"
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
<div class="flex flex-col gap-[4px]">
|
|
196
|
+
<div class="font-body-large">
|
|
197
|
+
{{ item.content }}
|
|
198
|
+
</div>
|
|
199
|
+
<div class="font-body-small text-gray">
|
|
200
|
+
{{ item.time_created }}
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
204
|
+
<Icon
|
|
205
|
+
v-if="item.is_unread"
|
|
206
|
+
class="text-primary"
|
|
207
|
+
:size="20"
|
|
208
|
+
name="fad:armrecording"
|
|
209
|
+
/>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</Card>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</template>
|
|
216
|
+
|
|
217
|
+
<template #tab-content-activity>
|
|
218
|
+
<div class="flex flex-col gap-[4px]">
|
|
219
|
+
<div v-for="(item, index) in props.items.activity" :key="index">
|
|
220
|
+
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
221
|
+
<div class="flex gap-[8px] items-center">
|
|
222
|
+
<div>
|
|
223
|
+
<Image
|
|
224
|
+
v-if="item.image_url"
|
|
225
|
+
:width="40"
|
|
226
|
+
:height="40"
|
|
227
|
+
:src="item.image_url"
|
|
228
|
+
class="rounded-[4px]"
|
|
229
|
+
/>
|
|
230
|
+
</div>
|
|
231
|
+
<div class="flex flex-col gap-[4px]">
|
|
232
|
+
<div class="font-body-large">
|
|
233
|
+
{{ item.content }}
|
|
234
|
+
</div>
|
|
235
|
+
<div class="font-body-small text-gray">
|
|
236
|
+
{{ item.time_created }}
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
240
|
+
<Icon
|
|
241
|
+
v-if="item.is_unread"
|
|
242
|
+
class="text-primary"
|
|
243
|
+
:size="20"
|
|
244
|
+
name="fad:armrecording"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</Card>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
</template>
|
|
252
|
+
|
|
253
|
+
<template #tab-content-system>
|
|
254
|
+
<div class="flex flex-col gap-[4px]">
|
|
255
|
+
<div v-for="(item, index) in props.items.system" :key="index">
|
|
256
|
+
<Card full-width class="hover:bg-bright cursor-pointer">
|
|
257
|
+
<div class="flex gap-[8px] items-center">
|
|
258
|
+
<div>
|
|
259
|
+
<Icon
|
|
260
|
+
class="text-gray"
|
|
261
|
+
name="pukaad:memsg-square"
|
|
262
|
+
:width="40"
|
|
263
|
+
:height="40"
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="flex flex-col gap-[4px]">
|
|
267
|
+
<div class="font-body-large">
|
|
268
|
+
{{ item.content }}
|
|
269
|
+
</div>
|
|
270
|
+
<div class="font-body-small text-gray">
|
|
271
|
+
{{ item.time_created }}
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
<div class="flex w-[20px] items-center gap-[8px] ml-auto">
|
|
275
|
+
<Icon
|
|
276
|
+
v-if="item.is_unread"
|
|
277
|
+
class="text-primary"
|
|
278
|
+
:size="20"
|
|
279
|
+
name="fad:armrecording"
|
|
280
|
+
/>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</Card>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</template>
|
|
287
|
+
</Tab>
|
|
288
|
+
</div>
|
|
289
|
+
</Drawer>
|
|
290
290
|
</template>
|
|
291
291
|
|
|
292
292
|
<script setup>
|