@phonghq/go-chat 1.0.3 → 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 (296) 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/IconPhone.vue.d.ts +0 -2
  7. package/dist/assets/icons/IconPlan.vue.d.ts +0 -2
  8. package/dist/assets/icons/IconPlus.vue.d.ts +0 -2
  9. package/dist/assets/icons/IconSearch.vue.d.ts +0 -32
  10. package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
  11. package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
  12. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -2
  13. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
  14. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
  15. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
  16. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
  17. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
  18. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
  19. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
  20. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
  21. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -2
  22. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
  23. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
  24. package/dist/chat/App.vue.d.ts +0 -5
  25. package/dist/chat/main.d.ts +0 -6
  26. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
  27. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
  28. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
  29. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
  30. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
  31. package/dist/chat/page/error/Error.vue.d.ts +0 -2
  32. package/dist/chat/page/home/ChatList.vue.d.ts +0 -20
  33. package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -16
  34. package/dist/chat/page/home/Home.vue.d.ts +0 -14
  35. package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -10
  36. package/dist/chat/page/home/InputChat.vue.d.ts +0 -19
  37. package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -6
  38. package/dist/components/ListenEvent.vue.d.ts +0 -2
  39. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -22
  40. package/dist/components/chat/call/Calling.vue.d.ts +0 -7
  41. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
  42. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
  43. package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
  44. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
  45. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -2
  46. package/dist/components/chat/customer/Avatar.vue.d.ts +0 -11
  47. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
  48. package/dist/components/common/CustomLoading.vue.d.ts +0 -2
  49. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
  50. package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
  51. package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
  52. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
  53. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
  54. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
  55. package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
  56. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
  57. package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
  58. package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
  59. package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
  60. package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
  61. package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
  62. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
  63. package/dist/components/layout/Blank.vue.d.ts +0 -9
  64. package/dist/components/layout/Default.vue.d.ts +0 -9
  65. package/dist/components/modal/Confirm.vue.d.ts +0 -2
  66. package/dist/components/ui/button/CButton.vue.d.ts +0 -19
  67. package/dist/components/ui/button/c-button.d.ts +0 -7
  68. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
  69. package/dist/components/ui/checkbox/index.d.ts +0 -1
  70. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
  71. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
  72. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
  73. package/dist/components/ui/collapsible/index.d.ts +0 -3
  74. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
  75. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
  76. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
  77. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
  78. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
  79. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
  80. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
  81. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
  82. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
  83. package/dist/components/ui/dialog/index.d.ts +0 -9
  84. package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
  85. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
  86. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
  87. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
  88. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
  89. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
  90. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
  91. package/dist/components/ui/drawer/index.d.ts +0 -8
  92. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
  93. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
  94. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
  95. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
  96. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
  97. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
  98. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
  99. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
  100. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
  101. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
  102. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
  103. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
  104. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
  105. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
  106. package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
  107. package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
  108. package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
  109. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
  110. package/dist/components/ui/popover/index.d.ts +0 -3
  111. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
  112. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
  113. package/dist/components/ui/radio-group/index.d.ts +0 -2
  114. package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
  115. package/dist/components/ui/slider/index.d.ts +0 -1
  116. package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
  117. package/dist/components/ui/switch/index.d.ts +0 -1
  118. package/dist/composable/useCallHelper.d.ts +0 -23
  119. package/dist/composable/useInitData.d.ts +0 -11
  120. package/dist/composable/useModalConfirm.d.ts +0 -5
  121. package/dist/constant/color.d.ts +0 -22
  122. package/dist/constant/datetime.d.ts +0 -5
  123. package/dist/constant/general.d.ts +0 -8
  124. package/dist/constant/message.d.ts +0 -8
  125. package/dist/constant/mqtt.d.ts +0 -4
  126. package/dist/constant/user.d.ts +0 -8
  127. package/dist/lib/utils.d.ts +0 -2
  128. package/dist/plugins/axios-gci.d.ts +0 -3
  129. package/dist/plugins/axios.d.ts +0 -3
  130. package/dist/plugins/mqtt.d.ts +0 -10
  131. package/dist/plugins/sdk.d.ts +0 -19
  132. package/dist/plugins/websocket.d.ts +0 -4
  133. package/dist/test/assets/icons/IconArrowLeft.vue.js +0 -29
  134. package/dist/test/assets/icons/IconPhone.vue.js +0 -19
  135. package/dist/test/assets/icons/IconPlan.vue.js +0 -19
  136. package/dist/test/assets/icons/IconPlus.vue.js +0 -22
  137. package/dist/test/assets/icons/IconSearch.vue.js +0 -68
  138. package/dist/test/assets/icons/call/IconMic.vue.js +0 -123
  139. package/dist/test/assets/icons/call/IconPhone.vue.js +0 -35
  140. package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +0 -35
  141. package/dist/test/assets/icons/call/IconSpeaker.vue.js +0 -62
  142. package/dist/test/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
  143. package/dist/test/assets/icons/customer-detail/IconArrow.vue.js +0 -22
  144. package/dist/test/assets/icons/customer-detail/IconCheck.vue.js +0 -27
  145. package/dist/test/assets/icons/customer-detail/IconDate.vue.js +0 -43
  146. package/dist/test/assets/icons/customer-detail/IconGroup.vue.js +0 -48
  147. package/dist/test/assets/icons/customer-detail/IconMessage.vue.js +0 -28
  148. package/dist/test/assets/icons/customer-detail/IconNote.vue.js +0 -29
  149. package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +0 -21
  150. package/dist/test/assets/icons/customer-detail/IconPin.vue.js +0 -29
  151. package/dist/test/assets/icons/customer-detail/IconSearch.vue.js +0 -29
  152. package/dist/test/chat/App.vue.js +0 -502
  153. package/dist/test/chat/main.js +0 -6
  154. package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
  155. package/dist/test/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
  156. package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -136
  157. package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +0 -235
  158. package/dist/test/chat/page/customer-detail/SubInformation.vue.js +0 -102
  159. package/dist/test/chat/page/error/Error.vue.js +0 -64
  160. package/dist/test/chat/page/home/ChatList.vue.js +0 -380
  161. package/dist/test/chat/page/home/ChatMessage.vue.js +0 -271
  162. package/dist/test/chat/page/home/Home.vue.js +0 -327
  163. package/dist/test/chat/page/home/HomeHeader.vue.js +0 -122
  164. package/dist/test/chat/page/home/InputChat.vue.js +0 -226
  165. package/dist/test/chat/page/home/NewCustomer.vue.js +0 -82
  166. package/dist/test/components/ListenEvent.vue.js +0 -45
  167. package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -197
  168. package/dist/test/components/chat/call/Calling.vue.js +0 -291
  169. package/dist/test/components/chat/card/CardCustomerDetail.vue.js +0 -28
  170. package/dist/test/components/chat/common/collapse/CollapseBase.vue.js +0 -59
  171. package/dist/test/components/chat/common/input/InputSearch.vue.js +0 -71
  172. package/dist/test/components/chat/common/popover/PopoverBase.vue.js +0 -148
  173. package/dist/test/components/chat/common/spin/BaseSpin.vue.js +0 -12
  174. package/dist/test/components/chat/customer/Avatar.vue.js +0 -79
  175. package/dist/test/components/chat/layout/mobile/Footer.vue.js +0 -109
  176. package/dist/test/components/common/CustomLoading.vue.js +0 -19
  177. package/dist/test/components/common/Notification/NotificationDescription.vue.js +0 -38
  178. package/dist/test/components/common/button/ButtonBase.vue.js +0 -78
  179. package/dist/test/components/common/button/ButtonToggle.vue.js +0 -70
  180. package/dist/test/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
  181. package/dist/test/components/common/collapse/BaseCollapse.vue.js +0 -36
  182. package/dist/test/components/common/collapse/BaseCollapseItem.vue.js +0 -22
  183. package/dist/test/components/common/drawer/DrawerBase.vue.js +0 -126
  184. package/dist/test/components/common/dropdown/DropdownBase.vue.js +0 -91
  185. package/dist/test/components/common/input/CInputSearch.vue.js +0 -62
  186. package/dist/test/components/common/modal/ModalBase.vue.js +0 -164
  187. package/dist/test/components/common/popover/PopoverBase.vue.js +0 -36
  188. package/dist/test/components/common/slider/BaseSlider.vue.js +0 -70
  189. package/dist/test/components/common/spin/CSpin.vue.js +0 -41
  190. package/dist/test/components/common/tooltip/TooltipBase.vue.js +0 -8
  191. package/dist/test/components/layout/Blank.vue.js +0 -19
  192. package/dist/test/components/layout/Default.vue.js +0 -21
  193. package/dist/test/components/modal/Confirm.vue.js +0 -164
  194. package/dist/test/components/ui/button/CButton.vue.js +0 -49
  195. package/dist/test/components/ui/button/c-button.js +0 -26
  196. package/dist/test/components/ui/checkbox/Checkbox.vue.js +0 -79
  197. package/dist/test/components/ui/checkbox/index.js +0 -1
  198. package/dist/test/components/ui/collapsible/Collapsible.vue.js +0 -47
  199. package/dist/test/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
  200. package/dist/test/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
  201. package/dist/test/components/ui/collapsible/index.js +0 -3
  202. package/dist/test/components/ui/dialog/Dialog.vue.js +0 -42
  203. package/dist/test/components/ui/dialog/DialogClose.vue.js +0 -35
  204. package/dist/test/components/ui/dialog/DialogContent.vue.js +0 -84
  205. package/dist/test/components/ui/dialog/DialogDescription.vue.js +0 -43
  206. package/dist/test/components/ui/dialog/DialogFooter.vue.js +0 -26
  207. package/dist/test/components/ui/dialog/DialogHeader.vue.js +0 -26
  208. package/dist/test/components/ui/dialog/DialogScrollContent.vue.js +0 -99
  209. package/dist/test/components/ui/dialog/DialogTitle.vue.js +0 -43
  210. package/dist/test/components/ui/dialog/DialogTrigger.vue.js +0 -35
  211. package/dist/test/components/ui/dialog/index.js +0 -9
  212. package/dist/test/components/ui/drawer/Drawer.vue.js +0 -48
  213. package/dist/test/components/ui/drawer/DrawerContent.vue.js +0 -81
  214. package/dist/test/components/ui/drawer/DrawerDescription.vue.js +0 -42
  215. package/dist/test/components/ui/drawer/DrawerFooter.vue.js +0 -26
  216. package/dist/test/components/ui/drawer/DrawerHeader.vue.js +0 -26
  217. package/dist/test/components/ui/drawer/DrawerOverlay.vue.js +0 -37
  218. package/dist/test/components/ui/drawer/DrawerTitle.vue.js +0 -42
  219. package/dist/test/components/ui/drawer/index.js +0 -8
  220. package/dist/test/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
  221. package/dist/test/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
  222. package/dist/test/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
  223. package/dist/test/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
  224. package/dist/test/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
  225. package/dist/test/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
  226. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
  227. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
  228. package/dist/test/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
  229. package/dist/test/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
  230. package/dist/test/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
  231. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
  232. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
  233. package/dist/test/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
  234. package/dist/test/components/ui/dropdown-menu/index.js +0 -15
  235. package/dist/test/components/ui/popover/Popover.vue.js +0 -41
  236. package/dist/test/components/ui/popover/PopoverContent.vue.js +0 -60
  237. package/dist/test/components/ui/popover/PopoverTrigger.vue.js +0 -35
  238. package/dist/test/components/ui/popover/index.js +0 -3
  239. package/dist/test/components/ui/radio-group/RadioGroup.vue.js +0 -46
  240. package/dist/test/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
  241. package/dist/test/components/ui/radio-group/index.js +0 -2
  242. package/dist/test/components/ui/slider/Slider.vue.js +0 -155
  243. package/dist/test/components/ui/slider/index.js +0 -1
  244. package/dist/test/components/ui/switch/Switch.vue.js +0 -61
  245. package/dist/test/components/ui/switch/index.js +0 -1
  246. package/dist/test/composable/useCallHelper.js +0 -170
  247. package/dist/test/composable/useInitData.js +0 -84
  248. package/dist/test/composable/useModalConfirm.js +0 -39
  249. package/dist/test/constant/color.js +0 -43
  250. package/dist/test/constant/datetime.js +0 -5
  251. package/dist/test/constant/general.js +0 -9
  252. package/dist/test/constant/message.js +0 -8
  253. package/dist/test/constant/mqtt.js +0 -11
  254. package/dist/test/constant/user.js +0 -9
  255. package/dist/test/lib/utils.js +0 -5
  256. package/dist/test/plugins/axios-gci.js +0 -25
  257. package/dist/test/plugins/axios.js +0 -85
  258. package/dist/test/plugins/mqtt.js +0 -128
  259. package/dist/test/plugins/sdk.js +0 -83
  260. package/dist/test/plugins/websocket.js +0 -65
  261. package/dist/test/types/call.js +0 -1
  262. package/dist/test/types/chat/auth.js +0 -1
  263. package/dist/test/types/chat/global.js +0 -1
  264. package/dist/test/types/chat/promise.js +0 -1
  265. package/dist/test/types/chat/user.js +0 -1
  266. package/dist/test/types/conversation.js +0 -1
  267. package/dist/test/types/global.js +0 -15
  268. package/dist/test/types/message.js +0 -1
  269. package/dist/test/utils/chat/auth.js +0 -51
  270. package/dist/test/utils/chat/call.js +0 -61
  271. package/dist/test/utils/chat/chat-router.js +0 -9
  272. package/dist/test/utils/chat/conversation.js +0 -7
  273. package/dist/test/utils/chat/message.js +0 -42
  274. package/dist/test/utils/chat/user.js +0 -33
  275. package/dist/test/utils/debounce.js +0 -9
  276. package/dist/test/utils/json.js +0 -18
  277. package/dist/test/utils/logger.js +0 -5
  278. package/dist/test/utils/string-helper.js +0 -27
  279. package/dist/types/call.d.ts +0 -4
  280. package/dist/types/chat/auth.d.ts +0 -37
  281. package/dist/types/chat/global.d.ts +0 -7
  282. package/dist/types/chat/promise.d.ts +0 -17
  283. package/dist/types/chat/user.d.ts +0 -88
  284. package/dist/types/conversation.d.ts +0 -18
  285. package/dist/types/global.d.ts +0 -11
  286. package/dist/types/message.d.ts +0 -43
  287. package/dist/utils/chat/auth.d.ts +0 -45
  288. package/dist/utils/chat/call.d.ts +0 -5
  289. package/dist/utils/chat/chat-router.d.ts +0 -3
  290. package/dist/utils/chat/conversation.d.ts +0 -3
  291. package/dist/utils/chat/message.d.ts +0 -17
  292. package/dist/utils/chat/user.d.ts +0 -193
  293. package/dist/utils/debounce.d.ts +0 -1
  294. package/dist/utils/json.d.ts +0 -2
  295. package/dist/utils/logger.d.ts +0 -3
  296. package/dist/utils/string-helper.d.ts +0 -1
