tuikit-atomicx-vue3 3.3.0-beta.3 → 3.3.0

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 (243) hide show
  1. package/dist/AttachmentPicker.module-BesmtGyl.js +11 -0
  2. package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +76 -0
  3. package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +76 -0
  4. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js → MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js} +23 -18
  5. package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
  6. package/dist/chat/index.d.ts +3747 -2386
  7. package/dist/chat/index.js +12 -11
  8. package/dist/components/BarrageInput/BarrageInputH5.js +32 -8
  9. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -5
  10. package/dist/components/BarrageInput/TextEditor/index.js +14 -6
  11. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
  12. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +12 -4
  13. package/dist/components/BarrageList/i18n/en-US/index.d.ts +1 -0
  14. package/dist/components/BarrageList/i18n/en-US/index.js +2 -1
  15. package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +1 -0
  16. package/dist/components/BarrageList/i18n/zh-CN/index.js +2 -1
  17. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -3
  18. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -3
  19. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
  20. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -3
  21. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +3 -3
  22. package/dist/components/ChatSetting/SettingItem/SettingItem.js +21 -21
  23. package/dist/components/ChatSetting/i18n/en-US.js +3 -3
  24. package/dist/components/ChatSetting/i18n/zh-CN.js +3 -3
  25. package/dist/components/ChatSetting/index.d.ts +1 -4
  26. package/dist/components/ChatSetting/index.js +3 -6
  27. package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
  28. package/dist/components/ContactList/ContactInfo/ContactInfo.js +17 -17
  29. package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +26 -2
  30. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +2 -1
  31. package/dist/components/ContactList/ContactList.js +19 -10
  32. package/dist/components/ContactList/ContactList.vue.d.ts +109 -1
  33. package/dist/components/ContactList/index.d.ts +158 -26
  34. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +8 -9
  35. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -1
  36. package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +8 -8
  37. package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +1 -2
  38. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +8 -8
  39. package/dist/components/ConversationList/ConversationList.js +18 -44
  40. package/dist/components/ConversationList/ConversationList.vue.d.ts +197 -1535
  41. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +8 -11
  42. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
  43. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +80 -134
  44. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +14 -14
  45. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +14 -14
  46. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +19 -30
  47. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +0 -2
  48. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -15
  49. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +12 -24
  50. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
  51. package/dist/components/ConversationList/ConversationPreview/index.d.ts +1 -1
  52. package/dist/components/ConversationList/ConversationPreview/index.js +17 -21
  53. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -0
  54. package/dist/components/ConversationList/index.d.ts +468 -2400
  55. package/dist/components/ConversationList/index.js +1 -1
  56. package/dist/components/LiveCoreView/index.js +113 -58
  57. package/dist/components/LiveCoreView/index.vue.d.ts +9 -0
  58. package/dist/components/LiveList/LiveList.js +7 -5
  59. package/dist/components/LiveList/LiveListH5.js +77 -71
  60. package/dist/components/LiveList/i18n/en-US/index.d.ts +5 -0
  61. package/dist/components/LiveList/i18n/en-US/index.js +6 -1
  62. package/dist/components/LiveList/i18n/zh-CN/index.d.ts +5 -0
  63. package/dist/components/LiveList/i18n/zh-CN/index.js +6 -1
  64. package/dist/components/LiveList/pullToRefresh.js +204 -0
  65. package/dist/components/LiveList/pullToRefresh.vue.d.ts +86 -0
  66. package/dist/components/LiveScenePanel/CameraSettingDialog.js +6 -5
  67. package/dist/components/LiveScenePanel/index.js +3 -3
  68. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +0 -4
  69. package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
  70. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
  71. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
  72. package/dist/components/MessageInput/AttachmentPicker/index.js +14 -19
  73. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +3 -3
  74. package/dist/components/MessageInput/MessageInput.js +1 -1
  75. package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
  76. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
  77. package/dist/components/MessageInput/TextEditor/index.js +18 -9
  78. package/dist/components/MessageInput/index.d.ts +5 -41
  79. package/dist/components/MessageInput/index.js +4 -4
  80. package/dist/components/MessageList/Message/CustomMessage/index.js +2 -2
  81. package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +7 -5
  82. package/dist/components/MessageList/Message/FaceMessage/FaceMessage.vue.d.ts +8 -8
  83. package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +2 -1
  84. package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +2 -1
  85. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +12 -4
  86. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +3 -3
  87. package/dist/components/MessageList/MessageForward/MessageForward.js +2 -3
  88. package/dist/components/MessageList/MessageList.js +14 -7
  89. package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
  90. package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
  91. package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
  92. package/dist/components/MessageList/index.d.ts +143 -5
  93. package/dist/components/MessageList/index.js +5 -5
  94. package/dist/components/Search/Search.js +1 -3
  95. package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +4 -6
  96. package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
  97. package/dist/components/Search/SearchResults/SearchResults.js +20 -22
  98. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +6 -8
  99. package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +5 -7
  100. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +19 -21
  101. package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +1 -3
  102. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +5 -7
  103. package/dist/components/StreamMixer/LocalMixer/index.js +11 -5
  104. package/dist/components/StreamView/manager/mediaManager.js +1 -1
  105. package/dist/components/UserPicker/UserPicker.js +2 -2
  106. package/dist/components/UserPicker/UserPicker.vue.d.ts +7 -8
  107. package/dist/components/UserPicker/components/ListMode/ListMode.js +14 -17
  108. package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +2 -2
  109. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.vue.d.ts +2 -2
  110. package/dist/components/UserPicker/components/TreeMode/TreeMode.vue.d.ts +3 -3
  111. package/dist/components/UserPicker/components/TreeMode/TreeNode.vue.d.ts +4 -4
  112. package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +3 -3
  113. package/dist/components/UserPicker/hooks/useSelection.d.ts +8 -8
  114. package/dist/components/UserPicker/hooks/useTreeState.d.ts +3 -3
  115. package/dist/components/UserPicker/index.d.ts +134 -3
  116. package/dist/components/UserPicker/index.js +3 -2
  117. package/dist/components/UserPicker/type.d.ts +18 -18
  118. package/dist/index.js +6 -3
  119. package/dist/rtc/index.d.ts +9 -0
  120. package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
  121. package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +3 -0
  122. package/dist/states/LoginState.js +1 -0
  123. package/dist/states/MessageInputState/MessageInputState.js +25 -5
  124. package/dist/styles/index.css +1275 -3559
  125. package/dist/types/contact.d.ts +13 -12
  126. package/dist/types/conversation.d.ts +12 -14
  127. package/dist/types/engine.d.ts +12 -0
  128. package/dist/types/engine.js +15 -0
  129. package/dist/types/index.js +2 -1
  130. package/dist/utils/json.js +0 -1
  131. package/package.json +7 -3
  132. package/src/chat/index.ts +12 -4
  133. package/src/components/BarrageInput/BarrageInputH5.vue +50 -4
  134. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
  135. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  136. package/src/components/BarrageInput/TextEditor/Editor.scss +1 -1
  137. package/src/components/BarrageInput/TextEditor/TextEditor.module.scss +2 -0
  138. package/src/components/BarrageInput/TextEditor/TextEditor.vue +6 -0
  139. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
  140. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +10 -0
  141. package/src/components/BarrageList/i18n/en-US/index.ts +1 -0
  142. package/src/components/BarrageList/i18n/zh-CN/index.ts +1 -0
  143. package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +5 -2
  144. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -4
  145. package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +2 -2
  146. package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +3 -2
  147. package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +3 -3
  148. package/src/components/ChatSetting/SettingItem/SettingItem.vue +10 -7
  149. package/src/components/ChatSetting/i18n/en-US.ts +3 -3
  150. package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
  151. package/src/components/ChatSetting/index.ts +3 -3
  152. package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
  153. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +2 -0
  154. package/src/components/ContactList/ContactInfo/ContactInfo.vue +17 -9
  155. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +2 -0
  156. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +4 -3
  157. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +2 -0
  158. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +2 -0
  159. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
  160. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +2 -2
  161. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +3 -2
  162. package/src/components/ContactList/ContactList.scss +2 -1
  163. package/src/components/ContactList/ContactList.vue +18 -3
  164. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +3 -3
  165. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +5 -6
  166. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +3 -3
  167. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +5 -6
  168. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +3 -3
  169. package/src/components/ConversationList/ConversationActions/ConversationActions.scss +2 -12
  170. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -2
  171. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
  172. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +2 -1
  173. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +2 -2
  174. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +2 -1
  175. package/src/components/ConversationList/ConversationList.scss +0 -5
  176. package/src/components/ConversationList/ConversationList.vue +15 -41
  177. package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -0
  178. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
  179. package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
  180. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
  181. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
  182. package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
  183. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
  184. package/src/components/LiveCoreView/index.vue +144 -78
  185. package/src/components/LiveList/LiveList.vue +3 -0
  186. package/src/components/LiveList/LiveListH5.vue +60 -85
  187. package/src/components/LiveList/i18n/en-US/index.ts +5 -0
  188. package/src/components/LiveList/i18n/zh-CN/index.ts +5 -0
  189. package/src/components/LiveList/pullToRefresh.vue +364 -0
  190. package/src/components/LiveScenePanel/CameraSettingDialog.vue +6 -5
  191. package/src/components/LiveScenePanel/index.vue +2 -2
  192. package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.module.scss +4 -0
  193. package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +12 -17
  194. package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +3 -2
  195. package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +3 -2
  196. package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +3 -2
  197. package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
  198. package/src/components/MessageInput/MessageInput.vue +21 -15
  199. package/src/components/MessageInput/TextEditor/Editor.scss +1 -0
  200. package/src/components/MessageInput/TextEditor/TextEditor.vue +16 -6
  201. package/src/components/MessageInput/types.d.ts +3 -4
  202. package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +1 -1
  203. package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +10 -7
  204. package/src/components/MessageList/Message/LocationMessage/LocationMessage.vue +3 -1
  205. package/src/components/MessageList/Message/MergerMessage/MergerMessage.vue +1 -1
  206. package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +2 -2
  207. package/src/components/MessageList/MessageForward/MessageForward.vue +3 -3
  208. package/src/components/MessageList/MessageList.vue +17 -5
  209. package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
  210. package/src/components/MessageList/index.ts +5 -4
  211. package/src/components/Search/Search.scss +0 -3
  212. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
  213. package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
  214. package/src/components/Search/SearchResults/SearchResults.scss +7 -16
  215. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -11
  216. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +5 -11
  217. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +5 -11
  218. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +0 -3
  219. package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +5 -6
  220. package/src/components/StreamMixer/LocalMixer/index.vue +9 -4
  221. package/src/components/StreamView/manager/mediaManager.ts +1 -1
  222. package/src/components/UserPicker/UserPicker.vue +6 -9
  223. package/src/components/UserPicker/components/ListMode/ListMode.vue +3 -7
  224. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +2 -2
  225. package/src/components/UserPicker/components/TreeMode/TreeMode.vue +3 -3
  226. package/src/components/UserPicker/components/TreeMode/TreeNode.vue +3 -3
  227. package/src/components/UserPicker/hooks/useSearchFilter.ts +15 -14
  228. package/src/components/UserPicker/hooks/useSelection.ts +32 -32
  229. package/src/components/UserPicker/hooks/useTreeState.ts +4 -4
  230. package/src/components/UserPicker/index.ts +16 -14
  231. package/src/components/UserPicker/type.ts +18 -18
  232. package/src/types/contact.ts +13 -12
  233. package/src/types/conversation.ts +12 -14
  234. package/src/types/engine.ts +15 -0
  235. package/src/utils/json.ts +0 -4
  236. package/dist/AttachmentPicker.module-0_DWsAtr.js +0 -11
  237. package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js +0 -72
  238. package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js +0 -72
  239. package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js +0 -72
  240. package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +0 -15
  241. package/dist/states/UIOpenControlState/UIOpenControlState.js +0 -28
  242. package/dist/states/UIOpenControlState/index.d.ts +0 -1
  243. package/dist/states/UIOpenControlState/index.js +0 -4
