tuikit-atomicx-vue3 3.3.0-beta.3 → 3.3.1
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.
- package/dist/AttachmentPicker.module-BesmtGyl.js +11 -0
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +76 -0
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +76 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js → MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js} +23 -18
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
- package/dist/chat/index.d.ts +3747 -2386
- package/dist/chat/index.js +12 -11
- package/dist/components/BarrageInput/BarrageInputH5.js +32 -8
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -5
- package/dist/components/BarrageInput/TextEditor/index.js +14 -6
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +12 -4
- package/dist/components/BarrageList/i18n/en-US/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/en-US/index.js +2 -1
- package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/zh-CN/index.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +3 -3
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +21 -21
- package/dist/components/ChatSetting/i18n/en-US.js +3 -3
- package/dist/components/ChatSetting/i18n/zh-CN.js +3 -3
- package/dist/components/ChatSetting/index.d.ts +1 -4
- package/dist/components/ChatSetting/index.js +3 -6
- package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +17 -17
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +26 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +2 -1
- package/dist/components/ContactList/ContactList.js +19 -10
- package/dist/components/ContactList/ContactList.vue.d.ts +109 -1
- package/dist/components/ContactList/index.d.ts +158 -26
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +8 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +8 -8
- package/dist/components/ConversationList/ConversationList.js +18 -44
- package/dist/components/ConversationList/ConversationList.vue.d.ts +197 -1535
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +8 -11
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +80 -134
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +19 -30
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +0 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +12 -24
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/index.js +17 -21
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -0
- package/dist/components/ConversationList/index.d.ts +468 -2400
- package/dist/components/ConversationList/index.js +1 -1
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +1 -1
- package/dist/components/LiveCoreView/index.js +113 -58
- package/dist/components/LiveCoreView/index.vue.d.ts +9 -0
- package/dist/components/LiveList/LiveList.js +7 -5
- package/dist/components/LiveList/LiveListH5.js +77 -71
- package/dist/components/LiveList/i18n/en-US/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/en-US/index.js +6 -1
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/zh-CN/index.js +6 -1
- package/dist/components/LiveList/pullToRefresh.js +204 -0
- package/dist/components/LiveList/pullToRefresh.vue.d.ts +86 -0
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +6 -5
- package/dist/components/LiveScenePanel/index.js +3 -3
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +0 -4
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/index.js +14 -19
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +18 -9
- package/dist/components/MessageInput/index.d.ts +5 -41
- package/dist/components/MessageInput/index.js +4 -4
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +7 -5
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +2 -1
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +2 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +12 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +3 -3
- package/dist/components/MessageList/MessageForward/MessageForward.js +2 -3
- package/dist/components/MessageList/MessageList.js +14 -7
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
- package/dist/components/MessageList/index.d.ts +143 -5
- package/dist/components/MessageList/index.js +5 -5
- package/dist/components/Search/Search.js +1 -3
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +4 -6
- package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
- package/dist/components/Search/SearchResults/SearchResults.js +20 -22
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +6 -8
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +5 -7
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +19 -21
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +1 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +5 -7
- package/dist/components/StreamMixer/LocalMixer/index.js +11 -5
- package/dist/components/StreamView/manager/mediaManager.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/UserPicker.vue.d.ts +7 -8
- package/dist/components/UserPicker/components/ListMode/ListMode.js +14 -17
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.vue.d.ts +3 -3
- package/dist/components/UserPicker/components/TreeMode/TreeNode.vue.d.ts +4 -4
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +3 -3
- package/dist/components/UserPicker/hooks/useSelection.d.ts +8 -8
- package/dist/components/UserPicker/hooks/useTreeState.d.ts +3 -3
- package/dist/components/UserPicker/index.d.ts +134 -3
- package/dist/components/UserPicker/index.js +3 -2
- package/dist/components/UserPicker/type.d.ts +18 -18
- package/dist/index.js +6 -3
- package/dist/rtc/index.d.ts +9 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +3 -0
- package/dist/states/LoginState.js +1 -0
- package/dist/states/MessageInputState/MessageInputState.js +25 -5
- package/dist/styles/index.css +1294 -3578
- package/dist/types/contact.d.ts +13 -12
- package/dist/types/conversation.d.ts +12 -14
- package/dist/types/engine.d.ts +12 -0
- package/dist/types/engine.js +15 -0
- package/dist/types/index.js +2 -1
- package/dist/utils/json.js +0 -1
- package/package.json +7 -3
- package/src/chat/index.ts +12 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +50 -4
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/Editor.scss +1 -1
- package/src/components/BarrageInput/TextEditor/TextEditor.module.scss +2 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +6 -0
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +10 -0
- package/src/components/BarrageList/i18n/en-US/index.ts +1 -0
- package/src/components/BarrageList/i18n/zh-CN/index.ts +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +5 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -4
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +2 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +3 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +3 -3
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +10 -7
- package/src/components/ChatSetting/i18n/en-US.ts +3 -3
- package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
- package/src/components/ChatSetting/index.ts +3 -3
- package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +17 -9
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +4 -3
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +2 -2
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +3 -2
- package/src/components/ContactList/ContactList.scss +2 -1
- package/src/components/ContactList/ContactList.vue +18 -3
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +3 -3
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +2 -12
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +2 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +2 -1
- package/src/components/ConversationList/ConversationList.scss +0 -5
- package/src/components/ConversationList/ConversationList.vue +15 -41
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
- package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveCoreView/index.vue +145 -79
- package/src/components/LiveList/LiveList.vue +3 -0
- package/src/components/LiveList/LiveListH5.vue +60 -85
- package/src/components/LiveList/i18n/en-US/index.ts +5 -0
- package/src/components/LiveList/i18n/zh-CN/index.ts +5 -0
- package/src/components/LiveList/pullToRefresh.vue +364 -0
- package/src/components/LiveScenePanel/CameraSettingDialog.vue +6 -5
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.module.scss +4 -0
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +12 -17
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +3 -2
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +21 -15
- package/src/components/MessageInput/TextEditor/Editor.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +16 -6
- package/src/components/MessageInput/types.d.ts +3 -4
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +1 -1
- package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +10 -7
- package/src/components/MessageList/Message/LocationMessage/LocationMessage.vue +3 -1
- package/src/components/MessageList/Message/MergerMessage/MergerMessage.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +2 -2
- package/src/components/MessageList/MessageForward/MessageForward.vue +3 -3
- package/src/components/MessageList/MessageList.vue +17 -5
- package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
- package/src/components/MessageList/index.ts +5 -4
- package/src/components/Search/Search.scss +0 -3
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
- package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
- package/src/components/Search/SearchResults/SearchResults.scss +7 -16
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +0 -3
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +5 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +9 -4
- package/src/components/StreamView/manager/mediaManager.ts +1 -1
- package/src/components/UserPicker/UserPicker.vue +6 -9
- package/src/components/UserPicker/components/ListMode/ListMode.vue +3 -7
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +2 -2
- package/src/components/UserPicker/components/TreeMode/TreeMode.vue +3 -3
- package/src/components/UserPicker/components/TreeMode/TreeNode.vue +3 -3
- package/src/components/UserPicker/hooks/useSearchFilter.ts +15 -14
- package/src/components/UserPicker/hooks/useSelection.ts +32 -32
- package/src/components/UserPicker/hooks/useTreeState.ts +4 -4
- package/src/components/UserPicker/index.ts +16 -14
- package/src/components/UserPicker/type.ts +18 -18
- package/src/types/contact.ts +13 -12
- package/src/types/conversation.ts +12 -14
- package/src/types/engine.ts +15 -0
- package/src/utils/json.ts +0 -4
- package/dist/AttachmentPicker.module-0_DWsAtr.js +0 -11
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js +0 -72
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js +0 -72
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js +0 -72
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +0 -15
- package/dist/states/UIOpenControlState/UIOpenControlState.js +0 -28
- package/dist/states/UIOpenControlState/index.d.ts +0 -1
- package/dist/states/UIOpenControlState/index.js +0 -4
|
@@ -176,10 +176,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const Search = "
|
|
179
|
+
const Search = "_Search_gblqf_1";
|
|
180
180
|
const style0 = {
|
|
181
|
-
"tui-theme-dark": "_tui-theme-dark_9g3ao_2",
|
|
182
|
-
"tui-theme-light": "_tui-theme-light_9g3ao_140",
|
|
183
181
|
Search
|
|
184
182
|
};
|
|
185
183
|
const cssModules = {
|
|
@@ -26,13 +26,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const SearchEmpty = "
|
|
30
|
-
const SearchEmpty__icon = "
|
|
31
|
-
const SearchEmpty__text = "
|
|
32
|
-
const SearchEmpty__title = "
|
|
29
|
+
const SearchEmpty = "_SearchEmpty_jaw56_1";
|
|
30
|
+
const SearchEmpty__icon = "_SearchEmpty__icon_jaw56_11";
|
|
31
|
+
const SearchEmpty__text = "_SearchEmpty__text_jaw56_17";
|
|
32
|
+
const SearchEmpty__title = "_SearchEmpty__title_jaw56_21";
|
|
33
33
|
const style0 = {
|
|
34
|
-
"tui-theme-dark": "_tui-theme-dark_1ldau_2",
|
|
35
|
-
"tui-theme-light": "_tui-theme-light_1ldau_140",
|
|
36
34
|
SearchEmpty,
|
|
37
35
|
SearchEmpty__icon,
|
|
38
36
|
SearchEmpty__text,
|
|
@@ -13,12 +13,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
const SearchLoading = "
|
|
16
|
+
const SearchLoading = "_SearchLoading_1od6j_1";
|
|
17
17
|
const style0 = {
|
|
18
|
-
"tui-theme-dark": "_tui-theme-dark_14y18_2",
|
|
19
|
-
"tui-theme-light": "_tui-theme-light_14y18_140",
|
|
20
18
|
SearchLoading,
|
|
21
|
-
"SearchLoading-spin": "_SearchLoading-
|
|
19
|
+
"SearchLoading-spin": "_SearchLoading-spin_1od6j_1"
|
|
22
20
|
};
|
|
23
21
|
const cssModules = {
|
|
24
22
|
"$style": style0
|
|
@@ -392,33 +392,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
|
-
const SearchResults = "
|
|
396
|
-
const SearchResults__list = "
|
|
397
|
-
const SearchResults__error = "
|
|
398
|
-
const SearchResults__highlight = "
|
|
395
|
+
const SearchResults = "_SearchResults_17oxs_12";
|
|
396
|
+
const SearchResults__list = "_SearchResults__list_17oxs_67";
|
|
397
|
+
const SearchResults__error = "_SearchResults__error_17oxs_85";
|
|
398
|
+
const SearchResults__highlight = "_SearchResults__highlight_17oxs_111";
|
|
399
399
|
const style0 = {
|
|
400
|
-
"tui-theme-dark": "_tui-theme-dark_o1nv0_2",
|
|
401
|
-
"tui-theme-light": "_tui-theme-light_o1nv0_140",
|
|
402
400
|
SearchResults,
|
|
403
|
-
"SearchResults__section-header": "_SearchResults__section-
|
|
404
|
-
"SearchResults__item-border": "_SearchResults__item-
|
|
405
|
-
"SearchResults__load-more-button": "_SearchResults__load-more-
|
|
401
|
+
"SearchResults__section-header": "_SearchResults__section-header_17oxs_22",
|
|
402
|
+
"SearchResults__item-border": "_SearchResults__item-border_17oxs_39",
|
|
403
|
+
"SearchResults__load-more-button": "_SearchResults__load-more-button_17oxs_52",
|
|
406
404
|
SearchResults__list,
|
|
407
405
|
SearchResults__error,
|
|
408
|
-
"SearchResults__load-more-container": "_SearchResults__load-more-
|
|
409
|
-
"SearchResults__load-more-error": "_SearchResults__load-more-
|
|
410
|
-
"SearchResults__section-header-title": "_SearchResults__section-header-
|
|
406
|
+
"SearchResults__load-more-container": "_SearchResults__load-more-container_17oxs_91",
|
|
407
|
+
"SearchResults__load-more-error": "_SearchResults__load-more-error_17oxs_98",
|
|
408
|
+
"SearchResults__section-header-title": "_SearchResults__section-header-title_17oxs_104",
|
|
411
409
|
SearchResults__highlight,
|
|
412
|
-
"SearchResults__item--active": "_SearchResults__item--
|
|
413
|
-
"SearchResults__section-header-action": "_SearchResults__section-header-
|
|
414
|
-
"SearchResults--embedded": "_SearchResults--
|
|
415
|
-
"SearchResults__message-detail-page": "_SearchResults__message-detail-
|
|
416
|
-
"SearchResults__message-detail-header": "_SearchResults__message-detail-
|
|
417
|
-
"SearchResults__message-detail-title": "_SearchResults__message-detail-
|
|
418
|
-
"SearchResults__message-detail-content": "_SearchResults__message-detail-
|
|
419
|
-
"SearchResults__result-section": "_SearchResults__result-
|
|
420
|
-
"SearchResults__result-items": "_SearchResults__result-
|
|
421
|
-
"SearchResults__section-footer": "_SearchResults__section-
|
|
410
|
+
"SearchResults__item--active": "_SearchResults__item--active_17oxs_116",
|
|
411
|
+
"SearchResults__section-header-action": "_SearchResults__section-header-action_17oxs_120",
|
|
412
|
+
"SearchResults--embedded": "_SearchResults--embedded_17oxs_131",
|
|
413
|
+
"SearchResults__message-detail-page": "_SearchResults__message-detail-page_17oxs_139",
|
|
414
|
+
"SearchResults__message-detail-header": "_SearchResults__message-detail-header_17oxs_151",
|
|
415
|
+
"SearchResults__message-detail-title": "_SearchResults__message-detail-title_17oxs_162",
|
|
416
|
+
"SearchResults__message-detail-content": "_SearchResults__message-detail-content_17oxs_175",
|
|
417
|
+
"SearchResults__result-section": "_SearchResults__result-section_17oxs_190",
|
|
418
|
+
"SearchResults__result-items": "_SearchResults__result-items_17oxs_195",
|
|
419
|
+
"SearchResults__section-footer": "_SearchResults__section-footer_17oxs_200"
|
|
422
420
|
};
|
|
423
421
|
const cssModules = {
|
|
424
422
|
"$style": style0
|
|
@@ -82,15 +82,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
const conversationItem = "
|
|
86
|
-
const avatarWrapper = "
|
|
87
|
-
const conversationContent = "
|
|
88
|
-
const conversationHeader = "
|
|
89
|
-
const name = "
|
|
90
|
-
const showText = "
|
|
85
|
+
const conversationItem = "_conversationItem_1211h_12";
|
|
86
|
+
const avatarWrapper = "_avatarWrapper_1211h_19";
|
|
87
|
+
const conversationContent = "_conversationContent_1211h_23";
|
|
88
|
+
const conversationHeader = "_conversationHeader_1211h_29";
|
|
89
|
+
const name = "_name_1211h_36";
|
|
90
|
+
const showText = "_showText_1211h_46";
|
|
91
91
|
const style0 = {
|
|
92
|
-
"tui-theme-dark": "_tui-theme-dark_nedju_2",
|
|
93
|
-
"tui-theme-light": "_tui-theme-light_nedju_140",
|
|
94
92
|
conversationItem,
|
|
95
93
|
avatarWrapper,
|
|
96
94
|
conversationContent,
|
|
@@ -53,14 +53,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
const SearchGroup = "
|
|
57
|
-
const SearchGroup__avatar = "
|
|
58
|
-
const SearchGroup__info = "
|
|
59
|
-
const SearchGroup__name = "
|
|
60
|
-
const SearchGroup__intro = "
|
|
56
|
+
const SearchGroup = "_SearchGroup_1672l_12";
|
|
57
|
+
const SearchGroup__avatar = "_SearchGroup__avatar_1672l_19";
|
|
58
|
+
const SearchGroup__info = "_SearchGroup__info_1672l_27";
|
|
59
|
+
const SearchGroup__name = "_SearchGroup__name_1672l_33";
|
|
60
|
+
const SearchGroup__intro = "_SearchGroup__intro_1672l_45";
|
|
61
61
|
const style0 = {
|
|
62
|
-
"tui-theme-dark": "_tui-theme-dark_154yd_2",
|
|
63
|
-
"tui-theme-light": "_tui-theme-light_154yd_140",
|
|
64
62
|
SearchGroup,
|
|
65
63
|
SearchGroup__avatar,
|
|
66
64
|
SearchGroup__info,
|
|
@@ -271,36 +271,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
const SearchMessage = "
|
|
275
|
-
const SearchMessage__avatar = "
|
|
276
|
-
const SearchMessage__content = "
|
|
277
|
-
const SearchMessage__header = "
|
|
278
|
-
const SearchMessage__name = "
|
|
279
|
-
const SearchMessage__time = "
|
|
280
|
-
const SearchMessage__container = "
|
|
281
|
-
const SearchMessage__text = "
|
|
274
|
+
const SearchMessage = "_SearchMessage_r84bo_12";
|
|
275
|
+
const SearchMessage__avatar = "_SearchMessage__avatar_r84bo_19";
|
|
276
|
+
const SearchMessage__content = "_SearchMessage__content_r84bo_30";
|
|
277
|
+
const SearchMessage__header = "_SearchMessage__header_r84bo_36";
|
|
278
|
+
const SearchMessage__name = "_SearchMessage__name_r84bo_43";
|
|
279
|
+
const SearchMessage__time = "_SearchMessage__time_r84bo_53";
|
|
280
|
+
const SearchMessage__container = "_SearchMessage__container_r84bo_62";
|
|
281
|
+
const SearchMessage__text = "_SearchMessage__text_r84bo_91";
|
|
282
282
|
const style0 = {
|
|
283
|
-
"tui-theme-dark": "_tui-theme-dark_1vinh_2",
|
|
284
|
-
"tui-theme-light": "_tui-theme-light_1vinh_140",
|
|
285
283
|
SearchMessage,
|
|
286
|
-
"SearchMessage__avatar-wrapper": "_SearchMessage__avatar-
|
|
284
|
+
"SearchMessage__avatar-wrapper": "_SearchMessage__avatar-wrapper_r84bo_19",
|
|
287
285
|
SearchMessage__avatar,
|
|
288
286
|
SearchMessage__content,
|
|
289
287
|
SearchMessage__header,
|
|
290
288
|
SearchMessage__name,
|
|
291
289
|
SearchMessage__time,
|
|
292
290
|
SearchMessage__container,
|
|
293
|
-
"SearchMessage__container-action": "_SearchMessage__container-
|
|
294
|
-
"SearchMessage__container-content": "_SearchMessage__container-
|
|
291
|
+
"SearchMessage__container-action": "_SearchMessage__container-action_r84bo_67",
|
|
292
|
+
"SearchMessage__container-content": "_SearchMessage__container-content_r84bo_71",
|
|
295
293
|
SearchMessage__text,
|
|
296
|
-
"SearchMessage__emoji-img": "_SearchMessage__emoji-
|
|
297
|
-
"SearchMessage__image-thumb": "_SearchMessage__image-
|
|
298
|
-
"SearchMessage__video-thumb": "_SearchMessage__video-
|
|
299
|
-
"SearchMessage__play-icon": "_SearchMessage__play-
|
|
300
|
-
"SearchMessage__face-img": "_SearchMessage__face-
|
|
301
|
-
"SearchMessage__file-box": "_SearchMessage__file-
|
|
302
|
-
"SearchMessage__audio-box": "_SearchMessage__audio-
|
|
303
|
-
"SearchMessage__audio-icon": "_SearchMessage__audio-
|
|
294
|
+
"SearchMessage__emoji-img": "_SearchMessage__emoji-img_r84bo_103",
|
|
295
|
+
"SearchMessage__image-thumb": "_SearchMessage__image-thumb_r84bo_110",
|
|
296
|
+
"SearchMessage__video-thumb": "_SearchMessage__video-thumb_r84bo_118",
|
|
297
|
+
"SearchMessage__play-icon": "_SearchMessage__play-icon_r84bo_133",
|
|
298
|
+
"SearchMessage__face-img": "_SearchMessage__face-img_r84bo_142",
|
|
299
|
+
"SearchMessage__file-box": "_SearchMessage__file-box_r84bo_148",
|
|
300
|
+
"SearchMessage__audio-box": "_SearchMessage__audio-box_r84bo_155",
|
|
301
|
+
"SearchMessage__audio-icon": "_SearchMessage__audio-icon_r84bo_162"
|
|
304
302
|
};
|
|
305
303
|
const cssModules = {
|
|
306
304
|
"$style": style0
|
|
@@ -44,10 +44,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
const SearchResultsItem = "
|
|
47
|
+
const SearchResultsItem = "_SearchResultsItem_1vvfd_1";
|
|
48
48
|
const style0 = {
|
|
49
|
-
"tui-theme-dark": "_tui-theme-dark_1c1eu_2",
|
|
50
|
-
"tui-theme-light": "_tui-theme-light_1c1eu_140",
|
|
51
49
|
SearchResultsItem
|
|
52
50
|
};
|
|
53
51
|
const cssModules = {
|
|
@@ -79,14 +79,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
const SearchUser = "
|
|
83
|
-
const SearchUser__avatar = "
|
|
84
|
-
const SearchUser__profile = "
|
|
85
|
-
const SearchUser__nickname = "
|
|
86
|
-
const SearchUser__signature = "
|
|
82
|
+
const SearchUser = "_SearchUser_15dti_12";
|
|
83
|
+
const SearchUser__avatar = "_SearchUser__avatar_15dti_19";
|
|
84
|
+
const SearchUser__profile = "_SearchUser__profile_15dti_27";
|
|
85
|
+
const SearchUser__nickname = "_SearchUser__nickname_15dti_33";
|
|
86
|
+
const SearchUser__signature = "_SearchUser__signature_15dti_44";
|
|
87
87
|
const style0 = {
|
|
88
|
-
"tui-theme-dark": "_tui-theme-dark_vb7mm_2",
|
|
89
|
-
"tui-theme-light": "_tui-theme-light_vb7mm_140",
|
|
90
88
|
SearchUser,
|
|
91
89
|
SearchUser__avatar,
|
|
92
90
|
SearchUser__profile,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, onMounted,
|
|
1
|
+
import { defineComponent, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, unref, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import TUIRoomEngine, { TUIVideoQuality, TRTCVideoResolutionMode, TRTCVideoRotation } from "@tencentcloud/tuiroom-engine-js";
|
|
3
3
|
import { useUIKit } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
4
|
import { useRoomEngine } from "../../../hooks/useRoomEngine.js";
|
|
@@ -144,19 +144,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
TUIRoomEngine.once("ready", async () => {
|
|
145
145
|
var _a;
|
|
146
146
|
const mediaSourceManager = (_a = roomEngine.instance) == null ? void 0 : _a.getTRTCCloud().getMediaMixingManager();
|
|
147
|
-
await mediaSourceManager.
|
|
147
|
+
await mediaSourceManager.bindPreviewArea(document.getElementById("local-video-mixer"));
|
|
148
148
|
getMixControlStyle();
|
|
149
149
|
});
|
|
150
150
|
watch(localLiveStatus, async (newVal) => {
|
|
151
151
|
var _a;
|
|
152
|
+
const mediaSourceManager = (_a = roomEngine.instance) == null ? void 0 : _a.getTRTCCloud().getMediaMixingManager();
|
|
152
153
|
if (newVal === LiveStatus.Live) {
|
|
153
|
-
const mediaSourceManager = (_a = roomEngine.instance) == null ? void 0 : _a.getTRTCCloud().getMediaMixingManager();
|
|
154
154
|
await (mediaSourceManager == null ? void 0 : mediaSourceManager.startPublish());
|
|
155
155
|
}
|
|
156
|
+
if (newVal === LiveStatus.IDLE) {
|
|
157
|
+
await (mediaSourceManager == null ? void 0 : mediaSourceManager.stopPublish());
|
|
158
|
+
}
|
|
156
159
|
});
|
|
157
160
|
});
|
|
158
|
-
|
|
161
|
+
onBeforeUnmount(async () => {
|
|
162
|
+
var _a;
|
|
159
163
|
re.unobserve(localMixerRef.value);
|
|
164
|
+
const mediaSourceManager = (_a = roomEngine.instance) == null ? void 0 : _a.getTRTCCloud().getMediaMixingManager();
|
|
165
|
+
await (mediaSourceManager == null ? void 0 : mediaSourceManager.destroy());
|
|
160
166
|
});
|
|
161
167
|
return (_ctx, _cache) => {
|
|
162
168
|
return openBlock(), createElementBlock("div", {
|
|
@@ -182,7 +188,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
188
|
};
|
|
183
189
|
}
|
|
184
190
|
});
|
|
185
|
-
const LocalMixer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
191
|
+
const LocalMixer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9e8c1226"]]);
|
|
186
192
|
export {
|
|
187
193
|
LocalMixer as default
|
|
188
194
|
};
|
|
@@ -196,7 +196,7 @@ class MediaManager {
|
|
|
196
196
|
if (streamType === TUIVideoStreamType.kCameraStream) {
|
|
197
197
|
if (isVideoMixerEnabled.value) {
|
|
198
198
|
const mediaSourceManager = (_b = roomEngine.instance) == null ? void 0 : _b.getTRTCCloud().getMediaMixingManager();
|
|
199
|
-
mediaSourceManager.
|
|
199
|
+
mediaSourceManager.bindPreviewArea(document.getElementById(viewIdList[0]));
|
|
200
200
|
} else {
|
|
201
201
|
(_c = roomEngine.instance) == null ? void 0 : _c.setLocalVideoView({ view: viewIdList });
|
|
202
202
|
}
|
|
@@ -181,7 +181,7 @@ const style0 = {
|
|
|
181
181
|
const cssModules = {
|
|
182
182
|
"$style": style0
|
|
183
183
|
};
|
|
184
|
-
const
|
|
184
|
+
const UserPickerComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
185
185
|
export {
|
|
186
|
-
|
|
186
|
+
UserPickerComponent as default
|
|
187
187
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPickerProps, UserPickerNode, UserPickerRow } from './type';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UserPickerProps>, {
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UserPickerProps<unknown>>, {
|
|
5
4
|
dataSource: () => never[];
|
|
6
5
|
defaultSelectedItems: () => never[];
|
|
7
6
|
lockedItems: () => never[];
|
|
@@ -9,10 +8,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
8
|
minCount: number;
|
|
10
9
|
enableSearch: boolean;
|
|
11
10
|
}>>, {
|
|
12
|
-
getSelectedItems: () => import('./type').
|
|
13
|
-
updateListData: (newDataSource:
|
|
14
|
-
updateTreeData: (key: string, partialNewNode: Partial<
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UserPickerProps
|
|
11
|
+
getSelectedItems: () => import('./type').UserPickerResult<any>;
|
|
12
|
+
updateListData: (newDataSource: UserPickerRow<any>[]) => void;
|
|
13
|
+
updateTreeData: (key: string, partialNewNode: Partial<UserPickerNode<any>>) => void;
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UserPickerProps<unknown>>, {
|
|
16
15
|
dataSource: () => never[];
|
|
17
16
|
defaultSelectedItems: () => never[];
|
|
18
17
|
lockedItems: () => never[];
|
|
@@ -20,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
19
|
minCount: number;
|
|
21
20
|
enableSearch: boolean;
|
|
22
21
|
}>>> & Readonly<{}>, {
|
|
23
|
-
dataSource: import('./type').
|
|
22
|
+
dataSource: import('./type').UserPickerDataSource<unknown>;
|
|
24
23
|
maxCount: number;
|
|
25
24
|
minCount: number;
|
|
26
25
|
defaultSelectedItems: Array<{
|
|
@@ -62,10 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
createElementVNode("div", {
|
|
63
63
|
class: normalizeClass([_ctx.$style.list__checkbox, { [_ctx.$style["list__checkbox--checked"]]: isSelected(item.key) }])
|
|
64
64
|
}, [
|
|
65
|
-
isSelected(item.key) ? (openBlock(), createBlock(unref(IconCheckSm), {
|
|
66
|
-
key: 0,
|
|
67
|
-
name: "check"
|
|
68
|
-
})) : createCommentVNode("", true)
|
|
65
|
+
isSelected(item.key) ? (openBlock(), createBlock(unref(IconCheckSm), { key: 0 })) : createCommentVNode("", true)
|
|
69
66
|
], 2)
|
|
70
67
|
], 2),
|
|
71
68
|
_ctx.renderItem ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderItem), {
|
|
@@ -91,27 +88,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
88
|
};
|
|
92
89
|
}
|
|
93
90
|
});
|
|
94
|
-
const list__container = "
|
|
95
|
-
const list__item = "
|
|
96
|
-
const list__checkbox = "
|
|
97
|
-
const list__content = "
|
|
98
|
-
const list__avatar = "
|
|
99
|
-
const list__label = "
|
|
100
|
-
const list__empty = "
|
|
91
|
+
const list__container = "_list__container_101wg_1";
|
|
92
|
+
const list__item = "_list__item_101wg_21";
|
|
93
|
+
const list__checkbox = "_list__checkbox_101wg_42";
|
|
94
|
+
const list__content = "_list__content_101wg_59";
|
|
95
|
+
const list__avatar = "_list__avatar_101wg_65";
|
|
96
|
+
const list__label = "_list__label_101wg_68";
|
|
97
|
+
const list__empty = "_list__empty_101wg_84";
|
|
101
98
|
const style0 = {
|
|
102
99
|
list__container,
|
|
103
100
|
list__item,
|
|
104
|
-
"list__item--selected": "_list__item--
|
|
105
|
-
"list__item--locked": "_list__item--
|
|
106
|
-
"list__checkbox-wrapper": "_list__checkbox-
|
|
101
|
+
"list__item--selected": "_list__item--selected_101wg_32",
|
|
102
|
+
"list__item--locked": "_list__item--locked_101wg_38",
|
|
103
|
+
"list__checkbox-wrapper": "_list__checkbox-wrapper_101wg_42",
|
|
107
104
|
list__checkbox,
|
|
108
|
-
"list__checkbox--checked": "_list__checkbox--
|
|
105
|
+
"list__checkbox--checked": "_list__checkbox--checked_101wg_55",
|
|
109
106
|
list__content,
|
|
110
107
|
list__avatar,
|
|
111
108
|
list__label,
|
|
112
|
-
"list__load-more": "_list__load-
|
|
109
|
+
"list__load-more": "_list__load-more_101wg_76",
|
|
113
110
|
list__empty,
|
|
114
|
-
"list__end-marker": "_list__end-
|
|
111
|
+
"list__end-marker": "_list__end-marker_101wg_93"
|
|
115
112
|
};
|
|
116
113
|
const cssModules = {
|
|
117
114
|
"$style": style0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPickerRow } from '../../type';
|
|
2
2
|
|
|
3
3
|
interface ListModeProps<T = unknown> {
|
|
4
|
-
dataSource:
|
|
4
|
+
dataSource: UserPickerRow<T>[];
|
|
5
5
|
selectedKeys: Set<string>;
|
|
6
6
|
lockedKeys: Set<string>;
|
|
7
7
|
onItemClick: (key: string) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPickerResult } from '../../type';
|
|
2
2
|
|
|
3
3
|
interface SelectedPanelProps {
|
|
4
4
|
displayMode: 'list' | 'tree';
|
|
5
|
-
selectedItems:
|
|
5
|
+
selectedItems: UserPickerResult;
|
|
6
6
|
lockedKeys: Set<string>;
|
|
7
7
|
onRemove: (key: string) => void;
|
|
8
8
|
maxCount?: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPickerNode } from '../../type';
|
|
2
2
|
|
|
3
3
|
interface TreeModeProps<T = unknown> {
|
|
4
|
-
dataSource:
|
|
4
|
+
dataSource: UserPickerNode<T>[];
|
|
5
5
|
selectedKeys: Set<string>;
|
|
6
6
|
halfSelectedKeys: Set<string>;
|
|
7
7
|
lockedKeys: Set<string>;
|
|
8
8
|
expandedKeys: Set<string>;
|
|
9
9
|
loadingKeys: Set<string>;
|
|
10
10
|
onItemClick: (key: string) => void;
|
|
11
|
-
onExpand: (node:
|
|
11
|
+
onExpand: (node: UserPickerNode<T>) => void;
|
|
12
12
|
renderItem?: any;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TreeModeProps<unknown>>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TreeModeProps<unknown>>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPickerNode } from '../../type';
|
|
2
2
|
|
|
3
3
|
interface TreeNodeProps<T = unknown> {
|
|
4
|
-
node:
|
|
4
|
+
node: UserPickerNode<T>;
|
|
5
5
|
level: number;
|
|
6
6
|
selectedKeys: Set<string>;
|
|
7
7
|
halfSelectedKeys: Set<string>;
|
|
@@ -12,10 +12,10 @@ interface TreeNodeProps<T = unknown> {
|
|
|
12
12
|
}
|
|
13
13
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TreeNodeProps<unknown>>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
14
|
"item-click": (key: string) => void;
|
|
15
|
-
expand: (node:
|
|
15
|
+
expand: (node: UserPickerNode<any>) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TreeNodeProps<unknown>>>> & Readonly<{
|
|
17
17
|
"onItem-click"?: ((key: string) => any) | undefined;
|
|
18
|
-
onExpand?: ((node:
|
|
18
|
+
onExpand?: ((node: UserPickerNode<any>) => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { UserPickerDataSource } from '../type';
|
|
3
3
|
|
|
4
4
|
interface UseSearchFilterOptions<T = unknown> {
|
|
5
|
-
dataSource: Ref<
|
|
5
|
+
dataSource: Ref<UserPickerDataSource<T>>;
|
|
6
6
|
isTreeMode?: boolean;
|
|
7
7
|
onSearch?: (value: string) => void;
|
|
8
8
|
debounceTime?: number;
|
|
@@ -10,7 +10,7 @@ interface UseSearchFilterOptions<T = unknown> {
|
|
|
10
10
|
interface UseSearchFilterReturn<T = unknown> {
|
|
11
11
|
searchValue: Ref<string>;
|
|
12
12
|
setSearchValue: (value: string) => void;
|
|
13
|
-
filteredData: Ref<
|
|
13
|
+
filteredData: Ref<UserPickerDataSource<T>>;
|
|
14
14
|
isSearching: Ref<boolean>;
|
|
15
15
|
handleSearch: (value: string) => void;
|
|
16
16
|
clearSearch: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { UserPickerNode, UserPickerDataSource, UserPickerResult } from '../type';
|
|
3
3
|
|
|
4
4
|
interface UseSelectionOptions<T = unknown> {
|
|
5
5
|
defaultSelectedKeys?: string[];
|
|
@@ -7,9 +7,9 @@ interface UseSelectionOptions<T = unknown> {
|
|
|
7
7
|
maxCount?: number;
|
|
8
8
|
minCount?: number;
|
|
9
9
|
isTreeMode?: boolean;
|
|
10
|
-
dataSource: Ref<
|
|
11
|
-
onSelectedChange?: (selectedItems:
|
|
12
|
-
onMaxCountExceed?: (selectedItems:
|
|
10
|
+
dataSource: Ref<UserPickerDataSource<T>>;
|
|
11
|
+
onSelectedChange?: (selectedItems: UserPickerResult<T>) => void;
|
|
12
|
+
onMaxCountExceed?: (selectedItems: UserPickerResult<T>) => void;
|
|
13
13
|
}
|
|
14
14
|
interface UseSelectionReturn<T = unknown> {
|
|
15
15
|
selectedKeys: Ref<Set<string>>;
|
|
@@ -19,14 +19,14 @@ interface UseSelectionReturn<T = unknown> {
|
|
|
19
19
|
isHalfSelected: (key: string) => boolean;
|
|
20
20
|
isLocked: (key: string) => boolean;
|
|
21
21
|
toggle: (key: string) => void;
|
|
22
|
-
getSelectedItems: () =>
|
|
23
|
-
getNodeChildKeys: (node:
|
|
22
|
+
getSelectedItems: () => UserPickerResult<T>;
|
|
23
|
+
getNodeChildKeys: (node: UserPickerNode<T>) => string[];
|
|
24
24
|
getNodeParentChildrenMap: () => Map<string, string[]>;
|
|
25
25
|
canSelectMore: Ref<boolean>;
|
|
26
26
|
reachMaxCount: Ref<boolean>;
|
|
27
27
|
allSelectedCount: Ref<number>;
|
|
28
|
-
getSelectableLeafNodes: (nodeKey: string) =>
|
|
29
|
-
getCancelableLeafNodes: (nodeKey: string) =>
|
|
28
|
+
getSelectableLeafNodes: (nodeKey: string) => UserPickerNode<T>[];
|
|
29
|
+
getCancelableLeafNodes: (nodeKey: string) => UserPickerNode<T>[];
|
|
30
30
|
}
|
|
31
31
|
export declare function useSelection<T = unknown>({ defaultSelectedKeys, lockedKeys, maxCount, minCount, isTreeMode, dataSource, onSelectedChange, onMaxCountExceed, }: UseSelectionOptions<T>): UseSelectionReturn<T>;
|
|
32
32
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { UserPickerNode } from '../type';
|
|
3
3
|
|
|
4
4
|
interface UseTreeStateOptions<T = unknown> {
|
|
5
|
-
onExpand?: (node:
|
|
5
|
+
onExpand?: (node: UserPickerNode<T>) => void;
|
|
6
6
|
}
|
|
7
7
|
interface UseTreeStateReturn<T = unknown> {
|
|
8
8
|
expandedKeys: Ref<Set<string>>;
|
|
9
9
|
loadingKeys: Ref<Set<string>>;
|
|
10
10
|
checkNodeIsExpanded: (key: string) => boolean;
|
|
11
11
|
checkNodeIsLoading: (key: string) => boolean;
|
|
12
|
-
toggleExpand: (node:
|
|
12
|
+
toggleExpand: (node: UserPickerNode<T>) => void;
|
|
13
13
|
setNodeLoading: (key: string, loading: boolean) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare function useTreeState<T = unknown>({ onExpand }?: UseTreeStateOptions<T>): UseTreeStateReturn<T>;
|