@phonghq/go-chat 1.0.0 → 1.0.2

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 (285) hide show
  1. package/README.md +4 -0
  2. package/dist/assets/icons/IconArrowLeft.vue.d.ts +2 -0
  3. package/dist/assets/icons/IconArrowLeft.vue.js +29 -0
  4. package/dist/assets/icons/IconPhone.vue.d.ts +2 -0
  5. package/dist/assets/icons/IconPhone.vue.js +19 -0
  6. package/dist/assets/icons/IconPlan.vue.d.ts +2 -0
  7. package/dist/assets/icons/IconPlan.vue.js +19 -0
  8. package/dist/assets/icons/IconPlus.vue.d.ts +2 -0
  9. package/dist/assets/icons/IconPlus.vue.js +22 -0
  10. package/dist/assets/icons/IconSearch.vue.d.ts +32 -0
  11. package/dist/assets/icons/IconSearch.vue.js +68 -0
  12. package/dist/assets/icons/call/IconMic.vue.d.ts +14 -0
  13. package/dist/assets/icons/call/IconMic.vue.js +123 -0
  14. package/dist/assets/icons/call/IconPhone.vue.d.ts +2 -0
  15. package/dist/assets/icons/call/IconPhone.vue.js +35 -0
  16. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +2 -0
  17. package/dist/assets/icons/call/IconPhoneCancel.vue.js +35 -0
  18. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +14 -0
  19. package/dist/assets/icons/call/IconSpeaker.vue.js +62 -0
  20. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +2 -0
  21. package/dist/assets/icons/customer-appointment/IconFilter.vue.js +53 -0
  22. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +2 -0
  23. package/dist/assets/icons/customer-detail/IconArrow.vue.js +22 -0
  24. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +2 -0
  25. package/dist/assets/icons/customer-detail/IconCheck.vue.js +27 -0
  26. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +2 -0
  27. package/dist/assets/icons/customer-detail/IconDate.vue.js +43 -0
  28. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +2 -0
  29. package/dist/assets/icons/customer-detail/IconGroup.vue.js +48 -0
  30. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +2 -0
  31. package/dist/assets/icons/customer-detail/IconMessage.vue.js +28 -0
  32. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +2 -0
  33. package/dist/assets/icons/customer-detail/IconNote.vue.js +29 -0
  34. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +2 -0
  35. package/dist/assets/icons/customer-detail/IconPhone.vue.js +21 -0
  36. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +2 -0
  37. package/dist/assets/icons/customer-detail/IconPin.vue.js +29 -0
  38. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +2 -0
  39. package/dist/assets/icons/customer-detail/IconSearch.vue.js +29 -0
  40. package/dist/chat/App.vue.d.ts +5 -0
  41. package/dist/chat/App.vue.js +502 -0
  42. package/dist/chat/main.d.ts +3 -0
  43. package/dist/chat/main.js +2 -0
  44. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +2 -0
  45. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.js +207 -0
  46. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +12 -0
  47. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.js +80 -0
  48. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +2 -0
  49. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.js +136 -0
  50. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +7 -0
  51. package/dist/chat/page/customer-detail/CustomerDetail.vue.js +235 -0
  52. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +16 -0
  53. package/dist/chat/page/customer-detail/SubInformation.vue.js +102 -0
  54. package/dist/chat/page/error/Error.vue.d.ts +2 -0
  55. package/dist/chat/page/error/Error.vue.js +64 -0
  56. package/dist/chat/page/home/ChatList.vue.d.ts +20 -0
  57. package/dist/chat/page/home/ChatList.vue.js +380 -0
  58. package/dist/chat/page/home/ChatMessage.vue.d.ts +16 -0
  59. package/dist/chat/page/home/ChatMessage.vue.js +271 -0
  60. package/dist/chat/page/home/Home.vue.d.ts +14 -0
  61. package/dist/chat/page/home/Home.vue.js +327 -0
  62. package/dist/chat/page/home/HomeHeader.vue.d.ts +10 -0
  63. package/dist/chat/page/home/HomeHeader.vue.js +122 -0
  64. package/dist/chat/page/home/InputChat.vue.d.ts +19 -0
  65. package/dist/chat/page/home/InputChat.vue.js +226 -0
  66. package/dist/chat/page/home/NewCustomer.vue.d.ts +6 -0
  67. package/dist/chat/page/home/NewCustomer.vue.js +82 -0
  68. package/dist/components/ListenEvent.vue.d.ts +2 -0
  69. package/dist/components/ListenEvent.vue.js +45 -0
  70. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +22 -0
  71. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.js +197 -0
  72. package/dist/components/chat/call/Calling.vue.d.ts +7 -0
  73. package/dist/components/chat/call/Calling.vue.js +291 -0
  74. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +13 -0
  75. package/dist/components/chat/card/CardCustomerDetail.vue.js +28 -0
  76. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +20 -0
  77. package/dist/components/chat/common/collapse/CollapseBase.vue.js +59 -0
  78. package/dist/components/chat/common/input/InputSearch.vue.d.ts +16 -0
  79. package/dist/components/chat/common/input/InputSearch.vue.js +71 -0
  80. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +35 -0
  81. package/dist/components/chat/common/popover/PopoverBase.vue.js +148 -0
  82. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +2 -0
  83. package/dist/components/chat/common/spin/BaseSpin.vue.js +12 -0
  84. package/dist/components/chat/customer/Avatar.vue.d.ts +11 -0
  85. package/dist/components/chat/customer/Avatar.vue.js +79 -0
  86. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +2 -0
  87. package/dist/components/chat/layout/mobile/Footer.vue.js +109 -0
  88. package/dist/components/common/CustomLoading.vue.d.ts +2 -0
  89. package/dist/components/common/CustomLoading.vue.js +19 -0
  90. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +7 -0
  91. package/dist/components/common/Notification/NotificationDescription.vue.js +38 -0
  92. package/dist/components/common/button/ButtonBase.vue.d.ts +22 -0
  93. package/dist/components/common/button/ButtonBase.vue.js +78 -0
  94. package/dist/components/common/button/ButtonToggle.vue.d.ts +20 -0
  95. package/dist/components/common/button/ButtonToggle.vue.js +70 -0
  96. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +16 -0
  97. package/dist/components/common/checkbox/CCheckboxNumber.vue.js +48 -0
  98. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +12 -0
  99. package/dist/components/common/collapse/BaseCollapse.vue.js +36 -0
  100. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +4 -0
  101. package/dist/components/common/collapse/BaseCollapseItem.vue.js +22 -0
  102. package/dist/components/common/drawer/DrawerBase.vue.d.ts +39 -0
  103. package/dist/components/common/drawer/DrawerBase.vue.js +126 -0
  104. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +21 -0
  105. package/dist/components/common/dropdown/DropdownBase.vue.js +91 -0
  106. package/dist/components/common/input/CInputSearch.vue.d.ts +14 -0
  107. package/dist/components/common/input/CInputSearch.vue.js +62 -0
  108. package/dist/components/common/modal/ModalBase.vue.d.ts +35 -0
  109. package/dist/components/common/modal/ModalBase.vue.js +164 -0
  110. package/dist/components/common/popover/PopoverBase.vue.d.ts +3 -0
  111. package/dist/components/common/popover/PopoverBase.vue.js +36 -0
  112. package/dist/components/common/slider/BaseSlider.vue.d.ts +11 -0
  113. package/dist/components/common/slider/BaseSlider.vue.js +70 -0
  114. package/dist/components/common/spin/CSpin.vue.d.ts +9 -0
  115. package/dist/components/common/spin/CSpin.vue.js +41 -0
  116. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +2 -0
  117. package/dist/components/common/tooltip/TooltipBase.vue.js +8 -0
  118. package/dist/components/layout/Blank.vue.d.ts +9 -0
  119. package/dist/components/layout/Blank.vue.js +19 -0
  120. package/dist/components/layout/Default.vue.d.ts +9 -0
  121. package/dist/components/layout/Default.vue.js +21 -0
  122. package/dist/components/modal/Confirm.vue.d.ts +2 -0
  123. package/dist/components/modal/Confirm.vue.js +164 -0
  124. package/dist/components/ui/button/CButton.vue.d.ts +19 -0
  125. package/dist/components/ui/button/CButton.vue.js +49 -0
  126. package/dist/components/ui/button/c-button.d.ts +7 -0
  127. package/dist/components/ui/button/c-button.js +26 -0
  128. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +18 -0
  129. package/dist/components/ui/checkbox/Checkbox.vue.js +79 -0
  130. package/dist/components/ui/checkbox/index.d.ts +1 -0
  131. package/dist/components/ui/checkbox/index.js +1 -0
  132. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +16 -0
  133. package/dist/components/ui/collapsible/Collapsible.vue.js +47 -0
  134. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +10 -0
  135. package/dist/components/ui/collapsible/CollapsibleContent.vue.js +41 -0
  136. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +10 -0
  137. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.js +35 -0
  138. package/dist/components/ui/collapsible/index.d.ts +3 -0
  139. package/dist/components/ui/collapsible/index.js +3 -0
  140. package/dist/components/ui/dialog/Dialog.vue.d.ts +14 -0
  141. package/dist/components/ui/dialog/Dialog.vue.js +42 -0
  142. package/dist/components/ui/dialog/DialogClose.vue.d.ts +10 -0
  143. package/dist/components/ui/dialog/DialogClose.vue.js +35 -0
  144. package/dist/components/ui/dialog/DialogContent.vue.d.ts +29 -0
  145. package/dist/components/ui/dialog/DialogContent.vue.js +84 -0
  146. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +14 -0
  147. package/dist/components/ui/dialog/DialogDescription.vue.js +43 -0
  148. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +13 -0
  149. package/dist/components/ui/dialog/DialogFooter.vue.js +26 -0
  150. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +13 -0
  151. package/dist/components/ui/dialog/DialogHeader.vue.js +26 -0
  152. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +30 -0
  153. package/dist/components/ui/dialog/DialogScrollContent.vue.js +99 -0
  154. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +14 -0
  155. package/dist/components/ui/dialog/DialogTitle.vue.js +43 -0
  156. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +10 -0
  157. package/dist/components/ui/dialog/DialogTrigger.vue.js +35 -0
  158. package/dist/components/ui/dialog/index.d.ts +9 -0
  159. package/dist/components/ui/dialog/index.js +9 -0
  160. package/dist/components/ui/drawer/Drawer.vue.d.ts +26 -0
  161. package/dist/components/ui/drawer/Drawer.vue.js +48 -0
  162. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +33 -0
  163. package/dist/components/ui/drawer/DrawerContent.vue.js +81 -0
  164. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +14 -0
  165. package/dist/components/ui/drawer/DrawerDescription.vue.js +42 -0
  166. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +13 -0
  167. package/dist/components/ui/drawer/DrawerFooter.vue.js +26 -0
  168. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +13 -0
  169. package/dist/components/ui/drawer/DrawerHeader.vue.js +26 -0
  170. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
  171. package/dist/components/ui/drawer/DrawerOverlay.vue.js +37 -0
  172. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +14 -0
  173. package/dist/components/ui/drawer/DrawerTitle.vue.js +42 -0
  174. package/dist/components/ui/drawer/index.d.ts +8 -0
  175. package/dist/components/ui/drawer/index.js +8 -0
  176. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +14 -0
  177. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.js +41 -0
  178. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +20 -0
  179. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +79 -0
  180. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -0
  181. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.js +61 -0
  182. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +10 -0
  183. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +35 -0
  184. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +15 -0
  185. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.js +43 -0
  186. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +15 -0
  187. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +43 -0
  188. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +14 -0
  189. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +41 -0
  190. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -0
  191. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +80 -0
  192. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  193. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +37 -0
  194. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
  195. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +26 -0
  196. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +14 -0
  197. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.js +41 -0
  198. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +30 -0
  199. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +46 -0
  200. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +14 -0
  201. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +58 -0
  202. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +10 -0
  203. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +41 -0
  204. package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
  205. package/dist/components/ui/dropdown-menu/index.js +15 -0
  206. package/dist/components/ui/popover/Popover.vue.d.ts +14 -0
  207. package/dist/components/ui/popover/Popover.vue.js +41 -0
  208. package/dist/components/ui/popover/PopoverContent.vue.d.ts +28 -0
  209. package/dist/components/ui/popover/PopoverContent.vue.js +60 -0
  210. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +10 -0
  211. package/dist/components/ui/popover/PopoverTrigger.vue.js +35 -0
  212. package/dist/components/ui/popover/index.d.ts +3 -0
  213. package/dist/components/ui/popover/index.js +3 -0
  214. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +18 -0
  215. package/dist/components/ui/radio-group/RadioGroup.vue.js +46 -0
  216. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +7 -0
  217. package/dist/components/ui/radio-group/RadioGroupItem.vue.js +71 -0
  218. package/dist/components/ui/radio-group/index.d.ts +2 -0
  219. package/dist/components/ui/radio-group/index.js +2 -0
  220. package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
  221. package/dist/components/ui/slider/Slider.vue.js +155 -0
  222. package/dist/components/ui/slider/index.d.ts +1 -0
  223. package/dist/components/ui/slider/index.js +1 -0
  224. package/dist/components/ui/switch/Switch.vue.d.ts +18 -0
  225. package/dist/components/ui/switch/Switch.vue.js +61 -0
  226. package/dist/components/ui/switch/index.d.ts +1 -0
  227. package/dist/components/ui/switch/index.js +1 -0
  228. package/dist/composable/useCallHelper.d.ts +23 -0
  229. package/dist/composable/useCallHelper.js +170 -0
  230. package/dist/composable/useInitData.d.ts +11 -0
  231. package/dist/composable/useInitData.js +84 -0
  232. package/dist/composable/useModalConfirm.d.ts +5 -0
  233. package/dist/composable/useModalConfirm.js +39 -0
  234. package/dist/constant/color.d.ts +22 -0
  235. package/dist/constant/color.js +43 -0
  236. package/dist/constant/datetime.d.ts +5 -0
  237. package/dist/constant/datetime.js +5 -0
  238. package/dist/constant/general.d.ts +8 -0
  239. package/dist/constant/general.js +9 -0
  240. package/dist/constant/message.d.ts +8 -0
  241. package/dist/constant/message.js +8 -0
  242. package/dist/constant/mqtt.d.ts +4 -0
  243. package/dist/constant/mqtt.js +11 -0
  244. package/dist/constant/user.d.ts +8 -0
  245. package/dist/constant/user.js +9 -0
  246. package/dist/go-chat.es.js +64024 -2699
  247. package/dist/go-chat.umd.js +15 -3
  248. package/dist/lib/utils.d.ts +2 -0
  249. package/dist/lib/utils.js +5 -0
  250. package/dist/plugins/axios-gci.d.ts +3 -0
  251. package/dist/plugins/axios-gci.js +25 -0
  252. package/dist/plugins/axios.d.ts +3 -0
  253. package/dist/plugins/axios.js +85 -0
  254. package/dist/plugins/mqtt.d.ts +10 -0
  255. package/dist/plugins/mqtt.js +128 -0
  256. package/dist/plugins/sdk.d.ts +19 -0
  257. package/dist/plugins/sdk.js +83 -0
  258. package/dist/plugins/websocket.d.ts +4 -0
  259. package/dist/plugins/websocket.js +65 -0
  260. package/dist/style.css +1 -1
  261. package/dist/types/chat/user.d.ts +88 -0
  262. package/dist/types/chat/user.js +1 -0
  263. package/dist/types/conversation.d.ts +18 -0
  264. package/dist/types/conversation.js +1 -0
  265. package/dist/utils/chat/auth.d.ts +45 -0
  266. package/dist/utils/chat/auth.js +51 -0
  267. package/dist/utils/chat/call.d.ts +5 -0
  268. package/dist/utils/chat/call.js +61 -0
  269. package/dist/utils/chat/chat-router.d.ts +3 -0
  270. package/dist/utils/chat/chat-router.js +9 -0
  271. package/dist/utils/chat/conversation.d.ts +3 -0
  272. package/dist/utils/chat/conversation.js +7 -0
  273. package/dist/utils/chat/message.d.ts +17 -0
  274. package/dist/utils/chat/message.js +42 -0
  275. package/dist/utils/chat/user.d.ts +193 -0
  276. package/dist/utils/chat/user.js +33 -0
  277. package/dist/utils/debounce.d.ts +1 -0
  278. package/dist/utils/debounce.js +9 -0
  279. package/dist/utils/json.d.ts +2 -0
  280. package/dist/utils/json.js +18 -0
  281. package/dist/utils/logger.d.ts +3 -0
  282. package/dist/utils/logger.js +5 -0
  283. package/dist/utils/string-helper.d.ts +1 -0
  284. package/dist/utils/string-helper.js +27 -0
  285. package/package.json +8 -7
