@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,28 @@
|
|
|
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
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
8
|
+
...{ class: "bg-white border border-chat-haze-200 rounded-lg p-4" },
|
|
9
|
+
});
|
|
10
|
+
var __VLS_0 = {};
|
|
11
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
12
|
+
...{ class: "border-t border-dashed border-chat-haze-200 my-2" },
|
|
13
|
+
});
|
|
14
|
+
var __VLS_2 = {};
|
|
15
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
16
|
+
/** @type {__VLS_StyleScopedClasses['border']} */ ;
|
|
17
|
+
/** @type {__VLS_StyleScopedClasses['border-chat-haze-200']} */ ;
|
|
18
|
+
/** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
|
|
19
|
+
/** @type {__VLS_StyleScopedClasses['p-4']} */ ;
|
|
20
|
+
/** @type {__VLS_StyleScopedClasses['border-t']} */ ;
|
|
21
|
+
/** @type {__VLS_StyleScopedClasses['border-dashed']} */ ;
|
|
22
|
+
/** @type {__VLS_StyleScopedClasses['border-chat-haze-200']} */ ;
|
|
23
|
+
/** @type {__VLS_StyleScopedClasses['my-2']} */ ;
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
var __VLS_1 = __VLS_0, __VLS_3 = __VLS_2;
|
|
26
|
+
const __VLS_base = (await import('vue')).defineComponent({});
|
|
27
|
+
const __VLS_export = {};
|
|
28
|
+
export default {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
'open'?: boolean | undefined;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_12: {}, __VLS_19: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
trigger?: (props: typeof __VLS_12) => any;
|
|
7
|
+
} & {
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:open": (value: boolean | undefined) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
13
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from '../../../../components/ui/collapsible';
|
|
3
|
+
const isOpen = defineModel('open');
|
|
4
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
+
const __VLS_modelEmit = defineEmits();
|
|
6
|
+
const __VLS_ctx = {
|
|
7
|
+
...{},
|
|
8
|
+
...{},
|
|
9
|
+
...{},
|
|
10
|
+
...{},
|
|
11
|
+
...{},
|
|
12
|
+
};
|
|
13
|
+
let __VLS_elements;
|
|
14
|
+
let __VLS_components;
|
|
15
|
+
let __VLS_directives;
|
|
16
|
+
const __VLS_0 = {}.Collapsible;
|
|
17
|
+
/** @type {[typeof __VLS_components.Collapsible, typeof __VLS_components.Collapsible, ]} */ ;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
Collapsible;
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
22
|
+
open: (__VLS_ctx.isOpen),
|
|
23
|
+
}));
|
|
24
|
+
const __VLS_2 = __VLS_1({
|
|
25
|
+
open: (__VLS_ctx.isOpen),
|
|
26
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
27
|
+
var __VLS_4 = {};
|
|
28
|
+
const { default: __VLS_5 } = __VLS_3.slots;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
[isOpen,];
|
|
31
|
+
const __VLS_6 = {}.CollapsibleTrigger;
|
|
32
|
+
/** @type {[typeof __VLS_components.CollapsibleTrigger, typeof __VLS_components.CollapsibleTrigger, ]} */ ;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
CollapsibleTrigger;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({}));
|
|
37
|
+
const __VLS_8 = __VLS_7({}, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
38
|
+
const { default: __VLS_10 } = __VLS_9.slots;
|
|
39
|
+
var __VLS_11 = {};
|
|
40
|
+
var __VLS_9;
|
|
41
|
+
const __VLS_13 = {}.CollapsibleContent;
|
|
42
|
+
/** @type {[typeof __VLS_components.CollapsibleContent, typeof __VLS_components.CollapsibleContent, ]} */ ;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
CollapsibleContent;
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({}));
|
|
47
|
+
const __VLS_15 = __VLS_14({}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
48
|
+
const { default: __VLS_17 } = __VLS_16.slots;
|
|
49
|
+
var __VLS_18 = {};
|
|
50
|
+
var __VLS_16;
|
|
51
|
+
var __VLS_3;
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
var __VLS_12 = __VLS_11, __VLS_19 = __VLS_18;
|
|
54
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
55
|
+
__typeEmits: {},
|
|
56
|
+
__typeProps: {},
|
|
57
|
+
});
|
|
58
|
+
const __VLS_export = {};
|
|
59
|
+
export default {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PAGE_RESPONSIVE } from '../../../../types/chat/global';
|
|
2
|
+
type Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
responsive: PAGE_RESPONSIVE;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
search: (val: string) => any;
|
|
9
|
+
"update:modelValue": (val: string) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
onSearch?: ((val: string) => any) | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
placeholder: string;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
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 IconSearch from '../../../../assets/icons/global/IconSearch.vue';
|
|
4
|
+
import { useDebounce } from '../../../../utils/debounce';
|
|
5
|
+
const props = withDefaults(defineProps(), {
|
|
6
|
+
placeholder: 'Search...'
|
|
7
|
+
});
|
|
8
|
+
const emit = defineEmits();
|
|
9
|
+
const keyword = computed({
|
|
10
|
+
get: () => props.modelValue,
|
|
11
|
+
set: (val) => emit('update:modelValue', val)
|
|
12
|
+
});
|
|
13
|
+
const search = useDebounce(() => {
|
|
14
|
+
emit('search', keyword.value);
|
|
15
|
+
});
|
|
16
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
17
|
+
const __VLS_defaults = {
|
|
18
|
+
placeholder: 'Search...'
|
|
19
|
+
};
|
|
20
|
+
const __VLS_ctx = {
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
...{},
|
|
25
|
+
...{},
|
|
26
|
+
};
|
|
27
|
+
let __VLS_elements;
|
|
28
|
+
let __VLS_components;
|
|
29
|
+
let __VLS_directives;
|
|
30
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
31
|
+
...{ class: "relative" },
|
|
32
|
+
});
|
|
33
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
34
|
+
...{ class: "absolute inset-y-0 left-4 translate-y-1/2 bottom-1/2 flex items-center pointer-events-none text-gray-500" },
|
|
35
|
+
});
|
|
36
|
+
/** @type {[typeof IconSearch, ]} */ ;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
const __VLS_0 = __VLS_asFunctionalComponent(IconSearch, new IconSearch({}));
|
|
39
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
40
|
+
__VLS_asFunctionalElement(__VLS_elements.input)({
|
|
41
|
+
...{ onInput: (__VLS_ctx.search) },
|
|
42
|
+
...{ class: "sc-full chat-input bg-[#F7F8F9] pr-4 py-3 pl-10" },
|
|
43
|
+
...{ class: ({ '!bg-white': __VLS_ctx.responsive == 'mobile' }) },
|
|
44
|
+
placeholder: (props.placeholder),
|
|
45
|
+
});
|
|
46
|
+
(__VLS_ctx.keyword);
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
[search, responsive, keyword,];
|
|
49
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
50
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
51
|
+
/** @type {__VLS_StyleScopedClasses['inset-y-0']} */ ;
|
|
52
|
+
/** @type {__VLS_StyleScopedClasses['left-4']} */ ;
|
|
53
|
+
/** @type {__VLS_StyleScopedClasses['translate-y-1/2']} */ ;
|
|
54
|
+
/** @type {__VLS_StyleScopedClasses['bottom-1/2']} */ ;
|
|
55
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
56
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
57
|
+
/** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
|
|
58
|
+
/** @type {__VLS_StyleScopedClasses['text-gray-500']} */ ;
|
|
59
|
+
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
60
|
+
/** @type {__VLS_StyleScopedClasses['chat-input']} */ ;
|
|
61
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#F7F8F9]']} */ ;
|
|
62
|
+
/** @type {__VLS_StyleScopedClasses['pr-4']} */ ;
|
|
63
|
+
/** @type {__VLS_StyleScopedClasses['py-3']} */ ;
|
|
64
|
+
/** @type {__VLS_StyleScopedClasses['pl-10']} */ ;
|
|
65
|
+
/** @type {__VLS_StyleScopedClasses['!bg-white']} */ ;
|
|
66
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
67
|
+
__typeEmits: {},
|
|
68
|
+
__typeProps: {},
|
|
69
|
+
props: {},
|
|
70
|
+
});
|
|
71
|
+
export default {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_7: {}, __VLS_9: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
title?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
content?: (props: typeof __VLS_7) => any;
|
|
6
|
+
} & {
|
|
7
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
title: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
showFooter: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
showCloseButton: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
clickOutSide: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
disabledClose: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
phone: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
maxValue: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
}>, {
|
|
39
|
+
open: () => void;
|
|
40
|
+
close: () => void;
|
|
41
|
+
visible: import("vue").Ref<boolean, boolean>;
|
|
42
|
+
closeOnly: () => void;
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
afterClose: (...args: any[]) => void;
|
|
45
|
+
changeValue: (...args: any[]) => void;
|
|
46
|
+
afterCloseNumPad: (...args: any[]) => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
title: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
showFooter: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
showCloseButton: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
clickOutSide: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
disabledClose: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
phone: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
maxValue: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
77
|
+
onAfterClose?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onChangeValue?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onAfterCloseNumPad?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
title: string;
|
|
82
|
+
phone: boolean;
|
|
83
|
+
disabledClose: boolean;
|
|
84
|
+
showFooter: boolean;
|
|
85
|
+
showCloseButton: boolean;
|
|
86
|
+
clickOutSide: boolean;
|
|
87
|
+
maxValue: number;
|
|
88
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, __VLS_Slots>;
|
|
89
|
+
export default _default;
|
|
90
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
91
|
+
new (): {
|
|
92
|
+
$slots: S;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { ref, onMounted, onUnmounted } from 'vue';
|
|
3
|
+
import IconCloseCircle from '../../../../assets/icons/global/IconCloseCircle.vue';
|
|
4
|
+
onMounted(() => {
|
|
5
|
+
addEvent();
|
|
6
|
+
});
|
|
7
|
+
onUnmounted(() => {
|
|
8
|
+
removeEvent();
|
|
9
|
+
});
|
|
10
|
+
// CREATE DATA
|
|
11
|
+
const visible = ref(false);
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
title: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'TITLE'
|
|
16
|
+
},
|
|
17
|
+
showFooter: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
showCloseButton: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
25
|
+
clickOutSide: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
disabledClose: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
phone: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
maxValue: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const emit = defineEmits(['changeValue', 'afterClose', 'afterCloseNumPad']);
|
|
43
|
+
// CREATE FUNCTION
|
|
44
|
+
const close = () => {
|
|
45
|
+
visible.value = false;
|
|
46
|
+
document.getElementsByTagName('body')[0].classList.remove('overflow-hidden');
|
|
47
|
+
emit('afterClose');
|
|
48
|
+
};
|
|
49
|
+
const closeOnly = () => {
|
|
50
|
+
visible.value = false;
|
|
51
|
+
document.getElementsByTagName('body')[0].classList.remove('overflow-hidden');
|
|
52
|
+
};
|
|
53
|
+
const open = () => {
|
|
54
|
+
document.getElementsByTagName('body')[0].className = 'overflow-hidden';
|
|
55
|
+
visible.value = true;
|
|
56
|
+
};
|
|
57
|
+
const __VLS_exposed = {
|
|
58
|
+
open,
|
|
59
|
+
close,
|
|
60
|
+
visible,
|
|
61
|
+
closeOnly
|
|
62
|
+
};
|
|
63
|
+
defineExpose(__VLS_exposed);
|
|
64
|
+
const clickOutSideClose = () => {
|
|
65
|
+
close();
|
|
66
|
+
};
|
|
67
|
+
const addEvent = () => { };
|
|
68
|
+
const removeEvent = () => { };
|
|
69
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
70
|
+
const __VLS_ctx = {
|
|
71
|
+
...{},
|
|
72
|
+
...{},
|
|
73
|
+
...{},
|
|
74
|
+
...{},
|
|
75
|
+
...{},
|
|
76
|
+
};
|
|
77
|
+
let __VLS_elements;
|
|
78
|
+
let __VLS_components;
|
|
79
|
+
let __VLS_directives;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['modal-title']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['modal']} */ ;
|
|
82
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
83
|
+
...{ class: "fixed top-0 bottom-0 right-0 left-0 over z-[1000] bg-[#00000066] custom-modal default-modal" },
|
|
84
|
+
...{ class: (__VLS_ctx.visible ? 'show' : 'pointer-events-none opacity-0 delay-[0.15s]') },
|
|
85
|
+
id: "modal",
|
|
86
|
+
});
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
[visible,];
|
|
89
|
+
if (__VLS_ctx.clickOutSide && !__VLS_ctx.disabledClose) {
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
[clickOutSide, disabledClose,];
|
|
92
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
93
|
+
...{ onClick: (__VLS_ctx.clickOutSideClose) },
|
|
94
|
+
...{ class: "absolute w-full h-full" },
|
|
95
|
+
});
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
[clickOutSideClose,];
|
|
98
|
+
}
|
|
99
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
100
|
+
...{ class: "delay-100 duration-[0.15s] ease-out flex flex-col modal" },
|
|
101
|
+
...{ class: ({ visible: __VLS_ctx.visible }) },
|
|
102
|
+
});
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
[visible,];
|
|
105
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
106
|
+
...{ class: "w-full modal-title bg-chat-haze-100" },
|
|
107
|
+
});
|
|
108
|
+
var __VLS_0 = {};
|
|
109
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
110
|
+
...{ class: "h-full min-h-[46px] lg:min-h-[52px] flex items-center relative px-6 py-1" },
|
|
111
|
+
});
|
|
112
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
|
|
113
|
+
...{ class: "text-base lg:text-xl text-white font-medium mr-[50px] custom_title_modal" },
|
|
114
|
+
});
|
|
115
|
+
(__VLS_ctx.title);
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
[title,];
|
|
118
|
+
if (__VLS_ctx.showCloseButton) {
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
[showCloseButton,];
|
|
121
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
122
|
+
...{ class: "h-full w-[50px] flex-center absolute right-0 cursor-pointer mr-1" },
|
|
123
|
+
});
|
|
124
|
+
if (!__VLS_ctx.disabledClose) {
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
[disabledClose,];
|
|
127
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
128
|
+
...{ onClick: (__VLS_ctx.close) },
|
|
129
|
+
...{ class: "h-full w-full flex-center" },
|
|
130
|
+
});
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
[close,];
|
|
133
|
+
/** @type {[typeof IconCloseCircle, ]} */ ;
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
const __VLS_2 = __VLS_asFunctionalComponent(IconCloseCircle, new IconCloseCircle({}));
|
|
136
|
+
const __VLS_3 = __VLS_2({}, ...__VLS_functionalComponentArgsRest(__VLS_2));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
140
|
+
...{ class: "edit-scrollbar grow w-full min-w-full modal-content" },
|
|
141
|
+
...{ class: (__VLS_ctx.showFooter ? '' : 'rounded-bottom') },
|
|
142
|
+
});
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
[showFooter,];
|
|
145
|
+
var __VLS_6 = {};
|
|
146
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
147
|
+
...{ class: "flex p-4 content" },
|
|
148
|
+
});
|
|
149
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
150
|
+
if (__VLS_ctx.showFooter) {
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
[showFooter,];
|
|
153
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
154
|
+
...{ class: "modal-footer" },
|
|
155
|
+
});
|
|
156
|
+
var __VLS_8 = {};
|
|
157
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
158
|
+
...{ class: "h-full flex items-center p-4 footer" },
|
|
159
|
+
});
|
|
160
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
161
|
+
}
|
|
162
|
+
/** @type {__VLS_StyleScopedClasses['fixed']} */ ;
|
|
163
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
164
|
+
/** @type {__VLS_StyleScopedClasses['bottom-0']} */ ;
|
|
165
|
+
/** @type {__VLS_StyleScopedClasses['right-0']} */ ;
|
|
166
|
+
/** @type {__VLS_StyleScopedClasses['left-0']} */ ;
|
|
167
|
+
/** @type {__VLS_StyleScopedClasses['over']} */ ;
|
|
168
|
+
/** @type {__VLS_StyleScopedClasses['z-[1000]']} */ ;
|
|
169
|
+
/** @type {__VLS_StyleScopedClasses['bg-[#00000066]']} */ ;
|
|
170
|
+
/** @type {__VLS_StyleScopedClasses['custom-modal']} */ ;
|
|
171
|
+
/** @type {__VLS_StyleScopedClasses['default-modal']} */ ;
|
|
172
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
173
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
174
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
175
|
+
/** @type {__VLS_StyleScopedClasses['delay-100']} */ ;
|
|
176
|
+
/** @type {__VLS_StyleScopedClasses['duration-[0.15s]']} */ ;
|
|
177
|
+
/** @type {__VLS_StyleScopedClasses['ease-out']} */ ;
|
|
178
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
179
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
180
|
+
/** @type {__VLS_StyleScopedClasses['modal']} */ ;
|
|
181
|
+
/** @type {__VLS_StyleScopedClasses['visible']} */ ;
|
|
182
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
183
|
+
/** @type {__VLS_StyleScopedClasses['modal-title']} */ ;
|
|
184
|
+
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-100']} */ ;
|
|
185
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
186
|
+
/** @type {__VLS_StyleScopedClasses['min-h-[46px]']} */ ;
|
|
187
|
+
/** @type {__VLS_StyleScopedClasses['lg:min-h-[52px]']} */ ;
|
|
188
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
189
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
190
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
191
|
+
/** @type {__VLS_StyleScopedClasses['px-6']} */ ;
|
|
192
|
+
/** @type {__VLS_StyleScopedClasses['py-1']} */ ;
|
|
193
|
+
/** @type {__VLS_StyleScopedClasses['text-base']} */ ;
|
|
194
|
+
/** @type {__VLS_StyleScopedClasses['lg:text-xl']} */ ;
|
|
195
|
+
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
196
|
+
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
197
|
+
/** @type {__VLS_StyleScopedClasses['mr-[50px]']} */ ;
|
|
198
|
+
/** @type {__VLS_StyleScopedClasses['custom_title_modal']} */ ;
|
|
199
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
200
|
+
/** @type {__VLS_StyleScopedClasses['w-[50px]']} */ ;
|
|
201
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
202
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
203
|
+
/** @type {__VLS_StyleScopedClasses['right-0']} */ ;
|
|
204
|
+
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
205
|
+
/** @type {__VLS_StyleScopedClasses['mr-1']} */ ;
|
|
206
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
207
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
208
|
+
/** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
|
|
209
|
+
/** @type {__VLS_StyleScopedClasses['edit-scrollbar']} */ ;
|
|
210
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
211
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
212
|
+
/** @type {__VLS_StyleScopedClasses['min-w-full']} */ ;
|
|
213
|
+
/** @type {__VLS_StyleScopedClasses['modal-content']} */ ;
|
|
214
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
215
|
+
/** @type {__VLS_StyleScopedClasses['p-4']} */ ;
|
|
216
|
+
/** @type {__VLS_StyleScopedClasses['content']} */ ;
|
|
217
|
+
/** @type {__VLS_StyleScopedClasses['modal-footer']} */ ;
|
|
218
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
219
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
220
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
221
|
+
/** @type {__VLS_StyleScopedClasses['p-4']} */ ;
|
|
222
|
+
/** @type {__VLS_StyleScopedClasses['footer']} */ ;
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
var __VLS_1 = __VLS_0, __VLS_7 = __VLS_6, __VLS_9 = __VLS_8;
|
|
225
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
226
|
+
setup: () => (__VLS_exposed),
|
|
227
|
+
emits: {},
|
|
228
|
+
props: {
|
|
229
|
+
title: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: 'TITLE'
|
|
232
|
+
},
|
|
233
|
+
showFooter: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
default: true
|
|
236
|
+
},
|
|
237
|
+
showCloseButton: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
default: true
|
|
240
|
+
},
|
|
241
|
+
clickOutSide: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
default: true
|
|
244
|
+
},
|
|
245
|
+
disabledClose: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
default: false
|
|
248
|
+
},
|
|
249
|
+
phone: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
default: false
|
|
252
|
+
},
|
|
253
|
+
maxValue: {
|
|
254
|
+
type: Number,
|
|
255
|
+
default: 0
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
const __VLS_export = {};
|
|
260
|
+
export default {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PopoverContentProps } from "reka-ui";
|
|
2
|
+
type ShortPopoverContentProps = Pick<PopoverContentProps, 'side' | 'align' | 'sideOffset'> & {
|
|
3
|
+
delay?: number;
|
|
4
|
+
trigger?: 'hover' | 'click';
|
|
5
|
+
triggerClass?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Props = ShortPopoverContentProps;
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
'open'?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare var __VLS_19: {}, __VLS_30: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_19) => any;
|
|
16
|
+
} & {
|
|
17
|
+
content?: (props: typeof __VLS_30) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:open": (value: boolean | undefined) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
sideOffset: number;
|
|
25
|
+
align: "end" | "start" | "center";
|
|
26
|
+
delay: number;
|
|
27
|
+
trigger: "click" | "hover";
|
|
28
|
+
triggerClass: string;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|