tuikit-atomicx-vue3 4.3.1 → 4.4.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 (113) hide show
  1. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js} +31 -31
  2. package/dist/chat/index.d.ts +35 -35
  3. package/dist/chat/server.js +15 -15
  4. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
  5. package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
  6. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  7. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
  8. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
  9. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
  10. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  11. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
  12. package/dist/components/ContactList/ContactList.js +7 -7
  13. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
  14. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
  15. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
  16. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
  17. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
  18. package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
  19. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
  20. package/dist/components/ConversationList/ConversationList.js +4 -4
  21. package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
  22. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
  23. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
  24. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
  25. package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
  26. package/dist/components/ConversationList/index.d.ts +30 -30
  27. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
  28. package/dist/components/MessageInput/MessageInput.js +1 -1
  29. package/dist/components/MessageInput/MessageInput.vue.d.ts +2 -2
  30. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
  31. package/dist/components/MessageInput/TextEditor/EditorCore.js +23 -21
  32. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
  33. package/dist/components/MessageInput/TextEditor/index.js +32 -31
  34. package/dist/components/MessageInput/index.d.ts +6 -6
  35. package/dist/components/MessageInput/index.js +1 -1
  36. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
  37. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
  38. package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
  39. package/dist/components/MessageList/MessageList.js +8 -6
  40. package/dist/components/MessageList/index.d.ts +2 -2
  41. package/dist/hooks/useAudioControl.d.ts +3 -3
  42. package/dist/hooks/useAudioControl.js +32 -30
  43. package/dist/rtc/server.js +45 -40
  44. package/dist/states/LoginState.d.ts +23 -0
  45. package/dist/states/LoginState.js +34 -39
  46. package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
  47. package/dist/states/MessageInputState/MessageInputState.js +60 -59
  48. package/dist/states/MessageInputState/utils.d.ts +8 -1
  49. package/dist/states/MessageInputState/utils.js +30 -10
  50. package/dist/styles/index.css +1 -1
  51. package/dist/utils/call.js +1 -1
  52. package/package.json +1 -1
  53. package/src/chat/server.ts +0 -1
  54. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
  55. package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
  56. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
  57. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
  58. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
  59. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
  60. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
  61. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
  62. package/src/components/ContactList/ContactList.vue +1 -1
  63. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
  64. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
  65. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
  66. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
  67. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
  68. package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
  69. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -1
  70. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
  71. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
  72. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
  73. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
  74. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
  75. package/src/components/ConversationList/ConversationList.vue +2 -2
  76. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
  77. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
  78. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
  79. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
  80. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
  81. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
  82. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
  83. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
  84. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  85. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
  86. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
  87. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  88. package/src/components/MessageInput/MessageInput.vue +1 -1
  89. package/src/components/MessageInput/TextEditor/EditorCore.ts +4 -2
  90. package/src/components/MessageInput/TextEditor/TextEditor.vue +3 -4
  91. package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
  92. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +1 -1
  93. package/src/components/MessageList/Message/Message.vue +1 -1
  94. package/src/components/MessageList/MessageList.vue +2 -0
  95. package/src/components/Search/Search.vue +1 -1
  96. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
  97. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
  98. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
  99. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
  100. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
  101. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  102. package/src/components/Search/SearchBar/SearchBar.vue +1 -1
  103. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
  104. package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
  105. package/src/components/Search/SearchResults/SearchResults.vue +1 -1
  106. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  107. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
  108. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  109. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
  110. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  111. package/src/hooks/useAudioControl.ts +17 -4
  112. package/src/rtc/server.ts +4 -0
  113. package/src/utils/call.ts +2 -2
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as N, ref as _, computed as h, createElementBlock as d, openBlock as g, createElementVNode as a, createCommentVNode as x, createVNode as v, toDisplayString as t, unref as e, normalizeClass as A, withDirectives as w, vModelText as M, withCtx as S, createTextVNode as k } from "vue";
2
2
  import i from "@tencentcloud/chat-uikit-engine";