@@ -0,0 +1,148 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { Popover, PopoverContent, PopoverTrigger, } from '../../../../components/ui/popover';
3
+ const props = withDefaults(defineProps(), {
4
+ align: "center",
5
+ sideOffset: 4,
6
+ delay: 100,
7
+ trigger: 'click',
8
+ triggerClass: '',
9
+ });
10
+ let closeTimer = null;
11
+ const isOpen = defineModel('open');
12
+ function delaySetOpen(open, delay) {
13
+ if (props.disabled)
14
+ return;
15
+ if (closeTimer) {
16
+ clearTimeout(closeTimer);
17
+ closeTimer = null;
18
+ }
19
+ if (delay === 0) {
20
+ setOpen(open);
21
+ return;
22
+ }
23
+ closeTimer = setTimeout(() => {
24
+ setOpen(open);
25
+ closeTimer = null;
26
+ }, delay);
27
+ }
28
+ const setOpen = (value) => {
29
+ isOpen.value = value;
30
+ };
31
+ function onMouseEnter() {
32
+ if (props.trigger != 'hover')
33
+ return;
34
+ delaySetOpen(true, props.delay);
35
+ }
36
+ const onMouseLeave = () => {
37
+ if (props.trigger != 'hover')
38
+ return;
39
+ delaySetOpen(false, props.delay);
40
+ };
41
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
42
+ const __VLS_modelEmit = defineEmits();
43
+ const __VLS_defaults = {
44
+ align: "center",
45
+ sideOffset: 4,
46
+ delay: 100,
47
+ trigger: 'click',
48
+ triggerClass: '',
49
+ };
50
+ const __VLS_ctx = {
51
+ ...{},
52
+ ...{},
53
+ ...{},
54
+ ...{},
55
+ ...{},
56
+ };
57
+ let __VLS_elements;
58
+ let __VLS_components;
59
+ let __VLS_directives;
60
+ const __VLS_0 = {}.Popover;
61
+ /** @type {[typeof __VLS_components.Popover, typeof __VLS_components.Popover, ]} */ ;
62
+ // @ts-ignore
63
+ Popover;
64
+ // @ts-ignore
65
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
66
+ ...{ 'onUpdate:open': {} },
67
+ open: (__VLS_ctx.isOpen),
68
+ }));
69
+ const __VLS_2 = __VLS_1({
70
+ ...{ 'onUpdate:open': {} },
71
+ open: (__VLS_ctx.isOpen),
72
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
73
+ let __VLS_4;
74
+ let __VLS_5;
75
+ const __VLS_6 = ({ 'update:open': {} },
76
+ { 'onUpdate:open': ((val) => __VLS_ctx.isOpen = val) });
77
+ var __VLS_7 = {};
78
+ const { default: __VLS_8 } = __VLS_3.slots;
79
+ // @ts-ignore
80
+ [isOpen, isOpen,];
81
+ const __VLS_9 = {}.PopoverTrigger;
82
+ /** @type {[typeof __VLS_components.PopoverTrigger, typeof __VLS_components.PopoverTrigger, ]} */ ;
83
+ // @ts-ignore
84
+ PopoverTrigger;
85
+ // @ts-ignore
86
+ const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
87
+ ...{ 'onMouseenter': {} },
88
+ ...{ 'onMouseleave': {} },
89
+ ...{ class: (props.triggerClass) },
90
+ }));
91
+ const __VLS_11 = __VLS_10({
92
+ ...{ 'onMouseenter': {} },
93
+ ...{ 'onMouseleave': {} },
94
+ ...{ class: (props.triggerClass) },
95
+ }, ...__VLS_functionalComponentArgsRest(__VLS_10));
96
+ let __VLS_13;
97
+ let __VLS_14;
98
+ const __VLS_15 = ({ mouseenter: {} },
99
+ { onMouseenter: (__VLS_ctx.onMouseEnter) });
100
+ const __VLS_16 = ({ mouseleave: {} },
101
+ { onMouseleave: (__VLS_ctx.onMouseLeave) });
102
+ const { default: __VLS_17 } = __VLS_12.slots;
103
+ // @ts-ignore
104
+ [onMouseEnter, onMouseLeave,];
105
+ var __VLS_18 = {};
106
+ var __VLS_12;
107
+ if (!__VLS_ctx.disabled) {
108
+ // @ts-ignore
109
+ [disabled,];
110
+ const __VLS_20 = {}.PopoverContent;
111
+ /** @type {[typeof __VLS_components.PopoverContent, typeof __VLS_components.PopoverContent, ]} */ ;
112
+ // @ts-ignore
113
+ PopoverContent;
114
+ // @ts-ignore
115
+ const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({
116
+ ...{ 'onMouseenter': {} },
117
+ ...{ 'onMouseleave': {} },
118
+ side: (__VLS_ctx.side),
119
+ align: (__VLS_ctx.align),
120
+ }));
121
+ const __VLS_22 = __VLS_21({
122
+ ...{ 'onMouseenter': {} },
123
+ ...{ 'onMouseleave': {} },
124
+ side: (__VLS_ctx.side),
125
+ align: (__VLS_ctx.align),
126
+ }, ...__VLS_functionalComponentArgsRest(__VLS_21));
127
+ let __VLS_24;
128
+ let __VLS_25;
129
+ const __VLS_26 = ({ mouseenter: {} },
130
+ { onMouseenter: (__VLS_ctx.onMouseEnter) });
131
+ const __VLS_27 = ({ mouseleave: {} },
132
+ { onMouseleave: (__VLS_ctx.onMouseLeave) });
133
+ const { default: __VLS_28 } = __VLS_23.slots;
134
+ // @ts-ignore
135
+ [onMouseEnter, onMouseLeave, side, align,];
136
+ var __VLS_29 = {};
137
+ var __VLS_23;
138
+ }
139
+ var __VLS_3;
140
+ // @ts-ignore
141
+ var __VLS_19 = __VLS_18, __VLS_30 = __VLS_29;
142
+ const __VLS_base = (await import('vue')).defineComponent({
143
+ __typeEmits: {},
144
+ __typeProps: {},
145
+ props: {},
146
+ });
147
+ const __VLS_export = {};
148
+ export default {};
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,12 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
3
+ const __VLS_ctx = {};
4
+ let __VLS_elements;
5
+ let __VLS_components;
6
+ let __VLS_directives;
7
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
8
+ ...{ class: "loader" },
9
+ });
10
+ /** @type {__VLS_StyleScopedClasses['loader']} */ ;
11
+ const __VLS_export = (await import('vue')).defineComponent({});
12
+ export default {};
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ src?: string;
3
+ name?: string;
4
+ color?: string;
5
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
8
+ size: number | "sm" | "md" | "lg" | "xl" | "xxl";
9
+ src: string;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,79 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { computed } from 'vue';
3
+ const props = withDefaults(defineProps(), {
4
+ size: 'md',
5
+ src: ''
6
+ });
7
+ const initials = computed(() => props.name?.[0]?.toUpperCase() ?? 'n/a');
8
+ const sizeClass = computed(() => {
9
+ const s = props.size;
10
+ if (typeof s === 'number')
11
+ return `w-[${s}px] h-[${s}px] text-[${s / 2.5}px]`;
12
+ switch (s) {
13
+ case 'sm':
14
+ return 'w-8 h-8 text-sm';
15
+ case 'lg':
16
+ return 'w-20 h-20 text-2xl';
17
+ case 'xl':
18
+ return 'w-24 h-24 text-3xl';
19
+ case 'xxl':
20
+ return 'w-40 h-40 text-3xl';
21
+ default:
22
+ return 'w-12 h-12 text-base';
23
+ }
24
+ });
25
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
26
+ const __VLS_defaults = {
27
+ size: 'md',
28
+ src: ''
29
+ };
30
+ const __VLS_ctx = {
31
+ ...{},
32
+ ...{},
33
+ ...{},
34
+ ...{},
35
+ };
36
+ let __VLS_elements;
37
+ let __VLS_components;
38
+ let __VLS_directives;
39
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
40
+ ...{ class: ([
41
+ 'flex items-center justify-center rounded-full font-medium overflow-hidden select-none',
42
+ __VLS_ctx.sizeClass
43
+ ]) },
44
+ ...{ style: ({ backgroundColor: __VLS_ctx.color || '#266699' }) },
45
+ });
46
+ // @ts-ignore
47
+ [sizeClass, color,];
48
+ if (__VLS_ctx.src) {
49
+ // @ts-ignore
50
+ [src,];
51
+ __VLS_asFunctionalElement(__VLS_elements.img)({
52
+ src: (__VLS_ctx.src),
53
+ alt: "avatar",
54
+ ...{ class: "w-full h-full object-cover" },
55
+ });
56
+ // @ts-ignore
57
+ [src,];
58
+ }
59
+ else {
60
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
61
+ (__VLS_ctx.initials);
62
+ // @ts-ignore
63
+ [initials,];
64
+ }
65
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
66
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
67
+ /** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
68
+ /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
69
+ /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
70
+ /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
71
+ /** @type {__VLS_StyleScopedClasses['select-none']} */ ;
72
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
73
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
74
+ /** @type {__VLS_StyleScopedClasses['object-cover']} */ ;
75
+ const __VLS_export = (await import('vue')).defineComponent({
76
+ __typeProps: {},
77
+ props: {},
78
+ });
79
+ export default {};
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,109 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import ICon1 from '../../../../assets/images/layout/mobile/chat.png';
3
+ import ICon1Active from '../../../../assets/images/layout/mobile/chat-active.png';
4
+ import ICon2 from '../../../../assets/images/layout/mobile/review.png';
5
+ import ICon2Active from '../../../../assets/images/layout/mobile/review-active.png';
6
+ import ICon3 from '../../../../assets/images/layout/mobile/booking.png';
7
+ import ICon3Active from '../../../../assets/images/layout/mobile/booking-active.png';
8
+ import ICon4 from '../../../../assets/images/layout/mobile/admin.png';
9
+ import ICon4Active from '../../../../assets/images/layout/mobile/admin-active.png';
10
+ import { PAGE } from '../../../../constant/general';
11
+ import { currentPage, routerPush } from '../../../../utils/chat/chat-router';
12
+ const LAYOUT_CONFIG = [
13
+ {
14
+ icon: ICon1,
15
+ iconActive: ICon1Active,
16
+ title: 'Chat',
17
+ value: PAGE.CHAT_LIST,
18
+ click: () => {
19
+ if (currentPage.value != PAGE.CHAT_LIST) {
20
+ routerPush(PAGE.CHAT_LIST);
21
+ }
22
+ }
23
+ },
24
+ {
25
+ icon: ICon2,
26
+ iconActive: ICon2Active,
27
+ title: 'Review',
28
+ value: PAGE.TENANT_ERROR,
29
+ disabled: true
30
+ },
31
+ {
32
+ icon: ICon3,
33
+ iconActive: ICon3Active,
34
+ title: 'Booking',
35
+ value: PAGE.TENANT_ERROR,
36
+ disabled: true
37
+ },
38
+ {
39
+ icon: ICon4,
40
+ iconActive: ICon4Active,
41
+ title: 'Go Admin',
42
+ value: PAGE.TENANT_ERROR,
43
+ disabled: true
44
+ }
45
+ ];
46
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
47
+ const __VLS_ctx = {
48
+ ...{},
49
+ ...{},
50
+ };
51
+ let __VLS_elements;
52
+ let __VLS_components;
53
+ let __VLS_directives;
54
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
55
+ ...{ class: "bg-white rounded-t-3xl shadow-lg pb-2 flex grid grid-cols-4 h-[80px]" },
56
+ });
57
+ for (const [item] of __VLS_getVForSourceType((__VLS_ctx.LAYOUT_CONFIG))) {
58
+ // @ts-ignore
59
+ [LAYOUT_CONFIG,];
60
+ __VLS_asFunctionalElement(__VLS_elements.button, __VLS_elements.button)({
61
+ ...{ onClick: (...[$event]) => {
62
+ item.click?.();
63
+ } },
64
+ ...{ class: "flex flex-col justify-center items-center text-blue-600" },
65
+ ...{ class: ({ 'opacity-[0.6]': item.disabled }) },
66
+ key: (item.value),
67
+ disabled: (item.disabled),
68
+ });
69
+ __VLS_asFunctionalElement(__VLS_elements.img)({
70
+ src: (item.icon),
71
+ });
72
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage != item.value) }, null, null);
73
+ // @ts-ignore
74
+ [currentPage,];
75
+ __VLS_asFunctionalElement(__VLS_elements.img)({
76
+ src: (item.iconActive),
77
+ });
78
+ __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.currentPage == item.value) }, null, null);
79
+ // @ts-ignore
80
+ [currentPage,];
81
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
82
+ ...{ class: "text-sm text-chat-haze-400 font-medium mt-1" },
83
+ ...{ class: ({ 'text-chat-primary': __VLS_ctx.currentPage == item.value }) },
84
+ });
85
+ // @ts-ignore
86
+ [currentPage,];
87
+ (item.title);
88
+ }
89
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
90
+ /** @type {__VLS_StyleScopedClasses['rounded-t-3xl']} */ ;
91
+ /** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
92
+ /** @type {__VLS_StyleScopedClasses['pb-2']} */ ;
93
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
94
+ /** @type {__VLS_StyleScopedClasses['grid']} */ ;
95
+ /** @type {__VLS_StyleScopedClasses['grid-cols-4']} */ ;
96
+ /** @type {__VLS_StyleScopedClasses['h-[80px]']} */ ;
97
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
98
+ /** @type {__VLS_StyleScopedClasses['flex-col']} */ ;
99
+ /** @type {__VLS_StyleScopedClasses['justify-center']} */ ;
100
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
101
+ /** @type {__VLS_StyleScopedClasses['text-blue-600']} */ ;
102
+ /** @type {__VLS_StyleScopedClasses['opacity-[0.6]']} */ ;
103
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
104
+ /** @type {__VLS_StyleScopedClasses['text-chat-haze-400']} */ ;
105
+ /** @type {__VLS_StyleScopedClasses['font-medium']} */ ;
106
+ /** @type {__VLS_StyleScopedClasses['mt-1']} */ ;
107
+ /** @type {__VLS_StyleScopedClasses['text-chat-primary']} */ ;
108
+ const __VLS_export = (await import('vue')).defineComponent({});
109
+ export default {};
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,19 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
3
+ const __VLS_ctx = {};
4
+ let __VLS_elements;
5
+ let __VLS_components;
6
+ let __VLS_directives;
7
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
8
+ ...{ class: "h-full flex-center absolute top-0 left-0 w-full bg-white z-50" },
9
+ });
10
+ /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
11
+ /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
12
+ /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
13
+ /** @type {__VLS_StyleScopedClasses['top-0']} */ ;
14
+ /** @type {__VLS_StyleScopedClasses['left-0']} */ ;
15
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
16
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
17
+ /** @type {__VLS_StyleScopedClasses['z-50']} */ ;
18
+ const __VLS_export = (await import('vue')).defineComponent({});
19
+ export default {};
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ description: string;
3
+ type: 'success' | 'error' | 'warning' | string;
4
+ tag: string;
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;
@@ -0,0 +1,38 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ const __VLS_props = defineProps();
3
+ const { description, type, tag } = __VLS_props;
4
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
5
+ const __VLS_ctx = {
6
+ ...{},
7
+ ...{},
8
+ ...{},
9
+ ...{},
10
+ };
11
+ let __VLS_elements;
12
+ let __VLS_components;
13
+ let __VLS_directives;
14
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
15
+ ...{ class: "" },
16
+ });
17
+ __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
18
+ ...{ class: "text-sm mb-0.5" },
19
+ });
20
+ (description);
21
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
22
+ ...{ class: "flex justify-between items-center" },
23
+ });
24
+ __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
25
+ ...{ class: "text-blue text-sm" },
26
+ });
27
+ /** @type {__VLS_StyleScopedClasses['']} */ ;
28
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
29
+ /** @type {__VLS_StyleScopedClasses['mb-0.5']} */ ;
30
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
31
+ /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
32
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
33
+ /** @type {__VLS_StyleScopedClasses['text-blue']} */ ;
34
+ /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
35
+ const __VLS_export = (await import('vue')).defineComponent({
36
+ __typeProps: {},
37
+ });
38
+ export default {};
@@ -0,0 +1,22 @@
1
+ type Props = {
2
+ disabled?: boolean;
3
+ type?: 'primary' | 'danger' | 'danger-outline' | 'primary-outline' | 'default' | 'success';
4
+ isReverseIcon?: boolean;
5
+ loading?: boolean;
6
+ };
7
+ declare var __VLS_10: {}, __VLS_12: {};
8
+ type __VLS_Slots = {} & {
9
+ icon?: (props: typeof __VLS_10) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_12) => any;
12
+ };
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ loading: boolean;
15
+ disabled: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,78 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import CButton from '../../../components/ui/button/CButton.vue';
3
+ import { computed } from 'vue';
4
+ import CSpin from '../../../components/common/spin/CSpin.vue';
5
+ const props = withDefaults(defineProps(), {
6
+ size: 'middle',
7
+ disabled: false,
8
+ htmlType: 'button',
9
+ shape: 'default',
10
+ loading: false
11
+ });
12
+ const variant = computed(() => {
13
+ switch (props.type) {
14
+ case 'primary':
15
+ return 'default';
16
+ default:
17
+ return props.type;
18
+ }
19
+ });
20
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
21
+ const __VLS_defaults = {
22
+ size: 'middle',
23
+ disabled: false,
24
+ htmlType: 'button',
25
+ shape: 'default',
26
+ loading: false
27
+ };
28
+ const __VLS_ctx = {
29
+ ...{},
30
+ ...{},
31
+ ...{},
32
+ ...{},
33
+ };
34
+ let __VLS_elements;
35
+ let __VLS_components;
36
+ let __VLS_directives;
37
+ /** @type {__VLS_StyleScopedClasses['ant-btn-dangerous']} */ ;
38
+ /** @type {[typeof CButton, typeof CButton, ]} */ ;
39
+ // @ts-ignore
40
+ const __VLS_0 = __VLS_asFunctionalComponent(CButton, new CButton({
41
+ variant: (__VLS_ctx.variant),
42
+ disabled: (__VLS_ctx.loading || __VLS_ctx.disabled),
43
+ }));
44
+ const __VLS_1 = __VLS_0({
45
+ variant: (__VLS_ctx.variant),
46
+ disabled: (__VLS_ctx.loading || __VLS_ctx.disabled),
47
+ }, ...__VLS_functionalComponentArgsRest(__VLS_0));
48
+ var __VLS_3 = {};
49
+ const { default: __VLS_4 } = __VLS_2.slots;
50
+ // @ts-ignore
51
+ [variant, loading, disabled,];
52
+ if (__VLS_ctx.loading) {
53
+ // @ts-ignore
54
+ [loading,];
55
+ /** @type {[typeof CSpin, typeof CSpin, ]} */ ;
56
+ // @ts-ignore
57
+ const __VLS_5 = __VLS_asFunctionalComponent(CSpin, new CSpin({
58
+ size: (24),
59
+ border: (3),
60
+ }));
61
+ const __VLS_6 = __VLS_5({
62
+ size: (24),
63
+ border: (3),
64
+ }, ...__VLS_functionalComponentArgsRest(__VLS_5));
65
+ }
66
+ else {
67
+ var __VLS_9 = {};
68
+ var __VLS_11 = {};
69
+ }
70
+ var __VLS_2;
71
+ // @ts-ignore
72
+ var __VLS_10 = __VLS_9, __VLS_12 = __VLS_11;
73
+ const __VLS_base = (await import('vue')).defineComponent({
74
+ __typeProps: {},
75
+ props: {},
76
+ });
77
+ const __VLS_export = {};
78
+ export default {};
@@ -0,0 +1,20 @@
1
+ interface Props {
2
+ modelValue: boolean;
3
+ }
4
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (val: boolean) => any;
6
+ "on-click": () => any;
7
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
8
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
9
+ "onOn-click"?: (() => any) | undefined;
10
+ }>, {
11
+ modelValue: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
+ content?: ((props: {}) => any) | undefined;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,70 @@
1
+ /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
+ import { computed } from 'vue';
3
+ import { CSwitch } from '../../../components/ui/switch';
4
+ const props = withDefaults(defineProps(), {
5
+ modelValue: false,
6
+ size: 'default',
7
+ });
8
+ const emits = defineEmits();
9
+ const onClick = () => {
10
+ emits('on-click');
11
+ };
12
+ const checked = computed({
13
+ get: () => props.modelValue,
14
+ set: (newValue) => emits('update:modelValue', newValue)
15
+ });
16
+ function toggle() {
17
+ emits('update:modelValue', !props.modelValue);
18
+ }
19
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
20
+ const __VLS_defaults = {
21
+ modelValue: false,
22
+ size: 'default',
23
+ };
24
+ const __VLS_ctx = {
25
+ ...{},
26
+ ...{},
27
+ ...{},
28
+ ...{},
29
+ ...{},
30
+ };
31
+ let __VLS_elements;
32
+ let __VLS_components;
33
+ let __VLS_directives;
34
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
35
+ ...{ class: " flex justify-between items-center" },
36
+ });
37
+ __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
38
+ ...{ onClick: (__VLS_ctx.toggle) },
39
+ ...{ class: "cursor-pointer w-full" },
40
+ });
41
+ // @ts-ignore
42
+ [toggle,];
43
+ var __VLS_0 = {};
44
+ const __VLS_2 = {}.CSwitch;
45
+ /** @type {[typeof __VLS_components.CSwitch, typeof __VLS_components.cSwitch, typeof __VLS_components.CSwitch, typeof __VLS_components.cSwitch, ]} */ ;
46
+ // @ts-ignore
47
+ CSwitch;
48
+ // @ts-ignore
49
+ const __VLS_3 = __VLS_asFunctionalComponent(__VLS_2, new __VLS_2({
50
+ modelValue: (__VLS_ctx.checked),
51
+ }));
52
+ const __VLS_4 = __VLS_3({
53
+ modelValue: (__VLS_ctx.checked),
54
+ }, ...__VLS_functionalComponentArgsRest(__VLS_3));
55
+ // @ts-ignore
56
+ [checked,];
57
+ /** @type {__VLS_StyleScopedClasses['flex']} */ ;
58
+ /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
59
+ /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
60
+ /** @type {__VLS_StyleScopedClasses['cursor-pointer']} */ ;
61
+ /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
62
+ // @ts-ignore
63
+ var __VLS_1 = __VLS_0;
64
+ const __VLS_base = (await import('vue')).defineComponent({
65
+ __typeEmits: {},
66
+ __typeProps: {},
67
+ props: {},
68
+ });
69
+ const __VLS_export = {};
70
+ export default {};
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ modelValue: number;
3
+ };
4
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (val: number) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
+ default?: ((props: {}) => any) | undefined;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };