@phonghq/go-chat 1.0.3 → 1.0.4
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/go-chat.es.js +6578 -6530
- package/dist/go-chat.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/IconArrowLeft.vue.d.ts +0 -2
- package/dist/assets/icons/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/IconPlan.vue.d.ts +0 -2
- package/dist/assets/icons/IconPlus.vue.d.ts +0 -2
- package/dist/assets/icons/IconSearch.vue.d.ts +0 -32
- package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
- package/dist/chat/App.vue.d.ts +0 -5
- package/dist/chat/main.d.ts +0 -6
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
- package/dist/chat/page/error/Error.vue.d.ts +0 -2
- package/dist/chat/page/home/ChatList.vue.d.ts +0 -20
- package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -16
- package/dist/chat/page/home/Home.vue.d.ts +0 -14
- package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -10
- package/dist/chat/page/home/InputChat.vue.d.ts +0 -19
- package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -6
- package/dist/components/ListenEvent.vue.d.ts +0 -2
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -22
- package/dist/components/chat/call/Calling.vue.d.ts +0 -7
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -2
- package/dist/components/chat/customer/Avatar.vue.d.ts +0 -11
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
- package/dist/components/common/CustomLoading.vue.d.ts +0 -2
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
- package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
- package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
- package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
- package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
- package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
- package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
- package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
- package/dist/components/layout/Blank.vue.d.ts +0 -9
- package/dist/components/layout/Default.vue.d.ts +0 -9
- package/dist/components/modal/Confirm.vue.d.ts +0 -2
- package/dist/components/ui/button/CButton.vue.d.ts +0 -19
- package/dist/components/ui/button/c-button.d.ts +0 -7
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
- package/dist/components/ui/checkbox/index.d.ts +0 -1
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/index.d.ts +0 -3
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dialog/index.d.ts +0 -9
- package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
- package/dist/components/ui/drawer/index.d.ts +0 -8
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
- package/dist/components/ui/popover/index.d.ts +0 -3
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
- package/dist/components/ui/radio-group/index.d.ts +0 -2
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/composable/useCallHelper.d.ts +0 -23
- package/dist/composable/useInitData.d.ts +0 -11
- package/dist/composable/useModalConfirm.d.ts +0 -5
- package/dist/constant/color.d.ts +0 -22
- package/dist/constant/datetime.d.ts +0 -5
- package/dist/constant/general.d.ts +0 -8
- package/dist/constant/message.d.ts +0 -8
- package/dist/constant/mqtt.d.ts +0 -4
- package/dist/constant/user.d.ts +0 -8
- package/dist/lib/utils.d.ts +0 -2
- package/dist/plugins/axios-gci.d.ts +0 -3
- package/dist/plugins/axios.d.ts +0 -3
- package/dist/plugins/mqtt.d.ts +0 -10
- package/dist/plugins/sdk.d.ts +0 -19
- package/dist/plugins/websocket.d.ts +0 -4
- package/dist/test/assets/icons/IconArrowLeft.vue.js +0 -29
- package/dist/test/assets/icons/IconPhone.vue.js +0 -19
- package/dist/test/assets/icons/IconPlan.vue.js +0 -19
- package/dist/test/assets/icons/IconPlus.vue.js +0 -22
- package/dist/test/assets/icons/IconSearch.vue.js +0 -68
- package/dist/test/assets/icons/call/IconMic.vue.js +0 -123
- package/dist/test/assets/icons/call/IconPhone.vue.js +0 -35
- package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +0 -35
- package/dist/test/assets/icons/call/IconSpeaker.vue.js +0 -62
- package/dist/test/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
- package/dist/test/assets/icons/customer-detail/IconArrow.vue.js +0 -22
- package/dist/test/assets/icons/customer-detail/IconCheck.vue.js +0 -27
- package/dist/test/assets/icons/customer-detail/IconDate.vue.js +0 -43
- package/dist/test/assets/icons/customer-detail/IconGroup.vue.js +0 -48
- package/dist/test/assets/icons/customer-detail/IconMessage.vue.js +0 -28
- package/dist/test/assets/icons/customer-detail/IconNote.vue.js +0 -29
- package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +0 -21
- package/dist/test/assets/icons/customer-detail/IconPin.vue.js +0 -29
- package/dist/test/assets/icons/customer-detail/IconSearch.vue.js +0 -29
- package/dist/test/chat/App.vue.js +0 -502
- package/dist/test/chat/main.js +0 -6
- package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
- package/dist/test/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
- package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -136
- package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +0 -235
- package/dist/test/chat/page/customer-detail/SubInformation.vue.js +0 -102
- package/dist/test/chat/page/error/Error.vue.js +0 -64
- package/dist/test/chat/page/home/ChatList.vue.js +0 -380
- package/dist/test/chat/page/home/ChatMessage.vue.js +0 -271
- package/dist/test/chat/page/home/Home.vue.js +0 -327
- package/dist/test/chat/page/home/HomeHeader.vue.js +0 -122
- package/dist/test/chat/page/home/InputChat.vue.js +0 -226
- package/dist/test/chat/page/home/NewCustomer.vue.js +0 -82
- package/dist/test/components/ListenEvent.vue.js +0 -45
- package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -197
- package/dist/test/components/chat/call/Calling.vue.js +0 -291
- package/dist/test/components/chat/card/CardCustomerDetail.vue.js +0 -28
- package/dist/test/components/chat/common/collapse/CollapseBase.vue.js +0 -59
- package/dist/test/components/chat/common/input/InputSearch.vue.js +0 -71
- package/dist/test/components/chat/common/popover/PopoverBase.vue.js +0 -148
- package/dist/test/components/chat/common/spin/BaseSpin.vue.js +0 -12
- package/dist/test/components/chat/customer/Avatar.vue.js +0 -79
- package/dist/test/components/chat/layout/mobile/Footer.vue.js +0 -109
- package/dist/test/components/common/CustomLoading.vue.js +0 -19
- package/dist/test/components/common/Notification/NotificationDescription.vue.js +0 -38
- package/dist/test/components/common/button/ButtonBase.vue.js +0 -78
- package/dist/test/components/common/button/ButtonToggle.vue.js +0 -70
- package/dist/test/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
- package/dist/test/components/common/collapse/BaseCollapse.vue.js +0 -36
- package/dist/test/components/common/collapse/BaseCollapseItem.vue.js +0 -22
- package/dist/test/components/common/drawer/DrawerBase.vue.js +0 -126
- package/dist/test/components/common/dropdown/DropdownBase.vue.js +0 -91
- package/dist/test/components/common/input/CInputSearch.vue.js +0 -62
- package/dist/test/components/common/modal/ModalBase.vue.js +0 -164
- package/dist/test/components/common/popover/PopoverBase.vue.js +0 -36
- package/dist/test/components/common/slider/BaseSlider.vue.js +0 -70
- package/dist/test/components/common/spin/CSpin.vue.js +0 -41
- package/dist/test/components/common/tooltip/TooltipBase.vue.js +0 -8
- package/dist/test/components/layout/Blank.vue.js +0 -19
- package/dist/test/components/layout/Default.vue.js +0 -21
- package/dist/test/components/modal/Confirm.vue.js +0 -164
- package/dist/test/components/ui/button/CButton.vue.js +0 -49
- package/dist/test/components/ui/button/c-button.js +0 -26
- package/dist/test/components/ui/checkbox/Checkbox.vue.js +0 -79
- package/dist/test/components/ui/checkbox/index.js +0 -1
- package/dist/test/components/ui/collapsible/Collapsible.vue.js +0 -47
- package/dist/test/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
- package/dist/test/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
- package/dist/test/components/ui/collapsible/index.js +0 -3
- package/dist/test/components/ui/dialog/Dialog.vue.js +0 -42
- package/dist/test/components/ui/dialog/DialogClose.vue.js +0 -35
- package/dist/test/components/ui/dialog/DialogContent.vue.js +0 -84
- package/dist/test/components/ui/dialog/DialogDescription.vue.js +0 -43
- package/dist/test/components/ui/dialog/DialogFooter.vue.js +0 -26
- package/dist/test/components/ui/dialog/DialogHeader.vue.js +0 -26
- package/dist/test/components/ui/dialog/DialogScrollContent.vue.js +0 -99
- package/dist/test/components/ui/dialog/DialogTitle.vue.js +0 -43
- package/dist/test/components/ui/dialog/DialogTrigger.vue.js +0 -35
- package/dist/test/components/ui/dialog/index.js +0 -9
- package/dist/test/components/ui/drawer/Drawer.vue.js +0 -48
- package/dist/test/components/ui/drawer/DrawerContent.vue.js +0 -81
- package/dist/test/components/ui/drawer/DrawerDescription.vue.js +0 -42
- package/dist/test/components/ui/drawer/DrawerFooter.vue.js +0 -26
- package/dist/test/components/ui/drawer/DrawerHeader.vue.js +0 -26
- package/dist/test/components/ui/drawer/DrawerOverlay.vue.js +0 -37
- package/dist/test/components/ui/drawer/DrawerTitle.vue.js +0 -42
- package/dist/test/components/ui/drawer/index.js +0 -8
- package/dist/test/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
- package/dist/test/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
- package/dist/test/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
- package/dist/test/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
- package/dist/test/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
- package/dist/test/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
- package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
- package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
- package/dist/test/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
- package/dist/test/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
- package/dist/test/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
- package/dist/test/components/ui/dropdown-menu/index.js +0 -15
- package/dist/test/components/ui/popover/Popover.vue.js +0 -41
- package/dist/test/components/ui/popover/PopoverContent.vue.js +0 -60
- package/dist/test/components/ui/popover/PopoverTrigger.vue.js +0 -35
- package/dist/test/components/ui/popover/index.js +0 -3
- package/dist/test/components/ui/radio-group/RadioGroup.vue.js +0 -46
- package/dist/test/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
- package/dist/test/components/ui/radio-group/index.js +0 -2
- package/dist/test/components/ui/slider/Slider.vue.js +0 -155
- package/dist/test/components/ui/slider/index.js +0 -1
- package/dist/test/components/ui/switch/Switch.vue.js +0 -61
- package/dist/test/components/ui/switch/index.js +0 -1
- package/dist/test/composable/useCallHelper.js +0 -170
- package/dist/test/composable/useInitData.js +0 -84
- package/dist/test/composable/useModalConfirm.js +0 -39
- package/dist/test/constant/color.js +0 -43
- package/dist/test/constant/datetime.js +0 -5
- package/dist/test/constant/general.js +0 -9
- package/dist/test/constant/message.js +0 -8
- package/dist/test/constant/mqtt.js +0 -11
- package/dist/test/constant/user.js +0 -9
- package/dist/test/lib/utils.js +0 -5
- package/dist/test/plugins/axios-gci.js +0 -25
- package/dist/test/plugins/axios.js +0 -85
- package/dist/test/plugins/mqtt.js +0 -128
- package/dist/test/plugins/sdk.js +0 -83
- package/dist/test/plugins/websocket.js +0 -65
- package/dist/test/types/call.js +0 -1
- package/dist/test/types/chat/auth.js +0 -1
- package/dist/test/types/chat/global.js +0 -1
- package/dist/test/types/chat/promise.js +0 -1
- package/dist/test/types/chat/user.js +0 -1
- package/dist/test/types/conversation.js +0 -1
- package/dist/test/types/global.js +0 -15
- package/dist/test/types/message.js +0 -1
- package/dist/test/utils/chat/auth.js +0 -51
- package/dist/test/utils/chat/call.js +0 -61
- package/dist/test/utils/chat/chat-router.js +0 -9
- package/dist/test/utils/chat/conversation.js +0 -7
- package/dist/test/utils/chat/message.js +0 -42
- package/dist/test/utils/chat/user.js +0 -33
- package/dist/test/utils/debounce.js +0 -9
- package/dist/test/utils/json.js +0 -18
- package/dist/test/utils/logger.js +0 -5
- package/dist/test/utils/string-helper.js +0 -27
- package/dist/types/call.d.ts +0 -4
- package/dist/types/chat/auth.d.ts +0 -37
- package/dist/types/chat/global.d.ts +0 -7
- package/dist/types/chat/promise.d.ts +0 -17
- package/dist/types/chat/user.d.ts +0 -88
- package/dist/types/conversation.d.ts +0 -18
- package/dist/types/global.d.ts +0 -11
- package/dist/types/message.d.ts +0 -43
- package/dist/utils/chat/auth.d.ts +0 -45
- package/dist/utils/chat/call.d.ts +0 -5
- package/dist/utils/chat/chat-router.d.ts +0 -3
- package/dist/utils/chat/conversation.d.ts +0 -3
- package/dist/utils/chat/message.d.ts +0 -17
- package/dist/utils/chat/user.d.ts +0 -193
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/string-helper.d.ts +0 -1
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import ICon1 from '../../../../assets/images/layout/mobile/chat.png';
|
|
3
|
-
import ICon1Active from '../../../../assets/images/layout/mobile/chat-active.png';
|
|
4
|
-
import ICon2 from '../../../../assets/images/layout/mobile/review.png';
|
|
5
|
-
import ICon2Active from '../../../../assets/images/layout/mobile/review-active.png';
|
|
6
|
-
import ICon3 from '../../../../assets/images/layout/mobile/booking.png';
|
|
7
|
-
import ICon3Active from '../../../../assets/images/layout/mobile/booking-active.png';
|
|
8
|
-
import ICon4 from '../../../../assets/images/layout/mobile/admin.png';
|
|
9
|
-
import ICon4Active from '../../../../assets/images/layout/mobile/admin-active.png';
|
|
10
|
-
import { PAGE } from '../../../../constant/general';
|
|
11
|
-
import { currentPage, routerPush } from '../../../../utils/chat/chat-router';
|
|
12
|
-
const LAYOUT_CONFIG = [
|
|
13
|
-
{
|
|
14
|
-
icon: ICon1,
|
|
15
|
-
iconActive: ICon1Active,
|
|
16
|
-
title: 'Chat',
|
|
17
|
-
value: PAGE.CHAT_LIST,
|
|
18
|
-
click: () => {
|
|
19
|
-
if (currentPage.value != PAGE.CHAT_LIST) {
|
|
20
|
-
routerPush(PAGE.CHAT_LIST);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
icon: ICon2,
|
|
26
|
-
iconActive: ICon2Active,
|
|
27
|
-
title: 'Review',
|
|
28
|
-
value: PAGE.TENANT_ERROR,
|
|
29
|
-
disabled: true
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
icon: ICon3,
|
|
33
|
-
iconActive: ICon3Active,
|
|
34
|
-
title: 'Booking',
|
|
35
|
-
value: PAGE.TENANT_ERROR,
|
|
36
|
-
disabled: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
icon: ICon4,
|
|
40
|
-
iconActive: ICon4Active,
|
|
41
|
-
title: 'Go Admin',
|
|
42
|
-
value: PAGE.TENANT_ERROR,
|
|
43
|
-
disabled: true
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
47
|
-
const __VLS_ctx = {
|
|
48
|
-
...{},
|
|
49
|
-
...{},
|
|
50
|
-
};
|
|
51
|
-
let __VLS_elements;
|
|
52
|
-
let __VLS_components;
|
|
53
|
-
let __VLS_directives;
|
|
54
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
55
|
-
...{ class: "bg-white rounded-t-3xl shadow-lg pb-2 flex grid grid-cols-4 h-[80px]" },
|
|
56
|
-
});
|
|
57
|
-
for (const [item] of __VLS_getVForSourceType((__VLS_ctx.LAYOUT_CONFIG))) {
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
[LAYOUT_CONFIG,];
|
|
60
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
61
|
-
...{ onClick: (...[$event]) => {
|
|
62
|
-
item.click?.();
|
|
63
|
-
} },
|
|
64
|
-
...{ class: "flex flex-col justify-center items-center text-blue-600" },
|
|
65
|
-
...{ class: ({ 'opacity-[0.6]': item.disabled }) },
|
|
66
|
-
key: (item.value),
|
|
67
|
-
disabled: (item.disabled),
|
|
68
|
-
});
|
|
69
|
-
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
70
|
-
src: (item.icon),
|
|
71
|
-
});
|
|
72
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage != item.value) }, null, null);
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
[currentPage,];
|
|
75
|
-
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
76
|
-
src: (item.iconActive),
|
|
77
|
-
});
|
|
78
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == item.value) }, null, null);
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
[currentPage,];
|
|
81
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
82
|
-
...{ class: "text-sm text-chat-haze-400 font-medium mt-1" },
|
|
83
|
-
...{ class: ({ 'text-chat-primary': __VLS_ctx.currentPage == item.value }) },
|
|
84
|
-
});
|
|
85
|
-
// @ts-ignore
|
|
86
|
-
[currentPage,];
|
|
87
|
-
(item.title);
|
|
88
|
-
}
|
|
89
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
90
|
-
/** @type {__VLS_StyleScopedClasses['rounded-t-3xl']} */ ;
|
|
91
|
-
/** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
|
|
92
|
-
/** @type {__VLS_StyleScopedClasses['pb-2']} */ ;
|
|
93
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
94
|
-
/** @type {__VLS_StyleScopedClasses['grid']} */ ;
|
|
95
|
-
/** @type {__VLS_StyleScopedClasses['grid-cols-4']} */ ;
|
|
96
|
-
/** @type {__VLS_StyleScopedClasses['h-[80px]']} */ ;
|
|
97
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
98
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
99
|
-
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
100
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
101
|
-
/** @type {__VLS_StyleScopedClasses['text-blue-600']} */ ;
|
|
102
|
-
/** @type {__VLS_StyleScopedClasses['opacity-[0.6]']} */ ;
|
|
103
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
104
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
|
|
105
|
-
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
106
|
-
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
107
|
-
/** @type {__VLS_StyleScopedClasses['text-chat-primary']} */ ;
|
|
108
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
109
|
-
export default {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
3
|
-
const __VLS_ctx = {};
|
|
4
|
-
let __VLS_elements;
|
|
5
|
-
let __VLS_components;
|
|
6
|
-
let __VLS_directives;
|
|
7
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
8
|
-
...{ class: "h-full flex-center absolute top-0 left-0 w-full bg-white z-50" },
|
|
9
|
-
});
|
|
10
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
11
|
-
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
12
|
-
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
13
|
-
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
14
|
-
/** @type {__VLS_StyleScopedClasses['left-0']} */ ;
|
|
15
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
16
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
17
|
-
/** @type {__VLS_StyleScopedClasses['z-50']} */ ;
|
|
18
|
-
const __VLS_export = (await import('vue')).defineComponent({});
|
|
19
|
-
export default {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
const __VLS_props = defineProps();
|
|
3
|
-
const { description, type, tag } = __VLS_props;
|
|
4
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
-
const __VLS_ctx = {
|
|
6
|
-
...{},
|
|
7
|
-
...{},
|
|
8
|
-
...{},
|
|
9
|
-
...{},
|
|
10
|
-
};
|
|
11
|
-
let __VLS_elements;
|
|
12
|
-
let __VLS_components;
|
|
13
|
-
let __VLS_directives;
|
|
14
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
15
|
-
...{ class: "" },
|
|
16
|
-
});
|
|
17
|
-
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
18
|
-
...{ class: "text-sm mb-0.5" },
|
|
19
|
-
});
|
|
20
|
-
(description);
|
|
21
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
22
|
-
...{ class: "flex justify-between items-center" },
|
|
23
|
-
});
|
|
24
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
25
|
-
...{ class: "text-blue text-sm" },
|
|
26
|
-
});
|
|
27
|
-
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
28
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
29
|
-
/** @type {__VLS_StyleScopedClasses['mb-0.5']} */ ;
|
|
30
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
31
|
-
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
32
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
33
|
-
/** @type {__VLS_StyleScopedClasses['text-blue']} */ ;
|
|
34
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
35
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
36
|
-
__typeProps: {},
|
|
37
|
-
});
|
|
38
|
-
export default {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import CButton from '../../../components/ui/button/CButton.vue';
|
|
3
|
-
import { computed } from 'vue';
|
|
4
|
-
import CSpin from '../../../components/common/spin/CSpin.vue';
|
|
5
|
-
const props = withDefaults(defineProps(), {
|
|
6
|
-
size: 'middle',
|
|
7
|
-
disabled: false,
|
|
8
|
-
htmlType: 'button',
|
|
9
|
-
shape: 'default',
|
|
10
|
-
loading: false
|
|
11
|
-
});
|
|
12
|
-
const variant = computed(() => {
|
|
13
|
-
switch (props.type) {
|
|
14
|
-
case 'primary':
|
|
15
|
-
return 'default';
|
|
16
|
-
default:
|
|
17
|
-
return props.type;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
21
|
-
const __VLS_defaults = {
|
|
22
|
-
size: 'middle',
|
|
23
|
-
disabled: false,
|
|
24
|
-
htmlType: 'button',
|
|
25
|
-
shape: 'default',
|
|
26
|
-
loading: false
|
|
27
|
-
};
|
|
28
|
-
const __VLS_ctx = {
|
|
29
|
-
...{},
|
|
30
|
-
...{},
|
|
31
|
-
...{},
|
|
32
|
-
...{},
|
|
33
|
-
};
|
|
34
|
-
let __VLS_elements;
|
|
35
|
-
let __VLS_components;
|
|
36
|
-
let __VLS_directives;
|
|
37
|
-
/** @type {__VLS_StyleScopedClasses['ant-btn-dangerous']} */ ;
|
|
38
|
-
/** @type {[typeof CButton, typeof CButton, ]} */ ;
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
const __VLS_0 = __VLS_asFunctionalComponent(CButton, new CButton({
|
|
41
|
-
variant: (__VLS_ctx.variant),
|
|
42
|
-
disabled: (__VLS_ctx.loading || __VLS_ctx.disabled),
|
|
43
|
-
}));
|
|
44
|
-
const __VLS_1 = __VLS_0({
|
|
45
|
-
variant: (__VLS_ctx.variant),
|
|
46
|
-
disabled: (__VLS_ctx.loading || __VLS_ctx.disabled),
|
|
47
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
48
|
-
var __VLS_3 = {};
|
|
49
|
-
const { default: __VLS_4 } = __VLS_2.slots;
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
[variant, loading, disabled,];
|
|
52
|
-
if (__VLS_ctx.loading) {
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
[loading,];
|
|
55
|
-
/** @type {[typeof CSpin, typeof CSpin, ]} */ ;
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
const __VLS_5 = __VLS_asFunctionalComponent(CSpin, new CSpin({
|
|
58
|
-
size: (24),
|
|
59
|
-
border: (3),
|
|
60
|
-
}));
|
|
61
|
-
const __VLS_6 = __VLS_5({
|
|
62
|
-
size: (24),
|
|
63
|
-
border: (3),
|
|
64
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
var __VLS_9 = {};
|
|
68
|
-
var __VLS_11 = {};
|
|
69
|
-
}
|
|
70
|
-
var __VLS_2;
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
var __VLS_10 = __VLS_9, __VLS_12 = __VLS_11;
|
|
73
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
74
|
-
__typeProps: {},
|
|
75
|
-
props: {},
|
|
76
|
-
});
|
|
77
|
-
const __VLS_export = {};
|
|
78
|
-
export default {};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
import { CSwitch } from '../../../components/ui/switch';
|
|
4
|
-
const props = withDefaults(defineProps(), {
|
|
5
|
-
modelValue: false,
|
|
6
|
-
size: 'default',
|
|
7
|
-
});
|
|
8
|
-
const emits = defineEmits();
|
|
9
|
-
const onClick = () => {
|
|
10
|
-
emits('on-click');
|
|
11
|
-
};
|
|
12
|
-
const checked = computed({
|
|
13
|
-
get: () => props.modelValue,
|
|
14
|
-
set: (newValue) => emits('update:modelValue', newValue)
|
|
15
|
-
});
|
|
16
|
-
function toggle() {
|
|
17
|
-
emits('update:modelValue', !props.modelValue);
|
|
18
|
-
}
|
|
19
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
20
|
-
const __VLS_defaults = {
|
|
21
|
-
modelValue: false,
|
|
22
|
-
size: 'default',
|
|
23
|
-
};
|
|
24
|
-
const __VLS_ctx = {
|
|
25
|
-
...{},
|
|
26
|
-
...{},
|
|
27
|
-
...{},
|
|
28
|
-
...{},
|
|
29
|
-
...{},
|
|
30
|
-
};
|
|
31
|
-
let __VLS_elements;
|
|
32
|
-
let __VLS_components;
|
|
33
|
-
let __VLS_directives;
|
|
34
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
35
|
-
...{ class: " flex justify-between items-center" },
|
|
36
|
-
});
|
|
37
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
38
|
-
...{ onClick: (__VLS_ctx.toggle) },
|
|
39
|
-
...{ class: "cursor-pointer w-full" },
|
|
40
|
-
});
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
[toggle,];
|
|
43
|
-
var __VLS_0 = {};
|
|
44
|
-
const __VLS_2 = {}.CSwitch;
|
|
45
|
-
/** @type {[typeof __VLS_components.CSwitch, typeof __VLS_components.cSwitch, typeof __VLS_components.CSwitch, typeof __VLS_components.cSwitch, ]} */ ;
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
CSwitch;
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
const __VLS_3 = __VLS_asFunctionalComponent(__VLS_2, new __VLS_2({
|
|
50
|
-
modelValue: (__VLS_ctx.checked),
|
|
51
|
-
}));
|
|
52
|
-
const __VLS_4 = __VLS_3({
|
|
53
|
-
modelValue: (__VLS_ctx.checked),
|
|
54
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_3));
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
[checked,];
|
|
57
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
58
|
-
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
59
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
60
|
-
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
61
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
var __VLS_1 = __VLS_0;
|
|
64
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
65
|
-
__typeEmits: {},
|
|
66
|
-
__typeProps: {},
|
|
67
|
-
props: {},
|
|
68
|
-
});
|
|
69
|
-
const __VLS_export = {};
|
|
70
|
-
export default {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
import { Checkbox } from "../../../components/ui/checkbox";
|
|
4
|
-
const props = defineProps();
|
|
5
|
-
const emit = defineEmits();
|
|
6
|
-
const checked = computed({
|
|
7
|
-
get: () => props.modelValue === 1,
|
|
8
|
-
set: val => emit('update:modelValue', val ? 1 : 0)
|
|
9
|
-
});
|
|
10
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
11
|
-
const __VLS_ctx = {
|
|
12
|
-
...{},
|
|
13
|
-
...{},
|
|
14
|
-
...{},
|
|
15
|
-
...{},
|
|
16
|
-
...{},
|
|
17
|
-
};
|
|
18
|
-
let __VLS_elements;
|
|
19
|
-
let __VLS_components;
|
|
20
|
-
let __VLS_directives;
|
|
21
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
22
|
-
...{ class: "flex justify-center items-center" },
|
|
23
|
-
});
|
|
24
|
-
const __VLS_0 = {}.Checkbox;
|
|
25
|
-
/** @type {[typeof __VLS_components.Checkbox, ]} */ ;
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
Checkbox;
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
30
|
-
modelValue: (__VLS_ctx.checked),
|
|
31
|
-
}));
|
|
32
|
-
const __VLS_2 = __VLS_1({
|
|
33
|
-
modelValue: (__VLS_ctx.checked),
|
|
34
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
[checked,];
|
|
37
|
-
var __VLS_5 = {};
|
|
38
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
39
|
-
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
40
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
var __VLS_6 = __VLS_5;
|
|
43
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
44
|
-
__typeEmits: {},
|
|
45
|
-
__typeProps: {},
|
|
46
|
-
});
|
|
47
|
-
const __VLS_export = {};
|
|
48
|
-
export default {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
const props = withDefaults(defineProps(), {
|
|
4
|
-
ghost: false,
|
|
5
|
-
expandIconPosition: 'end',
|
|
6
|
-
bordered: false
|
|
7
|
-
});
|
|
8
|
-
const emits = defineEmits();
|
|
9
|
-
const activeKey = computed({
|
|
10
|
-
get: () => props.modelValue,
|
|
11
|
-
set: (val) => {
|
|
12
|
-
emits('update:modelValue', val);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
16
|
-
const __VLS_defaults = {
|
|
17
|
-
ghost: false,
|
|
18
|
-
expandIconPosition: 'end',
|
|
19
|
-
bordered: false
|
|
20
|
-
};
|
|
21
|
-
const __VLS_ctx = {
|
|
22
|
-
...{},
|
|
23
|
-
...{},
|
|
24
|
-
...{},
|
|
25
|
-
...{},
|
|
26
|
-
...{},
|
|
27
|
-
};
|
|
28
|
-
let __VLS_elements;
|
|
29
|
-
let __VLS_components;
|
|
30
|
-
let __VLS_directives;
|
|
31
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
32
|
-
__typeEmits: {},
|
|
33
|
-
__typeProps: {},
|
|
34
|
-
props: {},
|
|
35
|
-
});
|
|
36
|
-
export default {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
const props = withDefaults(defineProps(), {
|
|
3
|
-
collapsible: null
|
|
4
|
-
});
|
|
5
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
6
|
-
const __VLS_defaults = {
|
|
7
|
-
collapsible: null
|
|
8
|
-
};
|
|
9
|
-
const __VLS_ctx = {
|
|
10
|
-
...{},
|
|
11
|
-
...{},
|
|
12
|
-
...{},
|
|
13
|
-
...{},
|
|
14
|
-
};
|
|
15
|
-
let __VLS_elements;
|
|
16
|
-
let __VLS_components;
|
|
17
|
-
let __VLS_directives;
|
|
18
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
19
|
-
__typeProps: {},
|
|
20
|
-
props: {},
|
|
21
|
-
});
|
|
22
|
-
export default {};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
// COMPONENT
|
|
3
|
-
import { Drawer, DrawerContent, DrawerHeader } from '../../../components/ui/drawer';
|
|
4
|
-
const props = withDefaults(defineProps(), {
|
|
5
|
-
title: 'This is title',
|
|
6
|
-
placement: 'right',
|
|
7
|
-
width: 250,
|
|
8
|
-
showButtonClose: true,
|
|
9
|
-
showTitle: true,
|
|
10
|
-
// open: false,
|
|
11
|
-
disableClose: false
|
|
12
|
-
});
|
|
13
|
-
const open = defineModel('open');
|
|
14
|
-
const emit = defineEmits();
|
|
15
|
-
const show = () => {
|
|
16
|
-
emit('update:open', true);
|
|
17
|
-
};
|
|
18
|
-
const hide = () => {
|
|
19
|
-
emit('update:open', false);
|
|
20
|
-
};
|
|
21
|
-
const handleDrawerChange = (val) => {
|
|
22
|
-
if (!val && props.disableClose)
|
|
23
|
-
open.value = true;
|
|
24
|
-
else
|
|
25
|
-
open.value = val;
|
|
26
|
-
};
|
|
27
|
-
const __VLS_exposed = {
|
|
28
|
-
show,
|
|
29
|
-
hide
|
|
30
|
-
};
|
|
31
|
-
defineExpose(__VLS_exposed);
|
|
32
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
33
|
-
const __VLS_modelEmit = defineEmits();
|
|
34
|
-
const __VLS_defaults = {
|
|
35
|
-
title: 'This is title',
|
|
36
|
-
placement: 'right',
|
|
37
|
-
width: 250,
|
|
38
|
-
showButtonClose: true,
|
|
39
|
-
showTitle: true,
|
|
40
|
-
// open: false,
|
|
41
|
-
disableClose: false
|
|
42
|
-
};
|
|
43
|
-
const __VLS_ctx = {
|
|
44
|
-
...{},
|
|
45
|
-
...{},
|
|
46
|
-
...{},
|
|
47
|
-
...{},
|
|
48
|
-
...{},
|
|
49
|
-
};
|
|
50
|
-
let __VLS_elements;
|
|
51
|
-
let __VLS_components;
|
|
52
|
-
let __VLS_directives;
|
|
53
|
-
const __VLS_0 = {}.Drawer;
|
|
54
|
-
/** @type {[typeof __VLS_components.Drawer, typeof __VLS_components.Drawer, ]} */ ;
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
Drawer;
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
59
|
-
...{ 'onUpdate:open': {} },
|
|
60
|
-
direction: (__VLS_ctx.placement),
|
|
61
|
-
open: (__VLS_ctx.open),
|
|
62
|
-
scrollLockTimeout: (100),
|
|
63
|
-
handleOnly: (__VLS_ctx.disableClose),
|
|
64
|
-
}));
|
|
65
|
-
const __VLS_2 = __VLS_1({
|
|
66
|
-
...{ 'onUpdate:open': {} },
|
|
67
|
-
direction: (__VLS_ctx.placement),
|
|
68
|
-
open: (__VLS_ctx.open),
|
|
69
|
-
scrollLockTimeout: (100),
|
|
70
|
-
handleOnly: (__VLS_ctx.disableClose),
|
|
71
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
72
|
-
let __VLS_4;
|
|
73
|
-
let __VLS_5;
|
|
74
|
-
const __VLS_6 = ({ 'update:open': {} },
|
|
75
|
-
{ 'onUpdate:open': (__VLS_ctx.handleDrawerChange) });
|
|
76
|
-
var __VLS_7 = {};
|
|
77
|
-
const { default: __VLS_8 } = __VLS_3.slots;
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
[placement, open, disableClose, handleDrawerChange,];
|
|
80
|
-
const __VLS_9 = {}.DrawerContent;
|
|
81
|
-
/** @type {[typeof __VLS_components.DrawerContent, typeof __VLS_components.DrawerContent, ]} */ ;
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
DrawerContent;
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
|
|
86
|
-
...{ 'onCloseDrawer': {} },
|
|
87
|
-
width: (__VLS_ctx.width),
|
|
88
|
-
direction: (__VLS_ctx.placement),
|
|
89
|
-
...{ class: "!touch-none" },
|
|
90
|
-
}));
|
|
91
|
-
const __VLS_11 = __VLS_10({
|
|
92
|
-
...{ 'onCloseDrawer': {} },
|
|
93
|
-
width: (__VLS_ctx.width),
|
|
94
|
-
direction: (__VLS_ctx.placement),
|
|
95
|
-
...{ class: "!touch-none" },
|
|
96
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
97
|
-
let __VLS_13;
|
|
98
|
-
let __VLS_14;
|
|
99
|
-
const __VLS_15 = ({ closeDrawer: {} },
|
|
100
|
-
{ onCloseDrawer: (...[$event]) => {
|
|
101
|
-
__VLS_ctx.emit('update:open', false);
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
[placement, width, emit,];
|
|
104
|
-
} });
|
|
105
|
-
const { default: __VLS_16 } = __VLS_12.slots;
|
|
106
|
-
const __VLS_17 = {}.DrawerHeader;
|
|
107
|
-
/** @type {[typeof __VLS_components.DrawerHeader, typeof __VLS_components.DrawerHeader, ]} */ ;
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
DrawerHeader;
|
|
110
|
-
// @ts-ignore
|
|
111
|
-
const __VLS_18 = __VLS_asFunctionalComponent(__VLS_17, new __VLS_17({}));
|
|
112
|
-
const __VLS_19 = __VLS_18({}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
113
|
-
var __VLS_22 = {};
|
|
114
|
-
var __VLS_12;
|
|
115
|
-
var __VLS_3;
|
|
116
|
-
/** @type {__VLS_StyleScopedClasses['!touch-none']} */ ;
|
|
117
|
-
// @ts-ignore
|
|
118
|
-
var __VLS_23 = __VLS_22;
|
|
119
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
120
|
-
setup: () => (__VLS_exposed),
|
|
121
|
-
__typeEmits: {},
|
|
122
|
-
__typeProps: {},
|
|
123
|
-
props: {},
|
|
124
|
-
});
|
|
125
|
-
const __VLS_export = {};
|
|
126
|
-
export default {};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { ref } from 'vue';
|
|
3
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '../../../components/ui/dropdown-menu';
|
|
4
|
-
const props = withDefaults(defineProps(), {
|
|
5
|
-
placement: 'bottomLeft'
|
|
6
|
-
});
|
|
7
|
-
const emits = defineEmits();
|
|
8
|
-
const handleChange = (value) => {
|
|
9
|
-
open.value = value;
|
|
10
|
-
emits('change', value);
|
|
11
|
-
};
|
|
12
|
-
const open = ref(false);
|
|
13
|
-
const close = () => {
|
|
14
|
-
open.value = false;
|
|
15
|
-
};
|
|
16
|
-
const openDropdown = () => {
|
|
17
|
-
open.value = true;
|
|
18
|
-
};
|
|
19
|
-
const __VLS_exposed = {
|
|
20
|
-
close,
|
|
21
|
-
openDropdown
|
|
22
|
-
};
|
|
23
|
-
defineExpose(__VLS_exposed);
|
|
24
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
25
|
-
const __VLS_defaults = {
|
|
26
|
-
placement: 'bottomLeft'
|
|
27
|
-
};
|
|
28
|
-
const __VLS_ctx = {
|
|
29
|
-
...{},
|
|
30
|
-
...{},
|
|
31
|
-
...{},
|
|
32
|
-
...{},
|
|
33
|
-
...{},
|
|
34
|
-
};
|
|
35
|
-
let __VLS_elements;
|
|
36
|
-
let __VLS_components;
|
|
37
|
-
let __VLS_directives;
|
|
38
|
-
const __VLS_0 = {}.DropdownMenu;
|
|
39
|
-
/** @type {[typeof __VLS_components.DropdownMenu, typeof __VLS_components.DropdownMenu, ]} */ ;
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
DropdownMenu;
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
44
|
-
...{ 'onUpdate:open': {} },
|
|
45
|
-
open: (__VLS_ctx.open),
|
|
46
|
-
}));
|
|
47
|
-
const __VLS_2 = __VLS_1({
|
|
48
|
-
...{ 'onUpdate:open': {} },
|
|
49
|
-
open: (__VLS_ctx.open),
|
|
50
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
51
|
-
let __VLS_4;
|
|
52
|
-
let __VLS_5;
|
|
53
|
-
const __VLS_6 = ({ 'update:open': {} },
|
|
54
|
-
{ 'onUpdate:open': ((value) => {
|
|
55
|
-
__VLS_ctx.handleChange(value);
|
|
56
|
-
}) });
|
|
57
|
-
var __VLS_7 = {};
|
|
58
|
-
const { default: __VLS_8 } = __VLS_3.slots;
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
[open, handleChange,];
|
|
61
|
-
const __VLS_9 = {}.DropdownMenuTrigger;
|
|
62
|
-
/** @type {[typeof __VLS_components.DropdownMenuTrigger, typeof __VLS_components.DropdownMenuTrigger, ]} */ ;
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
DropdownMenuTrigger;
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({}));
|
|
67
|
-
const __VLS_11 = __VLS_10({}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
68
|
-
const { default: __VLS_13 } = __VLS_12.slots;
|
|
69
|
-
var __VLS_14 = {};
|
|
70
|
-
var __VLS_12;
|
|
71
|
-
const __VLS_16 = {}.DropdownMenuContent;
|
|
72
|
-
/** @type {[typeof __VLS_components.DropdownMenuContent, typeof __VLS_components.DropdownMenuContent, ]} */ ;
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
DropdownMenuContent;
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({}));
|
|
77
|
-
const __VLS_18 = __VLS_17({}, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
78
|
-
const { default: __VLS_20 } = __VLS_19.slots;
|
|
79
|
-
var __VLS_21 = {};
|
|
80
|
-
var __VLS_19;
|
|
81
|
-
var __VLS_3;
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
var __VLS_15 = __VLS_14, __VLS_22 = __VLS_21;
|
|
84
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
85
|
-
setup: () => (__VLS_exposed),
|
|
86
|
-
__typeEmits: {},
|
|
87
|
-
__typeProps: {},
|
|
88
|
-
props: {},
|
|
89
|
-
});
|
|
90
|
-
const __VLS_export = {};
|
|
91
|
-
export default {};
|