@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,5 @@
|
|
|
1
|
+
import type { PAGE_RESPONSIVE } from '../types/chat/global';
|
|
2
|
+
export declare const responsiveObserver: import("vue").Ref<PAGE_RESPONSIVE, PAGE_RESPONSIVE>;
|
|
3
|
+
export declare function useListenEvent(callBackResizeChange?: (data?: any) => void): {
|
|
4
|
+
getResponsiveObserver: (is_init?: boolean) => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { onMounted, onUnmounted, ref } from 'vue';
|
|
2
|
+
import { currentPage } from '../utils/chat/chat-router';
|
|
3
|
+
import { PAGE } from '../constant/general';
|
|
4
|
+
import { useDebounce } from '../utils/debounce';
|
|
5
|
+
// import router from '../router'
|
|
6
|
+
//PINIA
|
|
7
|
+
export const responsiveObserver = ref('tablet');
|
|
8
|
+
export function useListenEvent(callBackResizeChange) {
|
|
9
|
+
onMounted(() => {
|
|
10
|
+
addResponsiveObserver();
|
|
11
|
+
// window.addEventListener('resize', getResponsiveObserverDebounce)
|
|
12
|
+
});
|
|
13
|
+
onUnmounted(() => {
|
|
14
|
+
removeResponsiveObserver();
|
|
15
|
+
// window.removeEventListener('resize', getResponsiveObserverDebounce)
|
|
16
|
+
});
|
|
17
|
+
let observer;
|
|
18
|
+
const getResponsiveObserver = (is_init) => {
|
|
19
|
+
const appChatRef = document.getElementById('appChatMain');
|
|
20
|
+
if (!appChatRef)
|
|
21
|
+
return;
|
|
22
|
+
const width = appChatRef?.offsetWidth ?? 0;
|
|
23
|
+
// const width = entry.contentRect.width ?? 0
|
|
24
|
+
if (width >= 1281) {
|
|
25
|
+
if (responsiveObserver.value != 'window') {
|
|
26
|
+
if (!is_init)
|
|
27
|
+
callBackResizeChange?.();
|
|
28
|
+
responsiveObserver.value = 'window';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else if (width >= 640) {
|
|
32
|
+
if (responsiveObserver.value != 'tablet') {
|
|
33
|
+
if (!is_init)
|
|
34
|
+
callBackResizeChange?.();
|
|
35
|
+
responsiveObserver.value = 'tablet';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
if (responsiveObserver.value != 'mobile') {
|
|
40
|
+
if (!is_init)
|
|
41
|
+
callBackResizeChange?.();
|
|
42
|
+
if (currentPage.value == PAGE.HOME) {
|
|
43
|
+
currentPage.value = PAGE.CHAT_LIST;
|
|
44
|
+
}
|
|
45
|
+
responsiveObserver.value = 'mobile';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const addResponsiveObserver = () => {
|
|
50
|
+
const appChatRef = document.getElementById('appChatMain');
|
|
51
|
+
if (!appChatRef)
|
|
52
|
+
return;
|
|
53
|
+
observer = new ResizeObserver(([entry]) => {
|
|
54
|
+
getResponsiveObserverDebounce();
|
|
55
|
+
});
|
|
56
|
+
if (appChatRef) {
|
|
57
|
+
observer.observe(appChatRef);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const removeResponsiveObserver = () => {
|
|
61
|
+
observer?.disconnect();
|
|
62
|
+
};
|
|
63
|
+
const getResponsiveObserverDebounce = useDebounce(() => {
|
|
64
|
+
getResponsiveObserver();
|
|
65
|
+
}, 50);
|
|
66
|
+
return {
|
|
67
|
+
getResponsiveObserver
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PlivoCallStatusType } from '../types/chat/call';
|
|
2
|
+
export declare function usePlivo(callback: (status: PlivoCallStatusType, data?: any) => void): {
|
|
3
|
+
plivoLogin: (data: {
|
|
4
|
+
token: string;
|
|
5
|
+
isRefresh?: boolean;
|
|
6
|
+
}) => Promise<void>;
|
|
7
|
+
plivoCallAnswer: () => Promise<void>;
|
|
8
|
+
plivoCallReject: () => void;
|
|
9
|
+
plivoCall: (phone: string) => Promise<void>;
|
|
10
|
+
plivoEndCall: (status: PlivoCallStatusType) => void;
|
|
11
|
+
plivoCallSwishMute: (isMute: boolean) => void;
|
|
12
|
+
plivoCallSwishSpeaker: (id: any) => void;
|
|
13
|
+
plivoRemoveCallBack: () => void;
|
|
14
|
+
checkTimeLimit: () => Promise<number>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { PLIVO_CALL_STATUS } from '../types/chat/call';
|
|
2
|
+
import { createSipAccount } from '../utils/chat/store/call';
|
|
3
|
+
import { dataProfile } from '../utils/chat/store/auth';
|
|
4
|
+
import { getPhoneTimeLimit } from '../utils/chat/store/time-limit';
|
|
5
|
+
import { onBeforeUnmount } from 'vue';
|
|
6
|
+
export function usePlivo(callback) {
|
|
7
|
+
var options = {
|
|
8
|
+
debug: 'ALL',
|
|
9
|
+
deviceParams: {
|
|
10
|
+
micEnabled: true,
|
|
11
|
+
audioConstraints: { audio: true, video: false }
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var plivoBrowserSdk = null;
|
|
15
|
+
var plivoBrowserSdk2 = null;
|
|
16
|
+
let CallUuid = '';
|
|
17
|
+
let custom_resolve = null;
|
|
18
|
+
let custom_reject = null;
|
|
19
|
+
onBeforeUnmount(() => {
|
|
20
|
+
plivoRemoveCallBack();
|
|
21
|
+
});
|
|
22
|
+
const plivoLogin = async (data) => {
|
|
23
|
+
try {
|
|
24
|
+
if (!plivoBrowserSdk) {
|
|
25
|
+
plivoBrowserSdk = new window.Plivo(options);
|
|
26
|
+
plivoBrowserSdk?.client?.on?.('onCallAnswered', handleCallAnswered);
|
|
27
|
+
plivoBrowserSdk?.client?.on?.('onCallTerminated', handleCallTerminated);
|
|
28
|
+
plivoBrowserSdk.client?.on?.('onCallFailed', handleCallFailed);
|
|
29
|
+
plivoBrowserSdk.client?.on?.('onIncomingCallCanceled', handleIncomingCallCanceled);
|
|
30
|
+
// plivoBrowserSdk.client.on('onCalling', (data: any) => console.log('onCallFailed', data))
|
|
31
|
+
plivoBrowserSdk?.client?.on?.('onIncomingCall', handleIncomingCall);
|
|
32
|
+
plivoBrowserSdk.client?.on?.('onCallRemoteRinging', handleCallRemoteRinging);
|
|
33
|
+
plivoBrowserSdk.client?.on?.('onMediaPermission', handleMediaPermission);
|
|
34
|
+
plivoBrowserSdk?.client?.on?.('onLoginFailed', handleLoginFailed);
|
|
35
|
+
}
|
|
36
|
+
if (!data.isRefresh) {
|
|
37
|
+
const payload = JSON.parse(atob(data.token.split('.')[1]));
|
|
38
|
+
await createSipAccount({
|
|
39
|
+
sip_username: `${payload.sub}_${payload.iss}`,
|
|
40
|
+
did_number: dataProfile.value?.phone ?? ''
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
// await plivoBrowserSdk?.client?.tokenLogin(payload.sub ?? '', token)
|
|
44
|
+
// await plivoBrowserSdk?.client?.login('webcall003079673454891827', '123456abcA!')
|
|
45
|
+
// await plivoBrowserSdk?.client?.login(payload.sub , null, token)
|
|
46
|
+
await plivoBrowserSdk?.client?.loginWithAccessToken(data.token);
|
|
47
|
+
plivoBrowserSdk?.client?.setRingTone(false);
|
|
48
|
+
// await plivoBrowserSdk?.client?.on?.(payload)
|
|
49
|
+
// console.log('Registered with token')
|
|
50
|
+
console.log(plivoBrowserSdk);
|
|
51
|
+
}
|
|
52
|
+
catch (err) {
|
|
53
|
+
console.log('Login error: ' + err);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const handleLoginFailed = (e) => {
|
|
57
|
+
console.log('Login failed', e);
|
|
58
|
+
};
|
|
59
|
+
const handleIncomingCall = async (callerID, extraHeaders, call) => {
|
|
60
|
+
try {
|
|
61
|
+
const data = {
|
|
62
|
+
phone: _getPhone(call.src)
|
|
63
|
+
};
|
|
64
|
+
callback(PLIVO_CALL_STATUS.CHECK_USER_OFFER, data);
|
|
65
|
+
const limit_time = await checkTimeLimit();
|
|
66
|
+
plivoBrowserSdk?.client?.setRingTone(true);
|
|
67
|
+
callback(PLIVO_CALL_STATUS.RINGING, { ...data, limit_time });
|
|
68
|
+
CallUuid = call?.callUUID;
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
callback(PLIVO_CALL_STATUS.CALL_END);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const handleCallRemoteRinging = (callInfo) => {
|
|
75
|
+
CallUuid = callInfo.callUUID;
|
|
76
|
+
callback(PLIVO_CALL_STATUS.CALLING);
|
|
77
|
+
custom_resolve?.();
|
|
78
|
+
};
|
|
79
|
+
const handleCallAnswered = (call) => {
|
|
80
|
+
if (call.callUUID == CallUuid) {
|
|
81
|
+
custom_resolve?.();
|
|
82
|
+
callback(PLIVO_CALL_STATUS.CALL_START);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const handleCallTerminated = (data, callInfo) => {
|
|
86
|
+
if (CallUuid === callInfo.callUUID) {
|
|
87
|
+
callback(PLIVO_CALL_STATUS.CALL_END, { message: data?.reason });
|
|
88
|
+
CallUuid = '';
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const _getPhone = (text, dial = '1') => {
|
|
92
|
+
let result = text.replace(/[^0-9]/g, '');
|
|
93
|
+
return result?.startsWith(dial) ? result.slice(dial.toString().length) : result;
|
|
94
|
+
};
|
|
95
|
+
const _waitEventOrTimeout = (timeoutMs = 3000) => {
|
|
96
|
+
return new Promise((resolve, reject) => {
|
|
97
|
+
custom_resolve = null;
|
|
98
|
+
const timer = setTimeout(() => {
|
|
99
|
+
reject('Time out error!');
|
|
100
|
+
custom_resolve = null;
|
|
101
|
+
custom_reject = null;
|
|
102
|
+
}, timeoutMs);
|
|
103
|
+
custom_resolve = () => {
|
|
104
|
+
resolve(true);
|
|
105
|
+
custom_resolve = null;
|
|
106
|
+
clearTimeout(timer);
|
|
107
|
+
};
|
|
108
|
+
custom_reject = (data) => {
|
|
109
|
+
reject(data);
|
|
110
|
+
custom_reject = null;
|
|
111
|
+
clearTimeout(timer);
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
const plivoCallAnswer = async () => {
|
|
116
|
+
plivoBrowserSdk?.client?.answer?.(CallUuid);
|
|
117
|
+
await _waitEventOrTimeout(3000);
|
|
118
|
+
};
|
|
119
|
+
const plivoCallReject = () => {
|
|
120
|
+
plivoBrowserSdk?.client?.reject?.(CallUuid);
|
|
121
|
+
};
|
|
122
|
+
const plivoCallIgnore = () => {
|
|
123
|
+
if (CallUuid)
|
|
124
|
+
plivoBrowserSdk?.client?.ignore?.(CallUuid);
|
|
125
|
+
};
|
|
126
|
+
const plivoCallSwishMute = (isMute) => {
|
|
127
|
+
plivoBrowserSdk?.client?.mute();
|
|
128
|
+
if (isMute)
|
|
129
|
+
plivoBrowserSdk?.client?.mute?.();
|
|
130
|
+
else
|
|
131
|
+
plivoBrowserSdk?.client?.unmute?.();
|
|
132
|
+
};
|
|
133
|
+
const plivoCall = async (phone) => {
|
|
134
|
+
plivoBrowserSdk?.client?.call('+' + phone, { number_phone: phone });
|
|
135
|
+
await _waitEventOrTimeout(5000);
|
|
136
|
+
};
|
|
137
|
+
const plivoEndCall = (status) => {
|
|
138
|
+
if (status == PLIVO_CALL_STATUS.RINGING) {
|
|
139
|
+
plivoBrowserSdk?.client?.reject?.(CallUuid);
|
|
140
|
+
}
|
|
141
|
+
else if (status == PLIVO_CALL_STATUS.CALL_START || status == PLIVO_CALL_STATUS.CALLING) {
|
|
142
|
+
plivoBrowserSdk?.client?.hangup?.();
|
|
143
|
+
}
|
|
144
|
+
plivoBrowserSdk?.client?.setRingTone(false);
|
|
145
|
+
};
|
|
146
|
+
const handleCallFailed = (data, callInfo) => {
|
|
147
|
+
console.log('handleCallFailed', data);
|
|
148
|
+
if (custom_reject)
|
|
149
|
+
custom_reject?.(data);
|
|
150
|
+
callback(PLIVO_CALL_STATUS.CALL_END, { message: data });
|
|
151
|
+
if (data == 'User Denied Media Access') {
|
|
152
|
+
alert('Microphone access is blocked. Please enable the microphone permission to make a call.');
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const handleIncomingCallCanceled = (callInfo) => {
|
|
156
|
+
callback(PLIVO_CALL_STATUS.CALL_END, { reason: callInfo.reason ?? '' });
|
|
157
|
+
};
|
|
158
|
+
const handleMediaPermission = (e) => {
|
|
159
|
+
console.log('MediaPermission', e);
|
|
160
|
+
if (e?.status == 'failure') {
|
|
161
|
+
callback(PLIVO_CALL_STATUS.MEDIA_PERMISSION_FAIL);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const plivoCallSwishSpeaker = (id) => {
|
|
165
|
+
alert(id);
|
|
166
|
+
plivoBrowserSdk?.client?.audio?.set?.(id);
|
|
167
|
+
};
|
|
168
|
+
const checkTimeLimit = async () => {
|
|
169
|
+
// await sleep()
|
|
170
|
+
const res = await getPhoneTimeLimit({
|
|
171
|
+
tenant_id: dataProfile.value?.tenant_id ?? '',
|
|
172
|
+
phone: dataProfile.value?.phone ?? ''
|
|
173
|
+
});
|
|
174
|
+
return res;
|
|
175
|
+
};
|
|
176
|
+
const plivoRemoveCallBack = () => {
|
|
177
|
+
plivoBrowserSdk?.client?.off?.('onCallAnswered', handleCallAnswered);
|
|
178
|
+
plivoBrowserSdk?.client?.off?.('onCallTerminated', handleCallTerminated);
|
|
179
|
+
plivoBrowserSdk?.client?.off?.('onCallFailed', handleCallFailed);
|
|
180
|
+
plivoBrowserSdk?.client?.off?.('onIncomingCallCanceled', handleIncomingCallCanceled);
|
|
181
|
+
plivoBrowserSdk?.client?.off?.('onIncomingCall', handleIncomingCall);
|
|
182
|
+
plivoBrowserSdk?.client?.off?.('onCallRemoteRinging', handleCallRemoteRinging);
|
|
183
|
+
plivoBrowserSdk?.client?.off?.('onMediaPermission', handleMediaPermission);
|
|
184
|
+
plivoBrowserSdk?.client?.off?.('onLoginFailed', handleLoginFailed);
|
|
185
|
+
plivoBrowserSdk = null;
|
|
186
|
+
};
|
|
187
|
+
const sleep = () => {
|
|
188
|
+
return new Promise((resolve) => setTimeout(resolve, 2000));
|
|
189
|
+
};
|
|
190
|
+
return {
|
|
191
|
+
plivoLogin,
|
|
192
|
+
plivoCallAnswer,
|
|
193
|
+
plivoCallReject,
|
|
194
|
+
plivoCall,
|
|
195
|
+
plivoEndCall,
|
|
196
|
+
plivoCallSwishMute,
|
|
197
|
+
plivoCallSwishSpeaker,
|
|
198
|
+
plivoRemoveCallBack,
|
|
199
|
+
checkTimeLimit,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const enum Status_Color {
|
|
2
|
+
Orange = "#F2994A",
|
|
3
|
+
Blue_Teal = "#F2994A"
|
|
4
|
+
}
|
|
5
|
+
declare const enum Color {
|
|
6
|
+
Primary = "#0051E6",
|
|
7
|
+
Primary_Hover = "#699FF5",
|
|
8
|
+
Primary_RGB = "41, 121, 255",
|
|
9
|
+
Error = "#ef4444",
|
|
10
|
+
Error_Hover = "#FF8A75",
|
|
11
|
+
Success = "#4ade80",
|
|
12
|
+
Success_Hover = "#5FD9A0",
|
|
13
|
+
Success_Bg = "#E9FFE4",
|
|
14
|
+
Warning = "#f3a22c",
|
|
15
|
+
Text = "#333333",
|
|
16
|
+
Link = "#1890ff",
|
|
17
|
+
Default_Appointment = "#rgb(244, 185, 124)",
|
|
18
|
+
Done_Appointment = "#00d652",
|
|
19
|
+
Cancel_Appointment = "#ff0000"
|
|
20
|
+
}
|
|
21
|
+
export default Color;
|
|
22
|
+
export declare function defineRootColor(): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export var Status_Color;
|
|
2
|
+
(function (Status_Color) {
|
|
3
|
+
Status_Color["Orange"] = "#F2994A";
|
|
4
|
+
Status_Color["Blue_Teal"] = "#F2994A";
|
|
5
|
+
})(Status_Color || (Status_Color = {}));
|
|
6
|
+
var Color;
|
|
7
|
+
(function (Color) {
|
|
8
|
+
Color["Primary"] = "#0051E6";
|
|
9
|
+
Color["Primary_Hover"] = "#699FF5";
|
|
10
|
+
Color["Primary_RGB"] = "41, 121, 255";
|
|
11
|
+
// Error = '#ff3b3b',
|
|
12
|
+
// Error = '#EF4444',
|
|
13
|
+
Color["Error"] = "#ef4444";
|
|
14
|
+
Color["Error_Hover"] = "#FF8A75";
|
|
15
|
+
// Success = '#1DA91D',
|
|
16
|
+
// Success = '#22C55E',
|
|
17
|
+
Color["Success"] = "#4ade80";
|
|
18
|
+
Color["Success_Hover"] = "#5FD9A0";
|
|
19
|
+
Color["Success_Bg"] = "#E9FFE4";
|
|
20
|
+
Color["Warning"] = "#f3a22c";
|
|
21
|
+
Color["Text"] = "#333333";
|
|
22
|
+
Color["Link"] = "#1890ff";
|
|
23
|
+
Color["Default_Appointment"] = "#rgb(244, 185, 124)";
|
|
24
|
+
Color["Done_Appointment"] = "#00d652";
|
|
25
|
+
Color["Cancel_Appointment"] = "#ff0000";
|
|
26
|
+
})(Color || (Color = {}));
|
|
27
|
+
export default Color;
|
|
28
|
+
export function defineRootColor() {
|
|
29
|
+
const root = document.querySelector(':root');
|
|
30
|
+
if (root) {
|
|
31
|
+
root.style?.setProperty('--chat-color-primary', Color.Primary);
|
|
32
|
+
// root.style?.setProperty('--chat-color-primary_hover', Color.Primary_Hover)
|
|
33
|
+
// root.style?.setProperty('--chat-color-primary_rgb', Color.Primary_RGB)
|
|
34
|
+
root.style?.setProperty('--chat-color-error', Color.Error);
|
|
35
|
+
// root.style?.setProperty('--chat-color-error_hover', Color.Error_Hover)
|
|
36
|
+
root.style?.setProperty('--chat-color-success', Color.Success);
|
|
37
|
+
// root.style?.setProperty('--chat-color-success-bg', Color.Success_Bg)
|
|
38
|
+
// root.style?.setProperty('--chat-color-success_hover', Color.Success_Hover)
|
|
39
|
+
// root.style?.setProperty('--chat-color-second-success', Color.Success)
|
|
40
|
+
// root.style?.setProperty('--chat-color-warning', Color.Warning)
|
|
41
|
+
// root.style?.setProperty('--chat-color-text', Color.Text)
|
|
42
|
+
// root.style?.setProperty('--chat-color-link', Color.Link)
|
|
43
|
+
// root.style?.setProperty('--chat-color-default_appointment', Color.Default_Appointment)
|
|
44
|
+
// root.style?.setProperty('--chat-color-done_appointment', Color.Done_Appointment)
|
|
45
|
+
// root.style?.setProperty('--chat-color-cancel_appointment', Color.Cancel_Appointment)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DATE_FORMATS: {
|
|
2
|
+
readonly DATE_FORMAT: "YYYY-MM-DD";
|
|
3
|
+
readonly DATE_FORMAT_FULL: "YYYY-MM-DD HH:mm:ss";
|
|
4
|
+
readonly DATE_FORMAT_MEDIUM: "MMM D, YYYY";
|
|
5
|
+
readonly TIME_12_FORMAT: "hh:mm A";
|
|
6
|
+
};
|
|
7
|
+
export declare const TIME_ZONE_UTC = "Africa/Freetown";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum PAGE {
|
|
2
|
+
HOME = "home",
|
|
3
|
+
CUSTOMER_DETAIL = "customer_detail",
|
|
4
|
+
CUSTOMER_CHECK_IN = "customer_check_in",
|
|
5
|
+
CUSTOMER_APPOINTMENT = "customer_appointment",
|
|
6
|
+
TENANT_ERROR = "tenant_error",
|
|
7
|
+
CHAT_LIST = "chat_list",
|
|
8
|
+
REGISTER_TENANT = "register_tenant",
|
|
9
|
+
REGISTER_SUCCESS = "register_success",
|
|
10
|
+
NOT_TENANT_PHONE = "not_tenant_phone"
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var PAGE;
|
|
2
|
+
(function (PAGE) {
|
|
3
|
+
PAGE["HOME"] = "home";
|
|
4
|
+
PAGE["CUSTOMER_DETAIL"] = "customer_detail";
|
|
5
|
+
PAGE["CUSTOMER_CHECK_IN"] = "customer_check_in";
|
|
6
|
+
PAGE["CUSTOMER_APPOINTMENT"] = "customer_appointment";
|
|
7
|
+
PAGE["TENANT_ERROR"] = "tenant_error";
|
|
8
|
+
PAGE["CHAT_LIST"] = "chat_list";
|
|
9
|
+
PAGE["REGISTER_TENANT"] = "register_tenant";
|
|
10
|
+
PAGE["REGISTER_SUCCESS"] = "register_success";
|
|
11
|
+
PAGE["NOT_TENANT_PHONE"] = "not_tenant_phone";
|
|
12
|
+
})(PAGE || (PAGE = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TOPIC_DETAIL_CHAT = "chat/message/";
|
|
2
|
+
export declare const TOPIC_DETAIL_CALL = "call/message/";
|
|
3
|
+
export declare const TOPIC_PLIVO_CALL = "message-call/";
|
|
4
|
+
export declare const TOPIC_PLIVO_SMS = "sms-inbound/";
|
|
5
|
+
export declare const TOPIC_STATUS_USER: string;
|
|
6
|
+
export declare const TOPIC_CUSTOMER_RELOAD: string;
|
|
7
|
+
export declare const TOPIC_HOME: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const TOPIC_DETAIL_CHAT = 'chat/message/';
|
|
2
|
+
export const TOPIC_DETAIL_CALL = 'call/message/';
|
|
3
|
+
export const TOPIC_PLIVO_CALL = 'message-call/';
|
|
4
|
+
export const TOPIC_PLIVO_SMS = 'sms-inbound/';
|
|
5
|
+
export const TOPIC_STATUS_USER = 'user/status/';
|
|
6
|
+
export const TOPIC_CUSTOMER_RELOAD = 'chat/customer/reload/+';
|
|
7
|
+
export const TOPIC_HOME = [
|
|
8
|
+
// 'chat/conversation/update/',
|
|
9
|
+
// 'chat/conversation/read_message/',
|
|
10
|
+
// 'chat/conversation/update_list/',
|
|
11
|
+
'chat/conversation/update/message-call/',
|
|
12
|
+
'chat/conversation/update/sms-inbound/',
|
|
13
|
+
'chat/conversation/read_message/',
|
|
14
|
+
'chat/conversation/reload/sms-inbound/',
|
|
15
|
+
];
|
|
16
|
+
// export CALL_STATE = {
|
|
17
|
+
// Offer: 'offer',
|
|
18
|
+
// }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var CalendarStatus;
|
|
2
|
+
(function (CalendarStatus) {
|
|
3
|
+
CalendarStatus["Confirmed"] = "confirmed";
|
|
4
|
+
CalendarStatus["Scheduled"] = "scheduled";
|
|
5
|
+
CalendarStatus["Canceled"] = "canceled";
|
|
6
|
+
CalendarStatus["Done"] = "done";
|
|
7
|
+
CalendarStatus["Reminder"] = "reminder";
|
|
8
|
+
CalendarStatus["Waiting"] = "wait_list";
|
|
9
|
+
})(CalendarStatus || (CalendarStatus = {}));
|