3
3
  import { useUIKit as R, TUIButton as D } from "@tencentcloud/uikit-base-component-vue3";
4
- import b from "../../../Avatar/Avatar.js";
4
+ import j from "../../../Avatar/Avatar.js";
5
5
  import { TEXTAREA_LENGTH_LIMIT as T } from "../../constants/const.js";
6
- import { useContactListState as j } from "../../../../states/ContactListState/ContactListState.js";
7
- import { _ as V } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-group-info__header" }, L = { class: "contact-search-group-info__main-info" }, O = { class: "contact-search-group-info__name" }, z = { class: "contact-search-group-info__id" }, H = { class: "contact-search-group-info__intro" }, J = { class: "contact-search-group-info__intro" }, K = {
6
+ import { useContactListState as V } from "../../../../states/ContactListState/ContactListState.js";
7
+ import { _ as Y } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const b = { class: "contact-search-group-info" }, B = { class: "contact-search-group-info__header" }, L = { class: "contact-search-group-info__main-info" }, O = { class: "contact-search-group-info__name" }, z = { class: "contact-search-group-info__id" }, H = { class: "contact-search-group-info__intro" }, J = { class: "contact-search-group-info__intro" }, K = {
9
9
  key: 1,
10
10
  class: "contact-search-group-info__form"
11
11
  }, W = { class: "contact-search-group-info__form-label" }, X = { class: "contact-search-group-info__form-input-wrapper" }, $ = ["placeholder", "maxlength"], q = { class: "contact-search-group-info__form-counter" }, F = {
@@ -21,7 +21,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
21
21
  },
22
22
  emits: ["joinGroup"],