@@ -1,12 +1,9 @@
1
- import { default as default2 } from "./ChatSetting.js";
1
+ import ChatSettingComponent from "./ChatSetting.js";
2
2
  import { addI18n } from "../../i18n/index.js";
3
3
  import { resources } from "./i18n/index.js";
4
- import { default as default3 } from "./C2CChatSetting/C2CChatSetting.js";
5
- import { default as default4 } from "./GroupChatSetting/GroupChatSetting.js";
6
4
  addI18n("zh-CN", { translation: { ChatSetting: resources["zh-CN"] } });
7
5
  addI18n("en-US", { translation: { ChatSetting: resources["en-US"] } });
6
+ const ChatSetting = ChatSettingComponent;
8
7
  export {
9
- default3 as C2CChatSetting,
10
- default2 as ChatSetting,
11
- default4 as GroupChatSetting
8
+ ChatSetting
12
9
  };
@@ -204,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
204
  };
205
205
  }
206
206
  });
207
- const CoGuestPanelPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cf671eb6"]]);
207
+ const CoGuestPanelPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7e1e8cab"]]);
208
208
  export {
209
209
  CoGuestPanelPC as default
210
210
  };
@@ -26,14 +26,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  __name: "ContactInfo",
27
27
  props: {
28
28
  contactItem: {},
29
- PlaceholderEmpty: {},
30
- FriendInfoComponent: {},
31
- GroupInfoComponent: {},
32
- BlacklistInfoComponent: {},
33
- FriendApplicationInfoComponent: {},
34
- GroupApplicationInfoComponent: {},
35
- SearchGroupInfoComponent: {},
36
- SearchUserInfoComponent: {},
29
+ PlaceholderEmpty: { default: void 0 },
30
+ FriendInfoComponent: { default: void 0 },
31
+ GroupInfoComponent: { default: void 0 },
32
+ BlacklistInfoComponent: { default: void 0 },
33
+ FriendApplicationInfoComponent: { default: void 0 },
34
+ GroupApplicationInfoComponent: { default: void 0 },
35
+ SearchGroupInfoComponent: { default: void 0 },
36
+ SearchUserInfoComponent: { default: void 0 },
37
37
  onSendMessage: {},
38
38
  onDeleteFriend: {},
39
39
  onUpdateFriendRemark: {},
@@ -163,19 +163,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
163
  const getComponentByType = (type) => {
164
164
  switch (type) {
165
165
  case ContactItemType.FRIEND:
166
- return FriendInfo;
166
+ return props.FriendInfoComponent || FriendInfo;
167
167
  case ContactItemType.GROUP:
168
- return GroupInfo;
168
+ return props.GroupInfoComponent || GroupInfo;
169
169
  case ContactItemType.BLACK:
170
- return BlacklistInfo;
170
+ return props.BlacklistInfoComponent || BlacklistInfo;
171
171
  case ContactItemType.FRIEND_REQUEST:
172
- return FriendApplicationInfo;
172
+ return props.FriendApplicationInfoComponent || FriendApplicationInfo;
173
173
  case ContactItemType.GROUP_REQUEST:
174
- return GroupApplicationInfo;
174
+ return props.GroupApplicationInfoComponent || GroupApplicationInfo;
175
175
  case ContactItemType.SEARCH_USER:
176
- return SearchUserInfo;
176
+ return props.SearchUserInfoComponent || SearchUserInfo;
177
177
  case ContactItemType.SEARCH_GROUP:
178
- return SearchGroupInfo;
178
+ return props.SearchGroupInfoComponent || SearchGroupInfo;
179
179
  default:
180
180
  return "div";
181
181
  }
@@ -211,7 +211,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
211
211
  const handleDeleteFriend = (data) => emit("deleteFriend", data);
212
212
  const handleAddToBlacklist = (data) => emit("addToBlacklist", data);
213
213
  const handleRemoveFromBlacklist = (data) => emit("removeFromBlacklist", data);
214
- const handleUpdateFriendRemark = (data) => emit("updateFriendRemark", data);
214
+ const handleUpdateFriendRemark = (data, remark) => emit("updateFriendRemark", data, remark);
215
215
  const handleEnterGroup = (data) => emit("enterGroup", data);
216
216
  const handleLeaveGroup = (data) => emit("leaveGroup", data);
217
217
  const handleDismissGroup = (data) => emit("dismissGroup", data);
@@ -251,7 +251,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
251
251
  };
252
252
  }
