@phonghq/go-chat 1.0.2 → 1.0.4

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 (284) hide show
  1. package/dist/go-chat.es.js +6578 -6530
  2. package/dist/go-chat.umd.js +14 -14
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/dist/assets/icons/IconArrowLeft.vue.d.ts +0 -2
  6. package/dist/assets/icons/IconArrowLeft.vue.js +0 -29
  7. package/dist/assets/icons/IconPhone.vue.d.ts +0 -2
  8. package/dist/assets/icons/IconPhone.vue.js +0 -19
  9. package/dist/assets/icons/IconPlan.vue.d.ts +0 -2
  10. package/dist/assets/icons/IconPlan.vue.js +0 -19
  11. package/dist/assets/icons/IconPlus.vue.d.ts +0 -2
  12. package/dist/assets/icons/IconPlus.vue.js +0 -22
  13. package/dist/assets/icons/IconSearch.vue.d.ts +0 -32
  14. package/dist/assets/icons/IconSearch.vue.js +0 -68
  15. package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
  16. package/dist/assets/icons/call/IconMic.vue.js +0 -123
  17. package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
  18. package/dist/assets/icons/call/IconPhone.vue.js +0 -35
  19. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -2
  20. package/dist/assets/icons/call/IconPhoneCancel.vue.js +0 -35
  21. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
  22. package/dist/assets/icons/call/IconSpeaker.vue.js +0 -62
  23. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
  24. package/dist/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
  25. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
  26. package/dist/assets/icons/customer-detail/IconArrow.vue.js +0 -22
  27. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
  28. package/dist/assets/icons/customer-detail/IconCheck.vue.js +0 -27
  29. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
  30. package/dist/assets/icons/customer-detail/IconDate.vue.js +0 -43
  31. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
  32. package/dist/assets/icons/customer-detail/IconGroup.vue.js +0 -48
  33. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
  34. package/dist/assets/icons/customer-detail/IconMessage.vue.js +0 -28
  35. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
  36. package/dist/assets/icons/customer-detail/IconNote.vue.js +0 -29
  37. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -2
  38. package/dist/assets/icons/customer-detail/IconPhone.vue.js +0 -21
  39. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
  40. package/dist/assets/icons/customer-detail/IconPin.vue.js +0 -29
  41. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
  42. package/dist/assets/icons/customer-detail/IconSearch.vue.js +0 -29
  43. package/dist/chat/App.vue.d.ts +0 -5
  44. package/dist/chat/App.vue.js +0 -502
  45. package/dist/chat/main.d.ts +0 -3
  46. package/dist/chat/main.js +0 -2
  47. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
  48. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
  49. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
  50. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
  51. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
  52. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -136
  53. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
  54. package/dist/chat/page/customer-detail/CustomerDetail.vue.js +0 -235
  55. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
  56. package/dist/chat/page/customer-detail/SubInformation.vue.js +0 -102
  57. package/dist/chat/page/error/Error.vue.d.ts +0 -2
  58. package/dist/chat/page/error/Error.vue.js +0 -64
  59. package/dist/chat/page/home/ChatList.vue.d.ts +0 -20
  60. package/dist/chat/page/home/ChatList.vue.js +0 -380
  61. package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -16
  62. package/dist/chat/page/home/ChatMessage.vue.js +0 -271
  63. package/dist/chat/page/home/Home.vue.d.ts +0 -14
  64. package/dist/chat/page/home/Home.vue.js +0 -327
  65. package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -10
  66. package/dist/chat/page/home/HomeHeader.vue.js +0 -122
  67. package/dist/chat/page/home/InputChat.vue.d.ts +0 -19
  68. package/dist/chat/page/home/InputChat.vue.js +0 -226
  69. package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -6
  70. package/dist/chat/page/home/NewCustomer.vue.js +0 -82
  71. package/dist/components/ListenEvent.vue.d.ts +0 -2
  72. package/dist/components/ListenEvent.vue.js +0 -45
  73. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -22
  74. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -197
  75. package/dist/components/chat/call/Calling.vue.d.ts +0 -7
  76. package/dist/components/chat/call/Calling.vue.js +0 -291
  77. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
  78. package/dist/components/chat/card/CardCustomerDetail.vue.js +0 -28
  79. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
  80. package/dist/components/chat/common/collapse/CollapseBase.vue.js +0 -59
  81. package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
  82. package/dist/components/chat/common/input/InputSearch.vue.js +0 -71
  83. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
  84. package/dist/components/chat/common/popover/PopoverBase.vue.js +0 -148
  85. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -2
  86. package/dist/components/chat/common/spin/BaseSpin.vue.js +0 -12
  87. package/dist/components/chat/customer/Avatar.vue.d.ts +0 -11
  88. package/dist/components/chat/customer/Avatar.vue.js +0 -79
  89. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
  90. package/dist/components/chat/layout/mobile/Footer.vue.js +0 -109
  91. package/dist/components/common/CustomLoading.vue.d.ts +0 -2
  92. package/dist/components/common/CustomLoading.vue.js +0 -19
  93. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
  94. package/dist/components/common/Notification/NotificationDescription.vue.js +0 -38
  95. package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
  96. package/dist/components/common/button/ButtonBase.vue.js +0 -78
  97. package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
  98. package/dist/components/common/button/ButtonToggle.vue.js +0 -70
  99. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
  100. package/dist/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
  101. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
  102. package/dist/components/common/collapse/BaseCollapse.vue.js +0 -36
  103. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
  104. package/dist/components/common/collapse/BaseCollapseItem.vue.js +0 -22
  105. package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
  106. package/dist/components/common/drawer/DrawerBase.vue.js +0 -126
  107. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
  108. package/dist/components/common/dropdown/DropdownBase.vue.js +0 -91
  109. package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
  110. package/dist/components/common/input/CInputSearch.vue.js +0 -62
  111. package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
  112. package/dist/components/common/modal/ModalBase.vue.js +0 -164
  113. package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
  114. package/dist/components/common/popover/PopoverBase.vue.js +0 -36
  115. package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
  116. package/dist/components/common/slider/BaseSlider.vue.js +0 -70
  117. package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
  118. package/dist/components/common/spin/CSpin.vue.js +0 -41
  119. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
  120. package/dist/components/common/tooltip/TooltipBase.vue.js +0 -8
  121. package/dist/components/layout/Blank.vue.d.ts +0 -9
  122. package/dist/components/layout/Blank.vue.js +0 -19
  123. package/dist/components/layout/Default.vue.d.ts +0 -9
  124. package/dist/components/layout/Default.vue.js +0 -21
  125. package/dist/components/modal/Confirm.vue.d.ts +0 -2
  126. package/dist/components/modal/Confirm.vue.js +0 -164
  127. package/dist/components/ui/button/CButton.vue.d.ts +0 -19
  128. package/dist/components/ui/button/CButton.vue.js +0 -49
  129. package/dist/components/ui/button/c-button.d.ts +0 -7
  130. package/dist/components/ui/button/c-button.js +0 -26
  131. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
  132. package/dist/components/ui/checkbox/Checkbox.vue.js +0 -79
  133. package/dist/components/ui/checkbox/index.d.ts +0 -1
  134. package/dist/components/ui/checkbox/index.js +0 -1
  135. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
  136. package/dist/components/ui/collapsible/Collapsible.vue.js +0 -47
  137. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
  138. package/dist/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
  139. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
  140. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
  141. package/dist/components/ui/collapsible/index.d.ts +0 -3
  142. package/dist/components/ui/collapsible/index.js +0 -3
  143. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
  144. package/dist/components/ui/dialog/Dialog.vue.js +0 -42
  145. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
  146. package/dist/components/ui/dialog/DialogClose.vue.js +0 -35
  147. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
  148. package/dist/components/ui/dialog/DialogContent.vue.js +0 -84
  149. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
  150. package/dist/components/ui/dialog/DialogDescription.vue.js +0 -43
  151. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
  152. package/dist/components/ui/dialog/DialogFooter.vue.js +0 -26
  153. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
  154. package/dist/components/ui/dialog/DialogHeader.vue.js +0 -26
  155. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
  156. package/dist/components/ui/dialog/DialogScrollContent.vue.js +0 -99
  157. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
  158. package/dist/components/ui/dialog/DialogTitle.vue.js +0 -43
  159. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
  160. package/dist/components/ui/dialog/DialogTrigger.vue.js +0 -35
  161. package/dist/components/ui/dialog/index.d.ts +0 -9
  162. package/dist/components/ui/dialog/index.js +0 -9
  163. package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
  164. package/dist/components/ui/drawer/Drawer.vue.js +0 -48
  165. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
  166. package/dist/components/ui/drawer/DrawerContent.vue.js +0 -81
  167. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
  168. package/dist/components/ui/drawer/DrawerDescription.vue.js +0 -42
  169. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
  170. package/dist/components/ui/drawer/DrawerFooter.vue.js +0 -26
  171. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
  172. package/dist/components/ui/drawer/DrawerHeader.vue.js +0 -26
  173. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
  174. package/dist/components/ui/drawer/DrawerOverlay.vue.js +0 -37
  175. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
  176. package/dist/components/ui/drawer/DrawerTitle.vue.js +0 -42
  177. package/dist/components/ui/drawer/index.d.ts +0 -8
  178. package/dist/components/ui/drawer/index.js +0 -8
  179. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
  180. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
  181. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
  182. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
  183. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
  184. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
  185. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
  186. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
  187. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
  188. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
  189. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
  190. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
  191. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
  192. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
  193. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
  194. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
  195. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
  196. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
  197. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
  198. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
  199. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
  200. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
  201. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
  202. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
  203. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
  204. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
  205. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
  206. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
  207. package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
  208. package/dist/components/ui/dropdown-menu/index.js +0 -15
  209. package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
  210. package/dist/components/ui/popover/Popover.vue.js +0 -41
  211. package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
  212. package/dist/components/ui/popover/PopoverContent.vue.js +0 -60
  213. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
  214. package/dist/components/ui/popover/PopoverTrigger.vue.js +0 -35
  215. package/dist/components/ui/popover/index.d.ts +0 -3
  216. package/dist/components/ui/popover/index.js +0 -3
  217. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
  218. package/dist/components/ui/radio-group/RadioGroup.vue.js +0 -46
  219. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
  220. package/dist/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
  221. package/dist/components/ui/radio-group/index.d.ts +0 -2
  222. package/dist/components/ui/radio-group/index.js +0 -2
  223. package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
  224. package/dist/components/ui/slider/Slider.vue.js +0 -155
  225. package/dist/components/ui/slider/index.d.ts +0 -1
  226. package/dist/components/ui/slider/index.js +0 -1
  227. package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
  228. package/dist/components/ui/switch/Switch.vue.js +0 -61
  229. package/dist/components/ui/switch/index.d.ts +0 -1
  230. package/dist/components/ui/switch/index.js +0 -1
  231. package/dist/composable/useCallHelper.d.ts +0 -23
  232. package/dist/composable/useCallHelper.js +0 -170
  233. package/dist/composable/useInitData.d.ts +0 -11
  234. package/dist/composable/useInitData.js +0 -84
  235. package/dist/composable/useModalConfirm.d.ts +0 -5
  236. package/dist/composable/useModalConfirm.js +0 -39
  237. package/dist/constant/color.d.ts +0 -22
  238. package/dist/constant/color.js +0 -43
  239. package/dist/constant/datetime.d.ts +0 -5
  240. package/dist/constant/datetime.js +0 -5
  241. package/dist/constant/general.d.ts +0 -8
  242. package/dist/constant/general.js +0 -9
  243. package/dist/constant/message.d.ts +0 -8
  244. package/dist/constant/message.js +0 -8
  245. package/dist/constant/mqtt.d.ts +0 -4
  246. package/dist/constant/mqtt.js +0 -11
  247. package/dist/constant/user.d.ts +0 -8
  248. package/dist/constant/user.js +0 -9
  249. package/dist/lib/utils.d.ts +0 -2
  250. package/dist/lib/utils.js +0 -5
  251. package/dist/plugins/axios-gci.d.ts +0 -3
  252. package/dist/plugins/axios-gci.js +0 -25
  253. package/dist/plugins/axios.d.ts +0 -3
  254. package/dist/plugins/axios.js +0 -85
  255. package/dist/plugins/mqtt.d.ts +0 -10
  256. package/dist/plugins/mqtt.js +0 -128
  257. package/dist/plugins/sdk.d.ts +0 -19
  258. package/dist/plugins/sdk.js +0 -83
  259. package/dist/plugins/websocket.d.ts +0 -4
  260. package/dist/plugins/websocket.js +0 -65
  261. package/dist/types/chat/user.d.ts +0 -88
  262. package/dist/types/chat/user.js +0 -1
  263. package/dist/types/conversation.d.ts +0 -18
  264. package/dist/types/conversation.js +0 -1
  265. package/dist/utils/chat/auth.d.ts +0 -45
  266. package/dist/utils/chat/auth.js +0 -51
  267. package/dist/utils/chat/call.d.ts +0 -5
  268. package/dist/utils/chat/call.js +0 -61
  269. package/dist/utils/chat/chat-router.d.ts +0 -3
  270. package/dist/utils/chat/chat-router.js +0 -9
  271. package/dist/utils/chat/conversation.d.ts +0 -3
  272. package/dist/utils/chat/conversation.js +0 -7
  273. package/dist/utils/chat/message.d.ts +0 -17
  274. package/dist/utils/chat/message.js +0 -42
  275. package/dist/utils/chat/user.d.ts +0 -193
  276. package/dist/utils/chat/user.js +0 -33
  277. package/dist/utils/debounce.d.ts +0 -1
  278. package/dist/utils/debounce.js +0 -9
  279. package/dist/utils/json.d.ts +0 -2
  280. package/dist/utils/json.js +0 -18
  281. package/dist/utils/logger.d.ts +0 -3
  282. package/dist/utils/logger.js +0 -5
  283. package/dist/utils/string-helper.d.ts +0 -1
  284. package/dist/utils/string-helper.js +0 -27