23
23
  setup(c, { emit: I }) {
24
- const u = c, C = I, { t: o } = R(), { joinGroup: U } = j(), l = _(""), p = _(!1), n = _("idle"), f = _(""), m = h(() => u.group.name || u.group.groupID), G = h(() => [
24
+ const u = c, C = I, { t: o } = R(), { joinGroup: U } = V(), l = _(""), p = _(!1), n = _("idle"), f = _(""), m = h(() => u.group.name || u.group.groupID), G = h(() => [
25
25
  "contact-search-group-info__status",
26
26
  `contact-search-group-info__status--${n.value}`
27
27
  ]), y = (r) => {
@@ -56,7 +56,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
56
56
  p.value = !1;
57
57
  }
58
58
  };
59
- return (r, s) => (g(), d("div", Y, [
59
+ return (r, s) => (g(), d("div", b, [
60
60
  a("div", B, [
61
61
  a("div", L, [
62
62
  a("div", O, t(m.value), 1),
@@ -64,7 +64,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
64
64
  a("div", H, t(e(o)("TUIContact.Group type")) + ":" + t(y(c.group.type)), 1),
65
65
  a("div", J, t(e(o)("TUIContact.Group introduction")) + ":" + t(c.group.introduction || e(o)("TUIContact.No introduction")), 1)
66
66
  ]),
67
- v(e(b), {
67
+ v(e(j), {
68
68
  src: c.group.avatar,
69
69
  alt: m.value,
70
70
  size: "xl"
@@ -103,7 +103,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
103
103
  ])) : x("", !0)
104
104
  ]));
105
105
  }
106
- }), so = /* @__PURE__ */ V(Q, [["__scopeId", "data-v-2b2eb5ec"]]);
106
+ }), so = /* @__PURE__ */ Y(Q, [["__scopeId", "data-v-484352b6"]]);
107
107
  export {
108
108
  so as default
109
109
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as U, ref as d, computed as A, createElementBlock as u, openBlock as _, createElementVNode as s, createCommentVNode as x, createVNode as v, toDisplayString as e, unref as t, normalizeClass as w, withDirectives as k, vModelText as D, withCtx as F, createTextVNode as S } from "vue";
2
- import { useUIKit as N, TUIButton as E } from "@tencentcloud/uikit-base-component-vue3";
3
- import V from "../../../Avatar/Avatar.js";
2
+ import { useUIKit as N, TUIButton as b } from "@tencentcloud/uikit-base-component-vue3";
3
+ import E from "../../../Avatar/Avatar.js";
4
4
  import { TEXTAREA_LENGTH_LIMIT as p } from "../../constants/const.js";
5
- import { useContactListState as b } from "../../../../states/ContactListState/ContactListState.js";
5
+ import { useContactListState as V } from "../../../../states/ContactListState/ContactListState.js";
6
6
  import { _ as B } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const z = { class: "contact-search-user-info" }, L = { class: "contact-search-user-info__header" }, M = { class: "contact-search-user-info__main-info" }, W = { class: "contact-search-user-info__name" }, P = { class: "contact-search-user-info__id" }, q = { class: "contact-search-user-info__intro" }, G = {
8
8
  key: 1,
@@ -20,7 +20,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
20
20
  },
21
21
  emits: ["addFriend", "close"],
22
22
  setup(c, { emit: I }) {
23
- const r = c, g = I, { t: a } = N(), { addFriend: T } = b(), i = d(""), l = d(!1), o = d("idle"), f = d(""), h = A(() => r.user.nick || r.user.userID), C = async () => {
23
+ const r = c, g = I, { t: a } = N(), { addFriend: T } = V(), i = d(""), l = d(!1), o = d("idle"), f = d(""), h = A(() => r.user.nick || r.user.userID), C = async () => {
24
24
  if (l.value)
25
25
  return;
26
26
  l.value = !0, o.value = "idle", f.value = "";
@@ -45,7 +45,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
45
45
  s("div", P, e(t(a)("TUIContact.ID")) + ":" + e(c.user.userID), 1),
46
46
  s("div", q, e(t(a)("TUIContact.Personal signature")) + ":" + e(c.user.selfSignature || ""), 1)
47
47
  ]),
48
- v(t(V), {
48
+ v(t(E), {
49
49
  src: c.user.avatar,
50
50
  alt: h.value,
51
51
  size: "xl"
@@ -73,7 +73,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
73
73
  ])
74
74
  ])),
75
75
  c.showActions && o.value !== "success" ? (_(), u("div", $, [
76
- v(t(E), {
76
+ v(t(b), {
77
77
  type: "primary",
78
78
  size: "big",
79
79
  loading: l.value,
@@ -87,7 +87,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
87
87
  ])) : x("", !0)
88
88
  ]));
89
89
  }
90
- }), te = /* @__PURE__ */ B(j, [["__scopeId", "data-v-59ef3830"]]);
90
+ }), te = /* @__PURE__ */ B(j, [["__scopeId", "data-v-af3b5264"]]);
91
91
  export {
92
92
  te as default
93
93
  };
@@ -39,10 +39,10 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
39
39
  friendList: w,
40
40
  groupList: P,
41
41
  blackList: $,
42
- friendApplicationList: B,
43
- groupApplicationList: O,
42
+ friendApplicationList: b,
43
+ groupApplicationList: B,
44
44
  friendApplicationUnreadCount: E,
45
- acceptFriendApplication: b,
45
+ acceptFriendApplication: O,
46
46
  refuseFriendApplication: Q,
47
47
  acceptGroupApplication: K,
48
48
  refuseGroupApplication: M,
@@ -72,7 +72,7 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
72
72
  h("contact-item-click", t), T(t), i.onContactItemClick && i.onContactItemClick(t);