253
253
  });
254
- const ContactInfoComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8050fa88"]]);
254
+ const ContactInfoComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb24453c"]]);
255
255
  export {
256
256
  ContactInfoComponent as default
257
257
  };
@@ -3,6 +3,14 @@ import { ContactInfoProps, FriendApplication, GroupApplication } from '../../../
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactInfoProps>, {
5
5
  showActions: boolean;
6
+ PlaceholderEmpty: undefined;
7
+ FriendInfoComponent: undefined;
8
+ GroupInfoComponent: undefined;
9
+ BlacklistInfoComponent: undefined;
10
+ FriendApplicationInfoComponent: undefined;
11
+ GroupApplicationInfoComponent: undefined;
12
+ SearchGroupInfoComponent: undefined;
13
+ SearchUserInfoComponent: undefined;
6
14
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
15
  close: () => void;
8
16
  sendMessage: (data: Friend) => void;
@@ -13,12 +21,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
21
  joinGroup: (data: GroupModel, note: string) => void;
14
22
  dismissGroup: (data: GroupModel) => void;
15
23
  friendApplicationAction: (action: "accept" | "refuse", application: FriendApplication) => void;
16
- updateFriendRemark: (data: Friend) => void;
24
+ updateFriendRemark: (data: Friend, remark: string) => void;
17
25
  groupApplicationAction: (action: "accept" | "refuse", application: GroupApplication) => void;
18
26
  enterGroup: (data: GroupModel) => void;
19
27
  leaveGroup: (data: GroupModel) => void;
20
28
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactInfoProps>, {
21
29
  showActions: boolean;
30
+ PlaceholderEmpty: undefined;
31
+ FriendInfoComponent: undefined;
32
+ GroupInfoComponent: undefined;
33
+ BlacklistInfoComponent: undefined;
34
+ FriendApplicationInfoComponent: undefined;
35
+ GroupApplicationInfoComponent: undefined;
36
+ SearchGroupInfoComponent: undefined;
37
+ SearchUserInfoComponent: undefined;
22
38
  }>>> & Readonly<{
23
39
  onClose?: (() => any) | undefined;
24
40
  onSendMessage?: ((data: Friend) => any) | undefined;
@@ -29,11 +45,19 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
45
  onJoinGroup?: ((data: GroupModel, note: string) => any) | undefined;
30
46
  onDismissGroup?: ((data: GroupModel) => any) | undefined;
31
47
  onFriendApplicationAction?: ((action: "accept" | "refuse", application: FriendApplication) => any) | undefined;
32
- onUpdateFriendRemark?: ((data: Friend) => any) | undefined;
48
+ onUpdateFriendRemark?: ((data: Friend, remark: string) => any) | undefined;
33
49
  onGroupApplicationAction?: ((action: "accept" | "refuse", application: GroupApplication) => any) | undefined;
34
50
  onEnterGroup?: ((data: GroupModel) => any) | undefined;
35
51
  onLeaveGroup?: ((data: GroupModel) => any) | undefined;
36
52
  }>, {
53
+ PlaceholderEmpty: import('vue').Component;
54
+ FriendInfoComponent: import('vue').Component;
55
+ GroupInfoComponent: import('vue').Component;
56
+ BlacklistInfoComponent: import('vue').Component;
57
+ FriendApplicationInfoComponent: import('vue').Component;
58
+ GroupApplicationInfoComponent: import('vue').Component;
59
+ SearchGroupInfoComponent: import('vue').Component;
60
+ SearchUserInfoComponent: import('vue').Component;
37
61
  showActions: boolean;
38
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
63
  export default _default;
@@ -131,6 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
131
  _: 1
132
132
  }),
