@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.
Files changed (410) hide show
  1. package/dist/assets/icons/call/IconClock.vue.d.ts +2 -0
  2. package/dist/assets/icons/call/IconClock.vue.js +22 -0
  3. package/dist/assets/icons/call/IconClose.vue.d.ts +2 -0
  4. package/dist/assets/icons/call/IconClose.vue.js +26 -0
  5. package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
  6. package/dist/assets/icons/call/IconMic.vue.js +123 -0
  7. package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
  8. package/dist/assets/icons/call/IconPhone.vue.js +22 -0
  9. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +14 -0
  10. package/dist/assets/icons/call/IconPhoneCancel.vue.js +46 -0
  11. package/dist/assets/icons/call/IconSoundDownload.vue.d.ts +2 -0
  12. package/dist/assets/icons/call/IconSoundDownload.vue.js +50 -0
  13. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
  14. package/dist/assets/icons/call/IconSpeaker.vue.js +62 -0
  15. package/dist/assets/icons/chat/IconCalendar.vue.d.ts +14 -0
  16. package/dist/assets/icons/chat/IconCalendar.vue.js +42 -0
  17. package/dist/assets/icons/chat/IconCheck.vue.d.ts +2 -0
  18. package/dist/assets/icons/chat/IconCheck.vue.js +22 -0
  19. package/dist/assets/icons/chat/IconInfo.vue.d.ts +2 -0
  20. package/dist/assets/icons/chat/IconInfo.vue.js +20 -0
  21. package/dist/assets/icons/chat/IconLink.vue.d.ts +14 -0
  22. package/dist/assets/icons/chat/IconLink.vue.js +42 -0
  23. package/dist/assets/icons/chat/IconMenuDot.vue.d.ts +2 -0
  24. package/dist/assets/icons/chat/IconMenuDot.vue.js +31 -0
  25. package/dist/assets/icons/customer-appointment/IconChevronRight.vue.d.ts +2 -0
  26. package/dist/assets/icons/customer-appointment/IconChevronRight.vue.js +22 -0
  27. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
  28. package/dist/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
  29. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
  30. package/dist/assets/icons/customer-detail/IconArrow.vue.js +22 -0
  31. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
  32. package/dist/assets/icons/customer-detail/IconCheck.vue.js +27 -0
  33. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
  34. package/dist/assets/icons/customer-detail/IconDate.vue.js +43 -0
  35. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
  36. package/dist/assets/icons/customer-detail/IconGroup.vue.js +48 -0
  37. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
  38. package/dist/assets/icons/customer-detail/IconMessage.vue.js +28 -0
  39. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
  40. package/dist/assets/icons/customer-detail/IconNote.vue.js +29 -0
  41. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +14 -0
  42. package/dist/assets/icons/customer-detail/IconPhone.vue.js +41 -0
  43. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
  44. package/dist/assets/icons/customer-detail/IconPin.vue.js +29 -0
  45. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
  46. package/dist/assets/icons/customer-detail/IconSearch.vue.js +29 -0
  47. package/dist/assets/icons/global/IconAiCheck.vue.d.ts +2 -0
  48. package/dist/assets/icons/global/IconAiCheck.vue.js +28 -0
  49. package/dist/assets/icons/global/IconArrowLeft.vue.d.ts +2 -0
  50. package/dist/assets/icons/global/IconArrowLeft.vue.js +29 -0
  51. package/dist/assets/icons/global/IconBackspace.vue.d.ts +2 -0
  52. package/dist/assets/icons/global/IconBackspace.vue.js +28 -0
  53. package/dist/assets/icons/global/IconCloseCircle.vue.d.ts +2 -0
  54. package/dist/assets/icons/global/IconCloseCircle.vue.js +36 -0
  55. package/dist/assets/icons/global/IconMessageOutline.vue.d.ts +2 -0
  56. package/dist/assets/icons/global/IconMessageOutline.vue.js +22 -0
  57. package/dist/assets/icons/global/IconPhone.vue.d.ts +2 -0
  58. package/dist/assets/icons/global/IconPhone.vue.js +19 -0
  59. package/dist/assets/icons/global/IconPlan.vue.d.ts +14 -0
  60. package/dist/assets/icons/global/IconPlan.vue.js +39 -0
  61. package/dist/assets/icons/global/IconPlus.vue.d.ts +2 -0
  62. package/dist/assets/icons/global/IconPlus.vue.js +22 -0
  63. package/dist/assets/icons/global/IconSearch.vue.d.ts +32 -0
  64. package/dist/assets/icons/global/IconSearch.vue.js +68 -0
  65. package/dist/assets/icons/global/IconSms.vue.d.ts +2 -0
  66. package/dist/assets/icons/global/IconSms.vue.js +22 -0
  67. package/dist/assets/icons/global/IconUser.vue.d.ts +2 -0
  68. package/dist/assets/icons/global/IconUser.vue.js +25 -0
  69. package/dist/assets/icons/lib/IconZoomOut.vue.d.ts +5 -0
  70. package/dist/assets/icons/lib/IconZoomOut.vue.js +52 -0
  71. package/dist/chat/App.vue.d.ts +26 -0
  72. package/dist/chat/App.vue.js +928 -0
  73. package/dist/chat/ChatHeader.vue.d.ts +15 -0
  74. package/dist/chat/ChatHeader.vue.js +218 -0
  75. package/dist/chat/main.d.ts +7 -0
  76. package/dist/chat/main.js +7 -0
  77. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +9 -0
  78. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +262 -0
  79. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
  80. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
  81. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
  82. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +138 -0
  83. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
  84. package/dist/chat/page/customer-detail/CustomerDetail.vue.js +234 -0
  85. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
  86. package/dist/chat/page/customer-detail/SubInformation.vue.js +134 -0
  87. package/dist/chat/page/error/Error.vue.d.ts +2 -0
  88. package/dist/chat/page/error/Error.vue.js +64 -0
  89. package/dist/chat/page/home/ChatList.vue.d.ts +104 -0
  90. package/dist/chat/page/home/ChatList.vue.js +654 -0
  91. package/dist/chat/page/home/ChatMessage.vue.d.ts +21 -0
  92. package/dist/chat/page/home/ChatMessage.vue.js +210 -0
  93. package/dist/chat/page/home/ChatMessageItem.vue.d.ts +20 -0
  94. package/dist/chat/page/home/ChatMessageItem.vue.js +397 -0
  95. package/dist/chat/page/home/ChatMessageItem2.vue.d.ts +19 -0
  96. package/dist/chat/page/home/ChatMessageItem2.vue.js +351 -0
  97. package/dist/chat/page/home/DropZone.vue.d.ts +13 -0
  98. package/dist/chat/page/home/DropZone.vue.js +130 -0
  99. package/dist/chat/page/home/Home.vue.d.ts +29 -0
  100. package/dist/chat/page/home/Home.vue.js +472 -0
  101. package/dist/chat/page/home/HomeHeader.vue.d.ts +18 -0
  102. package/dist/chat/page/home/HomeHeader.vue.js +514 -0
  103. package/dist/chat/page/home/InputChat.vue.d.ts +27 -0
  104. package/dist/chat/page/home/InputChat.vue.js +412 -0
  105. package/dist/chat/page/home/NewCustomer.vue.d.ts +7 -0
  106. package/dist/chat/page/home/NewCustomer.vue.js +83 -0
  107. package/dist/chat/page/home/PhoneNumpad.vue.d.ts +22 -0
  108. package/dist/chat/page/home/PhoneNumpad.vue.js +161 -0
  109. package/dist/chat/page/setting/Setting.vue.d.ts +2 -0
  110. package/dist/chat/page/setting/Setting.vue.js +277 -0
  111. package/dist/chat/page/setting/SettingSuccess.vue.d.ts +2 -0
  112. package/dist/chat/page/setting/SettingSuccess.vue.js +33 -0
  113. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +24 -0
  114. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +207 -0
  115. package/dist/components/chat/call/Calling.vue.d.ts +17 -0
  116. package/dist/components/chat/call/Calling.vue.js +594 -0
  117. package/dist/components/chat/call/TimeLeft.vue.d.ts +5 -0
  118. package/dist/components/chat/call/TimeLeft.vue.js +59 -0
  119. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
  120. package/dist/components/chat/card/CardCustomerDetail.vue.js +28 -0
  121. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
  122. package/dist/components/chat/common/collapse/CollapseBase.vue.js +59 -0
  123. package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
  124. package/dist/components/chat/common/input/InputSearch.vue.js +71 -0
  125. package/dist/components/chat/common/modal/Modal.vue.d.ts +94 -0
  126. package/dist/components/chat/common/modal/Modal.vue.js +260 -0
  127. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
  128. package/dist/components/chat/common/popover/PopoverBase.vue.js +148 -0
  129. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +10 -0
  130. package/dist/components/chat/common/spin/BaseSpin.vue.js +43 -0
  131. package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +17 -0
  132. package/dist/components/chat/common/switch/SwitchBase.vue.js +76 -0
  133. package/dist/components/chat/common/tab/TabBase.vue.d.ts +30 -0
  134. package/dist/components/chat/common/tab/TabBase.vue.js +86 -0
  135. package/dist/components/chat/common/tabs/TabBase.vue.d.ts +18 -0
  136. package/dist/components/chat/common/tabs/TabBase.vue.js +93 -0
  137. package/dist/components/chat/customer/Avatar.vue.d.ts +12 -0
  138. package/dist/components/chat/customer/Avatar.vue.js +127 -0
  139. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
  140. package/dist/components/chat/layout/mobile/Footer.vue.js +114 -0
  141. package/dist/components/chat/select/SelectBase.vue.d.ts +24 -0
  142. package/dist/components/chat/select/SelectBase.vue.js +105 -0
  143. package/dist/components/common/CustomLoading.vue.d.ts +2 -0
  144. package/dist/components/common/CustomLoading.vue.js +19 -0
  145. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
  146. package/dist/components/common/Notification/NotificationDescription.vue.js +38 -0
  147. package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
  148. package/dist/components/common/button/ButtonBase.vue.js +78 -0
  149. package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
  150. package/dist/components/common/button/ButtonToggle.vue.js +70 -0
  151. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
  152. package/dist/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
  153. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
  154. package/dist/components/common/collapse/BaseCollapse.vue.js +36 -0
  155. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
  156. package/dist/components/common/collapse/BaseCollapseItem.vue.js +22 -0
  157. package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
  158. package/dist/components/common/drawer/DrawerBase.vue.js +126 -0
  159. package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +33 -0
  160. package/dist/components/common/drawer/DrawerBaseCustom.vue.js +135 -0
  161. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
  162. package/dist/components/common/dropdown/DropdownBase.vue.js +93 -0
  163. package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
  164. package/dist/components/common/input/CInputSearch.vue.js +62 -0
  165. package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
  166. package/dist/components/common/modal/ModalBase.vue.js +187 -0
  167. package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
  168. package/dist/components/common/popover/PopoverBase.vue.js +36 -0
  169. package/dist/components/common/select/SelectBase.vue.d.ts +33 -0
  170. package/dist/components/common/select/SelectBase.vue.js +120 -0
  171. package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
  172. package/dist/components/common/slider/BaseSlider.vue.js +70 -0
  173. package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
  174. package/dist/components/common/spin/CSpin.vue.js +41 -0
  175. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
  176. package/dist/components/common/tooltip/TooltipBase.vue.js +8 -0
  177. package/dist/components/layout/PageError.vue.d.ts +2 -0
  178. package/dist/components/layout/PageError.vue.js +91 -0
  179. package/dist/components/ui/button/CButton.vue.d.ts +19 -0
  180. package/dist/components/ui/button/CButton.vue.js +49 -0
  181. package/dist/components/ui/button/c-button.d.ts +7 -0
  182. package/dist/components/ui/button/c-button.js +26 -0
  183. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
  184. package/dist/components/ui/checkbox/Checkbox.vue.js +79 -0
  185. package/dist/components/ui/checkbox/index.d.ts +1 -0
  186. package/dist/components/ui/checkbox/index.js +1 -0
  187. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
  188. package/dist/components/ui/collapsible/Collapsible.vue.js +47 -0
  189. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
  190. package/dist/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
  191. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
  192. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
  193. package/dist/components/ui/collapsible/index.d.ts +3 -0
  194. package/dist/components/ui/collapsible/index.js +3 -0
  195. package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
  196. package/dist/components/ui/dialog/Dialog.vue.js +42 -0
  197. package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
  198. package/dist/components/ui/dialog/DialogClose.vue.js +35 -0
  199. package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
  200. package/dist/components/ui/dialog/DialogContent.vue.js +84 -0
  201. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
  202. package/dist/components/ui/dialog/DialogDescription.vue.js +43 -0
  203. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
  204. package/dist/components/ui/dialog/DialogFooter.vue.js +26 -0
  205. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
  206. package/dist/components/ui/dialog/DialogHeader.vue.js +26 -0
  207. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
  208. package/dist/components/ui/dialog/DialogScrollContent.vue.js +99 -0
  209. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
  210. package/dist/components/ui/dialog/DialogTitle.vue.js +43 -0
  211. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
  212. package/dist/components/ui/dialog/DialogTrigger.vue.js +35 -0
  213. package/dist/components/ui/dialog/index.d.ts +9 -0
  214. package/dist/components/ui/dialog/index.js +9 -0
  215. package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
  216. package/dist/components/ui/drawer/Drawer.vue.js +48 -0
  217. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
  218. package/dist/components/ui/drawer/DrawerContent.vue.js +81 -0
  219. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
  220. package/dist/components/ui/drawer/DrawerDescription.vue.js +42 -0
  221. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
  222. package/dist/components/ui/drawer/DrawerFooter.vue.js +26 -0
  223. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
  224. package/dist/components/ui/drawer/DrawerHeader.vue.js +26 -0
  225. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
  226. package/dist/components/ui/drawer/DrawerOverlay.vue.js +37 -0
  227. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
  228. package/dist/components/ui/drawer/DrawerTitle.vue.js +42 -0
  229. package/dist/components/ui/drawer/index.d.ts +8 -0
  230. package/dist/components/ui/drawer/index.js +8 -0
  231. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
  232. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
  233. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
  234. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
  235. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
  236. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +66 -0
  237. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
  238. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
  239. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
  240. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
  241. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
  242. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
  243. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
  244. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
  245. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
  246. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
  247. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  248. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
  249. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
  250. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
  251. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
  252. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
  253. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
  254. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
  255. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
  256. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
  257. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
  258. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
  259. package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
  260. package/dist/components/ui/dropdown-menu/index.js +15 -0
  261. package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
  262. package/dist/components/ui/popover/Popover.vue.js +41 -0
  263. package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
  264. package/dist/components/ui/popover/PopoverContent.vue.js +60 -0
  265. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
  266. package/dist/components/ui/popover/PopoverTrigger.vue.js +35 -0
  267. package/dist/components/ui/popover/index.d.ts +3 -0
  268. package/dist/components/ui/popover/index.js +3 -0
  269. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
  270. package/dist/components/ui/radio-group/RadioGroup.vue.js +46 -0
  271. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  272. package/dist/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
  273. package/dist/components/ui/radio-group/index.d.ts +2 -0
  274. package/dist/components/ui/radio-group/index.js +2 -0
  275. package/dist/components/ui/select/Select.vue.d.ts +20 -0
  276. package/dist/components/ui/select/Select.vue.js +49 -0
  277. package/dist/components/ui/select/SelectContent.vue.d.ts +24 -0
  278. package/dist/components/ui/select/SelectContent.vue.js +103 -0
  279. package/dist/components/ui/select/SelectGroup.vue.d.ts +10 -0
  280. package/dist/components/ui/select/SelectGroup.vue.js +37 -0
  281. package/dist/components/ui/select/SelectItem.vue.d.ts +18 -0
  282. package/dist/components/ui/select/SelectItem.vue.js +73 -0
  283. package/dist/components/ui/select/SelectItemText.vue.d.ts +10 -0
  284. package/dist/components/ui/select/SelectItemText.vue.js +37 -0
  285. package/dist/components/ui/select/SelectLabel.vue.d.ts +14 -0
  286. package/dist/components/ui/select/SelectLabel.vue.js +40 -0
  287. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +14 -0
  288. package/dist/components/ui/select/SelectScrollDownButton.vue.js +58 -0
  289. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +14 -0
  290. package/dist/components/ui/select/SelectScrollUpButton.vue.js +58 -0
  291. package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  292. package/dist/components/ui/select/SelectSeparator.vue.js +39 -0
  293. package/dist/components/ui/select/SelectTrigger.vue.d.ts +17 -0
  294. package/dist/components/ui/select/SelectTrigger.vue.js +49 -0
  295. package/dist/components/ui/select/SelectValue.vue.d.ts +10 -0
  296. package/dist/components/ui/select/SelectValue.vue.js +37 -0
  297. package/dist/components/ui/select/index.d.ts +11 -0
  298. package/dist/components/ui/select/index.js +11 -0
  299. package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
  300. package/dist/components/ui/slider/Slider.vue.js +155 -0
  301. package/dist/components/ui/slider/index.d.ts +1 -0
  302. package/dist/components/ui/slider/index.js +1 -0
  303. package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
  304. package/dist/components/ui/switch/Switch.vue.js +61 -0
  305. package/dist/components/ui/switch/index.d.ts +1 -0
  306. package/dist/components/ui/switch/index.js +1 -0
  307. package/dist/components/ui/tabs/Tabs.vue.d.ts +20 -0
  308. package/dist/components/ui/tabs/Tabs.vue.js +54 -0
  309. package/dist/components/ui/tabs/TabsContent.vue.d.ts +14 -0
  310. package/dist/components/ui/tabs/TabsContent.vue.js +44 -0
  311. package/dist/components/ui/tabs/TabsList.vue.d.ts +14 -0
  312. package/dist/components/ui/tabs/TabsList.vue.js +44 -0
  313. package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +14 -0
  314. package/dist/components/ui/tabs/TabsTrigger.vue.js +45 -0
  315. package/dist/components/ui/tabs/index.d.ts +4 -0
  316. package/dist/components/ui/tabs/index.js +4 -0
  317. package/dist/composable/useDigibot.d.ts +7 -0
  318. package/dist/composable/useDigibot.js +23 -0
  319. package/dist/composable/useInitData.d.ts +12 -0
  320. package/dist/composable/useInitData.js +101 -0
  321. package/dist/composable/useListConversations.d.ts +59 -0
  322. package/dist/composable/useListConversations.js +220 -0
  323. package/dist/composable/useListentEvent.d.ts +5 -0
  324. package/dist/composable/useListentEvent.js +69 -0
  325. package/dist/composable/usePlivo.d.ts +15 -0
  326. package/dist/composable/usePlivo.js +201 -0
  327. package/dist/constant/color.d.ts +22 -0
  328. package/dist/constant/color.js +47 -0
  329. package/dist/constant/datetime.d.ts +7 -0
  330. package/dist/constant/datetime.js +7 -0
  331. package/dist/constant/general.d.ts +11 -0
  332. package/dist/constant/general.js +12 -0
  333. package/dist/constant/message.d.ts +8 -0
  334. package/dist/constant/message.js +8 -0
  335. package/dist/constant/mqtt.d.ts +7 -0
  336. package/dist/constant/mqtt.js +18 -0
  337. package/dist/constant/user.d.ts +8 -0
  338. package/dist/constant/user.js +9 -0
  339. package/dist/go-chat.es.js +18766 -17073
  340. package/dist/go-chat.umd.js +23 -23
  341. package/dist/lib/utils.d.ts +2 -0
  342. package/dist/lib/utils.js +5 -0
  343. package/dist/plugins/axios-gci.d.ts +3 -0
  344. package/dist/plugins/axios-gci.js +25 -0
  345. package/dist/plugins/axios.d.ts +3 -0
  346. package/dist/plugins/axios.js +84 -0
  347. package/dist/plugins/mqtt.d.ts +8 -0
  348. package/dist/plugins/mqtt.js +189 -0
  349. package/dist/plugins/pocketbase.d.ts +5 -0
  350. package/dist/plugins/pocketbase.js +15 -0
  351. package/dist/plugins/sdk.d.ts +18 -0
  352. package/dist/plugins/sdk.js +73 -0
  353. package/dist/plugins/websocket.d.ts +15 -0
  354. package/dist/plugins/websocket.js +151 -0
  355. package/dist/style.css +1 -1
  356. package/dist/types/chat/auth.d.ts +41 -0
  357. package/dist/types/chat/auth.js +1 -0
  358. package/dist/types/chat/call.d.ts +19 -0
  359. package/dist/types/chat/call.js +23 -0
  360. package/dist/types/chat/global.d.ts +58 -0
  361. package/dist/types/chat/global.js +1 -0
  362. package/dist/types/chat/promise.d.ts +17 -0
  363. package/dist/types/chat/promise.js +1 -0
  364. package/dist/types/chat/user.d.ts +88 -0
  365. package/dist/types/chat/user.js +1 -0
  366. package/dist/types/conversation.d.ts +23 -0
  367. package/dist/types/conversation.js +1 -0
  368. package/dist/types/global.d.ts +11 -0
  369. package/dist/types/global.js +15 -0
  370. package/dist/types/message.d.ts +52 -0
  371. package/dist/types/message.js +1 -0
  372. package/dist/utils/chat/cache.d.ts +7 -0
  373. package/dist/utils/chat/cache.js +63 -0
  374. package/dist/utils/chat/chat-router.d.ts +5 -0
  375. package/dist/utils/chat/chat-router.js +14 -0
  376. package/dist/utils/chat/page-error.d.ts +4 -0
  377. package/dist/utils/chat/page-error.js +25 -0
  378. package/dist/utils/chat/phone-string.d.ts +1 -0
  379. package/dist/utils/chat/phone-string.js +4 -0
  380. package/dist/utils/chat/queue.d.ts +7 -0
  381. package/dist/utils/chat/queue.js +30 -0
  382. package/dist/utils/chat/store/auth.d.ts +62 -0
  383. package/dist/utils/chat/store/auth.js +93 -0
  384. package/dist/utils/chat/store/call.d.ts +15 -0
  385. package/dist/utils/chat/store/call.js +160 -0
  386. package/dist/utils/chat/store/conversation.d.ts +14 -0
  387. package/dist/utils/chat/store/conversation.js +73 -0
  388. package/dist/utils/chat/store/message.d.ts +27 -0
  389. package/dist/utils/chat/store/message.js +70 -0
  390. package/dist/utils/chat/store/time-limit.d.ts +5 -0
  391. package/dist/utils/chat/store/time-limit.js +8 -0
  392. package/dist/utils/chat/store/user.d.ts +200 -0
  393. package/dist/utils/chat/store/user.js +44 -0
  394. package/dist/utils/dayjs-helper.d.ts +3 -0
  395. package/dist/utils/dayjs-helper.js +8 -0
  396. package/dist/utils/debounce.d.ts +1 -0
  397. package/dist/utils/debounce.js +9 -0
  398. package/dist/utils/json.d.ts +2 -0
  399. package/dist/utils/json.js +18 -0
  400. package/dist/utils/logger.d.ts +3 -0
  401. package/dist/utils/logger.js +5 -0
  402. package/dist/utils/string-helper.d.ts +3 -0
  403. package/dist/utils/string-helper.js +43 -0
  404. package/dist/views/NotTenantPhone.vue.d.ts +9 -0
  405. package/dist/views/NotTenantPhone.vue.js +99 -0
  406. package/dist/views/home/phone-numpad/ConvercationList.vue.d.ts +19 -0
  407. package/dist/views/home/phone-numpad/ConvercationList.vue.js +177 -0
  408. package/dist/views/home/phone-numpad/PhoneNumpad.vue.d.ts +32 -0
  409. package/dist/views/home/phone-numpad/PhoneNumpad.vue.js +403 -0
  410. package/package.json +1 -1
