@phonghq/go-chat 1.0.71 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/go-chat.es.js +11162 -11147
- package/dist/go-chat.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/call/IconClock.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClock.vue.js +0 -22
- package/dist/assets/icons/call/IconClose.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconClose.vue.js +0 -26
- package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconMic.vue.js +0 -123
- package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhone.vue.js +0 -22
- package/dist/assets/icons/call/IconPhoneBase.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconPhoneBase.vue.js +0 -20
- package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconPhoneCancel.vue.js +0 -46
- package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +0 -2
- package/dist/assets/icons/call/IconSoundDownload.vue.js +0 -50
- package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
- package/dist/assets/icons/call/IconSpeaker.vue.js +0 -62
- package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
- package/dist/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
- package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconArrow.vue.js +0 -22
- package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconCheck.vue.js +0 -27
- package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconDate.vue.js +0 -43
- package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconGroup.vue.js +0 -48
- package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconMessage.vue.js +0 -28
- package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconNote.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -14
- package/dist/assets/icons/customer-detail/IconPhone.vue.js +0 -41
- package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconPin.vue.js +0 -29
- package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
- package/dist/assets/icons/customer-detail/IconSearch.vue.js +0 -29
- package/dist/assets/icons/global/IconAiCheck.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconAiCheck.vue.js +0 -28
- package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconArrowLeft.vue.js +0 -29
- package/dist/assets/icons/global/IconBackspace.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconBackspace.vue.js +0 -28
- package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconCloseCircle.vue.js +0 -36
- package/dist/assets/icons/global/IconPhone.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPhone.vue.js +0 -19
- package/dist/assets/icons/global/IconPlan.vue.d.ts +0 -14
- package/dist/assets/icons/global/IconPlan.vue.js +0 -39
- package/dist/assets/icons/global/IconPlus.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconPlus.vue.js +0 -22
- package/dist/assets/icons/global/IconSearch.vue.d.ts +0 -32
- package/dist/assets/icons/global/IconSearch.vue.js +0 -68
- package/dist/assets/icons/global/IconSms.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconSms.vue.js +0 -22
- package/dist/assets/icons/global/IconUser.vue.d.ts +0 -2
- package/dist/assets/icons/global/IconUser.vue.js +0 -25
- package/dist/chat/App.vue.d.ts +0 -21
- package/dist/chat/App.vue.js +0 -1020
- package/dist/chat/main.d.ts +0 -7
- package/dist/chat/main.js +0 -7
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
- package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
- package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
- package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -138
- package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
- package/dist/chat/page/customer-detail/CustomerDetail.vue.js +0 -233
- package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
- package/dist/chat/page/customer-detail/SubInformation.vue.js +0 -102
- package/dist/chat/page/error/Error.vue.d.ts +0 -2
- package/dist/chat/page/error/Error.vue.js +0 -64
- package/dist/chat/page/home/ChatList.vue.d.ts +0 -98
- package/dist/chat/page/home/ChatList.vue.js +0 -621
- package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -21
- package/dist/chat/page/home/ChatMessage.vue.js +0 -200
- package/dist/chat/page/home/ChatMessageItem.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem.vue.js +0 -358
- package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +0 -19
- package/dist/chat/page/home/ChatMessageItem2.vue.js +0 -351
- package/dist/chat/page/home/DropZone.vue.d.ts +0 -13
- package/dist/chat/page/home/DropZone.vue.js +0 -130
- package/dist/chat/page/home/Home.vue.d.ts +0 -25
- package/dist/chat/page/home/Home.vue.js +0 -430
- package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -14
- package/dist/chat/page/home/HomeHeader.vue.js +0 -248
- package/dist/chat/page/home/InputChat.vue.d.ts +0 -27
- package/dist/chat/page/home/InputChat.vue.js +0 -412
- package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -7
- package/dist/chat/page/home/NewCustomer.vue.js +0 -81
- package/dist/chat/page/home/PhoneNumpad.vue.d.ts +0 -18
- package/dist/chat/page/home/PhoneNumpad.vue.js +0 -143
- package/dist/chat/page/setting/Setting.vue.d.ts +0 -2
- package/dist/chat/page/setting/Setting.vue.js +0 -277
- package/dist/chat/page/setting/SettingSuccess.vue.d.ts +0 -2
- package/dist/chat/page/setting/SettingSuccess.vue.js +0 -33
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -24
- package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -207
- package/dist/components/chat/call/Calling.vue.d.ts +0 -17
- package/dist/components/chat/call/Calling.vue.js +0 -607
- package/dist/components/chat/call/TimeLeft.vue.d.ts +0 -5
- package/dist/components/chat/call/TimeLeft.vue.js +0 -59
- package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
- package/dist/components/chat/card/CardCustomerDetail.vue.js +0 -28
- package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
- package/dist/components/chat/common/collapse/CollapseBase.vue.js +0 -59
- package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
- package/dist/components/chat/common/input/InputSearch.vue.js +0 -71
- package/dist/components/chat/common/modal/Modal.vue.d.ts +0 -94
- package/dist/components/chat/common/modal/Modal.vue.js +0 -260
- package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
- package/dist/components/chat/common/popover/PopoverBase.vue.js +0 -148
- package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -10
- package/dist/components/chat/common/spin/BaseSpin.vue.js +0 -43
- package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +0 -17
- package/dist/components/chat/common/switch/SwitchBase.vue.js +0 -76
- package/dist/components/chat/common/tab/TabBase.vue.d.ts +0 -30
- package/dist/components/chat/common/tab/TabBase.vue.js +0 -86
- package/dist/components/chat/common/tabs/TabBase.vue.d.ts +0 -18
- package/dist/components/chat/common/tabs/TabBase.vue.js +0 -93
- package/dist/components/chat/customer/Avatar.vue.d.ts +0 -12
- package/dist/components/chat/customer/Avatar.vue.js +0 -127
- package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
- package/dist/components/chat/layout/mobile/Footer.vue.js +0 -114
- package/dist/components/chat/select/SelectBase.vue.d.ts +0 -24
- package/dist/components/chat/select/SelectBase.vue.js +0 -105
- package/dist/components/common/CustomLoading.vue.d.ts +0 -2
- package/dist/components/common/CustomLoading.vue.js +0 -19
- package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
- package/dist/components/common/Notification/NotificationDescription.vue.js +0 -38
- package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
- package/dist/components/common/button/ButtonBase.vue.js +0 -78
- package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
- package/dist/components/common/button/ButtonToggle.vue.js +0 -70
- package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
- package/dist/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
- package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
- package/dist/components/common/collapse/BaseCollapse.vue.js +0 -36
- package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
- package/dist/components/common/collapse/BaseCollapseItem.vue.js +0 -22
- package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
- package/dist/components/common/drawer/DrawerBase.vue.js +0 -126
- package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +0 -33
- package/dist/components/common/drawer/DrawerBaseCustom.vue.js +0 -135
- package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
- package/dist/components/common/dropdown/DropdownBase.vue.js +0 -91
- package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
- package/dist/components/common/input/CInputSearch.vue.js +0 -62
- package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
- package/dist/components/common/modal/ModalBase.vue.js +0 -187
- package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
- package/dist/components/common/popover/PopoverBase.vue.js +0 -36
- package/dist/components/common/select/SelectBase.vue.d.ts +0 -28
- package/dist/components/common/select/SelectBase.vue.js +0 -102
- package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
- package/dist/components/common/slider/BaseSlider.vue.js +0 -70
- package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
- package/dist/components/common/spin/CSpin.vue.js +0 -41
- package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
- package/dist/components/common/tooltip/TooltipBase.vue.js +0 -8
- package/dist/components/layout/PageError.vue.d.ts +0 -2
- package/dist/components/layout/PageError.vue.js +0 -91
- package/dist/components/ui/button/CButton.vue.d.ts +0 -19
- package/dist/components/ui/button/CButton.vue.js +0 -49
- package/dist/components/ui/button/c-button.d.ts +0 -7
- package/dist/components/ui/button/c-button.js +0 -26
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
- package/dist/components/ui/checkbox/Checkbox.vue.js +0 -79
- package/dist/components/ui/checkbox/index.d.ts +0 -1
- package/dist/components/ui/checkbox/index.js +0 -1
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
- package/dist/components/ui/collapsible/Collapsible.vue.js +0 -47
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
- package/dist/components/ui/collapsible/index.d.ts +0 -3
- package/dist/components/ui/collapsible/index.js +0 -3
- package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
- package/dist/components/ui/dialog/Dialog.vue.js +0 -42
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogClose.vue.js +0 -35
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
- package/dist/components/ui/dialog/DialogContent.vue.js +0 -84
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogDescription.vue.js +0 -43
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogFooter.vue.js +0 -26
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/components/ui/dialog/DialogHeader.vue.js +0 -26
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
- package/dist/components/ui/dialog/DialogScrollContent.vue.js +0 -99
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
- package/dist/components/ui/dialog/DialogTitle.vue.js +0 -43
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dialog/DialogTrigger.vue.js +0 -35
- package/dist/components/ui/dialog/index.d.ts +0 -9
- package/dist/components/ui/dialog/index.js +0 -9
- package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
- package/dist/components/ui/drawer/Drawer.vue.js +0 -48
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
- package/dist/components/ui/drawer/DrawerContent.vue.js +0 -81
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerDescription.vue.js +0 -42
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerFooter.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
- package/dist/components/ui/drawer/DrawerHeader.vue.js +0 -26
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
- package/dist/components/ui/drawer/DrawerOverlay.vue.js +0 -37
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
- package/dist/components/ui/drawer/DrawerTitle.vue.js +0 -42
- package/dist/components/ui/drawer/index.d.ts +0 -8
- package/dist/components/ui/drawer/index.js +0 -8
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/components/ui/dropdown-menu/index.js +0 -15
- package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
- package/dist/components/ui/popover/Popover.vue.js +0 -41
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
- package/dist/components/ui/popover/PopoverContent.vue.js +0 -60
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
- package/dist/components/ui/popover/PopoverTrigger.vue.js +0 -35
- package/dist/components/ui/popover/index.d.ts +0 -3
- package/dist/components/ui/popover/index.js +0 -3
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
- package/dist/components/ui/radio-group/RadioGroup.vue.js +0 -46
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
- package/dist/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
- package/dist/components/ui/radio-group/index.d.ts +0 -2
- package/dist/components/ui/radio-group/index.js +0 -2
- package/dist/components/ui/select/Select.vue.d.ts +0 -20
- package/dist/components/ui/select/Select.vue.js +0 -49
- package/dist/components/ui/select/SelectContent.vue.d.ts +0 -24
- package/dist/components/ui/select/SelectContent.vue.js +0 -98
- package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectGroup.vue.js +0 -37
- package/dist/components/ui/select/SelectItem.vue.d.ts +0 -18
- package/dist/components/ui/select/SelectItem.vue.js +0 -73
- package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectItemText.vue.js +0 -37
- package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectLabel.vue.js +0 -40
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollDownButton.vue.js +0 -58
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -14
- package/dist/components/ui/select/SelectScrollUpButton.vue.js +0 -58
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
- package/dist/components/ui/select/SelectSeparator.vue.js +0 -39
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -17
- package/dist/components/ui/select/SelectTrigger.vue.js +0 -49
- package/dist/components/ui/select/SelectValue.vue.d.ts +0 -10
- package/dist/components/ui/select/SelectValue.vue.js +0 -37
- package/dist/components/ui/select/index.d.ts +0 -11
- package/dist/components/ui/select/index.js +0 -11
- package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
- package/dist/components/ui/slider/Slider.vue.js +0 -155
- package/dist/components/ui/slider/index.d.ts +0 -1
- package/dist/components/ui/slider/index.js +0 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
- package/dist/components/ui/switch/Switch.vue.js +0 -61
- package/dist/components/ui/switch/index.d.ts +0 -1
- package/dist/components/ui/switch/index.js +0 -1
- package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -20
- package/dist/components/ui/tabs/Tabs.vue.js +0 -54
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsContent.vue.js +0 -44
- package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsList.vue.js +0 -44
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -14
- package/dist/components/ui/tabs/TabsTrigger.vue.js +0 -45
- package/dist/components/ui/tabs/index.d.ts +0 -4
- package/dist/components/ui/tabs/index.js +0 -4
- package/dist/composable/useDigibot.d.ts +0 -7
- package/dist/composable/useDigibot.js +0 -23
- package/dist/composable/useInitData.d.ts +0 -12
- package/dist/composable/useInitData.js +0 -99
- package/dist/composable/useListConversations.d.ts +0 -55
- package/dist/composable/useListConversations.js +0 -209
- package/dist/composable/useListentEvent.d.ts +0 -5
- package/dist/composable/useListentEvent.js +0 -51
- package/dist/composable/usePlivo.d.ts +0 -17
- package/dist/composable/usePlivo.js +0 -207
- package/dist/constant/color.d.ts +0 -22
- package/dist/constant/color.js +0 -47
- package/dist/constant/datetime.d.ts +0 -6
- package/dist/constant/datetime.js +0 -6
- package/dist/constant/general.d.ts +0 -11
- package/dist/constant/general.js +0 -12
- package/dist/constant/message.d.ts +0 -8
- package/dist/constant/message.js +0 -8
- package/dist/constant/mqtt.d.ts +0 -7
- package/dist/constant/mqtt.js +0 -18
- package/dist/constant/user.d.ts +0 -8
- package/dist/constant/user.js +0 -9
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -5
- package/dist/plugins/axios-gci.d.ts +0 -3
- package/dist/plugins/axios-gci.js +0 -25
- package/dist/plugins/axios.d.ts +0 -3
- package/dist/plugins/axios.js +0 -84
- package/dist/plugins/mqtt.d.ts +0 -8
- package/dist/plugins/mqtt.js +0 -189
- package/dist/plugins/pocketbase.d.ts +0 -5
- package/dist/plugins/pocketbase.js +0 -15
- package/dist/plugins/sdk.d.ts +0 -18
- package/dist/plugins/sdk.js +0 -73
- package/dist/plugins/websocket.d.ts +0 -15
- package/dist/plugins/websocket.js +0 -151
- package/dist/types/chat/auth.d.ts +0 -41
- package/dist/types/chat/auth.js +0 -1
- package/dist/types/chat/call.d.ts +0 -19
- package/dist/types/chat/call.js +0 -23
- package/dist/types/chat/global.d.ts +0 -32
- package/dist/types/chat/global.js +0 -1
- package/dist/types/chat/promise.d.ts +0 -17
- package/dist/types/chat/promise.js +0 -1
- package/dist/types/chat/user.d.ts +0 -88
- package/dist/types/chat/user.js +0 -1
- package/dist/types/conversation.d.ts +0 -23
- package/dist/types/conversation.js +0 -1
- package/dist/types/global.d.ts +0 -11
- package/dist/types/global.js +0 -15
- package/dist/types/message.d.ts +0 -52
- package/dist/types/message.js +0 -1
- package/dist/utils/chat/cache.d.ts +0 -7
- package/dist/utils/chat/cache.js +0 -63
- package/dist/utils/chat/chat-router.d.ts +0 -3
- package/dist/utils/chat/chat-router.js +0 -8
- package/dist/utils/chat/page-error.d.ts +0 -4
- package/dist/utils/chat/page-error.js +0 -25
- package/dist/utils/chat/phone-string.d.ts +0 -1
- package/dist/utils/chat/phone-string.js +0 -4
- package/dist/utils/chat/store/auth.d.ts +0 -62
- package/dist/utils/chat/store/auth.js +0 -93
- package/dist/utils/chat/store/call.d.ts +0 -15
- package/dist/utils/chat/store/call.js +0 -160
- package/dist/utils/chat/store/conversation.d.ts +0 -13
- package/dist/utils/chat/store/conversation.js +0 -69
- package/dist/utils/chat/store/message.d.ts +0 -31
- package/dist/utils/chat/store/message.js +0 -74
- package/dist/utils/chat/store/user.d.ts +0 -200
- package/dist/utils/chat/store/user.js +0 -43
- package/dist/utils/debounce.d.ts +0 -1
- package/dist/utils/debounce.js +0 -9
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/json.js +0 -18
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.js +0 -5
- package/dist/utils/string-helper.d.ts +0 -2
- package/dist/utils/string-helper.js +0 -40
- package/dist/views/NotTenantPhone.vue.d.ts +0 -9
- package/dist/views/NotTenantPhone.vue.js +0 -99
- package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +0 -18
- package/dist/views/home/phone-numpad/ConvercationList.vue.js +0 -174
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +0 -28
- package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +0 -377
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
import { Popover, PopoverContent, PopoverTrigger, } from '../../../../components/ui/popover';
|
|
3
|
-
const props = withDefaults(defineProps(), {
|
|
4
|
-
align: "center",
|
|
5
|
-
sideOffset: 4,
|
|
6
|
-
delay: 100,
|
|
7
|
-
trigger: 'click',
|
|
8
|
-
triggerClass: '',
|
|
9
|
-
});
|
|
10
|
-
let closeTimer = null;
|
|
11
|
-
const isOpen = defineModel('open');
|
|
12
|
-
function delaySetOpen(open, delay) {
|
|
13
|
-
if (props.disabled)
|
|
14
|
-
return;
|
|
15
|
-
if (closeTimer) {
|
|
16
|
-
clearTimeout(closeTimer);
|
|
17
|
-
closeTimer = null;
|
|
18
|
-
}
|
|
19
|
-
if (delay === 0) {
|
|
20
|
-
setOpen(open);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
closeTimer = setTimeout(() => {
|
|
24
|
-
setOpen(open);
|
|
25
|
-
closeTimer = null;
|
|
26
|
-
}, delay);
|
|
27
|
-
}
|
|
28
|
-
const setOpen = (value) => {
|
|
29
|
-
isOpen.value = value;
|
|
30
|
-
};
|
|
31
|
-
function onMouseEnter() {
|
|
32
|
-
if (props.trigger != 'hover')
|
|
33
|
-
return;
|
|
34
|
-
delaySetOpen(true, props.delay);
|
|
35
|
-
}
|
|
36
|
-
const onMouseLeave = () => {
|
|
37
|
-
if (props.trigger != 'hover')
|
|
38
|
-
return;
|
|
39
|
-
delaySetOpen(false, props.delay);
|
|
40
|
-
};
|
|
41
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
42
|
-
const __VLS_modelEmit = defineEmits();
|
|
43
|
-
const __VLS_defaults = {
|
|
44
|
-
align: "center",
|
|
45
|
-
sideOffset: 4,
|
|
46
|
-
delay: 100,
|
|
47
|
-
trigger: 'click',
|
|
48
|
-
triggerClass: '',
|
|
49
|
-
};
|
|
50
|
-
const __VLS_ctx = {
|
|
51
|
-
...{},
|
|
52
|
-
...{},
|
|
53
|
-
...{},
|
|
54
|
-
...{},
|
|
55
|
-
...{},
|
|
56
|
-
};
|
|
57
|
-
let __VLS_elements;
|
|
58
|
-
let __VLS_components;
|
|
59
|
-
let __VLS_directives;
|
|
60
|
-
const __VLS_0 = {}.Popover;
|
|
61
|
-
/** @type {[typeof __VLS_components.Popover, typeof __VLS_components.Popover, ]} */ ;
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
Popover;
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
66
|
-
...{ 'onUpdate:open': {} },
|
|
67
|
-
open: (__VLS_ctx.isOpen),
|
|
68
|
-
}));
|
|
69
|
-
const __VLS_2 = __VLS_1({
|
|
70
|
-
...{ 'onUpdate:open': {} },
|
|
71
|
-
open: (__VLS_ctx.isOpen),
|
|
72
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
73
|
-
let __VLS_4;
|
|
74
|
-
let __VLS_5;
|
|
75
|
-
const __VLS_6 = ({ 'update:open': {} },
|
|
76
|
-
{ 'onUpdate:open': ((val) => __VLS_ctx.isOpen = val) });
|
|
77
|
-
var __VLS_7 = {};
|
|
78
|
-
const { default: __VLS_8 } = __VLS_3.slots;
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
[isOpen, isOpen,];
|
|
81
|
-
const __VLS_9 = {}.PopoverTrigger;
|
|
82
|
-
/** @type {[typeof __VLS_components.PopoverTrigger, typeof __VLS_components.PopoverTrigger, ]} */ ;
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
PopoverTrigger;
|
|
85
|
-
// @ts-ignore
|
|
86
|
-
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
|
|
87
|
-
...{ 'onMouseenter': {} },
|
|
88
|
-
...{ 'onMouseleave': {} },
|
|
89
|
-
...{ class: (props.triggerClass) },
|
|
90
|
-
}));
|
|
91
|
-
const __VLS_11 = __VLS_10({
|
|
92
|
-
...{ 'onMouseenter': {} },
|
|
93
|
-
...{ 'onMouseleave': {} },
|
|
94
|
-
...{ class: (props.triggerClass) },
|
|
95
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
96
|
-
let __VLS_13;
|
|
97
|
-
let __VLS_14;
|
|
98
|
-
const __VLS_15 = ({ mouseenter: {} },
|
|
99
|
-
{ onMouseenter: (__VLS_ctx.onMouseEnter) });
|
|
100
|
-
const __VLS_16 = ({ mouseleave: {} },
|
|
101
|
-
{ onMouseleave: (__VLS_ctx.onMouseLeave) });
|
|
102
|
-
const { default: __VLS_17 } = __VLS_12.slots;
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
[onMouseEnter, onMouseLeave,];
|
|
105
|
-
var __VLS_18 = {};
|
|
106
|
-
var __VLS_12;
|
|
107
|
-
if (!__VLS_ctx.disabled) {
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
[disabled,];
|
|
110
|
-
const __VLS_20 = {}.PopoverContent;
|
|
111
|
-
/** @type {[typeof __VLS_components.PopoverContent, typeof __VLS_components.PopoverContent, ]} */ ;
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
PopoverContent;
|
|
114
|
-
// @ts-ignore
|
|
115
|
-
const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({
|
|
116
|
-
...{ 'onMouseenter': {} },
|
|
117
|
-
...{ 'onMouseleave': {} },
|
|
118
|
-
side: (__VLS_ctx.side),
|
|
119
|
-
align: (__VLS_ctx.align),
|
|
120
|
-
}));
|
|
121
|
-
const __VLS_22 = __VLS_21({
|
|
122
|
-
...{ 'onMouseenter': {} },
|
|
123
|
-
...{ 'onMouseleave': {} },
|
|
124
|
-
side: (__VLS_ctx.side),
|
|
125
|
-
align: (__VLS_ctx.align),
|
|
126
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
127
|
-
let __VLS_24;
|
|
128
|
-
let __VLS_25;
|
|
129
|
-
const __VLS_26 = ({ mouseenter: {} },
|
|
130
|
-
{ onMouseenter: (__VLS_ctx.onMouseEnter) });
|
|
131
|
-
const __VLS_27 = ({ mouseleave: {} },
|
|
132
|
-
{ onMouseleave: (__VLS_ctx.onMouseLeave) });
|
|
133
|
-
const { default: __VLS_28 } = __VLS_23.slots;
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
[onMouseEnter, onMouseLeave, side, align,];
|
|
136
|
-
var __VLS_29 = {};
|
|
137
|
-
var __VLS_23;
|
|
138
|
-
}
|
|
139
|
-
var __VLS_3;
|
|
140
|
-
// @ts-ignore
|
|
141
|
-
var __VLS_19 = __VLS_18, __VLS_30 = __VLS_29;
|
|
142
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
143
|
-
__typeEmits: {},
|
|
144
|
-
__typeProps: {},
|
|
145
|
-
props: {},
|
|
146
|
-
});
|
|
147
|
-
const __VLS_export = {};
|
|
148
|
-
export default {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
size?: number;
|
|
3
|
-
border?: number;
|
|
4
|
-
color?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
-
size: number;
|
|
8
|
-
border: number;
|
|
9
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
const props = withDefaults(defineProps(), {
|
|
4
|
-
size: 48,
|
|
5
|
-
border: 5,
|
|
6
|
-
});
|
|
7
|
-
const style = computed(() => {
|
|
8
|
-
let result = {};
|
|
9
|
-
result.width = props.size + 'px';
|
|
10
|
-
result.height = props.size + 'px';
|
|
11
|
-
result.borderWidth = props.border + 'px';
|
|
12
|
-
if (props.color) {
|
|
13
|
-
result.borderColor = props.color;
|
|
14
|
-
}
|
|
15
|
-
result.borderBottomColor = 'transparent';
|
|
16
|
-
return result;
|
|
17
|
-
});
|
|
18
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
19
|
-
const __VLS_defaults = {
|
|
20
|
-
size: 48,
|
|
21
|
-
border: 5,
|
|
22
|
-
};
|
|
23
|
-
const __VLS_ctx = {
|
|
24
|
-
...{},
|
|
25
|
-
...{},
|
|
26
|
-
...{},
|
|
27
|
-
...{},
|
|
28
|
-
};
|
|
29
|
-
let __VLS_elements;
|
|
30
|
-
let __VLS_components;
|
|
31
|
-
let __VLS_directives;
|
|
32
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
33
|
-
...{ class: "loader" },
|
|
34
|
-
...{ style: (__VLS_ctx.style) },
|
|
35
|
-
});
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
[style,];
|
|
38
|
-
/** @type {__VLS_StyleScopedClasses['loader']} */ ;
|
|
39
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
40
|
-
__typeProps: {},
|
|
41
|
-
props: {},
|
|
42
|
-
});
|
|
43
|
-
export default {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
label?: string;
|
|
3
|
-
};
|
|
4
|
-
type __VLS_Props = Props;
|
|
5
|
-
type __VLS_ModelProps = {
|
|
6
|
-
modelValue?: boolean;
|
|
7
|
-
};
|
|
8
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (value: boolean | undefined) => any;
|
|
11
|
-
} & {
|
|
12
|
-
change: (val: boolean) => any;
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
-
onChange?: ((val: boolean) => any) | undefined;
|
|
15
|
-
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
const props = withDefaults(defineProps(), {});
|
|
3
|
-
const emit = defineEmits();
|
|
4
|
-
const result = defineModel();
|
|
5
|
-
const handleClick = () => {
|
|
6
|
-
const value = !result.value;
|
|
7
|
-
result.value = value;
|
|
8
|
-
emit('change', value);
|
|
9
|
-
};
|
|
10
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
11
|
-
const __VLS_modelEmit = defineEmits();
|
|
12
|
-
const __VLS_defaults = {};
|
|
13
|
-
const __VLS_ctx = {
|
|
14
|
-
...{},
|
|
15
|
-
...{},
|
|
16
|
-
...{},
|
|
17
|
-
...{},
|
|
18
|
-
...{},
|
|
19
|
-
};
|
|
20
|
-
let __VLS_elements;
|
|
21
|
-
let __VLS_components;
|
|
22
|
-
let __VLS_directives;
|
|
23
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
24
|
-
...{ onClick: (...[$event]) => {
|
|
25
|
-
__VLS_ctx.handleClick();
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
[handleClick,];
|
|
28
|
-
} },
|
|
29
|
-
...{ class: "flex items-center gap-2 cursor-pointer w-max" },
|
|
30
|
-
});
|
|
31
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
32
|
-
...{ class: "w-10 h-5 flex items-center bg-chat-haze-300 rounded-full p-1 cursor-pointer transition" },
|
|
33
|
-
...{ class: (__VLS_ctx.result ? 'bg-chat-primary' : 'bg-chat-haze-300') },
|
|
34
|
-
});
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
[result,];
|
|
37
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
38
|
-
...{ class: "bg-white w-4 h-4 rounded-full shadow transform transition" },
|
|
39
|
-
...{ class: (__VLS_ctx.result ? 'translate-x-4' : '') },
|
|
40
|
-
});
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
[result,];
|
|
43
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
|
|
44
|
-
...{ class: "font-semibold" },
|
|
45
|
-
});
|
|
46
|
-
(__VLS_ctx.label ?? '');
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
[label,];
|
|
49
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
50
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
51
|
-
/** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
|
|
52
|
-
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
53
|
-
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
54
|
-
/** @type {__VLS_StyleScopedClasses['w-10']} */ ;
|
|
55
|
-
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
56
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
57
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
58
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-300']} */ ;
|
|
59
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
60
|
-
/** @type {__VLS_StyleScopedClasses['p-1']} */ ;
|
|
61
|
-
/** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
|
|
62
|
-
/** @type {__VLS_StyleScopedClasses['transition']} */ ;
|
|
63
|
-
/** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
|
|
64
|
-
/** @type {__VLS_StyleScopedClasses['w-4']} */ ;
|
|
65
|
-
/** @type {__VLS_StyleScopedClasses['h-4']} */ ;
|
|
66
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
67
|
-
/** @type {__VLS_StyleScopedClasses['shadow']} */ ;
|
|
68
|
-
/** @type {__VLS_StyleScopedClasses['transform']} */ ;
|
|
69
|
-
/** @type {__VLS_StyleScopedClasses['transition']} */ ;
|
|
70
|
-
/** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
|
|
71
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
72
|
-
__typeEmits: {},
|
|
73
|
-
__typeProps: {},
|
|
74
|
-
props: {},
|
|
75
|
-
});
|
|
76
|
-
export default {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
tabs: {
|
|
3
|
-
label: string;
|
|
4
|
-
value: any;
|
|
5
|
-
badge?: string;
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
8
|
-
type __VLS_Props = Props;
|
|
9
|
-
type __VLS_ModelProps = {
|
|
10
|
-
'active'?: any;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
-
"update:active": (value: any) => any;
|
|
15
|
-
} & {
|
|
16
|
-
change: (val: any) => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
onChange?: ((val: any) => any) | undefined;
|
|
19
|
-
"onUpdate:active"?: ((value: any) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
21
|
-
[x: string]: ((props: {}) => any) | undefined;
|
|
22
|
-
[x: number]: ((props: {}) => any) | undefined;
|
|
23
|
-
[x: symbol]: ((props: {}) => any) | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
|
|
2
|
-
const props = withDefaults(defineProps(), {});
|
|
3
|
-
const emit = defineEmits();
|
|
4
|
-
const active = defineModel('active');
|
|
5
|
-
const handleTabClick = (tab) => {
|
|
6
|
-
active.value = tab.value;
|
|
7
|
-
emit('change', tab.value);
|
|
8
|
-
};
|
|
9
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
10
|
-
const __VLS_modelEmit = defineEmits();
|
|
11
|
-
const __VLS_defaults = {};
|
|
12
|
-
const __VLS_ctx = {
|
|
13
|
-
...{},
|
|
14
|
-
...{},
|
|
15
|
-
...{},
|
|
16
|
-
...{},
|
|
17
|
-
...{},
|
|
18
|
-
};
|
|
19
|
-
let __VLS_elements;
|
|
20
|
-
let __VLS_components;
|
|
21
|
-
let __VLS_directives;
|
|
22
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
23
|
-
...{ class: "w-full" },
|
|
24
|
-
});
|
|
25
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
26
|
-
...{ class: "flex p-1 bg-chat-haze-200 w-max rounded-xl" },
|
|
27
|
-
});
|
|
28
|
-
for (const [tab] of __VLS_getVForSourceType((__VLS_ctx.tabs))) {
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
[tabs,];
|
|
31
|
-
__VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
|
|
32
|
-
...{ onClick: (...[$event]) => {
|
|
33
|
-
__VLS_ctx.handleTabClick(tab);
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
[handleTabClick,];
|
|
36
|
-
} },
|
|
37
|
-
key: (tab.value),
|
|
38
|
-
...{ class: "px-4 py-2 rounded-xl text-sm font-medium relative" },
|
|
39
|
-
...{ class: (__VLS_ctx.active === tab.value ? 'bg-white' : '') },
|
|
40
|
-
});
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
[active,];
|
|
43
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
44
|
-
...{ class: "w-5 h-5 bg-chat-error rounded-full absolute -top-[8px] -right-2 text-white" },
|
|
45
|
-
});
|
|
46
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (tab.badge) }, null, null);
|
|
47
|
-
(tab.badge);
|
|
48
|
-
(tab.label);
|
|
49
|
-
}
|
|
50
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
51
|
-
...{ class: "mt-4" },
|
|
52
|
-
});
|
|
53
|
-
var __VLS_0 = {};
|
|
54
|
-
var __VLS_1 = __VLS_tryAsConstant(__VLS_ctx.active);
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
[active,];
|
|
57
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
58
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
59
|
-
/** @type {__VLS_StyleScopedClasses['p-1']} */ ;
|
|
60
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
|
|
61
|
-
/** @type {__VLS_StyleScopedClasses['w-max']} */ ;
|
|
62
|
-
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
63
|
-
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
64
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
65
|
-
/** @type {__VLS_StyleScopedClasses['rounded-xl']} */ ;
|
|
66
|
-
/** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
|
|
67
|
-
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
68
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
69
|
-
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
70
|
-
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
71
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-error']} */ ;
|
|
72
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
73
|
-
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
74
|
-
/** @type {__VLS_StyleScopedClasses['-top-[8px]']} */ ;
|
|
75
|
-
/** @type {__VLS_StyleScopedClasses['-right-2']} */ ;
|
|
76
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
77
|
-
/** @type {__VLS_StyleScopedClasses['mt-4']} */ ;
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
var __VLS_2 = __VLS_1, __VLS_3 = __VLS_0;
|
|
80
|
-
const __VLS_base = (await import('vue')).defineComponent({
|
|
81
|
-
__typeEmits: {},
|
|
82
|
-
__typeProps: {},
|
|
83
|
-
props: {},
|
|
84
|
-
});
|
|
85
|
-
const __VLS_export = {};
|
|
86
|
-
export default {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
tabs: {
|
|
3
|
-
label: string;
|
|
4
|
-
value: any;
|
|
5
|
-
badge?: string;
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
8
|
-
type __VLS_Props = Props;
|
|
9
|
-
type __VLS_ModelProps = {
|
|
10
|
-
'active'?: any;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
-
"update:active": (value: any) => any;
|
|
15
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
-
"onUpdate:active"?: ((value: any) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Tabs, TabsList, TabsTrigger } from '../../../ui/tabs';
|
|
2
|
-
const props = withDefaults(defineProps(), {});
|
|
3
|
-
const active = defineModel('active');
|
|
4
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
5
|
-
const __VLS_modelEmit = defineEmits();
|
|
6
|
-
const __VLS_defaults = {};
|
|
7
|
-
const __VLS_ctx = {
|
|
8
|
-
...{},
|
|
9
|
-
...{},
|
|
10
|
-
...{},
|
|
11
|
-
...{},
|
|
12
|
-
...{},
|
|
13
|
-
};
|
|
14
|
-
let __VLS_elements;
|
|
15
|
-
let __VLS_components;
|
|
16
|
-
let __VLS_directives;
|
|
17
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
18
|
-
...{ class: "flex w-full max-w-sm flex-col gap-6" },
|
|
19
|
-
});
|
|
20
|
-
const __VLS_0 = {}.Tabs;
|
|
21
|
-
/** @type {[typeof __VLS_components.Tabs, typeof __VLS_components.Tabs, ]} */ ;
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
Tabs;
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
26
|
-
modelValue: (__VLS_ctx.active),
|
|
27
|
-
}));
|
|
28
|
-
const __VLS_2 = __VLS_1({
|
|
29
|
-
modelValue: (__VLS_ctx.active),
|
|
30
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
31
|
-
const { default: __VLS_4 } = __VLS_3.slots;
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
[active,];
|
|
34
|
-
const __VLS_5 = {}.TabsList;
|
|
35
|
-
/** @type {[typeof __VLS_components.TabsList, typeof __VLS_components.TabsList, ]} */ ;
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
TabsList;
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
const __VLS_6 = __VLS_asFunctionalComponent(__VLS_5, new __VLS_5({}));
|
|
40
|
-
const __VLS_7 = __VLS_6({}, ...__VLS_functionalComponentArgsRest(__VLS_6));
|
|
41
|
-
const { default: __VLS_9 } = __VLS_8.slots;
|
|
42
|
-
for (const [item] of __VLS_getVForSourceType((__VLS_ctx.tabs))) {
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
[tabs,];
|
|
45
|
-
const __VLS_10 = {}.TabsTrigger;
|
|
46
|
-
/** @type {[typeof __VLS_components.TabsTrigger, typeof __VLS_components.TabsTrigger, ]} */ ;
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
TabsTrigger;
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
const __VLS_11 = __VLS_asFunctionalComponent(__VLS_10, new __VLS_10({
|
|
51
|
-
...{ class: "px-4 py-2 relative" },
|
|
52
|
-
value: (item.value),
|
|
53
|
-
key: (item.value),
|
|
54
|
-
}));
|
|
55
|
-
const __VLS_12 = __VLS_11({
|
|
56
|
-
...{ class: "px-4 py-2 relative" },
|
|
57
|
-
value: (item.value),
|
|
58
|
-
key: (item.value),
|
|
59
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_11));
|
|
60
|
-
const { default: __VLS_14 } = __VLS_13.slots;
|
|
61
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
62
|
-
...{ class: "w-5 h-5 bg-chat-error rounded-full absolute -top-[8px] -right-2 text-white z-[10]" },
|
|
63
|
-
});
|
|
64
|
-
__VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (item.badge) }, null, null);
|
|
65
|
-
(item.badge);
|
|
66
|
-
(item.label);
|
|
67
|
-
var __VLS_13;
|
|
68
|
-
}
|
|
69
|
-
var __VLS_8;
|
|
70
|
-
var __VLS_3;
|
|
71
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
72
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
73
|
-
/** @type {__VLS_StyleScopedClasses['max-w-sm']} */ ;
|
|
74
|
-
/** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
|
|
75
|
-
/** @type {__VLS_StyleScopedClasses['gap-6']} */ ;
|
|
76
|
-
/** @type {__VLS_StyleScopedClasses['px-4']} */ ;
|
|
77
|
-
/** @type {__VLS_StyleScopedClasses['py-2']} */ ;
|
|
78
|
-
/** @type {__VLS_StyleScopedClasses['relative']} */ ;
|
|
79
|
-
/** @type {__VLS_StyleScopedClasses['w-5']} */ ;
|
|
80
|
-
/** @type {__VLS_StyleScopedClasses['h-5']} */ ;
|
|
81
|
-
/** @type {__VLS_StyleScopedClasses['bg-chat-error']} */ ;
|
|
82
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
83
|
-
/** @type {__VLS_StyleScopedClasses['absolute']} */ ;
|
|
84
|
-
/** @type {__VLS_StyleScopedClasses['-top-[8px]']} */ ;
|
|
85
|
-
/** @type {__VLS_StyleScopedClasses['-right-2']} */ ;
|
|
86
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
87
|
-
/** @type {__VLS_StyleScopedClasses['z-[10]']} */ ;
|
|
88
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
89
|
-
__typeEmits: {},
|
|
90
|
-
__typeProps: {},
|
|
91
|
-
props: {},
|
|
92
|
-
});
|
|
93
|
-
export default {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
id?: any;
|
|
3
|
-
src?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
-
size: number | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
10
|
-
src: string;
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1,127 +0,0 @@
|
|
|
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 { digibotId } from '../../../composable/useDigibot';
|
|
4
|
-
import IconUser from '../../../assets/icons/global/IconUser.vue';
|
|
5
|
-
const props = withDefaults(defineProps(), {
|
|
6
|
-
size: 'md',
|
|
7
|
-
src: ''
|
|
8
|
-
});
|
|
9
|
-
const initials = computed(() => {
|
|
10
|
-
if (!props.name)
|
|
11
|
-
return '';
|
|
12
|
-
const char = props.name
|
|
13
|
-
.trim()
|
|
14
|
-
.match(/[A-Za-z0-9]/)?.[0];
|
|
15
|
-
return char?.toUpperCase() ?? '';
|
|
16
|
-
});
|
|
17
|
-
const sizeClass = computed(() => {
|
|
18
|
-
const s = props.size;
|
|
19
|
-
if (typeof s === 'number')
|
|
20
|
-
return `w-[${s}px] h-[${s}px] text-[${s / 2.5}px]`;
|
|
21
|
-
switch (s) {
|
|
22
|
-
case 'sm':
|
|
23
|
-
return 'w-8 h-8 text-sm';
|
|
24
|
-
case 'lg':
|
|
25
|
-
return 'w-20 h-20 text-2xl';
|
|
26
|
-
case 'xl':
|
|
27
|
-
return 'w-24 h-24 text-3xl';
|
|
28
|
-
case 'xxl':
|
|
29
|
-
return 'w-40 h-40 text-3xl';
|
|
30
|
-
default:
|
|
31
|
-
return 'w-12 h-12 text-base';
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
35
|
-
const __VLS_defaults = {
|
|
36
|
-
size: 'md',
|
|
37
|
-
src: ''
|
|
38
|
-
};
|
|
39
|
-
const __VLS_ctx = {
|
|
40
|
-
...{},
|
|
41
|
-
...{},
|
|
42
|
-
...{},
|
|
43
|
-
...{},
|
|
44
|
-
};
|
|
45
|
-
let __VLS_elements;
|
|
46
|
-
let __VLS_components;
|
|
47
|
-
let __VLS_directives;
|
|
48
|
-
/** @type {__VLS_StyleScopedClasses['bot-avatar']} */ ;
|
|
49
|
-
/** @type {__VLS_StyleScopedClasses['bot-avatar']} */ ;
|
|
50
|
-
/** @type {__VLS_StyleScopedClasses['eye']} */ ;
|
|
51
|
-
/** @type {__VLS_StyleScopedClasses['eye']} */ ;
|
|
52
|
-
/** @type {__VLS_StyleScopedClasses['cheek']} */ ;
|
|
53
|
-
/** @type {__VLS_StyleScopedClasses['left']} */ ;
|
|
54
|
-
/** @type {__VLS_StyleScopedClasses['cheek']} */ ;
|
|
55
|
-
/** @type {__VLS_StyleScopedClasses['right']} */ ;
|
|
56
|
-
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
57
|
-
/** @type {__VLS_StyleScopedClasses['dot']} */ ;
|
|
58
|
-
/** @type {__VLS_StyleScopedClasses['bot-wrap']} */ ;
|
|
59
|
-
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
|
|
60
|
-
...{ class: ([
|
|
61
|
-
'flex items-center justify-center rounded-full font-medium overflow-hidden select-none text-white',
|
|
62
|
-
__VLS_ctx.sizeClass
|
|
63
|
-
]) },
|
|
64
|
-
...{ style: ({ backgroundColor: __VLS_ctx.id == __VLS_ctx.digibotId ? 'transparent' : __VLS_ctx.color || '#4a7c9e' }) },
|
|
65
|
-
});
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
[sizeClass, id, digibotId, color,];
|
|
68
|
-
if (__VLS_ctx.id == __VLS_ctx.digibotId) {
|
|
69
|
-
// @ts-ignore
|
|
70
|
-
[id, digibotId,];
|
|
71
|
-
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
72
|
-
...{ class: "w-4/5 h-4/5" },
|
|
73
|
-
src: "../../../assets/images/bot/digibot-avatar.png",
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
else if (__VLS_ctx.src) {
|
|
77
|
-
// @ts-ignore
|
|
78
|
-
[src,];
|
|
79
|
-
__VLS_asFunctionalElement(__VLS_elements.img)({
|
|
80
|
-
src: (__VLS_ctx.src),
|
|
81
|
-
alt: "avatar",
|
|
82
|
-
...{ class: "w-full h-full object-cover" },
|
|
83
|
-
});
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
[src,];
|
|
86
|
-
}
|
|
87
|
-
else if (__VLS_ctx.initials) {
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
[initials,];
|
|
90
|
-
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
|
|
91
|
-
(__VLS_ctx.initials);
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
[initials,];
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
/** @type {[typeof IconUser, ]} */ ;
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
const __VLS_0 = __VLS_asFunctionalComponent(IconUser, new IconUser({
|
|
99
|
-
...{ class: (__VLS_ctx.sizeClass) },
|
|
100
|
-
...{ class: "scale-50" },
|
|
101
|
-
}));
|
|
102
|
-
const __VLS_1 = __VLS_0({
|
|
103
|
-
...{ class: (__VLS_ctx.sizeClass) },
|
|
104
|
-
...{ class: "scale-50" },
|
|
105
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
[sizeClass,];
|
|
108
|
-
}
|
|
109
|
-
/** @type {__VLS_StyleScopedClasses['flex']} */ ;
|
|
110
|
-
/** @type {__VLS_StyleScopedClasses['items-center']} */ ;
|
|
111
|
-
/** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
|
|
112
|
-
/** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
|
|
113
|
-
/** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
|
|
114
|
-
/** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
|
|
115
|
-
/** @type {__VLS_StyleScopedClasses['select-none']} */ ;
|
|
116
|
-
/** @type {__VLS_StyleScopedClasses['text-white']} */ ;
|
|
117
|
-
/** @type {__VLS_StyleScopedClasses['w-4/5']} */ ;
|
|
118
|
-
/** @type {__VLS_StyleScopedClasses['h-4/5']} */ ;
|
|
119
|
-
/** @type {__VLS_StyleScopedClasses['w-full']} */ ;
|
|
120
|
-
/** @type {__VLS_StyleScopedClasses['h-full']} */ ;
|
|
121
|
-
/** @type {__VLS_StyleScopedClasses['object-cover']} */ ;
|
|
122
|
-
/** @type {__VLS_StyleScopedClasses['scale-50']} */ ;
|
|
123
|
-
const __VLS_export = (await import('vue')).defineComponent({
|
|
124
|
-
__typeProps: {},
|
|
125
|
-
props: {},
|
|
126
|
-
});
|
|
127
|
-
export default {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|