@phonghq/go-chat 1.0.72 → 1.0.74
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/assets/icons/call/IconClock.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconClock.vue.js +22 -0
- package/dist/assets/icons/call/IconClose.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconClose.vue.js +26 -0
- package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconMic.vue.js +123 -0
- package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconPhone.vue.js +22 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +46 -0
- package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +2 -0
- package/dist/assets/icons/call/IconSoundDownload.vue.js +50 -0
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
- package/dist/assets/icons/call/IconSpeaker.vue.js +62 -0
- package/dist/assets/icons/chat/IconCalendar.vue.d.ts +14 -0
- package/dist/assets/icons/chat/IconCalendar.vue.js +42 -0
- package/dist/assets/icons/chat/IconCheck.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconCheck.vue.js +22 -0
- package/dist/assets/icons/chat/IconInfo.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconInfo.vue.js +20 -0
- package/dist/assets/icons/chat/IconLink.vue.d.ts +14 -0
- package/dist/assets/icons/chat/IconLink.vue.js +42 -0
- package/dist/assets/icons/chat/IconMenuDot.vue.d.ts +2 -0
- package/dist/assets/icons/chat/IconMenuDot.vue.js +31 -0
- package/dist/assets/icons/customer-appointment/IconChevronRight.vue.d.ts +2 -0
- package/dist/assets/icons/customer-appointment/IconChevronRight.vue.js +22 -0
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +22 -0
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +27 -0
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconDate.vue.js +43 -0
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +48 -0
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +28 -0
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconNote.vue.js +29 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +14 -0
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +41 -0
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconPin.vue.js +29 -0
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +29 -0
- package/dist/assets/icons/global/IconAiCheck.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconAiCheck.vue.js +28 -0
- package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconArrowLeft.vue.js +29 -0
- package/dist/assets/icons/global/IconBackspace.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconBackspace.vue.js +28 -0
- package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconCloseCircle.vue.js +36 -0
- package/dist/assets/icons/global/IconMessageOutline.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconMessageOutline.vue.js +22 -0
- package/dist/assets/icons/global/IconPhone.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconPhone.vue.js +19 -0
- package/dist/assets/icons/global/IconPlan.vue.d.ts +14 -0
- package/dist/assets/icons/global/IconPlan.vue.js +39 -0
- package/dist/assets/icons/global/IconPlus.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconPlus.vue.js +22 -0
- package/dist/assets/icons/global/IconSearch.vue.d.ts +32 -0
- package/dist/assets/icons/global/IconSearch.vue.js +68 -0
- package/dist/assets/icons/global/IconSms.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconSms.vue.js +22 -0
- package/dist/assets/icons/global/IconUser.vue.d.ts +2 -0
- package/dist/assets/icons/global/IconUser.vue.js +25 -0
- package/dist/assets/icons/lib/IconZoomOut.vue.d.ts +5 -0
- package/dist/assets/icons/lib/IconZoomOut.vue.js +52 -0
- package/dist/chat/App.vue.d.ts +26 -0
- package/dist/chat/App.vue.js +928 -0
- package/dist/chat/ChatHeader.vue.d.ts +15 -0
- package/dist/chat/ChatHeader.vue.js +218 -0
- package/dist/chat/main.d.ts +7 -0
- package/dist/chat/main.js +7 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +9 -0
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +262 -0
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +138 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +234 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
- package/dist/chat/page/customer-detail/SubInformation.vue.js +134 -0
- package/dist/chat/page/error/Error.vue.d.ts +2 -0
- package/dist/chat/page/error/Error.vue.js +64 -0
- package/dist/chat/page/home/ChatList.vue.d.ts +104 -0
- package/dist/chat/page/home/ChatList.vue.js +654 -0
- package/dist/chat/page/home/ChatMessage.vue.d.ts +21 -0
- package/dist/chat/page/home/ChatMessage.vue.js +210 -0
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +20 -0
- package/dist/chat/page/home/ChatMessageItem.vue.js +397 -0
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +19 -0
- package/dist/chat/page/home/ChatMessageItem2.vue.js +351 -0
- package/dist/chat/page/home/DropZone.vue.d.ts +13 -0
- package/dist/chat/page/home/DropZone.vue.js +130 -0
- package/dist/chat/page/home/Home.vue.d.ts +29 -0
- package/dist/chat/page/home/Home.vue.js +472 -0
- package/dist/chat/page/home/HomeHeader.vue.d.ts +18 -0
- package/dist/chat/page/home/HomeHeader.vue.js +514 -0
- package/dist/chat/page/home/InputChat.vue.d.ts +27 -0
- package/dist/chat/page/home/InputChat.vue.js +412 -0
- package/dist/chat/page/home/NewCustomer.vue.d.ts +7 -0
- package/dist/chat/page/home/NewCustomer.vue.js +83 -0
- package/dist/chat/page/home/PhoneNumpad.vue.d.ts +22 -0
- package/dist/chat/page/home/PhoneNumpad.vue.js +161 -0
- package/dist/chat/page/setting/Setting.vue.d.ts +2 -0
- package/dist/chat/page/setting/Setting.vue.js +277 -0
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +2 -0
- package/dist/chat/page/setting/SettingSuccess.vue.js +33 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +24 -0
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +207 -0
- package/dist/components/chat/call/Calling.vue.d.ts +17 -0
- package/dist/components/chat/call/Calling.vue.js +594 -0
- package/dist/components/chat/call/TimeLeft.vue.d.ts +5 -0
- package/dist/components/chat/call/TimeLeft.vue.js +59 -0
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
- package/dist/components/chat/card/CardCustomerDetail.vue.js +28 -0
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +59 -0
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
- package/dist/components/chat/common/input/InputSearch.vue.js +71 -0
- package/dist/components/chat/common/modal/Modal.vue.d.ts +94 -0
- package/dist/components/chat/common/modal/Modal.vue.js +260 -0
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
- package/dist/components/chat/common/popover/PopoverBase.vue.js +148 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +10 -0
- package/dist/components/chat/common/spin/BaseSpin.vue.js +43 -0
- package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +17 -0
- package/dist/components/chat/common/switch/SwitchBase.vue.js +76 -0
- package/dist/components/chat/common/tab/TabBase.vue.d.ts +30 -0
- package/dist/components/chat/common/tab/TabBase.vue.js +86 -0
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +18 -0
- package/dist/components/chat/common/tabs/TabBase.vue.js +93 -0
- package/dist/components/chat/customer/Avatar.vue.d.ts +12 -0
- package/dist/components/chat/customer/Avatar.vue.js +127 -0
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
- package/dist/components/chat/layout/mobile/Footer.vue.js +114 -0
- package/dist/components/chat/select/SelectBase.vue.d.ts +24 -0
- package/dist/components/chat/select/SelectBase.vue.js +105 -0
- package/dist/components/common/CustomLoading.vue.d.ts +2 -0
- package/dist/components/common/CustomLoading.vue.js +19 -0
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
- package/dist/components/common/Notification/NotificationDescription.vue.js +38 -0
- package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
- package/dist/components/common/button/ButtonBase.vue.js +78 -0
- package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
- package/dist/components/common/button/ButtonToggle.vue.js +70 -0
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
- package/dist/components/common/collapse/BaseCollapse.vue.js +36 -0
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +22 -0
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
- package/dist/components/common/drawer/DrawerBase.vue.js +126 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +33 -0
- package/dist/components/common/drawer/DrawerBaseCustom.vue.js +135 -0
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
- package/dist/components/common/dropdown/DropdownBase.vue.js +93 -0
- package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
- package/dist/components/common/input/CInputSearch.vue.js +62 -0
- package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
- package/dist/components/common/modal/ModalBase.vue.js +187 -0
- package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
- package/dist/components/common/popover/PopoverBase.vue.js +36 -0
- package/dist/components/common/select/SelectBase.vue.d.ts +33 -0
- package/dist/components/common/select/SelectBase.vue.js +120 -0
- package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
- package/dist/components/common/slider/BaseSlider.vue.js +70 -0
- package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
- package/dist/components/common/spin/CSpin.vue.js +41 -0
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
- package/dist/components/common/tooltip/TooltipBase.vue.js +8 -0
- package/dist/components/layout/PageError.vue.d.ts +2 -0
- package/dist/components/layout/PageError.vue.js +91 -0
- package/dist/components/ui/button/CButton.vue.d.ts +19 -0
- package/dist/components/ui/button/CButton.vue.js +49 -0
- package/dist/components/ui/button/c-button.d.ts +7 -0
- package/dist/components/ui/button/c-button.js +26 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
- package/dist/components/ui/checkbox/Checkbox.vue.js +79 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/checkbox/index.js +1 -0
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
- package/dist/components/ui/collapsible/Collapsible.vue.js +47 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
- package/dist/components/ui/collapsible/index.d.ts +3 -0
- package/dist/components/ui/collapsible/index.js +3 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
- package/dist/components/ui/dialog/Dialog.vue.js +42 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
- package/dist/components/ui/dialog/DialogClose.vue.js +35 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
- package/dist/components/ui/dialog/DialogContent.vue.js +84 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogDescription.vue.js +43 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogFooter.vue.js +26 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
- package/dist/components/ui/dialog/DialogHeader.vue.js +26 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +99 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
- package/dist/components/ui/dialog/DialogTitle.vue.js +43 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.js +35 -0
- package/dist/components/ui/dialog/index.d.ts +9 -0
- package/dist/components/ui/dialog/index.js +9 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
- package/dist/components/ui/drawer/Drawer.vue.js +48 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
- package/dist/components/ui/drawer/DrawerContent.vue.js +81 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.js +42 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.js +26 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.js +26 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +37 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.js +42 -0
- package/dist/components/ui/drawer/index.d.ts +8 -0
- package/dist/components/ui/drawer/index.js +8 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +66 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/index.js +15 -0
- package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
- package/dist/components/ui/popover/Popover.vue.js +41 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
- package/dist/components/ui/popover/PopoverContent.vue.js +60 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.js +35 -0
- package/dist/components/ui/popover/index.d.ts +3 -0
- package/dist/components/ui/popover/index.js +3 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.js +46 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/radio-group/index.js +2 -0
- package/dist/components/ui/select/Select.vue.d.ts +20 -0
- package/dist/components/ui/select/Select.vue.js +49 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +24 -0
- package/dist/components/ui/select/SelectContent.vue.js +103 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectGroup.vue.js +37 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.js +73 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectItemText.vue.js +37 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectLabel.vue.js +40 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.js +58 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +14 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.js +58 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectSeparator.vue.js +39 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +17 -0
- package/dist/components/ui/select/SelectTrigger.vue.js +49 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +10 -0
- package/dist/components/ui/select/SelectValue.vue.js +37 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/select/index.js +11 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/components/ui/slider/Slider.vue.js +155 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/slider/index.js +1 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
- package/dist/components/ui/switch/Switch.vue.js +61 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/switch/index.js +1 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +20 -0
- package/dist/components/ui/tabs/Tabs.vue.js +54 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsContent.vue.js +44 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsList.vue.js +44 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +14 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.js +45 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/components/ui/tabs/index.js +4 -0
- package/dist/composable/useDigibot.d.ts +7 -0
- package/dist/composable/useDigibot.js +23 -0
- package/dist/composable/useInitData.d.ts +12 -0
- package/dist/composable/useInitData.js +101 -0
- package/dist/composable/useListConversations.d.ts +59 -0
- package/dist/composable/useListConversations.js +220 -0
- package/dist/composable/useListentEvent.d.ts +5 -0
- package/dist/composable/useListentEvent.js +69 -0
- package/dist/composable/usePlivo.d.ts +15 -0
- package/dist/composable/usePlivo.js +201 -0
- package/dist/constant/color.d.ts +22 -0
- package/dist/constant/color.js +47 -0
- package/dist/constant/datetime.d.ts +7 -0
- package/dist/constant/datetime.js +7 -0
- package/dist/constant/general.d.ts +11 -0
- package/dist/constant/general.js +12 -0
- package/dist/constant/message.d.ts +8 -0
- package/dist/constant/message.js +8 -0
- package/dist/constant/mqtt.d.ts +7 -0
- package/dist/constant/mqtt.js +18 -0
- package/dist/constant/user.d.ts +8 -0
- package/dist/constant/user.js +9 -0
- package/dist/go-chat.es.js +18766 -17073
- package/dist/go-chat.umd.js +23 -23
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +5 -0
- package/dist/plugins/axios-gci.d.ts +3 -0
- package/dist/plugins/axios-gci.js +25 -0
- package/dist/plugins/axios.d.ts +3 -0
- package/dist/plugins/axios.js +84 -0
- package/dist/plugins/mqtt.d.ts +8 -0
- package/dist/plugins/mqtt.js +189 -0
- package/dist/plugins/pocketbase.d.ts +5 -0
- package/dist/plugins/pocketbase.js +15 -0
- package/dist/plugins/sdk.d.ts +18 -0
- package/dist/plugins/sdk.js +73 -0
- package/dist/plugins/websocket.d.ts +15 -0
- package/dist/plugins/websocket.js +151 -0
- package/dist/style.css +1 -1
- package/dist/types/chat/auth.d.ts +41 -0
- package/dist/types/chat/auth.js +1 -0
- package/dist/types/chat/call.d.ts +19 -0
- package/dist/types/chat/call.js +23 -0
- package/dist/types/chat/global.d.ts +58 -0
- package/dist/types/chat/global.js +1 -0
- package/dist/types/chat/promise.d.ts +17 -0
- package/dist/types/chat/promise.js +1 -0
- package/dist/types/chat/user.d.ts +88 -0
- package/dist/types/chat/user.js +1 -0
- package/dist/types/conversation.d.ts +23 -0
- package/dist/types/conversation.js +1 -0
- package/dist/types/global.d.ts +11 -0
- package/dist/types/global.js +15 -0
- package/dist/types/message.d.ts +52 -0
- package/dist/types/message.js +1 -0
- package/dist/utils/chat/cache.d.ts +7 -0
- package/dist/utils/chat/cache.js +63 -0
- package/dist/utils/chat/chat-router.d.ts +5 -0
- package/dist/utils/chat/chat-router.js +14 -0
- package/dist/utils/chat/page-error.d.ts +4 -0
- package/dist/utils/chat/page-error.js +25 -0
- package/dist/utils/chat/phone-string.d.ts +1 -0
- package/dist/utils/chat/phone-string.js +4 -0
- package/dist/utils/chat/queue.d.ts +7 -0
- package/dist/utils/chat/queue.js +30 -0
- package/dist/utils/chat/store/auth.d.ts +62 -0
- package/dist/utils/chat/store/auth.js +93 -0
- package/dist/utils/chat/store/call.d.ts +15 -0
- package/dist/utils/chat/store/call.js +160 -0
- package/dist/utils/chat/store/conversation.d.ts +14 -0
- package/dist/utils/chat/store/conversation.js +73 -0
- package/dist/utils/chat/store/message.d.ts +27 -0
- package/dist/utils/chat/store/message.js +70 -0
- package/dist/utils/chat/store/time-limit.d.ts +5 -0
- package/dist/utils/chat/store/time-limit.js +8 -0
- package/dist/utils/chat/store/user.d.ts +200 -0
- package/dist/utils/chat/store/user.js +44 -0
- package/dist/utils/dayjs-helper.d.ts +3 -0
- package/dist/utils/dayjs-helper.js +8 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +9 -0
- package/dist/utils/json.d.ts +2 -0
- package/dist/utils/json.js +18 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.js +5 -0
- package/dist/utils/string-helper.d.ts +3 -0
- package/dist/utils/string-helper.js +43 -0
- package/dist/views/NotTenantPhone.vue.d.ts +9 -0
- package/dist/views/NotTenantPhone.vue.js +99 -0
- package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +19 -0
- package/dist/views/home/phone-numpad/ConvercationList.vue.js +177 -0
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +32 -0
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +403 -0
- package/package.json +1 -1
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import Avatar from '../../../components/chat/customer/Avatar.vue';
|
|
3
|
+
import { dataProfile } from '../../../utils/chat/store/auth';
|
|
4
|
+
import { computed, nextTick } from 'vue';
|
|
5
|
+
import { MessageState } from '../../../constant/message';
|
|
6
|
+
import IconPhoneCancel from '../../../assets/icons/call/IconPhoneCancel.vue';
|
|
7
|
+
import { PLIVO_CALL_STATUS } from '../../../types/chat/call';
|
|
8
|
+
import IconPhone from '../../../assets/icons/customer-detail/IconPhone.vue';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
10
|
+
import { DATE_FORMATS, TIME_ZONE_UTC } from '../../../constant/datetime';
|
|
11
|
+
import utc from 'dayjs/plugin/utc';
|
|
12
|
+
import timezone from 'dayjs/plugin/timezone';
|
|
13
|
+
dayjs.extend(utc);
|
|
14
|
+
dayjs.extend(timezone);
|
|
15
|
+
const props = withDefaults(defineProps(), {});
|
|
16
|
+
const emit = defineEmits();
|
|
17
|
+
const callTitle = computed(() => {
|
|
18
|
+
if (props.isMyMessage) {
|
|
19
|
+
if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED) {
|
|
20
|
+
return 'Call canceled';
|
|
21
|
+
}
|
|
22
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
23
|
+
return 'Outgoing audio call';
|
|
24
|
+
}
|
|
25
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CANCEL) {
|
|
26
|
+
return 'Call canceled';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (props.message?.call_status == PLIVO_CALL_STATUS.CONNECT_FAILED ||
|
|
31
|
+
props.message?.call_status == PLIVO_CALL_STATUS.TIME_OUT ||
|
|
32
|
+
props.message?.call_status == PLIVO_CALL_STATUS.CANCEL ||
|
|
33
|
+
props.message?.call_status == PLIVO_CALL_STATUS.NO_ANSWER ||
|
|
34
|
+
props.message?.call_status == PLIVO_CALL_STATUS.BUSY) {
|
|
35
|
+
return 'Call missed';
|
|
36
|
+
}
|
|
37
|
+
else if (props.message?.call_status == PLIVO_CALL_STATUS.CALL_END) {
|
|
38
|
+
return 'Incomming audio call';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return '';
|
|
42
|
+
});
|
|
43
|
+
const scrollBottom = () => {
|
|
44
|
+
nextTick(() => {
|
|
45
|
+
const eleIdContentChat = document.getElementById('content-chat');
|
|
46
|
+
if (eleIdContentChat) {
|
|
47
|
+
eleIdContentChat.scrollTop = eleIdContentChat.scrollHeight;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const getCallDuration = (seconds) => {
|
|
52
|
+
const min = Math.floor(seconds / 60);
|
|
53
|
+
const secs = seconds % 60;
|
|
54
|
+
return `${min} min${min > 1 ? 's' : ''} ${secs} sec`;
|
|
55
|
+
};
|
|
56
|
+
const getMessageStateText = (item) => {
|
|
57
|
+
const state = item.state;
|
|
58
|
+
switch (state) {
|
|
59
|
+
case MessageState.Sending:
|
|
60
|
+
return 'Sending...';
|
|
61
|
+
case MessageState.Uploading:
|
|
62
|
+
return 'Uploading...';
|
|
63
|
+
case MessageState.Sent:
|
|
64
|
+
return '';
|
|
65
|
+
case MessageState.Read:
|
|
66
|
+
return 'Seen';
|
|
67
|
+
case MessageState.Failed:
|
|
68
|
+
return item.error || 'Message failed';
|
|
69
|
+
default:
|
|
70
|
+
return '';
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const getFinishTime = (time) => {
|
|
74
|
+
if (!dayjs(time).isValid())
|
|
75
|
+
return '';
|
|
76
|
+
return dayjs.tz(time, TIME_ZONE_UTC).local().format(DATE_FORMATS.TIME_12_FORMAT);
|
|
77
|
+
};
|
|
78
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
79
|
+
const __VLS_defaults = {};
|
|
80
|
+
const __VLS_ctx = {
|
|
81
|
+
...{},
|
|
82
|
+
...{},
|
|
83
|
+
...{},
|
|
84
|
+
...{},
|
|
85
|
+
...{},
|
|
86
|
+
};
|
|
87
|
+
let __VLS_elements;
|
|
88
|
+
let __VLS_components;
|
|
89
|
+
let __VLS_directives;
|
|
90
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
91
|
+
...{ class: "flex items-end mt-1" },
|
|
92
|
+
...{ class: ({
|
|
93
|
+
'mt-2': __VLS_ctx.shouldShowAvatar,
|
|
94
|
+
'flex-col justify-end pl-[60px]': __VLS_ctx.isMyMessage,
|
|
95
|
+
'gap-2': !__VLS_ctx.isMyMessage
|
|
96
|
+
}) },
|
|
97
|
+
});
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
[shouldShowAvatar, isMyMessage, isMyMessage,];
|
|
100
|
+
if (__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage) {
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
[isMyMessage, message, MessageState,];
|
|
103
|
+
if (!__VLS_ctx.isMyMessage) {
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
[isMyMessage,];
|
|
106
|
+
if (__VLS_ctx.shouldShowAvatar) {
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
[shouldShowAvatar,];
|
|
109
|
+
/** @type {[typeof Avatar, ]} */ ;
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
const __VLS_0 = __VLS_asFunctionalComponent(Avatar, new Avatar({
|
|
112
|
+
...{ class: "shrink-0" },
|
|
113
|
+
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
114
|
+
color: (__VLS_ctx.data?.color),
|
|
115
|
+
name: (__VLS_ctx.data?.username),
|
|
116
|
+
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
117
|
+
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'translate-y-[-2px]' : '') },
|
|
118
|
+
}));
|
|
119
|
+
const __VLS_1 = __VLS_0({
|
|
120
|
+
...{ class: "shrink-0" },
|
|
121
|
+
src: (__VLS_ctx.data?.avatar ?? ''),
|
|
122
|
+
color: (__VLS_ctx.data?.color),
|
|
123
|
+
name: (__VLS_ctx.data?.username),
|
|
124
|
+
size: (__VLS_ctx.responsive == 'mobile' ? 'sm' : 'md'),
|
|
125
|
+
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'translate-y-[-2px]' : '') },
|
|
126
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
[data, data, data, responsive, responsive,];
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
132
|
+
...{ class: "shrink-0" },
|
|
133
|
+
...{ class: (__VLS_ctx.responsive == 'mobile' ? 'w-8' : 'w-12') },
|
|
134
|
+
});
|
|
135
|
+
// @ts-ignore
|
|
136
|
+
[responsive,];
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
140
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
141
|
+
...{ class: "px-3 py-2 rounded-2xl max-w-xs text-left" },
|
|
142
|
+
...{ class: ({
|
|
143
|
+
'rounded-tl-none': !__VLS_ctx.isChatStart && !__VLS_ctx.isMyMessage,
|
|
144
|
+
'rounded-bl-none': !__VLS_ctx.isChatFinished && !__VLS_ctx.isMyMessage,
|
|
145
|
+
'rounded-tr-none': !__VLS_ctx.isChatStart && __VLS_ctx.isMyMessage,
|
|
146
|
+
'rounded-br-none': !__VLS_ctx.isChatFinished && __VLS_ctx.isMyMessage,
|
|
147
|
+
'!text-white !bg-chat-success': (__VLS_ctx.message.message_uuid && !__VLS_ctx.message.is_call) || __VLS_ctx.message.is_sms,
|
|
148
|
+
'bg-chat-primary text-white': __VLS_ctx.isMyMessage,
|
|
149
|
+
'bg-[#E4E4E4D4] text-chat-haze-600 w-max ': !__VLS_ctx.isMyMessage
|
|
150
|
+
}) },
|
|
151
|
+
});
|
|
152
|
+
// @ts-ignore
|
|
153
|
+
[isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, isMyMessage, message, message, message, isChatStart, isChatStart, isChatFinished, isChatFinished,];
|
|
154
|
+
if (__VLS_ctx.message.is_call == 1) {
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
[message,];
|
|
157
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
158
|
+
...{ class: "flex flex-col gap-2 w-[200px]" },
|
|
159
|
+
});
|
|
160
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
161
|
+
...{ class: "font-medium" },
|
|
162
|
+
...{ class: ({ 'text-chat-error': __VLS_ctx.message.call_status !== __VLS_ctx.PLIVO_CALL_STATUS.CALL_END }) },
|
|
163
|
+
});
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
[message, PLIVO_CALL_STATUS,];
|
|
166
|
+
(__VLS_ctx.callTitle);
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
[callTitle,];
|
|
169
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
170
|
+
...{ class: "flex items-center gap-2 shrink-0" },
|
|
171
|
+
});
|
|
172
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
173
|
+
...{ class: "overflow-hidden w-8 h-8 rounded-full text-white" },
|
|
174
|
+
});
|
|
175
|
+
if (__VLS_ctx.message.call_status == __VLS_ctx.PLIVO_CALL_STATUS.CALL_END) {
|
|
176
|
+
// @ts-ignore
|
|
177
|
+
[message, PLIVO_CALL_STATUS,];
|
|
178
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
179
|
+
...{ class: "bg-chat-success flex-center w-full h-full" },
|
|
180
|
+
});
|
|
181
|
+
/** @type {[typeof IconPhone, ]} */ ;
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
const __VLS_4 = __VLS_asFunctionalComponent(IconPhone, new IconPhone({
|
|
184
|
+
...{ class: "w-5 h-5" },
|
|
185
|
+
}));
|
|
186
|
+
const __VLS_5 = __VLS_4({
|
|
187
|
+
...{ class: "w-5 h-5" },
|
|
188
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_4));
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
192
|
+
...{ class: "bg-chat-error flex-center w-full h-full" },
|
|
193
|
+
});
|
|
194
|
+
/** @type {[typeof IconPhoneCancel, ]} */ ;
|
|
195
|
+
// @ts-ignore
|
|
196
|
+
const __VLS_8 = __VLS_asFunctionalComponent(IconPhoneCancel, new IconPhoneCancel({
|
|
197
|
+
...{ class: "w-5 h-5" },
|
|
198
|
+
}));
|
|
199
|
+
const __VLS_9 = __VLS_8({
|
|
200
|
+
...{ class: "w-5 h-5" },
|
|
201
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
202
|
+
}
|
|
203
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
204
|
+
(__VLS_ctx.getCallDuration(__VLS_ctx.message?.duration ?? 0));
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
[message, getCallDuration,];
|
|
207
|
+
if (__VLS_ctx.dataProfile?.user_type == 'tenant') {
|
|
208
|
+
// @ts-ignore
|
|
209
|
+
[dataProfile,];
|
|
210
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
211
|
+
...{ onClick: (...[$event]) => {
|
|
212
|
+
if (!(__VLS_ctx.message.state != __VLS_ctx.MessageState.Sending || __VLS_ctx.isMyMessage))
|
|
213
|
+
return;
|
|
214
|
+
if (!(__VLS_ctx.message.is_call == 1))
|
|
215
|
+
return;
|
|
216
|
+
if (!(__VLS_ctx.dataProfile?.user_type == 'tenant'))
|
|
217
|
+
return;
|
|
218
|
+
__VLS_ctx.emit('callAgain');
|
|
219
|
+
// @ts-ignore
|
|
220
|
+
[emit,];
|
|
221
|
+
} },
|
|
222
|
+
...{ class: "flex-center h-10 rounded-xl bg-chat-haze-200 font-semibold" },
|
|
223
|
+
});
|
|
224
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
else if (__VLS_ctx.message.message) {
|
|
228
|
+
// @ts-ignore
|
|
229
|
+
[message,];
|
|
230
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
231
|
+
__VLS_asFunctionalElement(__VLS_elements.div)({
|
|
232
|
+
...{ style: ({ wordBreak: 'break-word' }) },
|
|
233
|
+
});
|
|
234
|
+
__VLS_asFunctionalDirective(__VLS_directives.vHtml)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.message.message) }, null, null);
|
|
235
|
+
// @ts-ignore
|
|
236
|
+
[message,];
|
|
237
|
+
}
|
|
238
|
+
else if (__VLS_ctx.message?.attachments?.length) {
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
[message,];
|
|
241
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
|
|
242
|
+
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
243
|
+
...{ onLoad: (() => {
|
|
244
|
+
if (__VLS_ctx.isLastMessage) {
|
|
245
|
+
__VLS_ctx.scrollBottom();
|
|
246
|
+
}
|
|
247
|
+
}) },
|
|
248
|
+
src: (__VLS_ctx.message.attachments[0]?.file_path),
|
|
249
|
+
alt: "avatar",
|
|
250
|
+
});
|
|
251
|
+
// @ts-ignore
|
|
252
|
+
[message, isLastMessage, scrollBottom,];
|
|
253
|
+
}
|
|
254
|
+
if (__VLS_ctx.isChatFinished) {
|
|
255
|
+
// @ts-ignore
|
|
256
|
+
[isChatFinished,];
|
|
257
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
258
|
+
...{ class: "text-sm mt-1" },
|
|
259
|
+
});
|
|
260
|
+
(__VLS_ctx.getFinishTime(__VLS_ctx.message?.created_at));
|
|
261
|
+
// @ts-ignore
|
|
262
|
+
[message, getFinishTime,];
|
|
263
|
+
}
|
|
264
|
+
if (__VLS_ctx.isMyMessage) {
|
|
265
|
+
// @ts-ignore
|
|
266
|
+
[isMyMessage,];
|
|
267
|
+
if ((__VLS_ctx.isLastMessage && __VLS_ctx.getMessageStateText(__VLS_ctx.message)) || __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed) {
|
|
268
|
+
// @ts-ignore
|
|
269
|
+
[message, message, MessageState, isLastMessage, getMessageStateText,];
|
|
270
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
271
|
+
...{ class: "text-chat-haze-200 text-xs mt-1" },
|
|
272
|
+
...{ class: ({ '!text-chat-error': __VLS_ctx.message.state == __VLS_ctx.MessageState.Failed }) },
|
|
273
|
+
});
|
|
274
|
+
// @ts-ignore
|
|
275
|
+
[message, MessageState,];
|
|
276
|
+
(__VLS_ctx.getMessageStateText(__VLS_ctx.message));
|
|
277
|
+
// @ts-ignore
|
|
278
|
+
[message, getMessageStateText,];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
283
|
+
/** @type {__VLS_StyleScopedClasses['items-end']} */ ;
|
|
284
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
285
|
+
/** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
|
|
286
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
287
|
+
/** @type {__VLS_StyleScopedClasses['justify-end']} */ ;
|
|
288
|
+
/** @type {__VLS_StyleScopedClasses['pl-[60px]']} */ ;
|
|
289
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
290
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
291
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
292
|
+
/** @type {__VLS_StyleScopedClasses['px-3']} */ ;
|
|
293
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
294
|
+
/** @type {__VLS_StyleScopedClasses['rounded-2xl']} */ ;
|
|
295
|
+
/** @type {__VLS_StyleScopedClasses['max-w-xs']} */ ;
|
|
296
|
+
/** @type {__VLS_StyleScopedClasses['text-left']} */ ;
|
|
297
|
+
/** @type {__VLS_StyleScopedClasses['rounded-tl-none']} */ ;
|
|
298
|
+
/** @type {__VLS_StyleScopedClasses['rounded-bl-none']} */ ;
|
|
299
|
+
/** @type {__VLS_StyleScopedClasses['rounded-tr-none']} */ ;
|
|
300
|
+
/** @type {__VLS_StyleScopedClasses['rounded-br-none']} */ ;
|
|
301
|
+
/** @type {__VLS_StyleScopedClasses['!text-white']} */ ;
|
|
302
|
+
/** @type {__VLS_StyleScopedClasses['!bg-chat-success']} */ ;
|
|
303
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-primary']} */ ;
|
|
304
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
305
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#E4E4E4D4]']} */ ;
|
|
306
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
307
|
+
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
308
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
309
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
310
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
311
|
+
/** @type {__VLS_StyleScopedClasses['w-[200px]']} */ ;
|
|
312
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
313
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-error']} */ ;
|
|
314
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
315
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
316
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
317
|
+
/** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
|
|
318
|
+
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
319
|
+
/** @type {__VLS_StyleScopedClasses['w-8']} */ ;
|
|
320
|
+
/** @type {__VLS_StyleScopedClasses['h-8']} */ ;
|
|
321
|
+
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
322
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
323
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-success']} */ ;
|
|
324
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
325
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
326
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
327
|
+
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
328
|
+
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
329
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-error']} */ ;
|
|
330
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
331
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
332
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
333
|
+
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
334
|
+
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
335
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
336
|
+
/** @type {__VLS_StyleScopedClasses['h-10']} */ ;
|
|
337
|
+
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
338
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
339
|
+
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
340
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
341
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
342
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-200']} */ ;
|
|
343
|
+
/** @type {__VLS_StyleScopedClasses['text-xs']} */ ;
|
|
344
|
+
/** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
|
|
345
|
+
/** @type {__VLS_StyleScopedClasses['!text-chat-error']} */ ;
|
|
346
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
347
|
+
__typeEmits: {},
|
|
348
|
+
__typeProps: {},
|
|
349
|
+
props: {},
|
|
350
|
+
});
|
|
351
|
+
export default {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'vue3-emoji-picker/css';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
'file'?: Blob | null;
|
|
4
|
+
'link'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:file": (value: Blob | null | undefined) => any;
|
|
8
|
+
"update:link": (value: string | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
10
|
+
"onUpdate:file"?: ((value: Blob | null | undefined) => any) | undefined;
|
|
11
|
+
"onUpdate:link"?: ((value: string | undefined) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import 'vue3-emoji-picker/css';
|
|
3
|
+
import { ref, onMounted, onUnmounted } from 'vue';
|
|
4
|
+
// type Props = {
|
|
5
|
+
// data: IResUser | null
|
|
6
|
+
// responsive: PAGE_RESPONSIVE
|
|
7
|
+
// }
|
|
8
|
+
// const props = withDefaults(defineProps<Props>(), {})
|
|
9
|
+
// const emit = defineEmits<{
|
|
10
|
+
// (e: 'sendMessage', val: IResMessage): void
|
|
11
|
+
// (e: 'focus'): void
|
|
12
|
+
// }>()
|
|
13
|
+
const ChatModeOptions = [
|
|
14
|
+
{ value: '0', label: 'Go Chat' },
|
|
15
|
+
{ value: '1', label: 'Go sms' }
|
|
16
|
+
];
|
|
17
|
+
const dropFile = defineModel('file');
|
|
18
|
+
const dropFileLink = defineModel('link');
|
|
19
|
+
let dragCounter = 0;
|
|
20
|
+
onMounted(() => {
|
|
21
|
+
window.addEventListener('dragenter', onWindowDragEnter);
|
|
22
|
+
window.addEventListener('dragleave', onWindowDragLeave);
|
|
23
|
+
window.addEventListener('drop', onWindowDrop);
|
|
24
|
+
window.addEventListener('dragover', onWindowDragOver);
|
|
25
|
+
});
|
|
26
|
+
onUnmounted(() => {
|
|
27
|
+
window.removeEventListener('dragenter', onWindowDragEnter);
|
|
28
|
+
window.removeEventListener('dragleave', onWindowDragLeave);
|
|
29
|
+
window.removeEventListener('drop', onWindowDrop);
|
|
30
|
+
window.removeEventListener('dragover', onWindowDragOver);
|
|
31
|
+
});
|
|
32
|
+
const mode = ref('0');
|
|
33
|
+
const isHover = ref(false);
|
|
34
|
+
const showDropzone = ref(false);
|
|
35
|
+
const onWindowDragEnter = (e) => {
|
|
36
|
+
if (!e.dataTransfer?.types.includes('Files'))
|
|
37
|
+
return;
|
|
38
|
+
dragCounter++;
|
|
39
|
+
showDropzone.value = true;
|
|
40
|
+
};
|
|
41
|
+
const onWindowDragLeave = () => {
|
|
42
|
+
dragCounter--;
|
|
43
|
+
if (dragCounter === 0) {
|
|
44
|
+
showDropzone.value = false;
|
|
45
|
+
isHover.value = false;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const isFileDrag = (e) => {
|
|
49
|
+
return e.dataTransfer?.types.includes('Files');
|
|
50
|
+
};
|
|
51
|
+
const onWindowDragOver = (e) => {
|
|
52
|
+
if (!isFileDrag(e))
|
|
53
|
+
return;
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
};
|
|
56
|
+
const onWindowDrop = (e) => {
|
|
57
|
+
if (!isFileDrag(e))
|
|
58
|
+
return;
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
dragCounter = 0;
|
|
61
|
+
showDropzone.value = false;
|
|
62
|
+
isHover.value = false;
|
|
63
|
+
};
|
|
64
|
+
const onDrop = (e) => {
|
|
65
|
+
isHover.value = false;
|
|
66
|
+
const files = e.dataTransfer?.files;
|
|
67
|
+
if (files)
|
|
68
|
+
handleFiles(files);
|
|
69
|
+
};
|
|
70
|
+
const handleFiles = (files) => {
|
|
71
|
+
if (files.length) {
|
|
72
|
+
const file_path = URL.createObjectURL(files[0]);
|
|
73
|
+
dropFile.value = files[0];
|
|
74
|
+
dropFileLink.value = file_path;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
78
|
+
const __VLS_modelEmit = defineEmits();
|
|
79
|
+
const __VLS_ctx = {
|
|
80
|
+
...{},
|
|
81
|
+
...{},
|
|
82
|
+
...{},
|
|
83
|
+
...{},
|
|
84
|
+
...{},
|
|
85
|
+
};
|
|
86
|
+
let __VLS_elements;
|
|
87
|
+
let __VLS_components;
|
|
88
|
+
let __VLS_directives;
|
|
89
|
+
if (__VLS_ctx.showDropzone) {
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
[showDropzone,];
|
|
92
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
93
|
+
...{ onDragover: (...[$event]) => {
|
|
94
|
+
if (!(__VLS_ctx.showDropzone))
|
|
95
|
+
return;
|
|
96
|
+
__VLS_ctx.isHover = true;
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
[isHover,];
|
|
99
|
+
} },
|
|
100
|
+
...{ onDragleave: (...[$event]) => {
|
|
101
|
+
if (!(__VLS_ctx.showDropzone))
|
|
102
|
+
return;
|
|
103
|
+
__VLS_ctx.isHover = false;
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
[isHover,];
|
|
106
|
+
} },
|
|
107
|
+
...{ onDrop: (__VLS_ctx.onDrop) },
|
|
108
|
+
...{ class: "dropzone" },
|
|
109
|
+
...{ class: ({ hover: __VLS_ctx.isHover }) },
|
|
110
|
+
});
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
[isHover, onDrop,];
|
|
113
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
114
|
+
...{ class: "dropzone_border" },
|
|
115
|
+
});
|
|
116
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
117
|
+
...{ class: "text-chat-haze-500 text-xl font-medium" },
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/** @type {__VLS_StyleScopedClasses['dropzone']} */ ;
|
|
121
|
+
/** @type {__VLS_StyleScopedClasses['hover']} */ ;
|
|
122
|
+
/** @type {__VLS_StyleScopedClasses['dropzone_border']} */ ;
|
|
123
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-500']} */ ;
|
|
124
|
+
/** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
|
|
125
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
126
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
127
|
+
__typeEmits: {},
|
|
128
|
+
__typeProps: {},
|
|
129
|
+
});
|
|
130
|
+
export default {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IResUser } from '../../../types/message';
|
|
2
|
+
import type { PAGE_RESPONSIVE, PARENT_PAGE_NAME } from '../../../types/chat/global';
|
|
3
|
+
import type { IConversation } from '../../../types/conversation';
|
|
4
|
+
type Props = {
|
|
5
|
+
receiverId: any;
|
|
6
|
+
responsive: PAGE_RESPONSIVE;
|
|
7
|
+
conversation: IConversation | null;
|
|
8
|
+
parentPageName: PARENT_PAGE_NAME;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
11
|
+
getData: (data?: any) => Promise<void>;
|
|
12
|
+
handleGetMessage: (option?: {
|
|
13
|
+
resetList?: boolean | undefined;
|
|
14
|
+
is_mqtt?: boolean | undefined;
|
|
15
|
+
} | undefined) => Promise<void>;
|
|
16
|
+
infoUser: import("vue").ShallowRef<IResUser | null>;
|
|
17
|
+
handleGetDetailReceiverQuickly: (data: IResUser) => void;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
call: (value: IResUser) => any;
|
|
20
|
+
back: () => any;
|
|
21
|
+
viewAppointment: (id: any) => any;
|
|
22
|
+
inputFocus: () => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
onCall?: ((value: IResUser) => any) | undefined;
|
|
25
|
+
onBack?: (() => any) | undefined;
|
|
26
|
+
onViewAppointment?: ((id: any) => any) | undefined;
|
|
27
|
+
onInputFocus?: (() => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
export default _default;
|