tuikit-atomicx-vue3 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js → MessageInput.vue_vue_type_script_setup_true_lang-3RVYOdkv.js} +38 -38
- package/dist/{PopoverTrigger-L8abAry7.js → PopoverPortal-DV6zFXcf.js} +91 -136
- package/dist/PopoverTrigger-DIjW4PKa.js +54 -0
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-D__dbwpA.js} +6 -6
- package/dist/{Teleport-CSEuZbpM.js → Teleport-98QrIYDI.js} +280 -270
- package/dist/baseComp/Modal/Modal.js +3 -3
- package/dist/components/AudioSettingPanel/index.js +14 -14
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +53 -50
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +2 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +25 -25
- package/dist/components/ConversationList/ConversationList.vue.d.ts +16 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +16 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +28 -26
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +81 -70
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +33 -31
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
- package/dist/components/ConversationList/i18n/en-US.d.ts +11 -1
- package/dist/components/ConversationList/i18n/en-US.js +12 -2
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +11 -1
- package/dist/components/ConversationList/i18n/zh-CN.js +12 -2
- package/dist/components/ConversationList/index.d.ts +48 -0
- package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
- package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
- package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
- package/dist/components/MessageInput/TextEditor/index.js +62 -62
- package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
- package/dist/components/MessageInput/i18n/en-US.js +4 -1
- package/dist/components/MessageInput/i18n/index.d.ts +6 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
- package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +37 -28
- package/dist/components/MessageList/Message/index.js +8 -4
- package/dist/components/MessageList/MessageList.js +109 -91
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/index.d.ts +21 -3
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +22 -22
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +1 -1
- package/dist/components/ScheduleRoomPanel/RoomShare.js +4 -4
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +1 -1
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +1 -1
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
- package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.d.ts +72 -0
- package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.js +95 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.d.ts +40 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.js +51 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.d.ts +40 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.js +51 -0
- package/dist/components/UIKitModal/chatErrorModal/index.d.ts +3 -0
- package/dist/components/UIKitModal/chatErrorModal/index.js +11 -0
- package/dist/components/VideoSettingPanel/index.js +1 -1
- package/dist/hooks/useReadReceipt/useReadReceipt.js +44 -41
- package/dist/index-CTthrJb2.js +1461 -0
- package/dist/index-DXC5bPY4.js +2174 -0
- package/dist/{index-Do-2CngU.js → index-DuAffztD.js} +115 -142
- package/dist/{index-7vNB_Vx8.js → index-hHVD-MG2.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +150 -149
- package/dist/states/GroupSettingState/GroupSettingState.js +109 -102
- package/dist/states/LoginState.js +43 -43
- package/dist/states/MessageActionState/MessageActionState.js +83 -223
- package/dist/states/MessageInputState/MessageInputState.js +111 -82
- package/dist/states/MessageInputState/type.d.ts +36 -10
- package/dist/states/MessageInputState/utils.d.ts +1 -5
- package/dist/states/MessageListState/MessageListState.d.ts +1 -1
- package/dist/states/MessageListState/MessageListState.js +26 -23
- package/dist/states/RoomParticipantState/index.js +83 -24
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +2 -2
- package/dist/states/RoomParticipantState/participantEventManager.js +217 -205
- package/dist/states/RoomParticipantState/participantManager.d.ts +4 -0
- package/dist/states/RoomParticipantState/participantManager.js +159 -127
- package/dist/states/RoomState/callManager.d.ts +3 -3
- package/dist/states/RoomState/callManager.js +20 -20
- package/dist/states/RoomState/common.d.ts +3 -2
- package/dist/states/RoomState/common.js +34 -24
- package/dist/states/RoomState/roomManager.d.ts +0 -1
- package/dist/states/RoomState/roomManager.js +21 -27
- package/dist/states/RoomState/scheduleManager.js +2 -2
- package/dist/styles/index.css +1 -1
- package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2160 -2087
- package/dist/subEntry/chat/chat.js +89 -0
- package/dist/subEntry/chat/index.d.ts +11 -0
- package/dist/subEntry/chat/index.js +81 -0
- package/dist/{chat → subEntry/chat}/server.js +4 -4
- package/dist/subEntry/live/index.js +46 -45
- package/dist/subEntry/room/index.js +39 -38
- package/dist/types/beauty.d.ts +20 -0
- package/dist/types/index.js +37 -36
- package/dist/types/participant.d.ts +2 -0
- package/dist/types/room.d.ts +45 -1
- package/dist/types/room.js +4 -3
- package/dist/{useId-CtirfF0W.js → useId-B1VwPJLm.js} +1 -1
- package/dist/utils/call.js +77 -71
- package/dist/{utils-DaB7eSu5.js → utils-BU8IkP_V.js} +1 -1
- package/package.json +8 -7
- package/src/components/AudioSettingPanel/index.vue +4 -5
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +7 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +5 -1
- package/src/components/ConversationList/ConversationList.vue +0 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +10 -2
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +15 -0
- package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
- package/src/components/ConversationList/i18n/en-US.ts +11 -1
- package/src/components/ConversationList/i18n/zh-CN.ts +11 -1
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
- package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
- package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
- package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
- package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
- package/src/components/MessageInput/i18n/en-US.ts +3 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
- package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
- package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
- package/src/components/MessageList/Message/Message.vue +6 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +12 -3
- package/src/components/MessageList/MessageList.vue +50 -14
- package/src/components/ScheduleRoomPanel/RoomDetail.vue +1 -0
- package/src/components/ScheduleRoomPanel/RoomEdit.vue +2 -1
- package/src/components/ScheduleRoomPanel/RoomShare.vue +1 -0
- package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +1 -0
- package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +1 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
- package/src/components/UIKitModal/chatErrorModal/chatErrorModal.ts +205 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/en-US/index.ts +56 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/index.ts +4 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.ts +56 -0
- package/src/components/UIKitModal/chatErrorModal/index.ts +16 -0
- package/src/components/VideoSettingPanel/index.vue +1 -0
- package/src/hooks/useReadReceipt/useReadReceipt.ts +5 -4
- package/src/index.ts +1 -1
- package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
- package/src/subEntry/chat/index.ts +13 -0
- package/src/{chat → subEntry/chat}/server.ts +3 -3
- package/src/types/beauty.ts +20 -0
- package/src/types/participant.ts +3 -0
- package/src/types/room.ts +49 -1
- package/src/utils/call.ts +8 -0
- package/dist/chat/index.js +0 -59
- package/dist/index-ZILx4LYk.js +0 -4826
- package/dist/states/SearchState.d.ts +0 -314
- /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
|
@@ -438,6 +438,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
438
438
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
439
439
|
close: () => void;
|
|
440
440
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
441
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
441
442
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
442
443
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
443
444
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -499,6 +500,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
499
500
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
500
501
|
onClose?: (() => any) | undefined;
|
|
501
502
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
503
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
502
504
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
503
505
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
504
506
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -773,6 +775,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
773
775
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
774
776
|
close: () => void;
|
|
775
777
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
778
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
776
779
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
777
780
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
778
781
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -834,6 +837,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
834
837
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
835
838
|
onClose?: (() => any) | undefined;
|
|
836
839
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
840
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
837
841
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
838
842
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
839
843
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -1103,6 +1107,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1103
1107
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
1104
1108
|
close: () => void;
|
|
1105
1109
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1110
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
1106
1111
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1107
1112
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1108
1113
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -1164,6 +1169,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1164
1169
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
1165
1170
|
onClose?: (() => any) | undefined;
|
|
1166
1171
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1172
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1167
1173
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1168
1174
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1169
1175
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -3438,6 +3444,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3438
3444
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
3439
3445
|
close: () => void;
|
|
3440
3446
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
3447
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
3441
3448
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
3442
3449
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
3443
3450
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -3499,6 +3506,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
3499
3506
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
3500
3507
|
onClose?: (() => any) | undefined;
|
|
3501
3508
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
3509
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
3502
3510
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
3503
3511
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
3504
3512
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -4047,6 +4055,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4047
4055
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
4048
4056
|
close: () => void;
|
|
4049
4057
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4058
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
4050
4059
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4051
4060
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4052
4061
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -4108,6 +4117,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4108
4117
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
4109
4118
|
onClose?: (() => any) | undefined;
|
|
4110
4119
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4120
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
4111
4121
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4112
4122
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4113
4123
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -4382,6 +4392,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4382
4392
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
4383
4393
|
close: () => void;
|
|
4384
4394
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4395
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
4385
4396
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4386
4397
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4387
4398
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -4443,6 +4454,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4443
4454
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
4444
4455
|
onClose?: (() => any) | undefined;
|
|
4445
4456
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4457
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
4446
4458
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4447
4459
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4448
4460
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -4712,6 +4724,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4712
4724
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
4713
4725
|
close: () => void;
|
|
4714
4726
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4727
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
4715
4728
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4716
4729
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
4717
4730
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -4773,6 +4786,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4773
4786
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
4774
4787
|
onClose?: (() => any) | undefined;
|
|
4775
4788
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4789
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
4776
4790
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4777
4791
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
4778
4792
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -7047,6 +7061,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7047
7061
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
7048
7062
|
close: () => void;
|
|
7049
7063
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
7064
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
7050
7065
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
7051
7066
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
7052
7067
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -7108,6 +7123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7108
7123
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
7109
7124
|
onClose?: (() => any) | undefined;
|
|
7110
7125
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
7126
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
7111
7127
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
7112
7128
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
7113
7129
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -185,6 +185,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
185
185
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
186
186
|
close: () => void;
|
|
187
187
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
188
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
188
189
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
189
190
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
190
191
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -246,6 +247,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
246
247
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
247
248
|
onClose?: (() => any) | undefined;
|
|
248
249
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
250
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
249
251
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
250
252
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
251
253
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -520,6 +522,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
520
522
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
521
523
|
close: () => void;
|
|
522
524
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
525
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
523
526
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
524
527
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
525
528
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -581,6 +584,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
581
584
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
582
585
|
onClose?: (() => any) | undefined;
|
|
583
586
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
587
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
584
588
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
585
589
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
586
590
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -850,6 +854,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
850
854
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
851
855
|
close: () => void;
|
|
852
856
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
857
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
853
858
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
854
859
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
855
860
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -911,6 +916,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
911
916
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
912
917
|
onClose?: (() => any) | undefined;
|
|
913
918
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
919
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
914
920
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
915
921
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
916
922
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -1160,6 +1166,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1160
1166
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
1161
1167
|
close: () => void;
|
|
1162
1168
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1169
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
1163
1170
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1164
1171
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1165
1172
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -1221,6 +1228,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1221
1228
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
1222
1229
|
onClose?: (() => any) | undefined;
|
|
1223
1230
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1231
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1224
1232
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1225
1233
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1226
1234
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -1414,6 +1422,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1414
1422
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
1415
1423
|
close: () => void;
|
|
1416
1424
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1425
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
1417
1426
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1418
1427
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1419
1428
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -1475,6 +1484,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1475
1484
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
1476
1485
|
onClose?: (() => any) | undefined;
|
|
1477
1486
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1487
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1478
1488
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1479
1489
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1480
1490
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -1749,6 +1759,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1749
1759
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
1750
1760
|
close: () => void;
|
|
1751
1761
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1762
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
1752
1763
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1753
1764
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
1754
1765
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -1810,6 +1821,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1810
1821
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
1811
1822
|
onClose?: (() => any) | undefined;
|
|
1812
1823
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1824
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
1813
1825
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1814
1826
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
1815
1827
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -2079,6 +2091,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2079
2091
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
2080
2092
|
close: () => void;
|
|
2081
2093
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2094
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
2082
2095
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2083
2096
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2084
2097
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -2140,6 +2153,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2140
2153
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
2141
2154
|
onClose?: (() => any) | undefined;
|
|
2142
2155
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2156
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
2143
2157
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2144
2158
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2145
2159
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -2389,6 +2403,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2389
2403
|
click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
|
|
2390
2404
|
close: () => void;
|
|
2391
2405
|
markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2406
|
+
dropdownVisibleChange: (visible: boolean) => void;
|
|
2392
2407
|
conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2393
2408
|
conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
2394
2409
|
conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
|
|
@@ -2450,6 +2465,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2450
2465
|
onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
|
|
2451
2466
|
onClose?: (() => any) | undefined;
|
|
2452
2467
|
onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2468
|
+
onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
2453
2469
|
onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2454
2470
|
onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
2455
2471
|
onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
|
|
@@ -1,50 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useUIKit as
|
|
3
|
-
import { getLatestMessagePreview as
|
|
4
|
-
import { JSONStringToParse as
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as p, computed as v, createElementBlock as _, openBlock as s, normalizeClass as c, Fragment as u, createElementVNode as y, createTextVNode as m, toDisplayString as r, unref as T, createCommentVNode as C } from "vue";
|
|
2
|
+
import { useUIKit as I } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { getLatestMessagePreview as $ } from "./utils.js";
|
|
4
|
+
import { JSONStringToParse as g } from "../../../utils/json.js";
|
|
5
|
+
import { ConversationType as x } from "../../../types/engine.js";
|
|
6
|
+
import { _ as U } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const h = /* @__PURE__ */ p({
|
|
7
8
|
__name: "ConversationPreviewAbstract",
|
|
8
9
|
props: {
|
|
9
10
|
conversation: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
var
|
|
14
|
-
const { draftText: e = "" } = (
|
|
15
|
-
return ((
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
setup(d) {
|
|
13
|
+
const o = d, { t: n } = I(), P = v(() => {
|
|
14
|
+
var t;
|
|
15
|
+
const { draftText: e = "" } = (o == null ? void 0 : o.conversation) || {};
|
|
16
|
+
return ((t = g(e)) == null ? void 0 : t.abstract) || e;
|
|
17
|
+
}), b = v(() => $(o.conversation, n)), w = v(() => {
|
|
18
|
+
const { type: e, groupAtInfoList: t } = (o == null ? void 0 : o.conversation) || {};
|
|
19
|
+
if (e !== x.GROUP || !(t != null && t.length))
|
|
20
|
+
return "";
|
|
21
|
+
const q = [
|
|
22
|
+
`[${n("TUIConversation.someone_at_me")}]`,
|
|
23
|
+
`[${n("TUIConversation.at_all")}]`,
|
|
24
|
+
`[${n("TUIConversation.at_all")}][${n("TUIConversation.someone_at_me")}]`
|
|
25
|
+
];
|
|
26
|
+
let f = "";
|
|
27
|
+
return t.forEach((i) => {
|
|
28
|
+
var l;
|
|
29
|
+
const a = (l = i == null ? void 0 : i.atTypeArray) == null ? void 0 : l[0];
|
|
30
|
+
a && a >= 1 && a <= 3 && (f = q[a - 1]);
|
|
31
|
+
}), f;
|
|
32
|
+
});
|
|
33
|
+
return (e, t) => (s(), _("div", {
|
|
34
|
+
class: c(e.$style.conversationPreview__abstract)
|
|
19
35
|
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class:
|
|
23
|
-
}, "[" +
|
|
24
|
-
|
|
25
|
-
], 64)) : (
|
|
26
|
-
|
|
36
|
+
P.value ? (s(), _(u, { key: 0 }, [
|
|
37
|
+
y("label", {
|
|
38
|
+
class: c(e.$style.conversationPreview__abstract__drafts)
|
|
39
|
+
}, "[" + r(T(n)("TUIConversation.Drafts")) + "]", 3),
|
|
40
|
+
m(" " + r(" ") + " " + r(P.value), 1)
|
|
41
|
+
], 64)) : (s(), _(u, { key: 1 }, [
|
|
42
|
+
w.value ? (s(), _("label", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: c(e.$style["conversationPreview__abstract__at-info"])
|
|
45
|
+
}, r(w.value), 3)) : C("", !0),
|
|
46
|
+
m(" " + r(b.value), 1)
|
|
27
47
|
], 64))
|
|
28
48
|
], 2));
|
|
29
49
|
}
|
|
30
|
-
}),
|
|
31
|
-
conversationPreview:
|
|
32
|
-
"conversationPreview--active": "_conversationPreview--
|
|
33
|
-
"conversationPreview--pin": "_conversationPreview--
|
|
34
|
-
conversationPreview__avatar:
|
|
35
|
-
conversationPreview__content:
|
|
36
|
-
conversationPreview__header:
|
|
37
|
-
conversationPreview__title:
|
|
38
|
-
conversationPreview__time:
|
|
39
|
-
conversationPreview__footer:
|
|
40
|
-
conversationPreview__abstract:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
50
|
+
}), k = "_conversationPreview_3f9qu_12", M = "_conversationPreview__avatar_3f9qu_34", N = "_conversationPreview__content_3f9qu_38", A = "_conversationPreview__header_3f9qu_42", D = "_conversationPreview__title_3f9qu_48", E = "_conversationPreview__time_3f9qu_58", S = "_conversationPreview__footer_3f9qu_65", V = "_conversationPreview__abstract_3f9qu_70", B = "_conversationPreview__abstract__drafts_3f9qu_79", L = "_conversationPreview__external_3f9qu_85", O = "_conversationPreview__unread_3f9qu_94", z = "_conversationPreview__actions_3f9qu_114", F = {
|
|
51
|
+
conversationPreview: k,
|
|
52
|
+
"conversationPreview--active": "_conversationPreview--active_3f9qu_28",
|
|
53
|
+
"conversationPreview--pin": "_conversationPreview--pin_3f9qu_31",
|
|
54
|
+
conversationPreview__avatar: M,
|
|
55
|
+
conversationPreview__content: N,
|
|
56
|
+
conversationPreview__header: A,
|
|
57
|
+
conversationPreview__title: D,
|
|
58
|
+
conversationPreview__time: E,
|
|
59
|
+
conversationPreview__footer: S,
|
|
60
|
+
conversationPreview__abstract: V,
|
|
61
|
+
conversationPreview__abstract__drafts: B,
|
|
62
|
+
"conversationPreview__abstract__at-info": "_conversationPreview__abstract__at-info_3f9qu_82",
|
|
63
|
+
conversationPreview__external: L,
|
|
64
|
+
conversationPreview__unread: O,
|
|
65
|
+
"unread-count": "_unread-count_3f9qu_101",
|
|
66
|
+
conversationPreview__actions: z
|
|
67
|
+
}, G = {
|
|
68
|
+
$style: F
|
|
69
|
+
}, W = /* @__PURE__ */ U(h, [["__cssModules", G]]);
|
|
48
70
|
export {
|
|
49
|
-
|
|
71
|
+
W as default
|
|
50
72
|
};
|
package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import { defineComponent as i, computed as
|
|
1
|
+
import { defineComponent as i, computed as a, createElementBlock as s, openBlock as v, normalizeClass as c, toDisplayString as w } from "vue";
|
|
2
2
|
import { useUIKit as P } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
-
import { getTimeStamp as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
3
|
+
import { getTimeStamp as u } from "../../../utils/time.js";
|
|
4
|
+
import { _ as f } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const m = /* @__PURE__ */ i({
|
|
6
6
|
__name: "ConversationPreviewTimestamp",
|
|
7
7
|
props: {
|
|
8
8
|
conversation: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
10
|
+
setup(t) {
|
|
11
|
+
const n = t, { language: _ } = P(), r = a(() => {
|
|
12
12
|
var e, o;
|
|
13
|
-
return
|
|
14
|
-
time: Number(((o = (e =
|
|
15
|
-
language:
|
|
13
|
+
return u({
|
|
14
|
+
time: Number(((o = (e = n.conversation) == null ? void 0 : e.lastMessage) == null ? void 0 : o.lastTime) || 0) * 1e3,
|
|
15
|
+
language: _.value
|
|
16
16
|
}) || "";
|
|
17
17
|
});
|
|
18
|
-
return (e, o) => (
|
|
18
|
+
return (e, o) => (v(), s("div", {
|
|
19
19
|
class: c(e.$style.conversationPreview__time)
|
|
20
|
-
}, w(
|
|
20
|
+
}, w(r.value), 3));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
23
|
-
conversationPreview:
|
|
24
|
-
"conversationPreview--active": "_conversationPreview--
|
|
25
|
-
"conversationPreview--pin": "_conversationPreview--
|
|
26
|
-
conversationPreview__avatar:
|
|
22
|
+
}), l = "_conversationPreview_3f9qu_12", p = "_conversationPreview__avatar_3f9qu_34", d = "_conversationPreview__content_3f9qu_38", q = "_conversationPreview__header_3f9qu_42", b = "_conversationPreview__title_3f9qu_48", g = "_conversationPreview__time_3f9qu_58", x = "_conversationPreview__footer_3f9qu_65", h = "_conversationPreview__abstract_3f9qu_70", y = "_conversationPreview__abstract__drafts_3f9qu_79", M = "_conversationPreview__external_3f9qu_85", T = "_conversationPreview__unread_3f9qu_94", C = "_conversationPreview__actions_3f9qu_114", k = {
|
|
23
|
+
conversationPreview: l,
|
|
24
|
+
"conversationPreview--active": "_conversationPreview--active_3f9qu_28",
|
|
25
|
+
"conversationPreview--pin": "_conversationPreview--pin_3f9qu_31",
|
|
26
|
+
conversationPreview__avatar: p,
|
|
27
27
|
conversationPreview__content: d,
|
|
28
28
|
conversationPreview__header: q,
|
|
29
|
-
conversationPreview__title:
|
|
29
|
+
conversationPreview__title: b,
|
|
30
30
|
conversationPreview__time: g,
|
|
31
|
-
conversationPreview__footer:
|
|
31
|
+
conversationPreview__footer: x,
|
|
32
32
|
conversationPreview__abstract: h,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
33
|
+
conversationPreview__abstract__drafts: y,
|
|
34
|
+
"conversationPreview__abstract__at-info": "_conversationPreview__abstract__at-info_3f9qu_82",
|
|
35
|
+
conversationPreview__external: M,
|
|
36
|
+
conversationPreview__unread: T,
|
|
37
|
+
"unread-count": "_unread-count_3f9qu_101",
|
|
38
|
+
conversationPreview__actions: C
|
|
39
|
+
}, B = {
|
|
40
|
+
$style: k
|
|
41
|
+
}, E = /* @__PURE__ */ f(m, [["__cssModules", B]]);
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
E as default
|
|
42
44
|
};
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import { defineComponent as i, createElementBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, computed as i, createElementBlock as a, openBlock as s, normalizeClass as v, toDisplayString as c } from "vue";
|
|
2
|
+
import { _ as w } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const P = /* @__PURE__ */ r({
|
|
4
4
|
__name: "ConversationPreviewTitle",
|
|
5
5
|
props: {
|
|
6
6
|
conversation: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
setup(t) {
|
|
9
|
+
const n = t, _ = i(() => {
|
|
10
|
+
var e, o;
|
|
11
|
+
return ((o = (e = n == null ? void 0 : n.conversation) == null ? void 0 : e.getShowName) == null ? void 0 : o.call(e)) || "";
|
|
12
|
+
});
|
|
13
|
+
return (e, o) => (s(), a("div", {
|
|
14
|
+
class: v([e.$style.conversationPreview__title, e.$style.textEllipsis])
|
|
15
|
+
}, c(_.value), 3));
|
|
14
16
|
}
|
|
15
|
-
}),
|
|
16
|
-
conversationPreview:
|
|
17
|
-
"conversationPreview--active": "_conversationPreview--
|
|
18
|
-
"conversationPreview--pin": "_conversationPreview--
|
|
19
|
-
conversationPreview__avatar:
|
|
20
|
-
conversationPreview__content:
|
|
17
|
+
}), u = "_conversationPreview_3f9qu_12", f = "_conversationPreview__avatar_3f9qu_34", l = "_conversationPreview__content_3f9qu_38", d = "_conversationPreview__header_3f9qu_42", q = "_conversationPreview__title_3f9qu_48", m = "_conversationPreview__time_3f9qu_58", p = "_conversationPreview__footer_3f9qu_65", b = "_conversationPreview__abstract_3f9qu_70", h = "_conversationPreview__abstract__drafts_3f9qu_79", x = "_conversationPreview__external_3f9qu_85", y = "_conversationPreview__unread_3f9qu_94", C = "_conversationPreview__actions_3f9qu_114", $ = {
|
|
18
|
+
conversationPreview: u,
|
|
19
|
+
"conversationPreview--active": "_conversationPreview--active_3f9qu_28",
|
|
20
|
+
"conversationPreview--pin": "_conversationPreview--pin_3f9qu_31",
|
|
21
|
+
conversationPreview__avatar: f,
|
|
22
|
+
conversationPreview__content: l,
|
|
21
23
|
conversationPreview__header: d,
|
|
22
|
-
conversationPreview__title:
|
|
23
|
-
conversationPreview__time:
|
|
24
|
+
conversationPreview__title: q,
|
|
25
|
+
conversationPreview__time: m,
|
|
24
26
|
conversationPreview__footer: p,
|
|
25
|
-
conversationPreview__abstract:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
conversationPreview__abstract: b,
|
|
28
|
+
conversationPreview__abstract__drafts: h,
|
|
29
|
+
"conversationPreview__abstract__at-info": "_conversationPreview__abstract__at-info_3f9qu_82",
|
|
30
|
+
conversationPreview__external: x,
|
|
31
|
+
conversationPreview__unread: y,
|
|
32
|
+
"unread-count": "_unread-count_3f9qu_101",
|
|
29
33
|
conversationPreview__actions: C
|
|
30
34
|
}, g = {
|
|
31
35
|
$style: $
|
|
32
|
-
},
|
|
36
|
+
}, D = /* @__PURE__ */ w(P, [["__cssModules", g]]);
|
|
33
37
|
export {
|
|
34
|
-
|
|
38
|
+
D as default
|
|
35
39
|
};
|