@@ -1,62 +0,0 @@
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 { useDebounce } from '../../../utils/debounce';
4
- const props = withDefaults(defineProps(), {
5
- placeholder: 'Search...'
6
- });
7
- const emit = defineEmits();
8
- const keyword = computed({
9
- get: () => props.modelValue,
10
- set: (val) => emit('update:modelValue', val)
11
- });
12
- const search = useDebounce(() => {
13
- emit('search', keyword.value);
14
- });
15
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
16
- const __VLS_defaults = {
17
- placeholder: 'Search...'
18
- };
19
- const __VLS_ctx = {
20
- ...{},
21
- ...{},
22
- ...{},
23
- ...{},
24
- ...{},
25
- };
26
- let __VLS_elements;
27
- let __VLS_components;
28
- let __VLS_directives;
29
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
30
- ...{ class: "relative" },
31
- });
32
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
33
- ...{ class: "absolute inset-y-0 left-2 translate-y-1/2 bottom-1/2 flex items-center pointer-events-none text-gray-500" },
34
- });
35
- __VLS_asFunctionalElement(__VLS_elements.input)({
36
- ...{ onInput: (__VLS_ctx.search) },
37
- ...{ class: "sc-full input-search input pl-10" },
38
- placeholder: (props.placeholder),
39
- });
40
- (__VLS_ctx.keyword);
41
- // @ts-ignore
42
- [search, keyword,];
43
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
44
- /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
45
- /** @type {__VLS_StyleScopedClasses['inset-y-0']} */ ;
46
- /** @type {__VLS_StyleScopedClasses['left-2']} */ ;
47
- /** @type {__VLS_StyleScopedClasses['translate-y-1/2']} */ ;
48
- /** @type {__VLS_StyleScopedClasses['bottom-1/2']} */ ;
49
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
50
- /** @type {__VLS_StyleScopedClasses['items-center']} */ ;
51
- /** @type {__VLS_StyleScopedClasses['pointer-events-none']} */ ;
52
- /** @type {__VLS_StyleScopedClasses['text-gray-500']} */ ;
53
- /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
54
- /** @type {__VLS_StyleScopedClasses['input-search']} */ ;
55
- /** @type {__VLS_StyleScopedClasses['input']} */ ;
56
- /** @type {__VLS_StyleScopedClasses['pl-10']} */ ;
57
- const __VLS_export = (await import('vue')).defineComponent({
58
- __typeEmits: {},
59
- __typeProps: {},
60
- props: {},
61
- });
62
- export default {};
@@ -1,164 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- defineOptions({
3
- inheritAttrs: false
4
- });
5
- import { Dialog, DialogHeader, DialogTitle, DialogScrollContent } from '../../../components/ui/dialog';
6
- // COMPONENT
7
- // import BaseTitle from '../../../components/common/base/BaseTitle.vue'
8
- import { useAttrs } from 'vue';
9
- const props = withDefaults(defineProps(), {
10
- title: 'This is title',
11
- width: '100%',
12
- showButtonClose: true,
13
- showTitle: true,
14
- open: false,
15
- nonClosable: false,
16
- zIndex: 50,
17
- class: '',
18
- });
19
- const emit = defineEmits();
20
- const attrs = useAttrs();
21
- const show = () => {
22
- emit('update:open', true);
23
- };
24
- const hide = () => {
25
- emit('update:open', false);
26
- };
27
- const handleClickOutside = (value) => {
28
- if (props.nonClosable)
29
- value.preventDefault();
30
- };
31
- const __VLS_exposed = {
32
- show,
33
- hide
34
- };
35
- defineExpose(__VLS_exposed);
36
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
37
- const __VLS_defaults = {
38
- title: 'This is title',
39
- width: '100%',
40
- showButtonClose: true,
41
- showTitle: true,
42
- open: false,
43
- nonClosable: false,
44
- zIndex: 50,
45
- class: '',
46
- };
47
- const __VLS_ctx = {
48
- ...{},
49
- ...{},
50
- ...{},
51
- ...{},
52
- ...{},
53
- };
54
- let __VLS_elements;
55
- let __VLS_components;
56
- let __VLS_directives;
57
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
58
- ...(__VLS_ctx.attrs),
59
- });
60
- // @ts-ignore
61
- [attrs,];
62
- const __VLS_0 = {}.Dialog;
63
- /** @type {[typeof __VLS_components.Dialog, typeof __VLS_components.Dialog, ]} */ ;
64
- // @ts-ignore
65
- Dialog;
66
- // @ts-ignore
67
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
68
- ...{ 'onUpdate:open': {} },
69
- open: (props.open),
70
- disableOutsidePointerEvents: (true),
71
- }));
72
- const __VLS_2 = __VLS_1({
73
- ...{ 'onUpdate:open': {} },
74
- open: (props.open),
75
- disableOutsidePointerEvents: (true),
76
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
77
- let __VLS_4;
78
- let __VLS_5;
79
- const __VLS_6 = ({ 'update:open': {} },
80
- { 'onUpdate:open': ((val) => __VLS_ctx.emit('update:open', val)) });
81
- const { default: __VLS_7 } = __VLS_3.slots;
82
- // @ts-ignore
83
- [emit,];
84
- const __VLS_8 = {}.DialogScrollContent;
85
- /** @type {[typeof __VLS_components.DialogScrollContent, typeof __VLS_components.DialogScrollContent, ]} */ ;
86
- // @ts-ignore
87
- DialogScrollContent;
88
- // @ts-ignore
89
- const __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8({
90
- ...{ 'onInteractOutside': {} },
91
- disableOutsidePointerEvents: (true),
92
- width: (__VLS_ctx.width),
93
- ...{ class: (props.class) },
94
- zIndex: (__VLS_ctx.zIndex),
95
- }));
96
- const __VLS_10 = __VLS_9({
97
- ...{ 'onInteractOutside': {} },
98
- disableOutsidePointerEvents: (true),
99
- width: (__VLS_ctx.width),
100
- ...{ class: (props.class) },
101
- zIndex: (__VLS_ctx.zIndex),
102
- }, ...__VLS_functionalComponentArgsRest(__VLS_9));
103
- let __VLS_12;
104
- let __VLS_13;
105
- const __VLS_14 = ({ interactOutside: {} },
106
- { onInteractOutside: (__VLS_ctx.handleClickOutside) });
107
- const { default: __VLS_15 } = __VLS_11.slots;
108
- // @ts-ignore
109
- [width, zIndex, handleClickOutside,];
110
- const __VLS_16 = {}.DialogHeader;
111
- /** @type {[typeof __VLS_components.DialogHeader, typeof __VLS_components.DialogHeader, ]} */ ;
112
- // @ts-ignore
113
- DialogHeader;
114
- // @ts-ignore
115
- const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({}));
116
- const __VLS_18 = __VLS_17({}, ...__VLS_functionalComponentArgsRest(__VLS_17));
117
- const { default: __VLS_20 } = __VLS_19.slots;
118
- const __VLS_21 = {}.DialogTitle;
119
- /** @type {[typeof __VLS_components.DialogTitle, typeof __VLS_components.DialogTitle, ]} */ ;
120
- // @ts-ignore
121
- DialogTitle;
122
- // @ts-ignore
123
- const __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({}));
124
- const __VLS_23 = __VLS_22({}, ...__VLS_functionalComponentArgsRest(__VLS_22));
125
- const { default: __VLS_25 } = __VLS_24.slots;
126
- if (props.showTitle) {
127
- const __VLS_26 = {}.BaseTitle;
128
- /** @type {[typeof __VLS_components.BaseTitle, typeof __VLS_components.baseTitle, ]} */ ;
129
- // @ts-ignore
130
- BaseTitle;
131
- // @ts-ignore
132
- const __VLS_27 = __VLS_asFunctionalComponent(__VLS_26, new __VLS_26({
133
- ...{ 'onClose': {} },
134
- title: (props.title),
135
- showButtonClose: (props.showButtonClose && !props.nonClosable),
136
- }));
137
- const __VLS_28 = __VLS_27({
138
- ...{ 'onClose': {} },
139
- title: (props.title),
140
- showButtonClose: (props.showButtonClose && !props.nonClosable),
141
- }, ...__VLS_functionalComponentArgsRest(__VLS_27));
142
- let __VLS_30;
143
- let __VLS_31;
144
- const __VLS_32 = ({ close: {} },
145
- { onClose: (__VLS_ctx.hide) });
146
- // @ts-ignore
147
- [hide,];
148
- var __VLS_29;
149
- }
150
- var __VLS_24;
151
- var __VLS_34 = {};
152
- var __VLS_19;
153
- var __VLS_11;
154
- var __VLS_3;
155
- // @ts-ignore
156
- var __VLS_35 = __VLS_34;
157
- const __VLS_base = (await import('vue')).defineComponent({
158
- setup: () => (__VLS_exposed),
159
- __typeEmits: {},
160
- __typeProps: {},
161
- props: {},
162
- });
163
- const __VLS_export = {};
164
- export default {};
@@ -1,36 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import { ref } from 'vue';
3
- const props = withDefaults(defineProps(), {
4
- placement: 'bottom',
5
- trigger: 'click'
6
- });
7
- const open = ref(false);
8
- const hide = () => {
9
- open.value = false;
10
- };
11
- const handleClickChange = (visible) => {
12
- open.value = visible;
13
- };
14
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
15
- const __VLS_defaults = {
16
- placement: 'bottom',
17
- trigger: 'click'
18
- };
19
- const __VLS_ctx = {
20
- ...{},
21
- ...{},
22
- ...{},
23
- ...{},
24
- };
25
- let __VLS_elements;
26
- let __VLS_components;
27
- let __VLS_directives;
28
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
29
- ...{ class: "relative" },
30
- });
31
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
32
- const __VLS_export = (await import('vue')).defineComponent({
33
- __typeProps: {},
34
- props: {},
35
- });
36
- export default {};
@@ -1,70 +0,0 @@
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 { CSlider } from "../../../components/ui/slider";
4
- const props = withDefaults(defineProps(), {});
5
- const emits = defineEmits();
6
- const value = computed({
7
- get: () => [props.modelValue],
8
- set: (val) => {
9
- emits('update:modelValue', val[0]);
10
- }
11
- });
12
- const onAfterChange = (value) => {
13
- emits('afterChange', value);
14
- };
15
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
16
- const __VLS_defaults = {};
17
- const __VLS_ctx = {
18
- ...{},
19
- ...{},
20
- ...{},
21
- ...{},
22
- ...{},
23
- };
24
- let __VLS_elements;
25
- let __VLS_components;
26
- let __VLS_directives;
27
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
28
- ...{ class: "relative" },
29
- });
30
- const __VLS_0 = {}.CSlider;
31
- /** @type {[typeof __VLS_components.CSlider, typeof __VLS_components.cSlider, ]} */ ;
32
- // @ts-ignore
33
- CSlider;
34
- // @ts-ignore
35
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
36
- ...{ 'onValueCommit': {} },
37
- modelValue: (__VLS_ctx.value),
38
- min: (0),
39
- max: (0),
40
- step: (0),
41
- }));
42
- const __VLS_2 = __VLS_1({
43
- ...{ 'onValueCommit': {} },
44
- modelValue: (__VLS_ctx.value),
45
- min: (0),
46
- max: (0),
47
- step: (0),
48
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
49
- let __VLS_4;
50
- let __VLS_5;
51
- const __VLS_6 = ({ valueCommit: {} },
52
- { onValueCommit: ((e) => __VLS_ctx.onAfterChange(e[0])) });
53
- // @ts-ignore
54
- [value, onAfterChange,];
55
- var __VLS_3;
56
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
57
- ...{ class: "justify-between flex absolute w-full text-sm" },
58
- });
59
- /** @type {__VLS_StyleScopedClasses['relative']} */ ;
60
- /** @type {__VLS_StyleScopedClasses['justify-between']} */ ;
61
- /** @type {__VLS_StyleScopedClasses['flex']} */ ;
62
- /** @type {__VLS_StyleScopedClasses['absolute']} */ ;
63
- /** @type {__VLS_StyleScopedClasses['w-full']} */ ;
64
- /** @type {__VLS_StyleScopedClasses['text-sm']} */ ;
65
- const __VLS_export = (await import('vue')).defineComponent({
66
- __typeEmits: {},
67
- __typeProps: {},
68
- props: {},
69
- });
70
- export default {};
@@ -1,41 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import { onMounted, computed } from 'vue';
3
- const props = withDefaults(defineProps(), {
4
- size: 48,
5
- border: 5,
6
- });
7
- const style = computed(() => {
8
- let result = {};
9
- result.width = props.size + 'px';
10
- result.height = props.size + 'px';
11
- result.borderWidth = props.border + 'px';
12
- return result;
13
- });
14
- onMounted(() => {
15
- });
16
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
17
- const __VLS_defaults = {
18
- size: 48,
19
- border: 5,
20
- };
21
- const __VLS_ctx = {
22
- ...{},
23
- ...{},
24
- ...{},
25
- ...{},
26
- };
27
- let __VLS_elements;
28
- let __VLS_components;
29
- let __VLS_directives;
30
- __VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({
31
- ...{ class: "loader" },
32
- ...{ style: (__VLS_ctx.style) },
33
- });
34
- // @ts-ignore
35
- [style,];
36
- /** @type {__VLS_StyleScopedClasses['loader']} */ ;
37
- const __VLS_export = (await import('vue')).defineComponent({
38
- __typeProps: {},
39
- props: {},
40
- });
41
- export default {};
@@ -1,8 +0,0 @@
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
- const __VLS_export = (await import('vue')).defineComponent({});
8
- export default {};
@@ -1,19 +0,0 @@
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
- ...{},
5
- ...{},
6
- };
7
- let __VLS_elements;
8
- let __VLS_components;
9
- let __VLS_directives;
10
- __VLS_asFunctionalElement(__VLS_elements.main, __VLS_elements.main)({
11
- ...{ class: "main" },
12
- });
13
- var __VLS_0 = {};
14
- /** @type {__VLS_StyleScopedClasses['main']} */ ;
15
- // @ts-ignore
16
- var __VLS_1 = __VLS_0;
17
- const __VLS_base = (await import('vue')).defineComponent({});
18
- const __VLS_export = {};
19
- export default {};
@@ -1,21 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- // COMPONENT
3
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
4
- const __VLS_ctx = {};
5
- let __VLS_elements;
6
- let __VLS_components;
7
- let __VLS_directives;
8
- __VLS_asFunctionalElement(__VLS_elements.main, __VLS_elements.main)({
9
- ...{ class: "main" },
10
- });
11
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
12
- ...{ class: "container" },
13
- });
14
- var __VLS_0 = {};
15
- /** @type {__VLS_StyleScopedClasses['main']} */ ;
16
- /** @type {__VLS_StyleScopedClasses['container']} */ ;
17
- // @ts-ignore
18
- var __VLS_1 = __VLS_0;
19
- const __VLS_base = (await import('vue')).defineComponent({});
20
- const __VLS_export = {};
21
- export default {};
@@ -1,164 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import { ref, onBeforeUnmount, onMounted } from 'vue';
3
- import ModalBase from '../../components/common/modal/ModalBase.vue';
4
- import ButtonBase from '../../components/common/button/ButtonBase.vue';
5
- import { useModalConfirm } from '../../composable/useModalConfirm';
6
- const { setHandleConfirm } = useModalConfirm();
7
- const confirmPayload = ref(null);
8
- const isVisible = ref(false);
9
- const isResolved = ref(false);
10
- const isOpeningModal = ref(false);
11
- onMounted(() => {
12
- setHandleConfirm(open);
13
- });
14
- onBeforeUnmount(() => { });
15
- const open = (data) => {
16
- if (isOpeningModal.value)
17
- return;
18
- if (!data?.type) {
19
- data.type = 'confirm';
20
- }
21
- confirmPayload.value = data;
22
- isVisible.value = true;
23
- isOpeningModal.value = true;
24
- };
25
- const handleOk = () => {
26
- confirmPayload.value?.resolve('ok');
27
- isResolved.value = true;
28
- isVisible.value = false;
29
- };
30
- const handleCancel = () => {
31
- isVisible.value = false;
32
- };
33
- const handleAfterClose = () => {
34
- if (!isResolved.value)
35
- confirmPayload.value?.reject();
36
- isResolved.value = false;
37
- confirmPayload.value = null;
38
- isOpeningModal.value = false;
39
- };
40
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
41
- const __VLS_ctx = {
42
- ...{},
43
- ...{},
44
- };
45
- let __VLS_elements;
46
- let __VLS_components;
47
- let __VLS_directives;
48
- /** @type {[typeof ModalBase, typeof ModalBase, ]} */ ;
49
- // @ts-ignore
50
- const __VLS_0 = __VLS_asFunctionalComponent(ModalBase, new ModalBase({
51
- wrapClassName: "confirm-modal",
52
- open: (__VLS_ctx.isVisible),
53
- width: (652),
54
- title: (__VLS_ctx.confirmPayload?.headerTitle),
55
- showButtonClose: (false),
56
- maskClosable: (false),
57
- footer: (null),
58
- centered: true,
59
- afterClose: (__VLS_ctx.handleAfterClose),
60
- zIndex: (9000),
61
- }));
62
- const __VLS_1 = __VLS_0({
63
- wrapClassName: "confirm-modal",
64
- open: (__VLS_ctx.isVisible),
65
- width: (652),
66
- title: (__VLS_ctx.confirmPayload?.headerTitle),
67
- showButtonClose: (false),
68
- maskClosable: (false),
69
- footer: (null),
70
- centered: true,
71
- afterClose: (__VLS_ctx.handleAfterClose),
72
- zIndex: (9000),
73
- }, ...__VLS_functionalComponentArgsRest(__VLS_0));
74
- var __VLS_3 = {};
75
- const { default: __VLS_4 } = __VLS_2.slots;
76
- // @ts-ignore
77
- [isVisible, confirmPayload, handleAfterClose,];
78
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
79
- ...{ class: "text-center p-8" },
80
- });
81
- __VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({
82
- ...{ class: "text-lg font-semibold mb-1" },
83
- });
84
- (__VLS_ctx.confirmPayload?.bodyTitle || '');
85
- // @ts-ignore
86
- [confirmPayload,];
87
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
88
- ...{ class: "mb-0" },
89
- });
90
- __VLS_asFunctionalDirective(__VLS_directives.vHtml)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.confirmPayload?.bodyMessage) }, null, null);
91
- // @ts-ignore
92
- [confirmPayload,];
93
- __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
94
- ...{ class: "flex-center gap-4 pb-7 pt-4" },
95
- });
96
- if (__VLS_ctx.confirmPayload?.type === 'confirm') {
97
- // @ts-ignore
98
- [confirmPayload,];
99
- /** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
100
- // @ts-ignore
101
- const __VLS_5 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
102
- ...{ 'onClick': {} },
103
- ...{ class: "min-w-[100px]" },
104
- danger: true,
105
- ghost: true,
106
- type: "danger-outline",
107
- }));
108
- const __VLS_6 = __VLS_5({
109
- ...{ 'onClick': {} },
110
- ...{ class: "min-w-[100px]" },
111
- danger: true,
112
- ghost: true,
113
- type: "danger-outline",
114
- }, ...__VLS_functionalComponentArgsRest(__VLS_5));
115
- let __VLS_8;
116
- let __VLS_9;
117
- const __VLS_10 = ({ click: {} },
118
- { onClick: (__VLS_ctx.handleCancel) });
119
- const { default: __VLS_11 } = __VLS_7.slots;
120
- // @ts-ignore
121
- [handleCancel,];
122
- (__VLS_ctx.confirmPayload?.cancelButtonText || 'No');
123
- // @ts-ignore
124
- [confirmPayload,];
125
- var __VLS_7;
126
- }
127
- /** @type {[typeof ButtonBase, typeof ButtonBase, ]} */ ;
128
- // @ts-ignore
129
- const __VLS_12 = __VLS_asFunctionalComponent(ButtonBase, new ButtonBase({
130
- ...{ 'onClick': {} },
131
- ...{ class: "min-w-[100px]" },
132
- type: ('primary'),
133
- }));
134
- const __VLS_13 = __VLS_12({
135
- ...{ 'onClick': {} },
136
- ...{ class: "min-w-[100px]" },
137
- type: ('primary'),
138
- }, ...__VLS_functionalComponentArgsRest(__VLS_12));
139
- let __VLS_15;
140
- let __VLS_16;
141
- const __VLS_17 = ({ click: {} },
142
- { onClick: (__VLS_ctx.handleOk) });
143
- const { default: __VLS_18 } = __VLS_14.slots;
144
- // @ts-ignore
145
- [handleOk,];
146
- (__VLS_ctx.confirmPayload?.confirmButtonText || 'Yes');
147
- // @ts-ignore
148
- [confirmPayload,];
149
- var __VLS_14;
150
- var __VLS_2;
151
- /** @type {__VLS_StyleScopedClasses['text-center']} */ ;
152
- /** @type {__VLS_StyleScopedClasses['p-8']} */ ;
153
- /** @type {__VLS_StyleScopedClasses['text-lg']} */ ;
154
- /** @type {__VLS_StyleScopedClasses['font-semibold']} */ ;
155
- /** @type {__VLS_StyleScopedClasses['mb-1']} */ ;
156
- /** @type {__VLS_StyleScopedClasses['mb-0']} */ ;
157
- /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
158
- /** @type {__VLS_StyleScopedClasses['gap-4']} */ ;
159
- /** @type {__VLS_StyleScopedClasses['pb-7']} */ ;
160
- /** @type {__VLS_StyleScopedClasses['pt-4']} */ ;
161
- /** @type {__VLS_StyleScopedClasses['min-w-[100px]']} */ ;
162
- /** @type {__VLS_StyleScopedClasses['min-w-[100px]']} */ ;
163
- const __VLS_export = (await import('vue')).defineComponent({});
164
- export default {};
@@ -1,49 +0,0 @@
1
- /// <reference types="C:/phonghq/go-chat/node_modules/.vue-global-types/vue_3.5_0.d.ts" />
2
- import { Primitive } from "reka-ui";
3
- import { cn } from "../../../lib/utils";
4
- import { buttonVariants } from "./c-button";
5
- const props = withDefaults(defineProps(), {
6
- as: "button",
7
- });
8
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
9
- const __VLS_defaults = {
10
- as: "button",
11
- };
12
- const __VLS_ctx = {
13
- ...{},
14
- ...{},
15
- ...{},
16
- ...{},
17
- };
18
- let __VLS_elements;
19
- let __VLS_components;
20
- let __VLS_directives;
21
- const __VLS_0 = {}.Primitive;
22
- /** @type {[typeof __VLS_components.Primitive, typeof __VLS_components.Primitive, ]} */ ;
23
- // @ts-ignore
24
- Primitive;
25
- // @ts-ignore
26
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
27
- as: (__VLS_ctx.as),
28
- asChild: (__VLS_ctx.asChild),
29
- ...{ class: (__VLS_ctx.cn(__VLS_ctx.buttonVariants({ variant: __VLS_ctx.variant, size: __VLS_ctx.size }), props.class)) },
30
- }));
31
- const __VLS_2 = __VLS_1({
32
- as: (__VLS_ctx.as),
33
- asChild: (__VLS_ctx.asChild),
34
- ...{ class: (__VLS_ctx.cn(__VLS_ctx.buttonVariants({ variant: __VLS_ctx.variant, size: __VLS_ctx.size }), props.class)) },
35
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
36
- var __VLS_4 = {};
37
- const { default: __VLS_5 } = __VLS_3.slots;
38
- // @ts-ignore
39
- [as, asChild, cn, buttonVariants, variant, size,];
40
- var __VLS_6 = {};
41
- var __VLS_3;
42
- // @ts-ignore
43
- var __VLS_7 = __VLS_6;
44
- const __VLS_base = (await import('vue')).defineComponent({
45
- __typeProps: {},
46
- props: {},
47
- });
48
- const __VLS_export = {};
49
- export default {};
@@ -1,26 +0,0 @@
1
- import { cva } from 'class-variance-authority';
2
- export { default as CButton } from './CButton.vue';
3
- export const buttonVariants = cva('inline-flex flex-center gap-2 whitespace-nowrap rounded-[8px] text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:duration-100', {
4
- variants: {
5
- variant: {
6
- default: 'bg-primary text-white hover:bg-primary-hover [&_.loader::before]:border-white',
7
- primary: 'bg-primary text-white hover:bg-primary-hover [&_.loader::before]:border-white',
8
- ['danger-outline']: 'bg-white border border-danger border-[1.5px] text-danger hover:bg-danger hover:text-white [&_.loader::before]:border-danger',
9
- success: 'bg-success text-white hover:bg-success-hover [&_.loader::before]:border-white',
10
- danger: 'bg-danger text-white hover:bg-danger-hover [&_.loader::before]:border-white',
11
- ['primary-outline']: 'bg-white text-primary hover:bg-primary border hover:text-white border-primary border-[1.5px] [&_.loader::before]:border-primary',
12
- ghost: 'hover:bg-accent hover:text-accent-foreground',
13
- link: 'text-primary underline-offset-4 hover:underline'
14
- },
15
- size: {
16
- default: 'h-10 px-4 py-2',
17
- sm: 'h-9 rounded-md px-3',
18
- lg: 'h-11 rounded-md px-8',
19
- icon: 'h-10 w-10'
20
- }
21
- },
22
- defaultVariants: {
23
- variant: 'default',
24
- size: 'default'
25
- }
26
- });