133
133
  createVNode(unref(TUIDialog), {
134
+ appendTo: "body",
134
135
  visible: visible.value,
135
136
  title: canDismissGroup.value ? unref(t)("TUIContact.Confirm dismiss group") : unref(t)("TUIContact.Confirm quit group"),
136
137
  "confirm-text": unref(t)("TUIContact.Submit"),
@@ -148,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
149
  };
149
150
  }
150
151
  });
151
- const GroupInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f45a224"]]);
152
+ const GroupInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce333195"]]);
152
153
  export {
153
154
  GroupInfo as default
154
155
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent, computed, watch, ref, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, unref, Fragment, renderList, resolveDynamicComponent, withKeys, createVNode, normalizeClass, toDisplayString } from "vue";
1
+ import { defineComponent, computed, watch, ref, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, unref, Fragment, renderList, withKeys, createVNode, normalizeClass, toDisplayString } from "vue";
2
2
  import { useUIKit, IconArrowStrokeSelectDown } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { ContactItemType } from "../../types/contact.js";
4
4
  import { UNREAD_COUNT_LIMIT } from "./constants/const.js";
5
- import { useContactListState } from "../../states/ContactListState/ContactListState.js";
6
5
  import ContactSearch from "./ContactSearch/ContactSearch.js";