73
73
  }, j = async (e, o) => {
74
74
  try {
75
- e === "accept" ? await b({
75
+ e === "accept" ? await O({
76
76
  userID: o.userID,
77
77
  type: o.type
78
78
  }) : await Q(o.userID), h("friend-application-action", e, o), i.onFriendApplicationAction && i.onFriendApplicationAction(e, o);
@@ -107,14 +107,14 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
107
107
  {
108
108
  type: a.FRIEND_REQUEST,
109
109
  title: l.value[a.FRIEND_REQUEST],
110
- items: B.value,
110
+ items: b.value,
111
111
  unreadCount: E.value,
112
112
  order: 1
113
113
  },
114
114
  {
115
115
  type: a.GROUP_REQUEST,
116
116
  title: l.value[a.GROUP_REQUEST],
117
- items: O.value,
117
+ items: B.value,
118
118
  order: 2
119
119
  },
120
120
  {
@@ -213,7 +213,7 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
213
213
  ])
214
214
  ]));
215
215
  }
216
- }), Lt = /* @__PURE__ */ it(ht, [["__scopeId", "data-v-f5c94dad"]]);
216
+ }), Lt = /* @__PURE__ */ it(ht, [["__scopeId", "data-v-ba745c86"]]);
217
217
  export {
218
218
  Lt as default
219
219
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, computed as r, createElementBlock as m, openBlock as k, withKeys as l, normalizeClass as d, createElementVNode as i, createVNode as f, unref as p, toDisplayString as _ } from "vue";
1
+ import { defineComponent as n, computed as r, createElementBlock as m, openBlock as k, withKeys as l, normalizeClass as d, createElementVNode as c, createVNode as f, unref as p, toDisplayString as _ } from "vue";
2
2
  import v from "../../../Avatar/Avatar.js";
3
3
  import { _ as u } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__content" }, C = { class: "blacklist-item__name" }, I = /* @__PURE__ */ n({
@@ -10,13 +10,13 @@ const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__con
10
10
  },
11
11
  emits: ["click"],
12
12
  setup(e, { emit: s }) {
13
- const c = e, a = s, o = r(() => [
13
+ const i = e, a = s, o = r(() => [
14
14
  "blacklist-item",
15
15
  {
16
- "blacklist-item--active": c.isActive
16
+ "blacklist-item--active": i.isActive
17
17
  }
18
18
  ]), t = () => {
19
- a("click", c.profile);
19
+ a("click", i.profile);
20
20
  };
21
21
  return (B, y) => (k(), m("div", {
22
22
  class: d(o.value),
@@ -26,18 +26,18 @@ const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__con
26
26
  l(t, ["space"])
27
27
  ]
28
28
  }, [
29
- i("div", b, [
29
+ c("div", b, [
30
30
  f(p(v), {
31
31
  src: e.profile.avatar,
32
32
  alt: e.profile.nick || e.profile.userID
33
33
  }, null, 8, ["src", "alt"])
34
34
  ]),
35
- i("div", h, [
36
- i("div", C, _(e.profile.nick || e.profile.userID), 1)
35
+ c("div", h, [
36
+ c("div", C, _(e.profile.nick || e.profile.userID), 1)
37
37
  ])
38
38
  ], 34));
39
39
  }
40
- }), w = /* @__PURE__ */ u(I, [["__scopeId", "data-v-2ae9597c"]]);
40
+ }), w = /* @__PURE__ */ u(I, [["__scopeId", "data-v-ab6cc82a"]]);
41
41
  export {
42
42
  w as default
43
43
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as _, computed as A, createElementBlock as I, openBlock as u, withKeys as p, normalizeClass as v, createElementVNode as i, createVNode as l, unref as c, toDisplayString as a, withModifiers as h, withCtx as C, createTextVNode as k } from "vue";
1
+ import { defineComponent as f, computed as A, createElementBlock as I, openBlock as u, withKeys as p, normalizeClass as v, createElementVNode as i, createVNode as l, unref as c, toDisplayString as a, withModifiers as h, withCtx as C, createTextVNode as k } from "vue";
2
2
  import { useUIKit as y, TUIButton as x } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import w from "../../../Avatar/Avatar.js";
4
4
  import { useContactListState as B } from "../../../../states/ContactListState/ContactListState.js";
5
5
  import { _ as T } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplicationItem__content" }, F = { class: "friendApplicationItem__name" }, K = { class: "friendApplicationItem__text" }, N = { class: "friendApplicationItem__actions" }, V = /* @__PURE__ */ _({
6
+ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplicationItem__content" }, F = { class: "friendApplicationItem__name" }, K = { class: "friendApplicationItem__text" }, N = { class: "friendApplicationItem__actions" }, V = /* @__PURE__ */ f({
7
7
  __name: "FriendApplicationItem",
8
8
  props: {
9
9
  application: {},
@@ -20,7 +20,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
20
20
  }
21
21
  ]), n = () => {
22
22
  o("click", e.application);
23
- }, f = () => {
23
+ }, _ = () => {
24
24
  d(e.application), o("action", "accept", e.application);
25
25
  };
