cnhis-design-vue 3.4.0-beta.72 → 3.4.0-beta.74
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/README.md +87 -87
- package/es/components/iho-chat/index.d.ts +2732 -332
- package/es/components/iho-chat/src/Index.vue.d.ts +2732 -332
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +755 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +610 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +28 -29
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +157 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +41 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +93 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +30 -9
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TRTCEvent } from '../hooks';
|
|
2
|
-
import { AV_STATUS } from '../constants';
|
|
2
|
+
import { AV_STATUS, CHAT_TYPE } from '../constants';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
4
|
sendMessage: (message: {
|
|
5
5
|
chatType?: string | undefined;
|
|
@@ -7,8 +7,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
receiver?: string | undefined;
|
|
8
8
|
}) => Promise<void>;
|
|
9
9
|
state: {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
orgId: string;
|
|
12
|
+
currentSessionItem: {
|
|
13
|
+
id: string;
|
|
14
|
+
sessionKey: string;
|
|
15
|
+
receiver: string;
|
|
16
|
+
createdTime: string;
|
|
17
|
+
avatar: string;
|
|
18
|
+
name: string;
|
|
19
|
+
defaultName: string;
|
|
20
|
+
chatType: CHAT_TYPE;
|
|
21
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
22
|
+
status: import("../constants").STATUS;
|
|
23
|
+
sortTime: string;
|
|
24
|
+
topping: boolean;
|
|
25
|
+
unreadNum: number;
|
|
26
|
+
updatedTime: string;
|
|
27
|
+
lastMessageContent: string;
|
|
28
|
+
sender?: string | undefined;
|
|
29
|
+
lastMessageId?: string | undefined;
|
|
30
|
+
lastMessage?: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
33
|
+
msg: string;
|
|
34
|
+
referenceContent?: any;
|
|
35
|
+
forwardMessageList?: import("../../../../shared/types").AnyObject[] | undefined;
|
|
36
|
+
messageTemplate?: any;
|
|
37
|
+
messageTemplateData?: any;
|
|
38
|
+
fileUrl?: string | undefined;
|
|
39
|
+
avStatus?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
lastMessageSendTime?: string | undefined;
|
|
42
|
+
lastMessageStatus?: string | undefined;
|
|
43
|
+
lastSenderName?: string | undefined;
|
|
44
|
+
businessInfo?: {
|
|
45
|
+
uiSetting?: import("../../../../shared/types").AnyObject | undefined;
|
|
46
|
+
topicInfo?: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
param?: import("../../../../shared/types").AnyObject | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
labelList?: import("../../../../shared/types").AnyObject[] | undefined;
|
|
52
|
+
notDisturb: boolean;
|
|
53
|
+
};
|
|
12
54
|
id: string;
|
|
13
55
|
userInfo: import("../../../../shared/types").AnyObject;
|
|
14
56
|
msgList: {
|
|
@@ -17,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
17
59
|
sessionKey: string;
|
|
18
60
|
content: {
|
|
19
61
|
[x: string]: any;
|
|
20
|
-
chatMessageType:
|
|
62
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
21
63
|
msg: string;
|
|
22
64
|
referenceContent?: any;
|
|
23
65
|
forwardMessageList?: import("../../../../shared/types").AnyObject[] | undefined;
|
|
@@ -35,11 +77,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
77
|
__time?: string | undefined;
|
|
36
78
|
__sendTime?: string | undefined;
|
|
37
79
|
}[];
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
80
|
+
sessionList: {
|
|
81
|
+
id: string;
|
|
82
|
+
sessionKey: string;
|
|
83
|
+
receiver: string;
|
|
84
|
+
createdTime: string;
|
|
85
|
+
avatar: string;
|
|
86
|
+
name: string;
|
|
87
|
+
defaultName: string;
|
|
88
|
+
chatType: CHAT_TYPE;
|
|
89
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
90
|
+
status: import("../constants").STATUS;
|
|
91
|
+
sortTime: string;
|
|
92
|
+
topping: boolean;
|
|
93
|
+
unreadNum: number;
|
|
94
|
+
updatedTime: string;
|
|
95
|
+
lastMessageContent: string;
|
|
96
|
+
sender?: string | undefined;
|
|
97
|
+
lastMessageId?: string | undefined;
|
|
98
|
+
lastMessage?: {
|
|
99
|
+
[x: string]: any;
|
|
100
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
101
|
+
msg: string;
|
|
102
|
+
referenceContent?: any;
|
|
103
|
+
forwardMessageList?: import("../../../../shared/types").AnyObject[] | undefined;
|
|
104
|
+
messageTemplate?: any;
|
|
105
|
+
messageTemplateData?: any;
|
|
106
|
+
fileUrl?: string | undefined;
|
|
107
|
+
avStatus?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
lastMessageSendTime?: string | undefined;
|
|
110
|
+
lastMessageStatus?: string | undefined;
|
|
111
|
+
lastSenderName?: string | undefined;
|
|
112
|
+
businessInfo?: {
|
|
113
|
+
uiSetting?: import("../../../../shared/types").AnyObject | undefined;
|
|
114
|
+
topicInfo?: {
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
param?: import("../../../../shared/types").AnyObject | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
labelList?: import("../../../../shared/types").AnyObject[] | undefined;
|
|
120
|
+
notDisturb: boolean;
|
|
121
|
+
}[];
|
|
41
122
|
isChangeSession: boolean;
|
|
42
|
-
updateSessionItem: import("../../../../shared/types").AnyObject;
|
|
43
123
|
isUpdateSession: boolean;
|
|
44
124
|
currentReferenceMsg: import("../../../../shared/types").AnyObject | null;
|
|
45
125
|
currentReEditMsg: import("../../../../shared/types").AnyObject | null;
|
|
@@ -57,6 +137,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
57
137
|
info: import("../../../../shared/types").AnyObject | null;
|
|
58
138
|
};
|
|
59
139
|
isForward: boolean;
|
|
140
|
+
loading: boolean;
|
|
60
141
|
};
|
|
61
142
|
trtc: import("trtc-sdk-v5").TRTC;
|
|
62
143
|
timing: import("vue").Ref<string, string>;
|
|
@@ -3,6 +3,7 @@ import { NAvatar } from 'naive-ui';
|
|
|
3
3
|
import { useData } from '../hooks/useData.js';
|
|
4
4
|
import 'stompjs';
|
|
5
5
|
import 'sockjs-client/dist/sockjs.min.js';
|
|
6
|
+
import { CHAT_TYPE } from '../constants/index.js';
|
|
6
7
|
import { openSessionApi } from '../api/index.js';
|
|
7
8
|
import '../utils/index.js';
|
|
8
9
|
import 'lodash-es';
|
|
@@ -33,7 +34,7 @@ var userItemRender = /* @__PURE__ */ defineComponent({
|
|
|
33
34
|
let data = session;
|
|
34
35
|
if (!session) {
|
|
35
36
|
const _data = await openSessionApi({
|
|
36
|
-
chatType:
|
|
37
|
+
chatType: CHAT_TYPE.SINGLE,
|
|
37
38
|
receiver: id,
|
|
38
39
|
sender: state.userInfo.id
|
|
39
40
|
});
|
|
@@ -15,6 +15,7 @@ var MESSAGE_TYPE = /* @__PURE__ */ ((MESSAGE_TYPE2) => {
|
|
|
15
15
|
MESSAGE_TYPE2["AUDIO"] = "AUDIO";
|
|
16
16
|
MESSAGE_TYPE2["VIDEO"] = "VIDEO";
|
|
17
17
|
MESSAGE_TYPE2["EVENT"] = "EVENT";
|
|
18
|
+
MESSAGE_TYPE2["AI_SUMMARY"] = "AI_SUMMARY";
|
|
18
19
|
return MESSAGE_TYPE2;
|
|
19
20
|
})(MESSAGE_TYPE || {});
|
|
20
21
|
var SUBSCRIBE_MESSAGE_TYPE = /* @__PURE__ */ ((SUBSCRIBE_MESSAGE_TYPE2) => {
|
|
@@ -1,16 +1,62 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import { MsgListItem } from '../types';
|
|
2
|
+
import { MsgListItem, SessionItem } from '../types';
|
|
3
3
|
import { ChatSock } from '../utils/chatSock';
|
|
4
4
|
import { AnyObject } from '../../../../shared/types';
|
|
5
|
+
import { MESSAGE_TYPE, CHAT_TYPE, STATUS } from '../constants';
|
|
5
6
|
export declare const InjectionIChatData: InjectionKey<ReturnType<typeof initData>>;
|
|
6
7
|
export declare function initData(props: AnyObject, emit: (event: 'template-click' | 'unread-message-update' | 'session-change' | 'session-close', ...args: any[]) => void): {
|
|
7
8
|
filterable: import("vue").Ref<any, any>;
|
|
8
9
|
trtcProxy: import("vue").Ref<any, any>;
|
|
10
|
+
token: import("vue").Ref<any, any>;
|
|
9
11
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
|
10
|
-
stompClient:
|
|
12
|
+
stompClient: {
|
|
13
|
+
value: ChatSock | null;
|
|
14
|
+
};
|
|
11
15
|
state: {
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
orgId: string;
|
|
18
|
+
currentSessionItem: {
|
|
19
|
+
id: string;
|
|
20
|
+
sessionKey: string;
|
|
21
|
+
receiver: string;
|
|
22
|
+
createdTime: string;
|
|
23
|
+
avatar: string;
|
|
24
|
+
name: string;
|
|
25
|
+
defaultName: string;
|
|
26
|
+
chatType: CHAT_TYPE;
|
|
27
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
28
|
+
status: STATUS;
|
|
29
|
+
sortTime: string;
|
|
30
|
+
topping: boolean;
|
|
31
|
+
unreadNum: number;
|
|
32
|
+
updatedTime: string;
|
|
33
|
+
lastMessageContent: string;
|
|
34
|
+
sender?: string | undefined;
|
|
35
|
+
lastMessageId?: string | undefined;
|
|
36
|
+
lastMessage?: {
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
chatMessageType: MESSAGE_TYPE;
|
|
39
|
+
msg: string;
|
|
40
|
+
referenceContent?: any;
|
|
41
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
42
|
+
messageTemplate?: any;
|
|
43
|
+
messageTemplateData?: any;
|
|
44
|
+
fileUrl?: string | undefined;
|
|
45
|
+
avStatus?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
lastMessageSendTime?: string | undefined;
|
|
48
|
+
lastMessageStatus?: string | undefined;
|
|
49
|
+
lastSenderName?: string | undefined;
|
|
50
|
+
businessInfo?: {
|
|
51
|
+
uiSetting?: AnyObject | undefined;
|
|
52
|
+
topicInfo?: {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
param?: AnyObject | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
labelList?: AnyObject[] | undefined;
|
|
58
|
+
notDisturb: boolean;
|
|
59
|
+
};
|
|
14
60
|
id: string;
|
|
15
61
|
userInfo: AnyObject;
|
|
16
62
|
msgList: {
|
|
@@ -19,7 +65,7 @@ export declare function initData(props: AnyObject, emit: (event: 'template-click
|
|
|
19
65
|
sessionKey: string;
|
|
20
66
|
content: {
|
|
21
67
|
[x: string]: any;
|
|
22
|
-
chatMessageType:
|
|
68
|
+
chatMessageType: MESSAGE_TYPE;
|
|
23
69
|
msg: string;
|
|
24
70
|
referenceContent?: any;
|
|
25
71
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -37,11 +83,49 @@ export declare function initData(props: AnyObject, emit: (event: 'template-click
|
|
|
37
83
|
__time?: string | undefined;
|
|
38
84
|
__sendTime?: string | undefined;
|
|
39
85
|
}[];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
86
|
+
sessionList: {
|
|
87
|
+
id: string;
|
|
88
|
+
sessionKey: string;
|
|
89
|
+
receiver: string;
|
|
90
|
+
createdTime: string;
|
|
91
|
+
avatar: string;
|
|
92
|
+
name: string;
|
|
93
|
+
defaultName: string;
|
|
94
|
+
chatType: CHAT_TYPE;
|
|
95
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
96
|
+
status: STATUS;
|
|
97
|
+
sortTime: string;
|
|
98
|
+
topping: boolean;
|
|
99
|
+
unreadNum: number;
|
|
100
|
+
updatedTime: string;
|
|
101
|
+
lastMessageContent: string;
|
|
102
|
+
sender?: string | undefined;
|
|
103
|
+
lastMessageId?: string | undefined;
|
|
104
|
+
lastMessage?: {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
chatMessageType: MESSAGE_TYPE;
|
|
107
|
+
msg: string;
|
|
108
|
+
referenceContent?: any;
|
|
109
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
110
|
+
messageTemplate?: any;
|
|
111
|
+
messageTemplateData?: any;
|
|
112
|
+
fileUrl?: string | undefined;
|
|
113
|
+
avStatus?: string | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
lastMessageSendTime?: string | undefined;
|
|
116
|
+
lastMessageStatus?: string | undefined;
|
|
117
|
+
lastSenderName?: string | undefined;
|
|
118
|
+
businessInfo?: {
|
|
119
|
+
uiSetting?: AnyObject | undefined;
|
|
120
|
+
topicInfo?: {
|
|
121
|
+
[x: string]: any;
|
|
122
|
+
param?: AnyObject | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
labelList?: AnyObject[] | undefined;
|
|
126
|
+
notDisturb: boolean;
|
|
127
|
+
}[];
|
|
43
128
|
isChangeSession: boolean;
|
|
44
|
-
updateSessionItem: AnyObject;
|
|
45
129
|
isUpdateSession: boolean;
|
|
46
130
|
currentReferenceMsg: AnyObject | null;
|
|
47
131
|
currentReEditMsg: AnyObject | null;
|
|
@@ -59,6 +143,12 @@ export declare function initData(props: AnyObject, emit: (event: 'template-click
|
|
|
59
143
|
info: AnyObject | null;
|
|
60
144
|
};
|
|
61
145
|
isForward: boolean;
|
|
146
|
+
loading: boolean;
|
|
147
|
+
};
|
|
148
|
+
chatMainRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
149
|
+
tempState: {
|
|
150
|
+
currentMsg: AnyObject;
|
|
151
|
+
updateSessionItem: SessionItem;
|
|
62
152
|
};
|
|
63
153
|
unreadTotal: import("vue").ComputedRef<number>;
|
|
64
154
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
|
@@ -80,23 +170,152 @@ export declare function initData(props: AnyObject, emit: (event: 'template-click
|
|
|
80
170
|
labelItem: string | AnyObject;
|
|
81
171
|
msgId: string;
|
|
82
172
|
}) => void;
|
|
83
|
-
openSession: (session: string |
|
|
84
|
-
closeSession: () =>
|
|
85
|
-
|
|
173
|
+
openSession: (session: string | SessionItem) => Promise<void>;
|
|
174
|
+
closeSession: () => {
|
|
175
|
+
id: string;
|
|
176
|
+
sessionKey: string;
|
|
177
|
+
receiver: string;
|
|
178
|
+
createdTime: string;
|
|
179
|
+
avatar: string;
|
|
180
|
+
name: string;
|
|
181
|
+
defaultName: string;
|
|
182
|
+
chatType: CHAT_TYPE;
|
|
183
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
184
|
+
status: STATUS;
|
|
185
|
+
sortTime: string;
|
|
186
|
+
topping: boolean;
|
|
187
|
+
unreadNum: number;
|
|
188
|
+
updatedTime: string;
|
|
189
|
+
lastMessageContent: string;
|
|
190
|
+
sender?: string | undefined;
|
|
191
|
+
lastMessageId?: string | undefined;
|
|
192
|
+
lastMessage?: {
|
|
193
|
+
[x: string]: any;
|
|
194
|
+
chatMessageType: MESSAGE_TYPE;
|
|
195
|
+
msg: string;
|
|
196
|
+
referenceContent?: any;
|
|
197
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
198
|
+
messageTemplate?: any;
|
|
199
|
+
messageTemplateData?: any;
|
|
200
|
+
fileUrl?: string | undefined;
|
|
201
|
+
avStatus?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
lastMessageSendTime?: string | undefined;
|
|
204
|
+
lastMessageStatus?: string | undefined;
|
|
205
|
+
lastSenderName?: string | undefined;
|
|
206
|
+
businessInfo?: {
|
|
207
|
+
uiSetting?: AnyObject | undefined;
|
|
208
|
+
topicInfo?: {
|
|
209
|
+
[x: string]: any;
|
|
210
|
+
param?: AnyObject | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
labelList?: AnyObject[] | undefined;
|
|
214
|
+
notDisturb: boolean;
|
|
215
|
+
} | null;
|
|
216
|
+
getCurrentSession: () => {
|
|
217
|
+
id: string;
|
|
218
|
+
sessionKey: string;
|
|
219
|
+
receiver: string;
|
|
220
|
+
createdTime: string;
|
|
221
|
+
avatar: string;
|
|
222
|
+
name: string;
|
|
223
|
+
defaultName: string;
|
|
224
|
+
chatType: CHAT_TYPE;
|
|
225
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
226
|
+
status: STATUS;
|
|
227
|
+
sortTime: string;
|
|
228
|
+
topping: boolean;
|
|
229
|
+
unreadNum: number;
|
|
230
|
+
updatedTime: string;
|
|
231
|
+
lastMessageContent: string;
|
|
232
|
+
sender?: string | undefined;
|
|
233
|
+
lastMessageId?: string | undefined;
|
|
234
|
+
lastMessage?: {
|
|
235
|
+
[x: string]: any;
|
|
236
|
+
chatMessageType: MESSAGE_TYPE;
|
|
237
|
+
msg: string;
|
|
238
|
+
referenceContent?: any;
|
|
239
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
240
|
+
messageTemplate?: any;
|
|
241
|
+
messageTemplateData?: any;
|
|
242
|
+
fileUrl?: string | undefined;
|
|
243
|
+
avStatus?: string | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
lastMessageSendTime?: string | undefined;
|
|
246
|
+
lastMessageStatus?: string | undefined;
|
|
247
|
+
lastSenderName?: string | undefined;
|
|
248
|
+
businessInfo?: {
|
|
249
|
+
uiSetting?: AnyObject | undefined;
|
|
250
|
+
topicInfo?: {
|
|
251
|
+
[x: string]: any;
|
|
252
|
+
param?: AnyObject | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
labelList?: AnyObject[] | undefined;
|
|
256
|
+
notDisturb: boolean;
|
|
257
|
+
} | null;
|
|
86
258
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
87
|
-
setUpdateSessionItem: (item:
|
|
88
|
-
setSessionList: (list:
|
|
259
|
+
setUpdateSessionItem: (item: SessionItem) => void;
|
|
260
|
+
setSessionList: (list: SessionItem[]) => void;
|
|
89
261
|
emit: (event: 'template-click' | 'unread-message-update' | 'session-change' | 'session-close', ...args: any[]) => void;
|
|
90
262
|
setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
|
|
263
|
+
appendMsg: () => void;
|
|
264
|
+
scrollToBottom: () => void;
|
|
91
265
|
};
|
|
92
266
|
export declare const useData: () => {
|
|
93
267
|
filterable: import("vue").Ref<any, any>;
|
|
94
268
|
trtcProxy: import("vue").Ref<any, any>;
|
|
269
|
+
token: import("vue").Ref<any, any>;
|
|
95
270
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
|
96
|
-
stompClient:
|
|
271
|
+
stompClient: {
|
|
272
|
+
value: ChatSock | null;
|
|
273
|
+
};
|
|
97
274
|
state: {
|
|
98
|
-
|
|
99
|
-
|
|
275
|
+
[x: string]: any;
|
|
276
|
+
orgId: string;
|
|
277
|
+
currentSessionItem: {
|
|
278
|
+
id: string;
|
|
279
|
+
sessionKey: string;
|
|
280
|
+
receiver: string;
|
|
281
|
+
createdTime: string;
|
|
282
|
+
avatar: string;
|
|
283
|
+
name: string;
|
|
284
|
+
defaultName: string;
|
|
285
|
+
chatType: CHAT_TYPE;
|
|
286
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
287
|
+
status: STATUS;
|
|
288
|
+
sortTime: string;
|
|
289
|
+
topping: boolean;
|
|
290
|
+
unreadNum: number;
|
|
291
|
+
updatedTime: string;
|
|
292
|
+
lastMessageContent: string;
|
|
293
|
+
sender?: string | undefined;
|
|
294
|
+
lastMessageId?: string | undefined;
|
|
295
|
+
lastMessage?: {
|
|
296
|
+
[x: string]: any;
|
|
297
|
+
chatMessageType: MESSAGE_TYPE;
|
|
298
|
+
msg: string;
|
|
299
|
+
referenceContent?: any;
|
|
300
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
301
|
+
messageTemplate?: any;
|
|
302
|
+
messageTemplateData?: any;
|
|
303
|
+
fileUrl?: string | undefined;
|
|
304
|
+
avStatus?: string | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
lastMessageSendTime?: string | undefined;
|
|
307
|
+
lastMessageStatus?: string | undefined;
|
|
308
|
+
lastSenderName?: string | undefined;
|
|
309
|
+
businessInfo?: {
|
|
310
|
+
uiSetting?: AnyObject | undefined;
|
|
311
|
+
topicInfo?: {
|
|
312
|
+
[x: string]: any;
|
|
313
|
+
param?: AnyObject | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
labelList?: AnyObject[] | undefined;
|
|
317
|
+
notDisturb: boolean;
|
|
318
|
+
};
|
|
100
319
|
id: string;
|
|
101
320
|
userInfo: AnyObject;
|
|
102
321
|
msgList: {
|
|
@@ -105,7 +324,7 @@ export declare const useData: () => {
|
|
|
105
324
|
sessionKey: string;
|
|
106
325
|
content: {
|
|
107
326
|
[x: string]: any;
|
|
108
|
-
chatMessageType:
|
|
327
|
+
chatMessageType: MESSAGE_TYPE;
|
|
109
328
|
msg: string;
|
|
110
329
|
referenceContent?: any;
|
|
111
330
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -123,11 +342,49 @@ export declare const useData: () => {
|
|
|
123
342
|
__time?: string | undefined;
|
|
124
343
|
__sendTime?: string | undefined;
|
|
125
344
|
}[];
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
345
|
+
sessionList: {
|
|
346
|
+
id: string;
|
|
347
|
+
sessionKey: string;
|
|
348
|
+
receiver: string;
|
|
349
|
+
createdTime: string;
|
|
350
|
+
avatar: string;
|
|
351
|
+
name: string;
|
|
352
|
+
defaultName: string;
|
|
353
|
+
chatType: CHAT_TYPE;
|
|
354
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
355
|
+
status: STATUS;
|
|
356
|
+
sortTime: string;
|
|
357
|
+
topping: boolean;
|
|
358
|
+
unreadNum: number;
|
|
359
|
+
updatedTime: string;
|
|
360
|
+
lastMessageContent: string;
|
|
361
|
+
sender?: string | undefined;
|
|
362
|
+
lastMessageId?: string | undefined;
|
|
363
|
+
lastMessage?: {
|
|
364
|
+
[x: string]: any;
|
|
365
|
+
chatMessageType: MESSAGE_TYPE;
|
|
366
|
+
msg: string;
|
|
367
|
+
referenceContent?: any;
|
|
368
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
369
|
+
messageTemplate?: any;
|
|
370
|
+
messageTemplateData?: any;
|
|
371
|
+
fileUrl?: string | undefined;
|
|
372
|
+
avStatus?: string | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
lastMessageSendTime?: string | undefined;
|
|
375
|
+
lastMessageStatus?: string | undefined;
|
|
376
|
+
lastSenderName?: string | undefined;
|
|
377
|
+
businessInfo?: {
|
|
378
|
+
uiSetting?: AnyObject | undefined;
|
|
379
|
+
topicInfo?: {
|
|
380
|
+
[x: string]: any;
|
|
381
|
+
param?: AnyObject | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
labelList?: AnyObject[] | undefined;
|
|
385
|
+
notDisturb: boolean;
|
|
386
|
+
}[];
|
|
129
387
|
isChangeSession: boolean;
|
|
130
|
-
updateSessionItem: AnyObject;
|
|
131
388
|
isUpdateSession: boolean;
|
|
132
389
|
currentReferenceMsg: AnyObject | null;
|
|
133
390
|
currentReEditMsg: AnyObject | null;
|
|
@@ -145,6 +402,12 @@ export declare const useData: () => {
|
|
|
145
402
|
info: AnyObject | null;
|
|
146
403
|
};
|
|
147
404
|
isForward: boolean;
|
|
405
|
+
loading: boolean;
|
|
406
|
+
};
|
|
407
|
+
chatMainRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
408
|
+
tempState: {
|
|
409
|
+
currentMsg: AnyObject;
|
|
410
|
+
updateSessionItem: SessionItem;
|
|
148
411
|
};
|
|
149
412
|
unreadTotal: import("vue").ComputedRef<number>;
|
|
150
413
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
|
@@ -166,12 +429,96 @@ export declare const useData: () => {
|
|
|
166
429
|
labelItem: string | AnyObject;
|
|
167
430
|
msgId: string;
|
|
168
431
|
}) => void;
|
|
169
|
-
openSession: (session: string |
|
|
170
|
-
closeSession: () =>
|
|
171
|
-
|
|
432
|
+
openSession: (session: string | SessionItem) => Promise<void>;
|
|
433
|
+
closeSession: () => {
|
|
434
|
+
id: string;
|
|
435
|
+
sessionKey: string;
|
|
436
|
+
receiver: string;
|
|
437
|
+
createdTime: string;
|
|
438
|
+
avatar: string;
|
|
439
|
+
name: string;
|
|
440
|
+
defaultName: string;
|
|
441
|
+
chatType: CHAT_TYPE;
|
|
442
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
443
|
+
status: STATUS;
|
|
444
|
+
sortTime: string;
|
|
445
|
+
topping: boolean;
|
|
446
|
+
unreadNum: number;
|
|
447
|
+
updatedTime: string;
|
|
448
|
+
lastMessageContent: string;
|
|
449
|
+
sender?: string | undefined;
|
|
450
|
+
lastMessageId?: string | undefined;
|
|
451
|
+
lastMessage?: {
|
|
452
|
+
[x: string]: any;
|
|
453
|
+
chatMessageType: MESSAGE_TYPE;
|
|
454
|
+
msg: string;
|
|
455
|
+
referenceContent?: any;
|
|
456
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
457
|
+
messageTemplate?: any;
|
|
458
|
+
messageTemplateData?: any;
|
|
459
|
+
fileUrl?: string | undefined;
|
|
460
|
+
avStatus?: string | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
lastMessageSendTime?: string | undefined;
|
|
463
|
+
lastMessageStatus?: string | undefined;
|
|
464
|
+
lastSenderName?: string | undefined;
|
|
465
|
+
businessInfo?: {
|
|
466
|
+
uiSetting?: AnyObject | undefined;
|
|
467
|
+
topicInfo?: {
|
|
468
|
+
[x: string]: any;
|
|
469
|
+
param?: AnyObject | undefined;
|
|
470
|
+
} | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
labelList?: AnyObject[] | undefined;
|
|
473
|
+
notDisturb: boolean;
|
|
474
|
+
} | null;
|
|
475
|
+
getCurrentSession: () => {
|
|
476
|
+
id: string;
|
|
477
|
+
sessionKey: string;
|
|
478
|
+
receiver: string;
|
|
479
|
+
createdTime: string;
|
|
480
|
+
avatar: string;
|
|
481
|
+
name: string;
|
|
482
|
+
defaultName: string;
|
|
483
|
+
chatType: CHAT_TYPE;
|
|
484
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
485
|
+
status: STATUS;
|
|
486
|
+
sortTime: string;
|
|
487
|
+
topping: boolean;
|
|
488
|
+
unreadNum: number;
|
|
489
|
+
updatedTime: string;
|
|
490
|
+
lastMessageContent: string;
|
|
491
|
+
sender?: string | undefined;
|
|
492
|
+
lastMessageId?: string | undefined;
|
|
493
|
+
lastMessage?: {
|
|
494
|
+
[x: string]: any;
|
|
495
|
+
chatMessageType: MESSAGE_TYPE;
|
|
496
|
+
msg: string;
|
|
497
|
+
referenceContent?: any;
|
|
498
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
499
|
+
messageTemplate?: any;
|
|
500
|
+
messageTemplateData?: any;
|
|
501
|
+
fileUrl?: string | undefined;
|
|
502
|
+
avStatus?: string | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
lastMessageSendTime?: string | undefined;
|
|
505
|
+
lastMessageStatus?: string | undefined;
|
|
506
|
+
lastSenderName?: string | undefined;
|
|
507
|
+
businessInfo?: {
|
|
508
|
+
uiSetting?: AnyObject | undefined;
|
|
509
|
+
topicInfo?: {
|
|
510
|
+
[x: string]: any;
|
|
511
|
+
param?: AnyObject | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
labelList?: AnyObject[] | undefined;
|
|
515
|
+
notDisturb: boolean;
|
|
516
|
+
} | null;
|
|
172
517
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
173
|
-
setUpdateSessionItem: (item:
|
|
174
|
-
setSessionList: (list:
|
|
518
|
+
setUpdateSessionItem: (item: SessionItem) => void;
|
|
519
|
+
setSessionList: (list: SessionItem[]) => void;
|
|
175
520
|
emit: (event: 'template-click' | 'unread-message-update' | 'session-change' | 'session-close', ...args: any[]) => void;
|
|
176
521
|
setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
|
|
522
|
+
appendMsg: () => void;
|
|
523
|
+
scrollToBottom: () => void;
|
|
177
524
|
};
|