@@ -0,0 +1,177 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { phoneNumberFormat } from '../../../utils/string-helper';
3
+ import ScrollEvent from '../../../components/chat/ScrollEvent/ScrollEvent.vue';
4
+ import Avatar from '../../../components/chat/customer/Avatar.vue';
5
+ import { ref } from 'vue';
6
+ import { getConversation } from '../../../utils/chat/store/conversation';
7
+ import { useDebounce } from '../../../utils/debounce';
8
+ const emit = defineEmits();
9
+ const userList = ref([]);
10
+ let pageCount = 0;
11
+ const params = ref({
12
+ page: 1,
13
+ search: ''
14
+ });
15
+ const active = defineModel('active');
16
+ const scrollEventRef = ref(null);
17
+ const handleScroll = useDebounce(async () => {
18
+ if (params.value.page >= pageCount) {
19
+ scrollEventRef.value?.hideLoading();
20
+ return;
21
+ }
22
+ params.value.page = params.value.page + 1;
23
+ await getUserList();
24
+ }, 200);
25
+ const getUserList = async (phone, option) => {
26
+ try {
27
+ if (phone != undefined)
28
+ params.value.search = phone;
29
+ if ((params.value.search?.length ?? 0) < 4)
30
+ return (userList.value = []);
31
+ if (option?.reset) {
32
+ active.value = null;
33
+ params.value.page = 1;
34
+ }
35
+ const res = await getConversation(params.value);
36
+ if (option?.reset) {
37
+ userList.value = [];
38
+ }
39
+ userList.value.push(...(res?.items ?? []));
40
+ params.value.page = res?._meta?.currentPage || 1;
41
+ pageCount = res?._meta?.pageCount || 1;
42
+ checkActiveUserList();
43
+ if (option?.reset) {
44
+ getAllList();
45
+ }
46
+ }
47
+ catch (e) {
48
+ console.log(e);
49
+ }
50
+ };
51
+ const getAllList = async () => {
52
+ while (params.value.page < pageCount && !scrollEventRef.value?.canScroll()) {
53
+ params.value.page = params.value.page + 1;
54
+ await getUserList();
55
+ }
56
+ };
57
+ const handleSelectConversation = (item) => {
58
+ active.value = item;
59
+ emit('selectConversation', item);
60
+ };
61
+ const checkActiveUserList = async () => {
62
+ if (params.value.search.length == 10) {
63
+ active.value = userList.value.find(item => item.phone === ('1' + params.value.search)) ?? null;
64
+ }
65
+ };
66
+ const reset = () => {
67
+ userList.value = [];
68
+ };
69
+ const __VLS_exposed = { getUserList, checkActiveUserList, reset };
70
+ defineExpose(__VLS_exposed);
71
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
72
+ const __VLS_modelEmit = defineEmits();
73
+ const __VLS_ctx = {
74
+ ...{},
75
+ ...{},
76
+ ...{},
77
+ ...{},
78
+ ...{},
79
+ };
80
+ let __VLS_elements;
81
+ let __VLS_components;
82
+ let __VLS_directives;
83
+ /** @type {[typeof ScrollEvent, typeof ScrollEvent, ]} */ ;
84
+ // @ts-ignore
85
+ const __VLS_0 = __VLS_asFunctionalComponent(ScrollEvent, new ScrollEvent({
86
+ ...{ 'onGetDataBottom': {} },
87
+ ref: "scrollEventRef",
88
+ ...{ class: "h-full overflow-auto flex flex-col gap-y-2" },
89
+ bottom: true,
90
+ }));
91
+ const __VLS_1 = __VLS_0({
92
+ ...{ 'onGetDataBottom': {} },
93
+ ref: "scrollEventRef",
94
+ ...{ class: "h-full overflow-auto flex flex-col gap-y-2" },
95
+ bottom: true,
96
+ }, ...__VLS_functionalComponentArgsRest(__VLS_0));
97
+ let __VLS_3;
98
+ let __VLS_4;
99
+ const __VLS_5 = ({ getDataBottom: {} },
100
+ { onGetDataBottom: (__VLS_ctx.handleScroll) });
101
+ /** @type {typeof __VLS_ctx.scrollEventRef} */ ;
102
+ var __VLS_6 = {};
103
+ const { default: __VLS_8 } = __VLS_2.slots;
104
+ // @ts-ignore
105
+ [handleScroll, scrollEventRef,];
106
+ for (const [user] of __VLS_getVForSourceType((__VLS_ctx.userList))) {
107
+ // @ts-ignore
108
+ [userList,];
109
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
110
+ ...{ onClick: (...[$event]) => {
111
+ __VLS_ctx.handleSelectConversation(user);
112
+ // @ts-ignore
113
+ [handleSelectConversation,];
114
+ } },
115
+ ...{ class: "shrink-0 w-full overflow-hidden flex items-center gap-2 hover:bg-[#EDF5FF] cursor-pointer px-6 py-2" },
116
+ ...{ class: ({ 'bg-[#EDF5FF]': __VLS_ctx.active && __VLS_ctx.active?.id == user.id }) },
117
+ key: (user.id),
118
+ });
119
+ // @ts-ignore
120
+ [active, active,];
121
+ /** @type {[typeof Avatar, ]} */ ;
122
+ // @ts-ignore
123
+ const __VLS_9 = __VLS_asFunctionalComponent(Avatar, new Avatar({
124
+ id: (user.id),
125
+ ...{ class: "shrink-0" },
126
+ src: (''),
127
+ color: (user.color ?? ''),
128
+ name: (user.username ?? ''),
129
+ }));
130
+ const __VLS_10 = __VLS_9({
131
+ id: (user.id),
132
+ ...{ class: "shrink-0" },
133
+ src: (''),
134
+ color: (user.color ?? ''),
135
+ name: (user.username ?? ''),
136
+ }, ...__VLS_functionalComponentArgsRest(__VLS_9));
137
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({});
138
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
139
+ ...{ class: "truncate font-semibold" },
140
+ });
141
+ (user.username);
142
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
143
+ ...{ class: "truncate" },
144
+ });
145
+ (__VLS_ctx.phoneNumberFormat(user.phone ?? ''));
146
+ // @ts-ignore
147
+ [phoneNumberFormat,];
148
+ }
149
+ var __VLS_2;
150
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
151
+ /** @type {__VLS_StyleScopedClasses['overflow-auto']} */ ;
152
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
153
+ /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
154
+ /** @type {__VLS_StyleScopedClasses['gap-y-2']} */ ;
155
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
156
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
157
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
158
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
159
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
160
+ /** @type {__VLS_StyleScopedClasses['gap-2']} */ ;
161
+ /** @type {__VLS_StyleScopedClasses['hover:bg-[#EDF5FF]']} */ ;
162
+ /** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
163
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
164
+ /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
165
+ /** @type {__VLS_StyleScopedClasses['bg-[#EDF5FF]']} */ ;
166
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
167
+ /** @type {__VLS_StyleScopedClasses['truncate']} */ ;
168
+ /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
169
+ /** @type {__VLS_StyleScopedClasses['truncate']} */ ;
170
+ // @ts-ignore
171
+ var __VLS_7 = __VLS_6;
172
+ const __VLS_export = (await import('vue')).defineComponent({
173
+ setup: () => (__VLS_exposed),
174
+ __typeEmits: {},
175
+ __typeProps: {},
176
+ });
177
+ export default {};
@@ -0,0 +1,32 @@
1
+ import type { IConversation } from '../../../types/conversation';
2
+ import type { IResUser } from '../../../types/message';
3
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
4
+ type KeyPadProps = {
5
+ disabled?: boolean;
6
+ hideNumpad?: boolean;
7
+ responsive?: PAGE_RESPONSIVE;
8
+ };
9
+ type __VLS_Props = KeyPadProps;
10
+ type __VLS_ModelProps = {
11
+ modelValue?: string;
12
+ };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
15
+ reset: () => void;
16
+ startSendMessage: (phone_request?: string | undefined) => Promise<void>;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: string | undefined) => any;
19
+ } & {
20
+ change: (value: string) => any;
21
+ "update:modelValue": (value: string) => any;
22
+ message: (value: IConversation) => any;
23
+ back: () => any;
24
+ startCall: (value: IResUser) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
+ onChange?: ((value: string) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
28
+ onMessage?: ((value: IConversation) => any) | undefined;
29
+ onBack?: (() => any) | undefined;
30
+ onStartCall?: ((value: IResUser) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ export default _default;
@@ -0,0 +1,403 @@
1
+ /// <reference types="C:/phonghq/go-chat-v2/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { computed, ref } from 'vue';
3
+ import IconBackspace from '../../../assets/icons/global/IconBackspace.vue';
4
+ // import IconPhoneBase from '../../../assets/icons/startCall/IconPhoneBase.vue'
5
+ import { keepOnlyNumber, phoneNumberFormat, phoneNumberFormatInput } from '../../../utils/string-helper';
6
+ import { useDebounce } from '../../../utils/debounce';
7
+ import ConversationList from '../../../views/home/phone-numpad/ConvercationList.vue';
8
+ import { dataProfile } from '../../../utils/chat/store/auth';
9
+ import IconArrowLeft from '../../../assets/icons/global/IconArrowLeft.vue';
10
+ import ButtonBase from '../../../components/common/button/ButtonBase.vue';
11
+ import IconPhone from '../../../assets/icons/customer-detail/IconPhone.vue';
12
+ import IconMessageOutline from '../../../assets/icons/global/IconMessageOutline.vue';
13
+ import { createConversation } from '../../../utils/chat/store/conversation';
14
+ const props = withDefaults(defineProps(), {});
15
+ const emit = defineEmits();
16
+ const phone = defineModel();
17
+ const keys = [
18
+ { label: '1', value: '1' },
19
+ { label: '2', value: '2' },
20
+ { label: '3', value: '3' },
21
+ { label: '4', value: '4' },
22
+ { label: '5', value: '5' },
23
+ { label: '6', value: '6' },
24
+ { label: '7', value: '7' },
25
+ { label: '8', value: '8' },
26
+ { label: '9', value: '9' },
27
+ { label: 'C', value: 'Delete' },
28
+ { label: '0', value: '0' },
29
+ { label: 'X', value: 'Backspace' }
30
+ ];
31
+ const disabled = computed(() => keepOnlyNumber(phone.value ?? '').length < 10 || loading.value);
32
+ const activeKey = ref(null);
33
+ const activeUser = ref(null);
34
+ const conversationListRef = ref();
35
+ const loading = ref(false);
36
+ const messageLoading = ref(false);
37
+ const handleKey = (key) => {
38
+ if (props.disabled)
39
+ return;
40
+ if (dataProfile.value?.user_type != 'tenant')
41
+ return;
42
+ activeKey.value = key.value == 'Backspace' ? null : key.value;
43
+ setTimeout(() => {
44
+ activeKey.value = null;
45
+ }, 80);
46
+ let newValue = keepOnlyNumber(phone.value ?? '');
47
+ if (key.value === 'Backspace') {
48
+ newValue = newValue.slice(0, -1);
49
+ }
50
+ else if (key.value === 'Delete') {
51
+ newValue = '';
52
+ }
53
+ else {
54
+ newValue += key.value;
55
+ }
56
+ phone.value = phoneNumberFormatInput(newValue);
57
+ handleGetListKeyPad();
58
+ emit('change', newValue);
59
+ };
60
+ const handleInput = () => {
61
+ phone.value = phoneNumberFormatInput(phone.value ?? '');
62
+ handleGetListInput();
63
+ };
64
+ const handleGetConversationList = (delay) => {
65
+ return useDebounce(async () => {
66
+ try {
67
+ await conversationListRef.value?.getUserList(keepOnlyNumber(phone.value ?? ''), {
68
+ reset: true
69
+ });
70
+ }
71
+ catch (e) {
72
+ console.log(e);
73
+ }
74
+ loading.value = false;
75
+ }, delay);
76
+ };
77
+ const handleGetListKeyPadDebounce = handleGetConversationList(800);
78
+ const handleGetListInputDebounce = handleGetConversationList(800);
79
+ const handleGetListKeyPad = () => {
80
+ loading.value = true;
81
+ handleGetListKeyPadDebounce();
82
+ };
83
+ const handleGetListInput = () => {
84
+ loading.value = true;
85
+ handleGetListInputDebounce();
86
+ };
87
+ const startCall = () => {
88
+ if (phone.value)
89
+ conversationListRef.value?.checkActiveUserList();
90
+ let value = keepOnlyNumber(phone.value ?? '');
91
+ let user = {
92
+ phone: activeUser.value?.phone || '1' + value,
93
+ username: activeUser.value?.username ?? '',
94
+ avatar: activeUser.value?.avatar ?? '',
95
+ color: activeUser.value?.color ?? '',
96
+ is_known: activeUser.value?.is_known
97
+ };
98
+ if (value.length == 10) {
99
+ emit('startCall', user);
100
+ }
101
+ else {
102
+ // if (phone.value) Snackbar.error({ message: 'Phone number is invalid!' })
103
+ }
104
+ };
105
+ const startSendMessage = async (phone_request) => {
106
+ try {
107
+ let phone_value = keepOnlyNumber(phone_request ?? (phone.value ? '1' + phone.value : phone.value) ?? '');
108
+ if (phone_value.length != 11)
109
+ return;
110
+ conversationListRef.value?.checkActiveUserList();
111
+ if (activeUser.value) {
112
+ emit('message', activeUser.value);
113
+ }
114
+ else {
115
+ messageLoading.value = true;
116
+ const res = await createConversation(phone_value);
117
+ emit('message', res);
118
+ }
119
+ if (!phone_request) {
120
+ phone.value = '';
121
+ conversationListRef.value?.reset();
122
+ }
123
+ }
124
+ catch (e) {
125
+ console.log(e);
126
+ }
127
+ messageLoading.value = false;
128
+ };
129
+ const reset = () => {
130
+ phone.value = '';
131
+ conversationListRef.value?.getUserList('', {
132
+ reset: true
133
+ });
134
+ };
135
+ const handleSelectConversation = (item) => {
136
+ phone.value = phoneNumberFormat(item.phone ?? '');
137
+ };
138
+ const __VLS_exposed = { reset, startSendMessage };
139
+ defineExpose(__VLS_exposed);
140
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
141
+ const __VLS_modelEmit = defineEmits();
142
+ const __VLS_defaults = {};
143
+ const __VLS_ctx = {
144
+ ...{},
145
+ ...{},
146
+ ...{},
147
+ ...{},
148
+ ...{},
149
+ };
150
+ let __VLS_elements;
151
+ let __VLS_components;
152
+ let __VLS_directives;
153
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
154
+ ...{ class: "w-[480px] h-full flex flex-col" },
155
+ });
156
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
157
+ ...{ class: "w-full flex items-center justify-between border-chat-gray-5 layout-shadow border-b px-2 sm:px-6" },
158
+ });
159
+ if (__VLS_ctx.responsive != 'window') {
160
+ // @ts-ignore
161
+ [responsive,];
162
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
163
+ ...{ onClick: (...[$event]) => {
164
+ if (!(__VLS_ctx.responsive != 'window'))
165
+ return;
166
+ __VLS_ctx.emit('back');
167
+ // @ts-ignore
168
+ [emit,];
169
+ } },
170
+ ...{ class: "shrink-0 flex justify-center w-14" },
171
+ });
172
+ /** @type {[typeof IconArrowLeft, ]} */ ;
173
+ // @ts-ignore
174
+ const __VLS_0 = __VLS_asFunctionalComponent(IconArrowLeft, new IconArrowLeft({}));
175
+ const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
176
+ }
177
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
178
+ ...{ class: "h-[80px] sm:h-[96px] grow" },
179
+ });
180
+ __VLS_asFunctionalElement(__VLS_elements.input)({
181
+ ...{ onInput: (__VLS_ctx.handleInput) },
182
+ ...{ class: "py-2 w-full h-full text-xl" },
183
+ placeholder: "Enter your phone number",
184
+ disabled: (__VLS_ctx.dataProfile?.user_type != 'tenant'),
185
+ });
186
+ (__VLS_ctx.phone);
187
+ // @ts-ignore
188
+ [handleInput, dataProfile, phone,];
189
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
190
+ ...{ class: "grow overflow-hidden relative" },
191
+ });
192
+ /** @type {[typeof ConversationList, ]} */ ;
193
+ // @ts-ignore
194
+ const __VLS_4 = __VLS_asFunctionalComponent(ConversationList, new ConversationList({
195
+ ...{ 'onSelectConversation': {} },
196
+ ref: "conversationListRef",
197
+ active: (__VLS_ctx.activeUser),
198
+ }));
199
+ const __VLS_5 = __VLS_4({
200
+ ...{ 'onSelectConversation': {} },
201
+ ref: "conversationListRef",
202
+ active: (__VLS_ctx.activeUser),
203
+ }, ...__VLS_functionalComponentArgsRest(__VLS_4));
204
+ let __VLS_7;
205
+ let __VLS_8;
206
+ const __VLS_9 = ({ selectConversation: {} },
207
+ { onSelectConversation: (__VLS_ctx.handleSelectConversation) });
208
+ /** @type {typeof __VLS_ctx.conversationListRef} */ ;
209
+ var __VLS_10 = {};
210
+ // @ts-ignore
211
+ [activeUser, handleSelectConversation, conversationListRef,];
212
+ var __VLS_6;
213
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
214
+ ...{ class: "shrink-0 w-full px-6 border-chat-gray-5 layout-shadow border-t" },
215
+ });
216
+ if (!__VLS_ctx.hideNumpad) {
217
+ // @ts-ignore
218
+ [hideNumpad,];
219
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
220
+ ...{ class: "w-full h-[380px] sm:h-[450px] grid grid-cols-3" },
221
+ });
222
+ for (const [item] of __VLS_getVForSourceType((__VLS_ctx.keys))) {
223
+ // @ts-ignore
224
+ [keys,];
225
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
226
+ ...{ onClick: (...[$event]) => {
227
+ if (!(!__VLS_ctx.hideNumpad))
228
+ return;
229
+ __VLS_ctx.handleKey(item);
230
+ // @ts-ignore
231
+ [handleKey,];
232
+ } },
233
+ ...{ class: "text-3xl sm:text-[40px] flex-center rounded-lg" },
234
+ ...{ class: ({
235
+ 'bg-chat-haze-200': false,
236
+ 'opacity-[0.6] cursor-not-allowed': __VLS_ctx.dataProfile?.user_type != 'tenant'
237
+ }) },
238
+ key: (item.value),
239
+ });
240
+ // @ts-ignore
241
+ [dataProfile,];
242
+ if (item.label !== 'X') {
243
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
244
+ (item.label);
245
+ }
246
+ else {
247
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
248
+ /** @type {[typeof IconBackspace, ]} */ ;
249
+ // @ts-ignore
250
+ const __VLS_13 = __VLS_asFunctionalComponent(IconBackspace, new IconBackspace({
251
+ ...{ class: "w-12" },
252
+ }));
253
+ const __VLS_14 = __VLS_13({
254
+ ...{ class: "w-12" },
255
+ }, ...__VLS_functionalComponentArgsRest(__VLS_13));
256
+ }
257
+ }
258
+ }
259
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
260
+ ...{ class: "w-full grid grid-cols-2 gap-4 py-7" },
261
+ });
262
+ /** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
263
+ // @ts-ignore
264
+ const __VLS_17 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
265
+ ...{ 'onClick': {} },
266
+ ...{ class: "rounded-full h-12 shadow-lg" },
267
+ ...{ class: ({
268
+ 'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
269
+ }) },
270
+ type: "success",
271
+ }));
272
+ const __VLS_18 = __VLS_17({
273
+ ...{ 'onClick': {} },
274
+ ...{ class: "rounded-full h-12 shadow-lg" },
275
+ ...{ class: ({
276
+ 'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
277
+ }) },
278
+ type: "success",
279
+ }, ...__VLS_functionalComponentArgsRest(__VLS_17));
280
+ let __VLS_20;
281
+ let __VLS_21;
282
+ const __VLS_22 = ({ click: {} },
283
+ { onClick: (...[$event]) => {
284
+ __VLS_ctx.startCall();
285
+ // @ts-ignore
286
+ [disabled, startCall,];
287
+ } });
288
+ const { default: __VLS_23 } = __VLS_19.slots;
289
+ /** @type {[typeof IconPhone, ]} */ ;
290
+ // @ts-ignore
291
+ const __VLS_24 = __VLS_asFunctionalComponent(IconPhone, new IconPhone({
292
+ weight: (2),
293
+ }));
294
+ const __VLS_25 = __VLS_24({
295
+ weight: (2),
296
+ }, ...__VLS_functionalComponentArgsRest(__VLS_24));
297
+ var __VLS_19;
298
+ /** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
299
+ // @ts-ignore
300
+ const __VLS_28 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
301
+ ...{ 'onClick': {} },
302
+ ...{ class: "rounded-full h-12 shadow-lg" },
303
+ ...{ class: ({
304
+ 'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
305
+ }) },
306
+ type: "primary",
307
+ loading: (__VLS_ctx.messageLoading),
308
+ }));
309
+ const __VLS_29 = __VLS_28({
310
+ ...{ 'onClick': {} },
311
+ ...{ class: "rounded-full h-12 shadow-lg" },
312
+ ...{ class: ({
313
+ 'cursor-not-allowed opacity-[0.3] pointer-events-none': __VLS_ctx.disabled
314
+ }) },
315
+ type: "primary",
316
+ loading: (__VLS_ctx.messageLoading),
317
+ }, ...__VLS_functionalComponentArgsRest(__VLS_28));
318
+ let __VLS_31;
319
+ let __VLS_32;
320
+ const __VLS_33 = ({ click: {} },
321
+ { onClick: (...[$event]) => {
322
+ __VLS_ctx.startSendMessage();
323
+ // @ts-ignore
324
+ [disabled, messageLoading, startSendMessage,];
325
+ } });
326
+ const { default: __VLS_34 } = __VLS_30.slots;
327
+ /** @type {[typeof IconMessageOutline, ]} */ ;
328
+ // @ts-ignore
329
+ const __VLS_35 = __VLS_asFunctionalComponent(IconMessageOutline, new IconMessageOutline({}));
330
+ const __VLS_36 = __VLS_35({}, ...__VLS_functionalComponentArgsRest(__VLS_35));
331
+ var __VLS_30;
332
+ /** @type {__VLS_StyleScopedClasses['w-[480px]']} */ ;
333
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
334
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
335
+ /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
336
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
337
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
338
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
339
+ /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
340
+ /** @type {__VLS_StyleScopedClasses['border-chat-gray-5']} */ ;
341
+ /** @type {__VLS_StyleScopedClasses['layout-shadow']} */ ;
342
+ /** @type {__VLS_StyleScopedClasses['border-b']} */ ;
343
+ /** @type {__VLS_StyleScopedClasses['px-2']} */ ;
344
+ /** @type {__VLS_StyleScopedClasses['sm:px-6']} */ ;
345
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
346
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
347
+ /** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
348
+ /** @type {__VLS_StyleScopedClasses['w-14']} */ ;
349
+ /** @type {__VLS_StyleScopedClasses['h-[80px]']} */ ;
350
+ /** @type {__VLS_StyleScopedClasses['sm:h-[96px]']} */ ;
351
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
352
+ /** @type {__VLS_StyleScopedClasses['py-2']} */ ;
353
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
354
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
355
+ /** @type {__VLS_StyleScopedClasses['text-xl']} */ ;
356
+ /** @type {__VLS_StyleScopedClasses['grow']} */ ;
357
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
358
+ /** @type {__VLS_StyleScopedClasses['relative']} */ ;
359
+ /** @type {__VLS_StyleScopedClasses['shrink-0']} */ ;
360
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
361
+ /** @type {__VLS_StyleScopedClasses['px-6']} */ ;
362
+ /** @type {__VLS_StyleScopedClasses['border-chat-gray-5']} */ ;
363
+ /** @type {__VLS_StyleScopedClasses['layout-shadow']} */ ;
364
+ /** @type {__VLS_StyleScopedClasses['border-t']} */ ;
365
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
366
+ /** @type {__VLS_StyleScopedClasses['h-[380px]']} */ ;
367
+ /** @type {__VLS_StyleScopedClasses['sm:h-[450px]']} */ ;
368
+ /** @type {__VLS_StyleScopedClasses['grid']} */ ;
369
+ /** @type {__VLS_StyleScopedClasses['grid-cols-3']} */ ;
370
+ /** @type {__VLS_StyleScopedClasses['text-3xl']} */ ;
371
+ /** @type {__VLS_StyleScopedClasses['sm:text-[40px]']} */ ;
372
+ /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
373
+ /** @type {__VLS_StyleScopedClasses['rounded-lg']} */ ;
374
+ /** @type {__VLS_StyleScopedClasses['bg-chat-haze-200']} */ ;
375
+ /** @type {__VLS_StyleScopedClasses['opacity-[0.6]']} */ ;
376
+ /** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
377
+ /** @type {__VLS_StyleScopedClasses['w-12']} */ ;
378
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
379
+ /** @type {__VLS_StyleScopedClasses['grid']} */ ;
380
+ /** @type {__VLS_StyleScopedClasses['grid-cols-2']} */ ;
381
+ /** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
382
+ /** @type {__VLS_StyleScopedClasses['py-7']} */ ;
383
+ /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
384
+ /** @type {__VLS_StyleScopedClasses['h-12']} */ ;
385
+ /** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
386
+ /** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
387
+ /** @type {__VLS_StyleScopedClasses['opacity-[0.3]']} */ ;
388
+ /** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
389
+ /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
390
+ /** @type {__VLS_StyleScopedClasses['h-12']} */ ;
391
+ /** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
392
+ /** @type {__VLS_StyleScopedClasses['cursor-not-allowed']} */ ;
393
+ /** @type {__VLS_StyleScopedClasses['opacity-[0.3]']} */ ;
394
+ /** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
395
+ // @ts-ignore
396
+ var __VLS_11 = __VLS_10;
397
+ const __VLS_export = (await import('vue')).defineComponent({
398
+ setup: () => (__VLS_exposed),
399
+ __typeEmits: {},
400
+ __typeProps: {},
401
+ props: {},
402
+ });
403
+ export default {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phonghq/go-chat",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"