26
26
  return (g, z) => (u(), I("div", {
@@ -45,7 +45,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
45
45
  l(c(x), {
46
46
  type: "primary",
47
47
  size: "small",
48
- onClick: h(f, ["stop"])
48
+ onClick: h(_, ["stop"])
49
49
  }, {
50
50
  default: C(() => [
51
51
  k(a(c(s)("TUIContact.Agree")), 1)
@@ -55,7 +55,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
55
55
  ])
56
56
  ], 34));
57
57
  }
58
- }), R = /* @__PURE__ */ T(V, [["__scopeId", "data-v-c8f99e49"]]);
58
+ }), R = /* @__PURE__ */ T(V, [["__scopeId", "data-v-2e3117d1"]]);
59
59
  export {
60
60
  R as default
61
61
  };
@@ -19,7 +19,7 @@ const y = { class: "friend-item__avatar" }, p = { class: "friend-item__content"
19
19
  d("click", n.friend);
20
20
  };
21
21
  return (B, D) => {
22
- var c, r;
22
+ var r, c;
23
23
  return v(), f("div", {
24
24
  class: k(o.value),
25
25
  onClick: t,
@@ -31,16 +31,16 @@ const y = { class: "friend-item__avatar" }, p = { class: "friend-item__content"
31
31
  i("div", y, [
32
32
  u(_(C), {
33
33
  src: e.friend.avatar,
34
- alt: e.friend.remark || ((c = e.friend) == null ? void 0 : c.nick) || e.friend.userID
34
+ alt: e.friend.remark || ((r = e.friend) == null ? void 0 : r.nick) || e.friend.userID
35
35
  }, null, 8, ["src", "alt"])
36
36
  ]),
37
37
  i("div", p, [
38
- i("div", x, h(e.friend.remark || ((r = e.friend) == null ? void 0 : r.nick) || e.friend.userID), 1)
38
+ i("div", x, h(e.friend.remark || ((c = e.friend) == null ? void 0 : c.nick) || e.friend.userID), 1)
39
39
  ])
40
40
  ], 34);
41
41
  };
42
42
  }
43
- }), K = /* @__PURE__ */ I(A, [["__scopeId", "data-v-af605c50"]]);
43
+ }), F = /* @__PURE__ */ I(A, [["__scopeId", "data-v-0a8bf3bd"]]);
44
44
  export {
45
- K as default
45
+ F as default
46
46
  };
@@ -54,7 +54,7 @@ const V = { class: "groupApplicationItem__avatar" }, j = { class: "groupApplicat
54
54
  ])
55
55
  ], 34));
56
56
  }
57
- }), F = /* @__PURE__ */ K(S, [["__scopeId", "data-v-3454fabc"]]);
57
+ }), F = /* @__PURE__ */ K(S, [["__scopeId", "data-v-185beed6"]]);
58
58
  export {
59
59
  F as default
60
60
  };
@@ -37,7 +37,7 @@ const k = { class: "group-item__avatar" }, h = { class: "group-item__content" },
37
37
  ])
38
38
  ], 34));
39
39
  }