7
6
  import { ContactListItem as _sfc_main$1 } from "./ContactListItem/index.js";
7
+ import { useContactListState } from "../../states/ContactListState/ContactListState.js";
8
8
  import { useContactList } from "./hooks/useContactList.js";
9
9
  import { _ as _export_sfc } from "../../_plugin-vue_export-helper-1tPrXgE0.js";
10
10
  const _hoisted_1 = { class: "contact-list" };
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  groupConfig: {},
36
36
  searchPlaceholder: { default: void 0 },
37
37
  emptyText: { default: void 0 },
38
- ContactItem: {},
39
- ContactSearchComponent: {},
40
- GroupHeader: {},
41
- PlaceholderEmptyList: {},
38
+ ContactItem: { default: () => _sfc_main$1 },
39
+ ContactSearchComponent: { default: () => ContactSearch },
40
+ GroupHeader: { default: void 0 },
41
+ PlaceholderEmptyList: { default: () => void 0 },
42
42
  onContactItemClick: {},
43
43
  onFriendApplicationAction: {},
44
44
  onGroupApplicationAction: {}
@@ -108,6 +108,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
108
108
  const contactGroupItem = { type, data: item };
109
109
  emit("contact-item-click", contactGroupItem);
110
110
  setActiveContact(contactGroupItem);
