@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,39 @@
|
|
|
1
|
+
import type { DrawerRootProps } from 'vaul-vue';
|
|
2
|
+
type Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
placement?: DrawerRootProps['direction'];
|
|
5
|
+
width?: string | number;
|
|
6
|
+
showButtonClose?: boolean;
|
|
7
|
+
showTitle?: boolean;
|
|
8
|
+
disableClose?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Props = Props;
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
'open'?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {
|
|
16
|
+
show: () => void;
|
|
17
|
+
hide: () => void;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:open": (value: boolean | undefined) => any;
|
|
20
|
+
} & {
|
|
21
|
+
"update:open": (value: boolean) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
title: string;
|
|
26
|
+
width: string | number;
|
|
27
|
+
showTitle: boolean;
|
|
28
|
+
placement: import("vaul-vue").DrawerDirection;
|
|
29
|
+
showButtonClose: boolean;
|
|
30
|
+
disableClose: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
content?: ((props: {}) => any) | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
// COMPONENT
|
|
3
|
+
import { Drawer, DrawerContent, DrawerHeader } from '../../../components/ui/drawer';
|
|
4
|
+
const props = withDefaults(defineProps(), {
|
|
5
|
+
title: 'This is title',
|
|
6
|
+
placement: 'right',
|
|
7
|
+
width: 250,
|
|
8
|
+
showButtonClose: true,
|
|
9
|
+
showTitle: true,
|
|
10
|
+
// open: false,
|
|
11
|
+
disableClose: false
|
|
12
|
+
});
|
|
13
|
+
const open = defineModel('open');
|
|
14
|
+
const emit = defineEmits();
|
|
15
|
+
const show = () => {
|
|
16
|
+
emit('update:open', true);
|
|
17
|
+
};
|
|
18
|
+
const hide = () => {
|
|
19
|
+
emit('update:open', false);
|
|
20
|
+
};
|
|
21
|
+
const handleDrawerChange = (val) => {
|
|
22
|
+
if (!val && props.disableClose)
|
|
23
|
+
open.value = true;
|
|
24
|
+
else
|
|
25
|
+
open.value = val;
|
|
26
|
+
};
|
|
27
|
+
const __VLS_exposed = {
|
|
28
|
+
show,
|
|
29
|
+
hide
|
|
30
|
+
};
|
|
31
|
+
defineExpose(__VLS_exposed);
|
|
32
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
33
|
+
const __VLS_modelEmit = defineEmits();
|
|
34
|
+
const __VLS_defaults = {
|
|
35
|
+
title: 'This is title',
|
|
36
|
+
placement: 'right',
|
|
37
|
+
width: 250,
|
|
38
|
+
showButtonClose: true,
|
|
39
|
+
showTitle: true,
|
|
40
|
+
// open: false,
|
|
41
|
+
disableClose: false
|
|
42
|
+
};
|
|
43
|
+
const __VLS_ctx = {
|
|
44
|
+
...{},
|
|
45
|
+
...{},
|
|
46
|
+
...{},
|
|
47
|
+
...{},
|
|
48
|
+
...{},
|
|
49
|
+
};
|
|
50
|
+
let __VLS_elements;
|
|
51
|
+
let __VLS_components;
|
|
52
|
+
let __VLS_directives;
|
|
53
|
+
const __VLS_0 = {}.Drawer;
|
|
54
|
+
/** @type {[typeof __VLS_components.Drawer, typeof __VLS_components.Drawer, ]} */ ;
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
Drawer;
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
59
|
+
...{ 'onUpdate:open': {} },
|
|
60
|
+
direction: (__VLS_ctx.placement),
|
|
61
|
+
open: (__VLS_ctx.open),
|
|
62
|
+
scrollLockTimeout: (100),
|
|
63
|
+
handleOnly: (__VLS_ctx.disableClose),
|
|
64
|
+
}));
|
|
65
|
+
const __VLS_2 = __VLS_1({
|
|
66
|
+
...{ 'onUpdate:open': {} },
|
|
67
|
+
direction: (__VLS_ctx.placement),
|
|
68
|
+
open: (__VLS_ctx.open),
|
|
69
|
+
scrollLockTimeout: (100),
|
|
70
|
+
handleOnly: (__VLS_ctx.disableClose),
|
|
71
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
72
|
+
let __VLS_4;
|
|
73
|
+
let __VLS_5;
|
|
74
|
+
const __VLS_6 = ({ 'update:open': {} },
|
|
75
|
+
{ 'onUpdate:open': (__VLS_ctx.handleDrawerChange) });
|
|
76
|
+
var __VLS_7 = {};
|
|
77
|
+
const { default: __VLS_8 } = __VLS_3.slots;
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
[placement, open, disableClose, handleDrawerChange,];
|
|
80
|
+
const __VLS_9 = {}.DrawerContent;
|
|
81
|
+
/** @type {[typeof __VLS_components.DrawerContent, typeof __VLS_components.DrawerContent, ]} */ ;
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
DrawerContent;
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
|
|
86
|
+
...{ 'onCloseDrawer': {} },
|
|
87
|
+
width: (__VLS_ctx.width),
|
|
88
|
+
direction: (__VLS_ctx.placement),
|
|
89
|
+
...{ class: "!touch-none" },
|
|
90
|
+
}));
|
|
91
|
+
const __VLS_11 = __VLS_10({
|
|
92
|
+
...{ 'onCloseDrawer': {} },
|
|
93
|
+
width: (__VLS_ctx.width),
|
|
94
|
+
direction: (__VLS_ctx.placement),
|
|
95
|
+
...{ class: "!touch-none" },
|
|
96
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
97
|
+
let __VLS_13;
|
|
98
|
+
let __VLS_14;
|
|
99
|
+
const __VLS_15 = ({ closeDrawer: {} },
|
|
100
|
+
{ onCloseDrawer: (...[$event]) => {
|
|
101
|
+
__VLS_ctx.emit('update:open', false);
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
[placement, width, emit,];
|
|
104
|
+
} });
|
|
105
|
+
const { default: __VLS_16 } = __VLS_12.slots;
|
|
106
|
+
const __VLS_17 = {}.DrawerHeader;
|
|
107
|
+
/** @type {[typeof __VLS_components.DrawerHeader, typeof __VLS_components.DrawerHeader, ]} */ ;
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
DrawerHeader;
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
const __VLS_18 = __VLS_asFunctionalComponent(__VLS_17, new __VLS_17({}));
|
|
112
|
+
const __VLS_19 = __VLS_18({}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
113
|
+
var __VLS_22 = {};
|
|
114
|
+
var __VLS_12;
|
|
115
|
+
var __VLS_3;
|
|
116
|
+
/** @type {__VLS_StyleScopedClasses['!touch-none']} */ ;
|
|
117
|
+
// @ts-ignore
|
|
118
|
+
var __VLS_23 = __VLS_22;
|
|
119
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
120
|
+
setup: () => (__VLS_exposed),
|
|
121
|
+
__typeEmits: {},
|
|
122
|
+
__typeProps: {},
|
|
123
|
+
props: {},
|
|
124
|
+
});
|
|
125
|
+
const __VLS_export = {};
|
|
126
|
+
export default {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
showTitle?: boolean;
|
|
4
|
+
position?: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
responsive?: PAGE_RESPONSIVE;
|
|
7
|
+
disabledClose?: boolean;
|
|
8
|
+
absolute?: boolean;
|
|
9
|
+
index?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
+
close: () => Promise<void>;
|
|
13
|
+
open: () => void;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:modelValue": (newService: any) => any;
|
|
16
|
+
afterClose: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((newService: any) => any) | undefined;
|
|
19
|
+
onAfterClose?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
width: number;
|
|
22
|
+
position: string;
|
|
23
|
+
index: number;
|
|
24
|
+
showTitle: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
26
|
+
content?: ((props: {}) => any) | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
+
import { computed, ref } from 'vue';
|
|
3
|
+
const props = withDefaults(defineProps(), {
|
|
4
|
+
position: 'right',
|
|
5
|
+
showTitle: true,
|
|
6
|
+
width: 550,
|
|
7
|
+
index: 1500
|
|
8
|
+
});
|
|
9
|
+
const emits = defineEmits();
|
|
10
|
+
const show = ref(false);
|
|
11
|
+
const boxStyles = computed(() => {
|
|
12
|
+
let transform = '';
|
|
13
|
+
if (show.value) {
|
|
14
|
+
transform = 'translateX(0)';
|
|
15
|
+
}
|
|
16
|
+
else if (props.position === 'right') {
|
|
17
|
+
transform = 'translateX(100%)';
|
|
18
|
+
}
|
|
19
|
+
else if (props.position === 'left') {
|
|
20
|
+
transform = 'translateX(-100%)';
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
width: props.responsive == 'mobile' ? '100%' : props.width + 'px',
|
|
24
|
+
[props.position]: '0',
|
|
25
|
+
transform
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
// CREATE FUNCTION
|
|
29
|
+
const open = () => {
|
|
30
|
+
show.value = true;
|
|
31
|
+
};
|
|
32
|
+
const close = async () => {
|
|
33
|
+
await emits('afterClose');
|
|
34
|
+
show.value = false;
|
|
35
|
+
};
|
|
36
|
+
const __VLS_exposed = { close, open };
|
|
37
|
+
defineExpose(__VLS_exposed);
|
|
38
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
39
|
+
const __VLS_defaults = {
|
|
40
|
+
position: 'right',
|
|
41
|
+
showTitle: true,
|
|
42
|
+
width: 550,
|
|
43
|
+
index: 1500
|
|
44
|
+
};
|
|
45
|
+
const __VLS_ctx = {
|
|
46
|
+
...{},
|
|
47
|
+
...{},
|
|
48
|
+
...{},
|
|
49
|
+
...{},
|
|
50
|
+
...{},
|
|
51
|
+
};
|
|
52
|
+
let __VLS_elements;
|
|
53
|
+
let __VLS_components;
|
|
54
|
+
let __VLS_directives;
|
|
55
|
+
/** @type {__VLS_StyleScopedClasses['drawer-box']} */ ;
|
|
56
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
57
|
+
...{ class: "top-0 bottom-0 right-0 left-0 drawer" },
|
|
58
|
+
...{ class: ({ 'opacity-1': __VLS_ctx.show, 'pointer-events-none opacity-0 delay-300': !__VLS_ctx.show, 'absolute': __VLS_ctx.absolute, 'fixed': !__VLS_ctx.absolute }) },
|
|
59
|
+
...{ style: ({ zIndex: __VLS_ctx.index }) },
|
|
60
|
+
});
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
[show, show, absolute, absolute, index,];
|
|
63
|
+
if (!__VLS_ctx.disabledClose) {
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
[disabledClose,];
|
|
66
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
67
|
+
...{ onClick: (__VLS_ctx.close) },
|
|
68
|
+
...{ onTouchstart: (__VLS_ctx.close) },
|
|
69
|
+
...{ class: "absolute w-full h-full z-[1500]" },
|
|
70
|
+
});
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
[close, close,];
|
|
73
|
+
}
|
|
74
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
75
|
+
...{ class: "relative w-full h-full" },
|
|
76
|
+
});
|
|
77
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
78
|
+
...{ class: "duration-300 ease-out absolute top-0 bg-white flex flex-col drawer-box" },
|
|
79
|
+
...{ style: (__VLS_ctx.boxStyles) },
|
|
80
|
+
});
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
[boxStyles,];
|
|
83
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
84
|
+
...{ class: "edit-scrollbar grow overflow-auto w-full min-w-full drawer-content" },
|
|
85
|
+
});
|
|
86
|
+
var __VLS_0 = {};
|
|
87
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
88
|
+
...{ class: "flex p-4 content" },
|
|
89
|
+
});
|
|
90
|
+
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
|
|
91
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
92
|
+
/** @type {__VLS_StyleScopedClasses['bottom-0']} */ ;
|
|
93
|
+
/** @type {__VLS_StyleScopedClasses['right-0']} */ ;
|
|
94
|
+
/** @type {__VLS_StyleScopedClasses['left-0']} */ ;
|
|
95
|
+
/** @type {__VLS_StyleScopedClasses['drawer']} */ ;
|
|
96
|
+
/** @type {__VLS_StyleScopedClasses['opacity-1']} */ ;
|
|
97
|
+
/** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
|
|
98
|
+
/** @type {__VLS_StyleScopedClasses['opacity-0']} */ ;
|
|
99
|
+
/** @type {__VLS_StyleScopedClasses['delay-300']} */ ;
|
|
100
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
101
|
+
/** @type {__VLS_StyleScopedClasses['fixed']} */ ;
|
|
102
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
103
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
104
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
105
|
+
/** @type {__VLS_StyleScopedClasses['z-[1500]']} */ ;
|
|
106
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
107
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
108
|
+
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
109
|
+
/** @type {__VLS_StyleScopedClasses['duration-300']} */ ;
|
|
110
|
+
/** @type {__VLS_StyleScopedClasses['ease-out']} */ ;
|
|
111
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
112
|
+
/** @type {__VLS_StyleScopedClasses['top-0']} */ ;
|
|
113
|
+
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
114
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
115
|
+
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
116
|
+
/** @type {__VLS_StyleScopedClasses['drawer-box']} */ ;
|
|
117
|
+
/** @type {__VLS_StyleScopedClasses['edit-scrollbar']} */ ;
|
|
118
|
+
/** @type {__VLS_StyleScopedClasses['grow']} */ ;
|
|
119
|
+
/** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
|
|
120
|
+
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
121
|
+
/** @type {__VLS_StyleScopedClasses['min-w-full']} */ ;
|
|
122
|
+
/** @type {__VLS_StyleScopedClasses['drawer-content']} */ ;
|
|
123
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
124
|
+
/** @type {__VLS_StyleScopedClasses['p-4']} */ ;
|
|
125
|
+
/** @type {__VLS_StyleScopedClasses['content']} */ ;
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
var __VLS_1 = __VLS_0;
|
|
128
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
129
|
+
setup: () => (__VLS_exposed),
|
|
130
|
+
__typeEmits: {},
|
|
131
|
+
__typeProps: {},
|
|
132
|
+
props: {},
|
|
133
|
+
});
|
|
134
|
+
const __VLS_export = {};
|
|
135
|
+
export default {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DropdownMenuContentProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_15: {}, __VLS_22: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_15) => any;
|
|
5
|
+
} & {
|
|
6
|
+
content?: (props: typeof __VLS_22) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Pick<DropdownMenuContentProps, "side" | "align">, {
|
|
9
|
+
close: () => void;
|
|
10
|
+
openDropdown: () => void;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
change: (appointment: boolean) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<Pick<DropdownMenuContentProps, "side" | "align">> & Readonly<{
|
|
14
|
+
onChange?: ((appointment: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '../../../components/ui/dropdown-menu';
|
|
4
|
+
const props = defineProps();
|
|
5
|
+
const emits = defineEmits();
|
|
6
|
+
const handleChange = (value) => {
|
|
7
|
+
open.value = value;
|
|
8
|
+
emits('change', value);
|
|
9
|
+
};
|
|
10
|
+
const open = ref(false);
|
|
11
|
+
const close = () => {
|
|
12
|
+
open.value = false;
|
|
13
|
+
};
|
|
14
|
+
const openDropdown = () => {
|
|
15
|
+
open.value = true;
|
|
16
|
+
};
|
|
17
|
+
const __VLS_exposed = {
|
|
18
|
+
close,
|
|
19
|
+
openDropdown
|
|
20
|
+
};
|
|
21
|
+
defineExpose(__VLS_exposed);
|
|
22
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
23
|
+
const __VLS_ctx = {
|
|
24
|
+
...{},
|
|
25
|
+
...{},
|
|
26
|
+
...{},
|
|
27
|
+
...{},
|
|
28
|
+
...{},
|
|
29
|
+
};
|
|
30
|
+
let __VLS_elements;
|
|
31
|
+
let __VLS_components;
|
|
32
|
+
let __VLS_directives;
|
|
33
|
+
const __VLS_0 = {}.DropdownMenu;
|
|
34
|
+
/** @type {[typeof __VLS_components.DropdownMenu, typeof __VLS_components.DropdownMenu, ]} */ ;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
DropdownMenu;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
39
|
+
...{ 'onUpdate:open': {} },
|
|
40
|
+
open: (__VLS_ctx.open),
|
|
41
|
+
}));
|
|
42
|
+
const __VLS_2 = __VLS_1({
|
|
43
|
+
...{ 'onUpdate:open': {} },
|
|
44
|
+
open: (__VLS_ctx.open),
|
|
45
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
46
|
+
let __VLS_4;
|
|
47
|
+
let __VLS_5;
|
|
48
|
+
const __VLS_6 = ({ 'update:open': {} },
|
|
49
|
+
{ 'onUpdate:open': ((value) => {
|
|
50
|
+
__VLS_ctx.handleChange(value);
|
|
51
|
+
}) });
|
|
52
|
+
var __VLS_7 = {};
|
|
53
|
+
const { default: __VLS_8 } = __VLS_3.slots;
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
[open, handleChange,];
|
|
56
|
+
const __VLS_9 = {}.DropdownMenuTrigger;
|
|
57
|
+
/** @type {[typeof __VLS_components.DropdownMenuTrigger, typeof __VLS_components.DropdownMenuTrigger, ]} */ ;
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
DropdownMenuTrigger;
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({}));
|
|
62
|
+
const __VLS_11 = __VLS_10({}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
63
|
+
const { default: __VLS_13 } = __VLS_12.slots;
|
|
64
|
+
var __VLS_14 = {};
|
|
65
|
+
var __VLS_12;
|
|
66
|
+
const __VLS_16 = {}.DropdownMenuContent;
|
|
67
|
+
/** @type {[typeof __VLS_components.DropdownMenuContent, typeof __VLS_components.DropdownMenuContent, ]} */ ;
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
DropdownMenuContent;
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({
|
|
72
|
+
side: (__VLS_ctx.side),
|
|
73
|
+
align: (__VLS_ctx.align),
|
|
74
|
+
}));
|
|
75
|
+
const __VLS_18 = __VLS_17({
|
|
76
|
+
side: (__VLS_ctx.side),
|
|
77
|
+
align: (__VLS_ctx.align),
|
|
78
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
79
|
+
const { default: __VLS_20 } = __VLS_19.slots;
|
|
80
|
+
// @ts-ignore
|
|
81
|
+
[side, align,];
|
|
82
|
+
var __VLS_21 = {};
|
|
83
|
+
var __VLS_19;
|
|
84
|
+
var __VLS_3;
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
var __VLS_15 = __VLS_14, __VLS_22 = __VLS_21;
|
|
87
|
+
const __VLS_base = (await import('vue')).defineComponent({
|
|
88
|
+
setup: () => (__VLS_exposed),
|
|
89
|
+
__typeEmits: {},
|
|
90
|
+
__typeProps: {},
|
|
91
|
+
});
|
|
92
|
+
const __VLS_export = {};
|
|
93
|
+
export default {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
search: (val: string) => any;
|
|
7
|
+
"update:modelValue": (val: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
+
onSearch?: ((val: string) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { useDebounce } from '../../../utils/debounce';
|
|
4
|
+
const props = withDefaults(defineProps(), {
|
|
5
|
+
placeholder: 'Search...'
|
|
6
|
+
});
|
|
7
|
+
const emit = defineEmits();
|
|
8
|
+
const keyword = computed({
|
|
9
|
+
get: () => props.modelValue,
|
|
10
|
+
set: (val) => emit('update:modelValue', val)
|
|
11
|
+
});
|
|
12
|
+
const search = useDebounce(() => {
|
|
13
|
+
emit('search', keyword.value);
|
|
14
|
+
});
|
|
15
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
16
|
+
const __VLS_defaults = {
|
|
17
|
+
placeholder: 'Search...'
|
|
18
|
+
};
|
|
19
|
+
const __VLS_ctx = {
|
|
20
|
+
...{},
|
|
21
|
+
...{},
|
|
22
|
+
...{},
|
|
23
|
+
...{},
|
|
24
|
+
...{},
|
|
25
|
+
};
|
|
26
|
+
let __VLS_elements;
|
|
27
|
+
let __VLS_components;
|
|
28
|
+
let __VLS_directives;
|
|
29
|
+
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
30
|
+
...{ class: "relative" },
|
|
31
|
+
});
|
|
32
|
+
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
33
|
+
...{ class: "absolute inset-y-0 left-2 translate-y-1/2 bottom-1/2 flex items-center pointer-events-none text-gray-500" },
|
|
34
|
+
});
|
|
35
|
+
__VLS_asFunctionalElement(__VLS_elements.input)({
|
|
36
|
+
...{ onInput: (__VLS_ctx.search) },
|
|
37
|
+
...{ class: "sc-full input-search input pl-10" },
|
|
38
|
+
placeholder: (props.placeholder),
|
|
39
|
+
});
|
|
40
|
+
(__VLS_ctx.keyword);
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
[search, keyword,];
|
|
43
|
+
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
44
|
+
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
45
|
+
/** @type {__VLS_StyleScopedClasses['inset-y-0']} */ ;
|
|
46
|
+
/** @type {__VLS_StyleScopedClasses['left-2']} */ ;
|
|
47
|
+
/** @type {__VLS_StyleScopedClasses['translate-y-1/2']} */ ;
|
|
48
|
+
/** @type {__VLS_StyleScopedClasses['bottom-1/2']} */ ;
|
|
49
|
+
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
50
|
+
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
51
|
+
/** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
|
|
52
|
+
/** @type {__VLS_StyleScopedClasses['text-gray-500']} */ ;
|
|
53
|
+
/** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
|
|
54
|
+
/** @type {__VLS_StyleScopedClasses['input-search']} */ ;
|
|
55
|
+
/** @type {__VLS_StyleScopedClasses['input']} */ ;
|
|
56
|
+
/** @type {__VLS_StyleScopedClasses['pl-10']} */ ;
|
|
57
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
58
|
+
__typeEmits: {},
|
|
59
|
+
__typeProps: {},
|
|
60
|
+
props: {},
|
|
61
|
+
});
|
|
62
|
+
export default {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
width?: string | number;
|
|
4
|
+
showButtonClose?: boolean;
|
|
5
|
+
showTitle?: boolean;
|
|
6
|
+
open: boolean;
|
|
7
|
+
nonClosable?: boolean;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
class?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
12
|
+
show: () => void;
|
|
13
|
+
hide: () => void;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:open": (id: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
"onUpdate:open"?: ((id: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
title: string;
|
|
20
|
+
class: string;
|
|
21
|
+
width: string | number;
|
|
22
|
+
open: boolean;
|
|
23
|
+
zIndex: number;
|
|
24
|
+
showTitle: boolean;
|
|
25
|
+
showButtonClose: boolean;
|
|
26
|
+
nonClosable: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
28
|
+
default?: ((props: {}) => any) | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|