40
- }), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-35660a00"]]);
40
+ }), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-4dc91a15"]]);
41
41
  export {
42
42
  w as default
43
43
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as b, unref as c, toDisplayString as g, h as s } from "vue";
2
- import { useUIKit as E, IconSearchMore as U } from "@tencentcloud/uikit-base-component-vue3";
1
+ import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as g, unref as c, toDisplayString as E, h as s } from "vue";
2
+ import { useUIKit as U, IconSearchMore as b } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { useSearchState as w } from "../../../states/SearchState.js";
4
4
  import { Search as B, SearchBar as T } from "../../Search/index.js";
5
5
  import { VariantType as x } from "../../../types/search.js";
@@ -13,7 +13,7 @@ const K = {
13
13
  __name: "ContactSearch",
14
14
  emits: ["result-click", "keyword-change"],
15
15
  setup(G, { emit: m }) {
16
- const t = m, { t: n } = E(), { setKeyword: p } = w(), a = v(!1), d = (e, r) => {
16
+ const t = m, { t: n } = U(), { setKeyword: p } = w(), a = v(!1), d = (e, r) => {
17
17
  r === i.USER && t("result-click", {
18
18
  type: _.SEARCH_USER,
19
19
  data: e.profile
@@ -53,13 +53,13 @@ const K = {
53
53
  onClick: f
54
54
  }, [
55
55
  h("label", K, [
56
- b(c(U))
56
+ g(c(b))
57
57
  ]),
58
- h("span", P, g(c(n)("TUIContact.Add friend/group")), 1)
58
+ h("span", P, E(c(n)("TUIContact.Add friend/group")), 1)
59
59
  ]))
60
60
  ], 2));
61
61
  }
62
- }), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-891f06be"]]);
62
+ }), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-7c64a2df"]]);
63
63
  export {
64
64
  j as default
65
65
  };
@@ -59,9 +59,9 @@ const G = 20, pe = /* @__PURE__ */ Q({
59
59
  [t.USER_SELECT]: o("TUIConversation.Cancel"),
60
60
  [t.CREATE_DETAIL]: o("TUIConversation.Prev"),
61
61
  [t.GROUP_TYPE]: o("TUIConversation.Prev")
62
- }, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), j = I(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), z = (e) => {
62
+ }, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), $ = I(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), j = (e) => {
63
63
  v.value = e;
64
- }, H = async () => {
64
+ }, z = async () => {
65
65
  var r;
66
66
  const { userID: e } = l.value[0];
67
67
  T("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
@@ -71,7 +71,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
71
71
  } catch (a) {
72
72
  U.error({ message: a.message });
73
73
  }
74
- }, V = async () => {
74
+ }, H = async () => {
75
75
  var r;
76
76
  const e = {
77
77
  ...v.value,
@@ -86,16 +86,16 @@ const G = 20, pe = /* @__PURE__ */ Q({
86
86
  } catch (a) {
87
87
  U.error({ message: a.message });
88
88
  }
89
- }, $ = (e) => {
89
+ }, V = (e) => {
90
90
  var A, D;
91
- const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}、` + e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、");
91
+ const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}、${e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、")}`;
92
92
  return a.length >= G ? a.slice(0, G) : a;
93
93
  }, q = () => {
94
94
  if (l.value.length === 0) {
95
95
  U.error({ message: o("TUIConversation.Participant cannot be empty") });
96
96
  return;
97
97
  }
98
- c.value ? n.value === t.USER_SELECT ? (v.value.name = $(l.value), C(t.CREATE_DETAIL)) : n.value === t.CREATE_DETAIL ? (V(), f(!1)) : C(t.CREATE_DETAIL) : (H(), f(!1));
98
+ c.value ? n.value === t.USER_SELECT ? (v.value.name = V(l.value), C(t.CREATE_DETAIL)) : n.value === t.CREATE_DETAIL ? (H(), f(!1)) : C(t.CREATE_DETAIL) : (z(), f(!1));
99
99
  }, J = () => {
100
100
  n.value === t.USER_SELECT ? (f(!1), _()) : n.value === t.CREATE_DETAIL ? C(t.USER_SELECT) : n.value === t.GROUP_TYPE && C(t.CREATE_DETAIL);
101
101
  };
@@ -107,7 +107,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
107
107
  appendTo: "body",
108
108
  visible: m.value,
109
109
  title: M.value,
110
- "confirm-text": j.value,
110
+ "confirm-text": $.value,
111
111
  "cancel-text": F.value,
112
112
  "custom-classes": [p(re) ? "conversationCreate__dialog" : ""],
113
113
  onConfirm: q,
@@ -127,14 +127,14 @@ const G = 20, pe = /* @__PURE__ */ Q({
127
127
  "profile-list": l.value,
128
128
  "group-info": v.value,
129
129
  "set-page-state": C,
130
- onUpdateGroupInfo: z
130
+ onUpdateGroupInfo: j
131
131
  }, null, 8, ["page-state", "profile-list", "group-info"]))
