@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,187 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import IconCloseCircle from '@/assets/icons/global/IconCloseCircle.vue';
|
|
3
|
+
defineOptions({
|
|
4
|
+
inheritAttrs: false
|
|
5
|
+
});
|
|
6
|
+
import { Dialog, DialogHeader, DialogTitle, DialogScrollContent } from '../../../components/ui/dialog';
|
|
7
|
+
// COMPONENT
|
|
8
|
+
// import BaseTitle from '../../../components/common/base/BaseTitle.vue'
|
|
9
|
+
import { useAttrs } from 'vue';
|
|
10
|
+
const props = withDefaults(defineProps(), {
|
|
11
|
+
title: 'This is title',
|
|
12
|
+
width: '100%',
|
|
13
|
+
showButtonClose: true,
|
|
14
|
+
showTitle: true,
|
|
15
|
+
open: false,
|
|
16
|
+
nonClosable: false,
|
|
17
|
+
zIndex: 50,
|
|
18
|
+
class: '',
|
|
19
|
+
});
|
|
20
|
+
const emit = defineEmits();
|
|
21
|
+
const attrs = useAttrs();
|
|
22
|
+
const show = () => {
|
|
23
|
+
emit('update:open', true);
|
|
24
|
+
};
|
|
25
|
+
const hide = () => {
|
|
26
|
+
emit('update:open', false);
|
|
27
|
+
};
|
|
28
|
+
const handleClickOutside = (value) => {
|
|
29
|
+
if (props.nonClosable)
|
|
30
|
+
value.preventDefault();
|
|
31
|
+
};
|
|
32
|
+
const __VLS_exposed = {
|
|
33
|
+
show,
|
|
34
|
+
hide
|
|
35
|
+
};
|
|
36
|
+
defineExpose(__VLS_exposed);
|
|
37
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
38
|
+
const __VLS_defaults = {
|
|
39
|
+
title: 'This is title',
|
|
40
|
+
width: '100%',
|
|
41
|
+
showButtonClose: true,
|
|
42
|
+
showTitle: true,
|
|
43
|
+
open: false,
|
|
44
|
+
nonClosable: false,
|
|
45
|
+
zIndex: 50,
|
|
46
|
+
class: '',
|
|
47
|
+
};
|
|
48
|
+
const __VLS_ctx = {
|
|
49
|
+
...{},
|
|
50
|
+
...{},
|
|
51
|
+
...{},
|
|
52
|
+
...{},
|
|
53
|
+
...{},
|
|
54
|
+
};
|
|
55
|
+
let __VLS_elements;
|
|
56
|
+
let __VLS_components;
|
|
57
|
+
let __VLS_directives;
|
|
58
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
59
|
+
...(__VLS_ctx.attrs),
|
|
60
|
+
});
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
[attrs,];
|
|
63
|
+
const __VLS_0 = {}.Dialog;
|
|
64
|
+
/** @type {[typeof __VLS_components.Dialog, typeof __VLS_components.Dialog, ]} */ ;
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
Dialog;
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
69
|
+
...{ 'onUpdate:open': {} },
|
|
70
|
+
open: (props.open),
|
|
71
|
+
disableOutsidePointerEvents: (true),
|
|
72
|
+
}));
|
|
73
|
+
const __VLS_2 = __VLS_1({
|
|
74
|
+
...{ 'onUpdate:open': {} },
|
|
75
|
+
open: (props.open),
|
|
76
|
+
disableOutsidePointerEvents: (true),
|
|
77
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
78
|
+
let __VLS_4;
|
|
79
|
+
let __VLS_5;
|
|
80
|
+
const __VLS_6 = ({ 'update:open': {} },
|
|
81
|
+
{ 'onUpdate:open': ((val) => __VLS_ctx.emit('update:open', val)) });
|
|
82
|
+
const { default: __VLS_7 } = __VLS_3.slots;
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
[emit,];
|
|
85
|
+
const __VLS_8 = {}.DialogScrollContent;
|
|
86
|
+
/** @type {[typeof __VLS_components.DialogScrollContent, typeof __VLS_components.DialogScrollContent, ]} */ ;
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
DialogScrollContent;
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
const __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8({
|
|
91
|
+
...{ 'onInteractOutside': {} },
|
|
92
|
+
disableOutsidePointerEvents: (true),
|
|
93
|
+
width: (__VLS_ctx.width),
|
|
94
|
+
...{ class: (props.class) },
|
|
95
|
+
zIndex: (__VLS_ctx.zIndex),
|
|
96
|
+
}));
|
|
97
|
+
const __VLS_10 = __VLS_9({
|
|
98
|
+
...{ 'onInteractOutside': {} },
|
|
99
|
+
disableOutsidePointerEvents: (true),
|
|
100
|
+
width: (__VLS_ctx.width),
|
|
101
|
+
...{ class: (props.class) },
|
|
102
|
+
zIndex: (__VLS_ctx.zIndex),
|
|
103
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_9));
|
|
104
|
+
let __VLS_12;
|
|
105
|
+
let __VLS_13;
|
|
106
|
+
const __VLS_14 = ({ interactOutside: {} },
|
|
107
|
+
{ onInteractOutside: (__VLS_ctx.handleClickOutside) });
|
|
108
|
+
const { default: __VLS_15 } = __VLS_11.slots;
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
[width, zIndex, handleClickOutside,];
|
|
111
|
+
const __VLS_16 = {}.DialogHeader;
|
|
112
|
+
/** @type {[typeof __VLS_components.DialogHeader, typeof __VLS_components.DialogHeader, ]} */ ;
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
DialogHeader;
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({}));
|
|
117
|
+
const __VLS_18 = __VLS_17({}, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
118
|
+
const { default: __VLS_20 } = __VLS_19.slots;
|
|
119
|
+
const __VLS_21 = {}.DialogTitle;
|
|
120
|
+
/** @type {[typeof __VLS_components.DialogTitle, typeof __VLS_components.DialogTitle, ]} */ ;
|
|
121
|
+
// @ts-ignore
|
|
122
|
+
DialogTitle;
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
const __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({}));
|
|
125
|
+
const __VLS_23 = __VLS_22({}, ...__VLS_functionalComponentArgsRest(__VLS_22));
|
|
126
|
+
const { default: __VLS_25 } = __VLS_24.slots;
|
|
127
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
128
|
+
...{ class: "h-full min-h-[46px] lg:min-h-[52px] flex items-center relative bg-chat-haze-100 sm:rounded-t-lg px-6 py-1" },
|
|
129
|
+
});
|
|
130
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
131
|
+
...{ class: "text-base lg:text-xl font-medium mr-[50px] " },
|
|
132
|
+
});
|
|
133
|
+
(__VLS_ctx.title);
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
[title,];
|
|
136
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
137
|
+
...{ class: "h-full w-[50px] flex-center absolute right-0 cursor-pointer mr-1" },
|
|
138
|
+
});
|
|
139
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
140
|
+
...{ onClick: (__VLS_ctx.hide) },
|
|
141
|
+
...{ class: "h-full w-full flex-center" },
|
|
142
|
+
});
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
[hide,];
|
|
145
|
+
/** @type {[typeof IconCloseCircle, ]} */ ;
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
const __VLS_26 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
|
|
148
|
+
const __VLS_27 = __VLS_26({}, ...__VLS_functionalComponentArgsRest(__VLS_26));
|
|
149
|
+
var __VLS_24;
|
|
150
|
+
var __VLS_30 = {};
|
|
151
|
+
var __VLS_19;
|
|
152
|
+
var __VLS_11;
|
|
153
|
+
var __VLS_3;
|
|
154
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
155
|
+
/** @type {__VLS_StyleScopedClasses['min-h-[46px]']} */ ;
|
|
156
|
+
/** @type {__VLS_StyleScopedClasses['lg:min-h-[52px]']} */ ;
|
|
157
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
158
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
159
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
160
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-100']} */ ;
|
|
161
|
+
/** @type {__VLS_StyleScopedClasses['sm:rounded-t-lg']} */ ;
|
|
162
|
+
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
163
|
+
/** @type {__VLS_StyleScopedClasses['py-1']} */ ;
|
|
164
|
+
/** @type {__VLS_StyleScopedClasses['text-base']} */ ;
|
|
165
|
+
/** @type {__VLS_StyleScopedClasses['lg:text-xl']} */ ;
|
|
166
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
167
|
+
/** @type {__VLS_StyleScopedClasses['mr-[50px]']} */ ;
|
|
168
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
169
|
+
/** @type {__VLS_StyleScopedClasses['w-[50px]']} */ ;
|
|
170
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
171
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
172
|
+
/** @type {__VLS_StyleScopedClasses['right-0']} */ ;
|
|
173
|
+
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
174
|
+
/** @type {__VLS_StyleScopedClasses['mr-1']} */ ;
|
|
175
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
176
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
177
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
var __VLS_31 = __VLS_30;
|
|
180
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
181
|
+
setup: () => (__VLS_exposed),
|
|
182
|
+
__typeEmits: {},
|
|
183
|
+
__typeProps: {},
|
|
184
|
+
props: {},
|
|
185
|
+
});
|
|
186
|
+
const __VLS_export = {};
|
|
187
|
+
export default {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type Props = {};
|
|
2
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
const props = withDefaults(defineProps(), {
|
|
4
|
+
placement: 'bottom',
|
|
5
|
+
trigger: 'click'
|
|
6
|
+
});
|
|
7
|
+
const open = ref(false);
|
|
8
|
+
const hide = () => {
|
|
9
|
+
open.value = false;
|
|
10
|
+
};
|
|
11
|
+
const handleClickChange = (visible) => {
|
|
12
|
+
open.value = visible;
|
|
13
|
+
};
|
|
14
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
15
|
+
const __VLS_defaults = {
|
|
16
|
+
placement: 'bottom',
|
|
17
|
+
trigger: 'click'
|
|
18
|
+
};
|
|
19
|
+
const __VLS_ctx = {
|
|
20
|
+
...{},
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
};
|
|
25
|
+
let __VLS_elements;
|
|
26
|
+
let __VLS_components;
|
|
27
|
+
let __VLS_directives;
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
29
|
+
...{ class: "relative" },
|
|
30
|
+
});
|
|
31
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
32
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
33
|
+
__typeProps: {},
|
|
34
|
+
props: {},
|
|
35
|
+
});
|
|
36
|
+
export default {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SelectContentProps } from 'reka-ui';
|
|
2
|
+
type Props = Pick<SelectContentProps, 'side' | 'align'> & {
|
|
3
|
+
options: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
}[];
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Props = Props;
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
'open'?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare var __VLS_15: {}, __VLS_22: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_15) => any;
|
|
17
|
+
} & {
|
|
18
|
+
content?: (props: typeof __VLS_22) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:open": (value: boolean | undefined) => any;
|
|
22
|
+
} & {
|
|
23
|
+
change: (value: any) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
onChange?: ((value: any) => any) | undefined;
|
|
26
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger } from '../../ui/select';
|
|
3
|
+
import { onMounted, useSlots } from 'vue';
|
|
4
|
+
const props = defineProps();
|
|
5
|
+
const open = defineModel('open');
|
|
6
|
+
const emit = defineEmits();
|
|
7
|
+
onMounted(() => { });
|
|
8
|
+
const slots = useSlots();
|
|
9
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
10
|
+
const __VLS_modelEmit = defineEmits();
|
|
11
|
+
const __VLS_ctx = {
|
|
12
|
+
...{},
|
|
13
|
+
...{},
|
|
14
|
+
...{},
|
|
15
|
+
...{},
|
|
16
|
+
...{},
|
|
17
|
+
};
|
|
18
|
+
let __VLS_elements;
|
|
19
|
+
let __VLS_components;
|
|
20
|
+
let __VLS_directives;
|
|
21
|
+
const __VLS_0 = {}.Select;
|
|
22
|
+
/** @type {[typeof __VLS_components.Select, typeof __VLS_components.Select, ]} */ ;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
Select;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
27
|
+
...{ 'onUpdate:modelValue': {} },
|
|
28
|
+
open: (__VLS_ctx.open),
|
|
29
|
+
}));
|
|
30
|
+
const __VLS_2 = __VLS_1({
|
|
31
|
+
...{ 'onUpdate:modelValue': {} },
|
|
32
|
+
open: (__VLS_ctx.open),
|
|
33
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
34
|
+
let __VLS_4;
|
|
35
|
+
let __VLS_5;
|
|
36
|
+
const __VLS_6 = ({ 'update:modelValue': {} },
|
|
37
|
+
{ 'onUpdate:modelValue': (...[$event]) => {
|
|
38
|
+
__VLS_ctx.emit('change', $event);
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
[open, emit,];
|
|
41
|
+
} });
|
|
42
|
+
var __VLS_7 = {};
|
|
43
|
+
const { default: __VLS_8 } = __VLS_3.slots;
|
|
44
|
+
const __VLS_9 = {}.SelectTrigger;
|
|
45
|
+
/** @type {[typeof __VLS_components.SelectTrigger, typeof __VLS_components.SelectTrigger, ]} */ ;
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
SelectTrigger;
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
|
|
50
|
+
...{ class: "" },
|
|
51
|
+
}));
|
|
52
|
+
const __VLS_11 = __VLS_10({
|
|
53
|
+
...{ class: "" },
|
|
54
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
55
|
+
const { default: __VLS_13 } = __VLS_12.slots;
|
|
56
|
+
var __VLS_14 = {};
|
|
57
|
+
var __VLS_12;
|
|
58
|
+
const __VLS_16 = {}.SelectContent;
|
|
59
|
+
/** @type {[typeof __VLS_components.SelectContent, typeof __VLS_components.SelectContent, ]} */ ;
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
SelectContent;
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({
|
|
64
|
+
side: (__VLS_ctx.side),
|
|
65
|
+
align: (__VLS_ctx.align),
|
|
66
|
+
}));
|
|
67
|
+
const __VLS_18 = __VLS_17({
|
|
68
|
+
side: (__VLS_ctx.side),
|
|
69
|
+
align: (__VLS_ctx.align),
|
|
70
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
71
|
+
const { default: __VLS_20 } = __VLS_19.slots;
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
[side, align,];
|
|
74
|
+
if (__VLS_ctx.slots.content) {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
[slots,];
|
|
77
|
+
var __VLS_21 = {};
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const __VLS_23 = {}.SelectGroup;
|
|
81
|
+
/** @type {[typeof __VLS_components.SelectGroup, typeof __VLS_components.SelectGroup, ]} */ ;
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
SelectGroup;
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
const __VLS_24 = __VLS_asFunctionalComponent(__VLS_23, new __VLS_23({}));
|
|
86
|
+
const __VLS_25 = __VLS_24({}, ...__VLS_functionalComponentArgsRest(__VLS_24));
|
|
87
|
+
const { default: __VLS_27 } = __VLS_26.slots;
|
|
88
|
+
for (const [item] of __VLS_getVForSourceType((__VLS_ctx.options))) {
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
[options,];
|
|
91
|
+
const __VLS_28 = {}.SelectItem;
|
|
92
|
+
/** @type {[typeof __VLS_components.SelectItem, typeof __VLS_components.SelectItem, ]} */ ;
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
SelectItem;
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
const __VLS_29 = __VLS_asFunctionalComponent(__VLS_28, new __VLS_28({
|
|
97
|
+
key: (item.value),
|
|
98
|
+
value: (item.value),
|
|
99
|
+
}));
|
|
100
|
+
const __VLS_30 = __VLS_29({
|
|
101
|
+
key: (item.value),
|
|
102
|
+
value: (item.value),
|
|
103
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_29));
|
|
104
|
+
const { default: __VLS_32 } = __VLS_31.slots;
|
|
105
|
+
(item.label);
|
|
106
|
+
var __VLS_31;
|
|
107
|
+
}
|
|
108
|
+
var __VLS_26;
|
|
109
|
+
}
|
|
110
|
+
var __VLS_19;
|
|
111
|
+
var __VLS_3;
|
|
112
|
+
/** @type {__VLS_StyleScopedClasses['']} */ ;
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
var __VLS_15 = __VLS_14, __VLS_22 = __VLS_21;
|
|
115
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
116
|
+
__typeEmits: {},
|
|
117
|
+
__typeProps: {},
|
|
118
|
+
});
|
|
119
|
+
const __VLS_export = {};
|
|
120
|
+
export default {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (val: number) => any;
|
|
6
|
+
afterChange: (val: number) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
9
|
+
onAfterChange?: ((val: number) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { CSlider } from "../../../components/ui/slider";
|
|
4
|
+
const props = withDefaults(defineProps(), {});
|
|
5
|
+
const emits = defineEmits();
|
|
6
|
+
const value = computed({
|
|
7
|
+
get: () => [props.modelValue],
|
|
8
|
+
set: (val) => {
|
|
9
|
+
emits('update:modelValue', val[0]);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const onAfterChange = (value) => {
|
|
13
|
+
emits('afterChange', value);
|
|
14
|
+
};
|
|
15
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
16
|
+
const __VLS_defaults = {};
|
|
17
|
+
const __VLS_ctx = {
|
|
18
|
+
...{},
|
|
19
|
+
...{},
|
|
20
|
+
...{},
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
};
|
|
24
|
+
let __VLS_elements;
|
|
25
|
+
let __VLS_components;
|
|
26
|
+
let __VLS_directives;
|
|
27
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
28
|
+
...{ class: "relative" },
|
|
29
|
+
});
|
|
30
|
+
const __VLS_0 = {}.CSlider;
|
|
31
|
+
/** @type {[typeof __VLS_components.CSlider, typeof __VLS_components.cSlider, ]} */ ;
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
CSlider;
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
36
|
+
...{ 'onValueCommit': {} },
|
|
37
|
+
modelValue: (__VLS_ctx.value),
|
|
38
|
+
min: (0),
|
|
39
|
+
max: (0),
|
|
40
|
+
step: (0),
|
|
41
|
+
}));
|
|
42
|
+
const __VLS_2 = __VLS_1({
|
|
43
|
+
...{ 'onValueCommit': {} },
|
|
44
|
+
modelValue: (__VLS_ctx.value),
|
|
45
|
+
min: (0),
|
|
46
|
+
max: (0),
|
|
47
|
+
step: (0),
|
|
48
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
49
|
+
let __VLS_4;
|
|
50
|
+
let __VLS_5;
|
|
51
|
+
const __VLS_6 = ({ valueCommit: {} },
|
|
52
|
+
{ onValueCommit: ((e) => __VLS_ctx.onAfterChange(e[0])) });
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
[value, onAfterChange,];
|
|
55
|
+
var __VLS_3;
|
|
56
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
57
|
+
...{ class: "justify-between flex absolute w-full text-sm" },
|
|
58
|
+
});
|
|
59
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
60
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
61
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
62
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
63
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
64
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
65
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
66
|
+
__typeEmits: {},
|
|
67
|
+
__typeProps: {},
|
|
68
|
+
props: {},
|
|
69
|
+
});
|
|
70
|
+
export default {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
border?: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
|
+
size: number;
|
|
7
|
+
border: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { onMounted, computed } from 'vue';
|
|
3
|
+
const props = withDefaults(defineProps(), {
|
|
4
|
+
size: 48,
|
|
5
|
+
border: 5,
|
|
6
|
+
});
|
|
7
|
+
const style = computed(() => {
|
|
8
|
+
let result = {};
|
|
9
|
+
result.width = props.size + 'px';
|
|
10
|
+
result.height = props.size + 'px';
|
|
11
|
+
result.borderWidth = props.border + 'px';
|
|
12
|
+
return result;
|
|
13
|
+
});
|
|
14
|
+
onMounted(() => {
|
|
15
|
+
});
|
|
16
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
17
|
+
const __VLS_defaults = {
|
|
18
|
+
size: 48,
|
|
19
|
+
border: 5,
|
|
20
|
+
};
|
|
21
|
+
const __VLS_ctx = {
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
...{},
|
|
25
|
+
...{},
|
|
26
|
+
};
|
|
27
|
+
let __VLS_elements;
|
|
28
|
+
let __VLS_components;
|
|
29
|
+
let __VLS_directives;
|
|
30
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
31
|
+
...{ class: "loader" },
|
|
32
|
+
...{ style: (__VLS_ctx.style) },
|
|
33
|
+
});
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
[style,];
|
|
36
|
+
/** @type {__VLS_StyleScopedClasses['loader']} */ ;
|
|
37
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
38
|
+
__typeProps: {},
|
|
39
|
+
props: {},
|
|
40
|
+
});
|
|
41
|
+
export default {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/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
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
8
|
+
export default {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { goChatError, handleMedialPermissionError, mediaPermissionState } from '../../utils/chat/page-error';
|
|
3
|
+
const reload = () => {
|
|
4
|
+
;
|
|
5
|
+
window.location.reload();
|
|
6
|
+
};
|
|
7
|
+
const askMedialPermission = async () => {
|
|
8
|
+
try {
|
|
9
|
+
await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
10
|
+
window.location.reload();
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
console.log(e);
|
|
14
|
+
}
|
|
15
|
+
handleMedialPermissionError();
|
|
16
|
+
};
|
|
17
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
18
|
+
const __VLS_ctx = {
|
|
19
|
+
...{},
|
|
20
|
+
...{},
|
|
21
|
+
};
|
|
22
|
+
let __VLS_elements;
|
|
23
|
+
let __VLS_components;
|
|
24
|
+
let __VLS_directives;
|
|
25
|
+
if (__VLS_ctx.goChatError) {
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
[goChatError,];
|
|
28
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
29
|
+
...{ class: "w-full bg-chat-error text-white text-sm px-4 py-2 flex items-center justify-between gap-2" },
|
|
30
|
+
});
|
|
31
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
32
|
+
(__VLS_ctx.goChatError);
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
[goChatError,];
|
|
35
|
+
if (__VLS_ctx.mediaPermissionState == 'prompt') {
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
[mediaPermissionState,];
|
|
38
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
39
|
+
...{ onClick: (__VLS_ctx.askMedialPermission) },
|
|
40
|
+
...{ class: "bg-white min-h-10 text-chat-haze-600 font-bold w-[250px] rounded-lg" },
|
|
41
|
+
});
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
[askMedialPermission,];
|
|
44
|
+
}
|
|
45
|
+
else if (__VLS_ctx.mediaPermissionState == 'denied') {
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
[mediaPermissionState,];
|
|
48
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
52
|
+
...{ onClick: (...[$event]) => {
|
|
53
|
+
if (!(__VLS_ctx.goChatError))
|
|
54
|
+
return;
|
|
55
|
+
if (!!(__VLS_ctx.mediaPermissionState == 'prompt'))
|
|
56
|
+
return;
|
|
57
|
+
if (!!(__VLS_ctx.mediaPermissionState == 'denied'))
|
|
58
|
+
return;
|
|
59
|
+
__VLS_ctx.reload();
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
[reload,];
|
|
62
|
+
} },
|
|
63
|
+
...{ class: "bg-white min-h-10 text-chat-haze-600 font-bold text-base w-[200px] rounded-lg" },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
68
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-error']} */ ;
|
|
69
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
70
|
+
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
72
|
+
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
73
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
74
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
75
|
+
/** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
|
|
76
|
+
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
77
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
78
|
+
/** @type {__VLS_StyleScopedClasses['min-h-10']} */ ;
|
|
79
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['w-[250px]']} */ ;
|
|
82
|
+
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
83
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
84
|
+
/** @type {__VLS_StyleScopedClasses['min-h-10']} */ ;
|
|
85
|
+
/** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
|
|
86
|
+
/** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
|
|
87
|
+
/** @type {__VLS_StyleScopedClasses['text-base']} */ ;
|
|
88
|
+
/** @type {__VLS_StyleScopedClasses['w-[200px]']} */ ;
|
|
89
|
+
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
90
|
+
const __VLS_export = (await import('vue')).defineComponent({});
|
|
91
|
+
export default {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PrimitiveProps } from "reka-ui";
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import type { ButtonVariants } from "./c-button";
|
|
4
|
+
interface Props extends PrimitiveProps {
|
|
5
|
+
variant?: ButtonVariants["variant"];
|
|
6
|
+
size?: ButtonVariants["size"];
|
|
7
|
+
class?: HTMLAttributes["class"];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?: ((props: {}) => any) | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|