111
+ if (props.onContactItemClick) {
112
+ props.onContactItemClick(contactGroupItem);
113
+ }
111
114
  };
112
115
  const handleFriendApplicationAction = async (action, application) => {
113
116
  try {
@@ -120,6 +123,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
123
  await refuseFriendApplication(application.userID);
121
124
  }
122
125
  emit("friend-application-action", action, application);
126
+ if (props.onFriendApplicationAction) {
127
+ props.onFriendApplicationAction(action, application);
128
+ }
123
129
  } catch (error) {
124
130
  console.error(`[ContactList handleFriendApplicationAction] Failed to ${action} friend application:`, error);
125
131
  }
@@ -136,6 +142,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
142
  await refuseGroupApplication(params);
137
143
  }
138
144
  emit("group-application-action", action, application);
145
+ if (props.onGroupApplicationAction) {
146
+ props.onGroupApplicationAction(action, application);
147
+ }
139
148
  } catch (error) {
140
149
  console.error(`[ContactList handleGroupApplicationAction] Failed to ${action} group application:`, error);
141
150
  }
@@ -211,13 +220,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
211
220
  return openBlock(), createElementBlock("div", _hoisted_1, [
212
221
  createElementVNode("div", _hoisted_2, [
213
222
  createElementVNode("div", _hoisted_3, [
214
- _ctx.enableSearch ? (openBlock(), createBlock(unref(ContactSearch), {
223
+ _ctx.enableSearch ? (openBlock(), createBlock(resolveDynamicComponent(unref(ContactSearch)), {
215
224
  key: 0,
216
225
  placeholder: searchPlaceholder.value,
217
226
  onResultClick: _cache[0] || (_cache[0] = (item) => {
218
227
  handleContactClick(item.type, item.data);
219
228
  })
220
- }, null, 8, ["placeholder"])) : createCommentVNode("", true),
229
+ }, null, 40, ["placeholder"])) : createCommentVNode("", true),
221
230
  createElementVNode("div", _hoisted_4, [
222
231
  contactGroups.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(contactGroups.value, (group) => {
223
232
  return openBlock(), createElementBlock("div", {
@@ -252,7 +261,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
252
261
  ], 40, _hoisted_5)),
253
262
  group.isExpanded ? (openBlock(), createElementBlock("div", _hoisted_9, [
254
263
  (openBlock(true), createElementBlock(Fragment, null, renderList(group.items, (contactItem, index) => {
255
- return openBlock(), createBlock(resolveDynamicComponent(unref(_sfc_main$1)), {
264
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.ContactItem), {
256
265
  key: `${group.type}_${getItemId(contactItem)}_${index}`,
257
266
  "contact-item": { type: group.type, data: contactItem },
258
267
  "active-contact-item": unref(activeContact),
@@ -275,7 +284,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
275
284
  };
276
285
  }
277
286
  });
278
- const ContactListComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67413a61"]]);
287
+ const ContactListComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f5c94dad"]]);
279
288
  export {
280
289
  ContactListComponent as default
281
290
  };
@@ -1,9 +1,61 @@
1
- import { ContactGroupItem, FriendApplication, GroupApplication, ContactListProps } from '../../types/contact';
1
+ import { ContactItemType, ContactGroupItem, FriendApplication, GroupApplication, ContactListProps, ContactItem } from '../../types/contact';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactListProps>, {
4
4
  enableSearch: boolean;
5
5
  searchPlaceholder: undefined;
6
6
  emptyText: undefined;
7
+ ContactItem: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ onClick: {
9
+ type: import('vue').PropType<(type: ContactItemType, item: ContactItem) => void>;
10
+ };
11
+ contactItem: {
12
+ type: import('vue').PropType<ContactGroupItem>;
13
+ required: true;
14
+ };
15
+ onFriendApplicationAction: {
16
+ type: import('vue').PropType<(action: "accept" | "refuse", application: FriendApplication) => void>;
17
+ };
18
+ onGroupApplicationAction: {
19
+ type: import('vue').PropType<(action: "accept" | "refuse", application: GroupApplication) => void>;
20
+ };
21
+ activeContactItem: {
22
+ type: import('vue').PropType<ContactGroupItem>;
23
+ };
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ click: (type: ContactItemType, item: any) => void;
26
+ "friend-application-action": (action: "accept" | "refuse", application: FriendApplication) => void;
27
+ "group-application-action": (action: "accept" | "refuse", application: GroupApplication) => void;
28
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
+ onClick: {
30
+ type: import('vue').PropType<(type: ContactItemType, item: ContactItem) => void>;
31
+ };
32
+ contactItem: {
33
+ type: import('vue').PropType<ContactGroupItem>;
34
+ required: true;
35
+ };
36
+ onFriendApplicationAction: {
37
+ type: import('vue').PropType<(action: "accept" | "refuse", application: FriendApplication) => void>;
38
+ };
39
+ onGroupApplicationAction: {
40
+ type: import('vue').PropType<(action: "accept" | "refuse", application: GroupApplication) => void>;
41
+ };
42
+ activeContactItem: {
43
+ type: import('vue').PropType<ContactGroupItem>;
44
+ };
45
+ }>> & Readonly<{
46
+ onClick?: ((type: ContactItemType, item: any) => any) | undefined;
47
+ "onFriend-application-action"?: ((action: "accept" | "refuse", application: FriendApplication) => any) | undefined;
48
+ "onGroup-application-action"?: ((action: "accept" | "refuse", application: GroupApplication) => any) | undefined;
49
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
+ ContactSearchComponent: () => import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ "result-click": (item: any) => void;
52
+ "keyword-change": (keyword: string) => void;
53
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
54
+ "onResult-click"?: ((item: any) => any) | undefined;
55
+ "onKeyword-change"?: ((keyword: string) => any) | undefined;
56
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
57
+ GroupHeader: undefined;
58
+ PlaceholderEmptyList: () => undefined;
7
59
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
60
  "friend-application-action": (action: "accept" | "refuse", application: FriendApplication) => void;
9
61
  "group-application-action": (action: "accept" | "refuse", application: GroupApplication) => void;
@@ -12,6 +64,58 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
64
  enableSearch: boolean;
13
65
  searchPlaceholder: undefined;
14
66
  emptyText: undefined;
67
+ ContactItem: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
68
+ onClick: {
69
+ type: import('vue').PropType<(type: ContactItemType, item: ContactItem) => void>;
70
+ };
71
+ contactItem: {
72
+ type: import('vue').PropType<ContactGroupItem>;
73
+ required: true;
74
+ };
75
+ onFriendApplicationAction: {
76
+ type: import('vue').PropType<(action: "accept" | "refuse", application: FriendApplication) => void>;
77
+ };
78
+ onGroupApplicationAction: {
79
+ type: import('vue').PropType<(action: "accept" | "refuse", application: GroupApplication) => void>;
80
+ };
81
+ activeContactItem: {
82
+ type: import('vue').PropType<ContactGroupItem>;
83
+ };
84
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
85
+ click: (type: ContactItemType, item: any) => void;
86
+ "friend-application-action": (action: "accept" | "refuse", application: FriendApplication) => void;
87
+ "group-application-action": (action: "accept" | "refuse", application: GroupApplication) => void;
88
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
89
+ onClick: {
90
+ type: import('vue').PropType<(type: ContactItemType, item: ContactItem) => void>;
91
+ };
92
+ contactItem: {
93
+ type: import('vue').PropType<ContactGroupItem>;
94
+ required: true;
95
+ };
96
+ onFriendApplicationAction: {
97
+ type: import('vue').PropType<(action: "accept" | "refuse", application: FriendApplication) => void>;
98
+ };
99
+ onGroupApplicationAction: {
100
+ type: import('vue').PropType<(action: "accept" | "refuse", application: GroupApplication) => void>;
101
+ };
102
+ activeContactItem: {
103
+ type: import('vue').PropType<ContactGroupItem>;
104
+ };
105
+ }>> & Readonly<{
106
+ onClick?: ((type: ContactItemType, item: any) => any) | undefined;
107
+ "onFriend-application-action"?: ((action: "accept" | "refuse", application: FriendApplication) => any) | undefined;
108
+ "onGroup-application-action"?: ((action: "accept" | "refuse", application: GroupApplication) => any) | undefined;
109
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
110
+ ContactSearchComponent: () => import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
111
+ "result-click": (item: any) => void;
112
+ "keyword-change": (keyword: string) => void;
113
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
114
+ "onResult-click"?: ((item: any) => any) | undefined;
115
+ "onKeyword-change"?: ((keyword: string) => any) | undefined;
116
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
117
+ GroupHeader: undefined;
118
+ PlaceholderEmptyList: () => undefined;
15
119
  }>>> & Readonly<{
16
120
  "onFriend-application-action"?: ((action: "accept" | "refuse", application: FriendApplication) => any) | undefined;
17
121
  "onGroup-application-action"?: ((action: "accept" | "refuse", application: GroupApplication) => any) | undefined;
@@ -20,6 +124,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
124
  enableSearch: boolean;
21
125
  searchPlaceholder: string;
22
126
  emptyText: string;
127
+ ContactItem: import('vue').Component;
128
+ ContactSearchComponent: import('vue').Component;
129
+ GroupHeader: import('vue').Component;
130
+ PlaceholderEmptyList: import('vue').Component;
23
131
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
132
  export default _default;
25
133
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;