132
132
  ]),
133
133
  _: 1
134
134
  }, 8, ["visible", "title", "confirm-text", "cancel-text", "custom-classes"])
135
135
  ], 2));
136
136
  }
137
- }), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-613043fc"]]);
137
+ }), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-4707a253"]]);
138
138
  export {
139
139
  Ge as default
140
140
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, ref as u, computed as C, watch as x, createElementBlock as S, openBlock as n, normalizeStyle as V, normalizeClass as E, unref as i, createBlock as s, createCommentVNode as f, resolveDynamicComponent as c, withCtx as A, Fragment as q, renderList as G } from "vue";
1
+ import { defineComponent as z, ref as C, computed as u, watch as x, createElementBlock as S, openBlock as n, normalizeStyle as V, normalizeClass as E, unref as i, createBlock as s, createCommentVNode as f, resolveDynamicComponent as c, withCtx as A, Fragment as q, renderList as G } from "vue";
2
2
  import J from "../Avatar/Avatar.js";
3
3
  import { useConversation as K } from "./hooks/useConversation.js";
4
4
  import Q from "./ConversationActions/ConversationActions.js";
@@ -46,12 +46,12 @@ const oe = /* @__PURE__ */ z({
46
46
  enableSearch: j,
47
47
  onBeforeCreateConversation: m,
48
48
  onConversationCreated: h
49
- } = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I = u([]), y = C(() => {
49
+ } = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I = C([]), y = u(() => {
50
50
  if (!l.value)
51
51
  return [];
52
52
  let e = l.value;
53
53
  return o.filter && typeof o.filter == "function" && (e = o.filter(e)), o.sort && typeof o.sort == "function" && (e = o.sort(e)), e;
54
- }), p = u(!1), d = u({}), L = C(() => $), b = C(() => j);
54
+ }), p = C(!1), d = C({}), L = u(() => $), b = u(() => j);
55
55
  w(L.value), H(b.value), x(
56
56
  () => [F, I.value],
57
57
  ([e, r]) => {
@@ -119,7 +119,7 @@ const oe = /* @__PURE__ */ z({
119
119
  Preview: t.Preview,
120
120
  ConversationActions: t.ConversationActions,
121
121
  "actions-config": d.value,
122
- onSelect: M
122
+ onSelectConversation: M
123
123
  }, null, 8, ["conversation", "enable-actions", "Avatar", "Preview", "ConversationActions", "actions-config"]))), 128))
124
124
  ]),
125
125
  _: 1
@@ -576,9 +576,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
576
576
  type: import('vue').PropType<ConversationActionsConfig>;
577
577
  };
578
578
  }>> & Readonly<{
579
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
579
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
580
580
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
581
- select: (conversation: ConversationModel) => void;
581
+ selectConversation: (conversation: ConversationModel) => void;
582
582
  }, import('vue').PublicProps, {
583
583
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
584
584
  isSelected: boolean;
@@ -911,7 +911,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
911
911
  type: import('vue').PropType<ConversationActionsConfig>;
912
912
  };