@@ -1,207 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import CardCustomerDetail from '../../../components/chat/card/CardCustomerDetail.vue';
3
- import IconFilter from '../../../assets/icons/customer-appointment/IconFilter.vue';
4
- import { computed } from 'vue';
5
- import { getItemsByYear, userHistory } from '../../../utils/chat/user';
6
- import { CalendarStatus } from '../../../constant/user';
7
- import dayjs from 'dayjs';
8
- import { DATE_FORMATS } from '../../../constant/datetime';
9
- import CollapseCheckIn from '../../../chat/page/customer-check-in/CollapseCheckIn.vue';
10
- const appointment = computed(() => {
11
- return getItemsByYear(userHistory.value?.appointment ?? [], 'start_time');
12
- });
13
- const statusColor = (type) => {
14
- switch (type) {
15
- case CalendarStatus.Confirmed:
16
- return 'background-color: #E3FFF1; color: #06C270';
17
- case CalendarStatus.Scheduled:
18
- return 'background-color: #FFF0FF; color: #6600CC';
19
- case CalendarStatus.Canceled:
20
- return 'background-color: #FFE4DC; color: #F15220';
21
- case CalendarStatus.Done:
22
- return 'background-color: #E5F0FF; color: #0063F7';
23
- case CalendarStatus.Waiting:
24
- return 'background-color: #FFF0E0; color: #D96A2B';
25
- case 'website':
26
- return 'background-color: #FFF3B6; color: #F5B02A';
27
- case 'checkin':
28
- return 'background-color: #fff; color: #00b1bc';
29
- default:
30
- return '';
31
- }
32
- };
33
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
34
- const __VLS_ctx = {
35
- ...{},
36
- ...{},
37
- };
38
- let __VLS_elements;
39
- let __VLS_components;
40
- let __VLS_directives;
41
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
42
- ...{ class: "chat-padding-page" },
43
- });
44
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
45
- ...{ class: "flex justify-between items-center mb-5" },
46
- });
47
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
48
- ...{ class: "text-chat-haze-900 font-semibold" },
49
- });
50
- __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
51
- ...{ class: "flex text-chat-haze-300 border border-chat-haze-300 rounded-[99px] px-2" },
52
- });
53
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
54
- ...{ class: "font-medium" },
55
- });
56
- /** @type {[typeof IconFilter, ]} */ ;
57
- // @ts-ignore
58
- const __VLS_0 = __VLS_asFunctionalComponent(IconFilter, new IconFilter({}));
59
- const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
60
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
61
- ...{ class: "relative pl-4 h-max" },
62
- });
63
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
64
- ...{ class: "absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2" },
65
- });
66
- for (const [year, i] of __VLS_getVForSourceType((__VLS_ctx.appointment))) {
67
- // @ts-ignore
68
- [appointment,];
69
- /** @type {[typeof CollapseCheckIn, typeof CollapseCheckIn, ]} */ ;
70
- // @ts-ignore
71
- const __VLS_4 = __VLS_asFunctionalComponent(CollapseCheckIn, new CollapseCheckIn({
72
- ...{ class: "relative" },
73
- title: (year.year),
74
- key: (i),
75
- }));
76
- const __VLS_5 = __VLS_4({
77
- ...{ class: "relative" },
78
- title: (year.year),
79
- key: (i),
80
- }, ...__VLS_functionalComponentArgsRest(__VLS_4));
81
- const { default: __VLS_7 } = __VLS_6.slots;
82
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
83
- ...{ class: "flex flex-col gap-y-3" },
84
- });
85
- for (const [item] of __VLS_getVForSourceType((year.items))) {
86
- /** @type {[typeof CardCustomerDetail, typeof CardCustomerDetail, ]} */ ;
87
- // @ts-ignore
88
- const __VLS_8 = __VLS_asFunctionalComponent(CardCustomerDetail, new CardCustomerDetail({
89
- key: (item.id),
90
- }));
91
- const __VLS_9 = __VLS_8({
92
- key: (item.id),
93
- }, ...__VLS_functionalComponentArgsRest(__VLS_8));
94
- const { default: __VLS_11 } = __VLS_10.slots;
95
- {
96
- const { header: __VLS_12 } = __VLS_10.slots;
97
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
98
- ...{ class: "flex justify-between items-center" },
99
- });
100
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
101
- ...{ class: "text-lg text-chat-haze-600 font-bold" },
102
- });
103
- (item.id);
104
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
105
- ...{ class: "translate-y-[-4px]" },
106
- });
107
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
108
- ...{ class: "w-max rounded-[6px] text-14px px-[10px] py-[5px] mt-2" },
109
- ...{ style: (__VLS_ctx.statusColor(item.status)) },
110
- });
111
- // @ts-ignore
112
- [statusColor,];
113
- (item.status);
114
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
115
- ...{ class: "flex justify-between items-end" },
116
- });
117
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
118
- ...{ class: "text-chat-haze-400" },
119
- });
120
- (__VLS_ctx.dayjs(item.start_time).format(__VLS_ctx.DATE_FORMATS['DATE_FORMAT']));
121
- // @ts-ignore
122
- [dayjs, DATE_FORMATS,];
123
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
124
- ...{ class: "text-chat-haze-400" },
125
- });
126
- (__VLS_ctx.dayjs(item.start_time).format(__VLS_ctx.DATE_FORMATS['TIME_12_FORMAT']));
127
- // @ts-ignore
128
- [dayjs, DATE_FORMATS,];
129
- }
130
- {
131
- const { content: __VLS_13 } = __VLS_10.slots;
132
- for (const [service, i] of __VLS_getVForSourceType((item.services))) {
133
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
134
- ...{ class: "flex justify-between items-center" },
135
- key: (i),
136
- });
137
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
138
- ...{ class: "text-chat-haze-409 font-medium" },
139
- });
140
- (service.employee_name);
141
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
142
- ...{ class: "text-chat-haze-409 font-medium" },
143
- });
144
- (service.name);
145
- }
146
- }
147
- var __VLS_10;
148
- }
149
- var __VLS_6;
150
- }
151
- /** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
152
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
153
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
154
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
155
- /** @type {__VLS_StyleScopedClasses['mb-5']} */ ;
156
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-900']} */ ;
157
- /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
158
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
159
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-300']} */ ;
160
- /** @type {__VLS_StyleScopedClasses['border']} */ ;
161
- /** @type {__VLS_StyleScopedClasses['border-chat-haze-300']} */ ;
162
- /** @type {__VLS_StyleScopedClasses['rounded-[99px]']} */ ;
163
- /** @type {__VLS_StyleScopedClasses['px-2']} */ ;
164
- /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
165
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
166
- /** @type {__VLS_StyleScopedClasses['pl-4']} */ ;
167
- /** @type {__VLS_StyleScopedClasses['h-max']} */ ;
168
- /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
169
- /** @type {__VLS_StyleScopedClasses['left-0']} */ ;
170
- /** @type {__VLS_StyleScopedClasses['top-0']} */ ;
171
- /** @type {__VLS_StyleScopedClasses['border-l']} */ ;
172
- /** @type {__VLS_StyleScopedClasses['border-dashed']} */ ;
173
- /** @type {__VLS_StyleScopedClasses['border-chat-haze-400']} */ ;
174
- /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
175
- /** @type {__VLS_StyleScopedClasses['w-1']} */ ;
176
- /** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
177
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
178
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
179
- /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
180
- /** @type {__VLS_StyleScopedClasses['gap-y-3']} */ ;
181
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
182
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
183
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
184
- /** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
185
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
186
- /** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
187
- /** @type {__VLS_StyleScopedClasses['translate-y-[-4px]']} */ ;
188
- /** @type {__VLS_StyleScopedClasses['w-max']} */ ;
189
- /** @type {__VLS_StyleScopedClasses['rounded-[6px]']} */ ;
190
- /** @type {__VLS_StyleScopedClasses['text-14px']} */ ;
191
- /** @type {__VLS_StyleScopedClasses['px-[10px]']} */ ;
192
- /** @type {__VLS_StyleScopedClasses['py-[5px]']} */ ;
193
- /** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
194
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
195
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
196
- /** @type {__VLS_StyleScopedClasses['items-end']} */ ;
197
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
198
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
199
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
200
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
201
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
202
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-409']} */ ;
203
- /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
204
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-409']} */ ;
205
- /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
206
- const __VLS_export = (await import('vue')).defineComponent({});
207
- export default {};
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- title: string;
3
- };
4
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
5
- default?: ((props: {}) => any) | undefined;
6
- }>;
7
- export default _default;
8
- type __VLS_WithSlots<T, S> = T & {
9
- new (): {
10
- $slots: S;
11
- };
12
- };
@@ -1,80 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import IconArrow from '../../../assets/icons/customer-detail/IconArrow.vue';
3
- import CollapseBase from '../../../components/chat/common/collapse/CollapseBase.vue';
4
- import { ref } from 'vue';
5
- const props = withDefaults(defineProps(), {});
6
- const open = ref(true);
7
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
8
- const __VLS_defaults = {};
9
- const __VLS_ctx = {
10
- ...{},
11
- ...{},
12
- ...{},
13
- ...{},
14
- };
15
- let __VLS_elements;
16
- let __VLS_components;
17
- let __VLS_directives;
18
- /** @type {[typeof CollapseBase, typeof CollapseBase, ]} */ ;
19
- // @ts-ignore
20
- const __VLS_0 = __VLS_asFunctionalComponent(CollapseBase, new CollapseBase({
21
- ...{ class: "relative" },
22
- open: (__VLS_ctx.open),
23
- }));
24
- const __VLS_1 = __VLS_0({
25
- ...{ class: "relative" },
26
- open: (__VLS_ctx.open),
27
- }, ...__VLS_functionalComponentArgsRest(__VLS_0));
28
- var __VLS_3 = {};
29
- const { default: __VLS_4 } = __VLS_2.slots;
30
- // @ts-ignore
31
- [open,];
32
- {
33
- const { trigger: __VLS_5 } = __VLS_2.slots;
34
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
35
- ...{ class: "w-2 h-2 bg-chat-haze-400 rounded-full absolute left-[-20px] top-2" },
36
- });
37
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
38
- ...{ class: "flex items-center text-chat-haze-400 mb-3" },
39
- });
40
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
41
- ...{ class: "font-semibold text-lg" },
42
- });
43
- (__VLS_ctx.title);
44
- // @ts-ignore
45
- [title,];
46
- /** @type {[typeof IconArrow, ]} */ ;
47
- // @ts-ignore
48
- const __VLS_6 = __VLS_asFunctionalComponent(IconArrow, new IconArrow({
49
- ...{ class: (__VLS_ctx.open ? 'rotate-90' : 'rotate-0') },
50
- }));
51
- const __VLS_7 = __VLS_6({
52
- ...{ class: (__VLS_ctx.open ? 'rotate-90' : 'rotate-0') },
53
- }, ...__VLS_functionalComponentArgsRest(__VLS_6));
54
- // @ts-ignore
55
- [open,];
56
- }
57
- var __VLS_10 = {};
58
- var __VLS_2;
59
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
60
- /** @type {__VLS_StyleScopedClasses['w-2']} */ ;
61
- /** @type {__VLS_StyleScopedClasses['h-2']} */ ;
62
- /** @type {__VLS_StyleScopedClasses['bg-chat-haze-400']} */ ;
63
- /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
64
- /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
65
- /** @type {__VLS_StyleScopedClasses['left-[-20px]']} */ ;
66
- /** @type {__VLS_StyleScopedClasses['top-2']} */ ;
67
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
68
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
69
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
70
- /** @type {__VLS_StyleScopedClasses['mb-3']} */ ;
71
- /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
72
- /** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
73
- // @ts-ignore
74
- var __VLS_11 = __VLS_10;
75
- const __VLS_base = (await import('vue')).defineComponent({
76
- __typeProps: {},
77
- props: {},
78
- });
79
- const __VLS_export = {};
80
- export default {};
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,136 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import CardCustomerDetail from '../../../components/chat/card/CardCustomerDetail.vue';
3
- import { Status_Color } from '../../../constant/color';
4
- import { computed, ref } from 'vue';
5
- import CollapseCheckIn from '../../../chat/page/customer-check-in/CollapseCheckIn.vue';
6
- import { getItemsByYear, userHistory } from '../../../utils/chat/user';
7
- import dayjs from 'dayjs';
8
- import { DATE_FORMATS } from '../../../constant/datetime';
9
- const checkin = computed(() => {
10
- return getItemsByYear(userHistory.value?.checkin ?? []);
11
- });
12
- const open = ref(true);
13
- const open1 = ref(true);
14
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
15
- const __VLS_ctx = {
16
- ...{},
17
- ...{},
18
- };
19
- let __VLS_elements;
20
- let __VLS_components;
21
- let __VLS_directives;
22
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
23
- ...{ class: "chat-padding-page" },
24
- });
25
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
26
- ...{ class: "font-semibold mb-4" },
27
- });
28
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
29
- ...{ class: "relative pl-4 h-max" },
30
- });
31
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
32
- ...{ class: "absolute left-0 top-0 border-l border-dashed border-chat-haze-400 h-full w-1 mt-2" },
33
- });
34
- for (const [year, i] of __VLS_getVForSourceType((__VLS_ctx.checkin))) {
35
- // @ts-ignore
36
- [checkin,];
37
- /** @type {[typeof CollapseCheckIn, typeof CollapseCheckIn, ]} */ ;
38
- // @ts-ignore
39
- const __VLS_0 = __VLS_asFunctionalComponent(CollapseCheckIn, new CollapseCheckIn({
40
- ...{ class: "relative" },
41
- title: (year.year),
42
- key: (i),
43
- }));
44
- const __VLS_1 = __VLS_0({
45
- ...{ class: "relative" },
46
- title: (year.year),
47
- key: (i),
48
- }, ...__VLS_functionalComponentArgsRest(__VLS_0));
49
- const { default: __VLS_3 } = __VLS_2.slots;
50
- for (const [item] of __VLS_getVForSourceType((year.items))) {
51
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
52
- ...{ class: "flex flex-col gap-y-3" },
53
- key: (item.id),
54
- });
55
- /** @type {[typeof CardCustomerDetail, typeof CardCustomerDetail, ]} */ ;
56
- // @ts-ignore
57
- const __VLS_4 = __VLS_asFunctionalComponent(CardCustomerDetail, new CardCustomerDetail({}));
58
- const __VLS_5 = __VLS_4({}, ...__VLS_functionalComponentArgsRest(__VLS_4));
59
- const { default: __VLS_7 } = __VLS_6.slots;
60
- {
61
- const { header: __VLS_8 } = __VLS_6.slots;
62
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
63
- ...{ class: "flex justify-between items-center" },
64
- });
65
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
66
- ...{ class: "text-chat-haze-600 font-bold" },
67
- });
68
- (item.id);
69
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
70
- ...{ class: "font-bold" },
71
- ...{ style: ({ color: __VLS_ctx.Status_Color.Orange }) },
72
- });
73
- // @ts-ignore
74
- [Status_Color,];
75
- (item.status);
76
- }
77
- {
78
- const { content: __VLS_9 } = __VLS_6.slots;
79
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
80
- ...{ class: "flex justify-between items-center" },
81
- });
82
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
83
- ...{ class: "text-chat-haze-400 font-normal" },
84
- });
85
- (__VLS_ctx.dayjs(item.created_at).format(__VLS_ctx.DATE_FORMATS['DATE_FORMAT']));
86
- // @ts-ignore
87
- [dayjs, DATE_FORMATS,];
88
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
89
- ...{ class: "text-chat-success" },
90
- });
91
- __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (item.point_bonus > 0) }, null, null);
92
- (item.point_bonus);
93
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
94
- ...{ class: "" },
95
- });
96
- __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (!item.point_bonus) }, null, null);
97
- (item.point_bonus);
98
- }
99
- var __VLS_6;
100
- }
101
- var __VLS_2;
102
- }
103
- /** @type {__VLS_StyleScopedClasses['']} */ ;
104
- /** @type {__VLS_StyleScopedClasses['chat-padding-page']} */ ;
105
- /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
106
- /** @type {__VLS_StyleScopedClasses['mb-4']} */ ;
107
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
108
- /** @type {__VLS_StyleScopedClasses['pl-4']} */ ;
109
- /** @type {__VLS_StyleScopedClasses['h-max']} */ ;
110
- /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
111
- /** @type {__VLS_StyleScopedClasses['left-0']} */ ;
112
- /** @type {__VLS_StyleScopedClasses['top-0']} */ ;
113
- /** @type {__VLS_StyleScopedClasses['border-l']} */ ;
114
- /** @type {__VLS_StyleScopedClasses['border-dashed']} */ ;
115
- /** @type {__VLS_StyleScopedClasses['border-chat-haze-400']} */ ;
116
- /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
117
- /** @type {__VLS_StyleScopedClasses['w-1']} */ ;
118
- /** @type {__VLS_StyleScopedClasses['mt-2']} */ ;
119
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
120
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
121
- /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
122
- /** @type {__VLS_StyleScopedClasses['gap-y-3']} */ ;
123
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
124
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
125
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
126
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-600']} */ ;
127
- /** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
128
- /** @type {__VLS_StyleScopedClasses['font-bold']} */ ;
129
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
130
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
131
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
132
- /** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
133
- /** @type {__VLS_StyleScopedClasses['font-normal']} */ ;
134
- /** @type {__VLS_StyleScopedClasses['text-chat-success']} */ ;
135
- const __VLS_export = (await import('vue')).defineComponent({});
136
- export default {};
@@ -1,7 +0,0 @@
1
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
2
- type Props = {
3
- receiverId: any;
4
- response: PAGE_RESPONSE;
5
- };
6
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;