913
913
  }>> & Readonly<{
914
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
914
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
915
915
  }>, {}, {}, {}, {}, {
916
916
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
917
917
  isSelected: boolean;
@@ -1241,9 +1241,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1241
1241
  type: import('vue').PropType<ConversationActionsConfig>;
1242
1242
  };
1243
1243
  }>> & Readonly<{
1244
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
1244
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
1245
1245
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1246
- select: (conversation: ConversationModel) => void;
1246
+ selectConversation: (conversation: ConversationModel) => void;
1247
1247
  }, string, {
1248
1248
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
1249
1249
  isSelected: boolean;
@@ -4185,9 +4185,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
4185
4185
  type: import('vue').PropType<ConversationActionsConfig>;
4186
4186
  };
4187
4187
  }>> & Readonly<{
4188
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
4188
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
4189
4189
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4190
- select: (conversation: ConversationModel) => void;
4190
+ selectConversation: (conversation: ConversationModel) => void;
4191
4191
  }, import('vue').PublicProps, {
4192
4192
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4193
4193
  isSelected: boolean;
@@ -4520,7 +4520,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
4520
4520
  type: import('vue').PropType<ConversationActionsConfig>;
4521
4521
  };
4522
4522
  }>> & Readonly<{
4523
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
4523
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
4524
4524
  }>, {}, {}, {}, {}, {
4525
4525
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4526
4526
  isSelected: boolean;
@@ -4850,9 +4850,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
4850
4850
  type: import('vue').PropType<ConversationActionsConfig>;
4851
4851
  };
4852
4852
  }>> & Readonly<{
4853
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
4853
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
4854
4854
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4855
- select: (conversation: ConversationModel) => void;
4855
+ selectConversation: (conversation: ConversationModel) => void;
4856
4856
  }, string, {
4857
4857
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4858
4858
  isSelected: boolean;
@@ -323,9 +323,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
323
323
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
324
324
  };
325
325
  }>> & Readonly<{
326
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
326
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
327
327
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
328
- select: (conversation: ConversationModel) => void;
328
+ selectConversation: (conversation: ConversationModel) => void;
329
329
  }, import('vue').PublicProps, {
330
330
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
331
331
  isSelected: boolean;
@@ -658,7 +658,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
658
658
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
659
659
  };
660
660
  }>> & Readonly<{
661
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
661
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
662
662
  }>, {}, {}, {}, {}, {
663
663
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
664
664
  isSelected: boolean;
@@ -988,9 +988,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
988
988
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
989
989
  };
990
990
  }>> & Readonly<{
991
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
991
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
992
992
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
993
- select: (conversation: ConversationModel) => void;
993
+ selectConversation: (conversation: ConversationModel) => void;
994
994
  }, string, {
995
995
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
996
996
  isSelected: boolean;
@@ -1552,9 +1552,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1552
1552
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
1553
1553
  };
1554
1554
  }>> & Readonly<{
1555
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
1555
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
1556
1556
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1557
- select: (conversation: ConversationModel) => void;
1557
+ selectConversation: (conversation: ConversationModel) => void;
1558
1558
  }, import('vue').PublicProps, {
1559
1559
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
1560
1560
  isSelected: boolean;
@@ -1887,7 +1887,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1887
1887
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
1888
1888
  };
1889
1889
  }>> & Readonly<{
1890
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
1890
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
1891
1891
  }>, {}, {}, {}, {}, {
1892
1892
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
1893
1893
  isSelected: boolean;
@@ -2217,9 +2217,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
2217
2217
  type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
2218
2218
  };
2219
2219
  }>> & Readonly<{
2220
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
2220
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
2221
2221
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2222
- select: (conversation: ConversationModel) => void;
2222
+ selectConversation: (conversation: ConversationModel) => void;
2223
2223
  }, string, {
2224
2224
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
2225
2225
  isSelected: boolean;