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
|
@@ -7,8 +7,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
SPACE_PLACEHOLDER: string;
|
|
8
8
|
inputRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
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: import("../constants").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: MESSAGE_TYPE;
|
|
33
|
+
msg: string;
|
|
34
|
+
referenceContent?: any;
|
|
35
|
+
forwardMessageList?: 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?: AnyObject | undefined;
|
|
46
|
+
topicInfo?: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
param?: AnyObject | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
labelList?: AnyObject[] | undefined;
|
|
52
|
+
notDisturb: boolean;
|
|
53
|
+
};
|
|
12
54
|
id: string;
|
|
13
55
|
userInfo: 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: MESSAGE_TYPE;
|
|
21
63
|
msg: string;
|
|
22
64
|
referenceContent?: any;
|
|
23
65
|
forwardMessageList?: 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: import("../constants").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: MESSAGE_TYPE;
|
|
101
|
+
msg: string;
|
|
102
|
+
referenceContent?: any;
|
|
103
|
+
forwardMessageList?: 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?: AnyObject | undefined;
|
|
114
|
+
topicInfo?: {
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
param?: AnyObject | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
labelList?: AnyObject[] | undefined;
|
|
120
|
+
notDisturb: boolean;
|
|
121
|
+
}[];
|
|
41
122
|
isChangeSession: boolean;
|
|
42
|
-
updateSessionItem: AnyObject;
|
|
43
123
|
isUpdateSession: boolean;
|
|
44
124
|
currentReferenceMsg: AnyObject | null;
|
|
45
125
|
currentReEditMsg: AnyObject | null;
|
|
@@ -57,6 +137,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
57
137
|
info: AnyObject | null;
|
|
58
138
|
};
|
|
59
139
|
isForward: boolean;
|
|
140
|
+
loading: boolean;
|
|
60
141
|
};
|
|
61
142
|
sendMessage: (message: {
|
|
62
143
|
chatType?: string | undefined;
|
|
@@ -171,8 +252,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
171
252
|
}> & {}>;
|
|
172
253
|
emit: (event: "comfirm", ...args: any[]) => void;
|
|
173
254
|
state: {
|
|
174
|
-
|
|
175
|
-
|
|
255
|
+
[x: string]: any;
|
|
256
|
+
orgId: string;
|
|
257
|
+
currentSessionItem: {
|
|
258
|
+
id: string;
|
|
259
|
+
sessionKey: string;
|
|
260
|
+
receiver: string;
|
|
261
|
+
createdTime: string;
|
|
262
|
+
avatar: string;
|
|
263
|
+
name: string;
|
|
264
|
+
defaultName: string;
|
|
265
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
266
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
267
|
+
status: import("../constants").STATUS;
|
|
268
|
+
sortTime: string;
|
|
269
|
+
topping: boolean;
|
|
270
|
+
unreadNum: number;
|
|
271
|
+
updatedTime: string;
|
|
272
|
+
lastMessageContent: string;
|
|
273
|
+
sender?: string | undefined;
|
|
274
|
+
lastMessageId?: string | undefined;
|
|
275
|
+
lastMessage?: {
|
|
276
|
+
[x: string]: any;
|
|
277
|
+
chatMessageType: MESSAGE_TYPE;
|
|
278
|
+
msg: string;
|
|
279
|
+
referenceContent?: any;
|
|
280
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
281
|
+
messageTemplate?: any;
|
|
282
|
+
messageTemplateData?: any;
|
|
283
|
+
fileUrl?: string | undefined;
|
|
284
|
+
avStatus?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
lastMessageSendTime?: string | undefined;
|
|
287
|
+
lastMessageStatus?: string | undefined;
|
|
288
|
+
lastSenderName?: string | undefined;
|
|
289
|
+
businessInfo?: {
|
|
290
|
+
uiSetting?: AnyObject | undefined;
|
|
291
|
+
topicInfo?: {
|
|
292
|
+
[x: string]: any;
|
|
293
|
+
param?: AnyObject | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
labelList?: AnyObject[] | undefined;
|
|
297
|
+
notDisturb: boolean;
|
|
298
|
+
};
|
|
176
299
|
id: string;
|
|
177
300
|
userInfo: AnyObject;
|
|
178
301
|
msgList: {
|
|
@@ -181,7 +304,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
181
304
|
sessionKey: string;
|
|
182
305
|
content: {
|
|
183
306
|
[x: string]: any;
|
|
184
|
-
chatMessageType:
|
|
307
|
+
chatMessageType: MESSAGE_TYPE;
|
|
185
308
|
msg: string;
|
|
186
309
|
referenceContent?: any;
|
|
187
310
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -199,11 +322,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
199
322
|
__time?: string | undefined;
|
|
200
323
|
__sendTime?: string | undefined;
|
|
201
324
|
}[];
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
325
|
+
sessionList: {
|
|
326
|
+
id: string;
|
|
327
|
+
sessionKey: string;
|
|
328
|
+
receiver: string;
|
|
329
|
+
createdTime: string;
|
|
330
|
+
avatar: string;
|
|
331
|
+
name: string;
|
|
332
|
+
defaultName: string;
|
|
333
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
334
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
335
|
+
status: import("../constants").STATUS;
|
|
336
|
+
sortTime: string;
|
|
337
|
+
topping: boolean;
|
|
338
|
+
unreadNum: number;
|
|
339
|
+
updatedTime: string;
|
|
340
|
+
lastMessageContent: string;
|
|
341
|
+
sender?: string | undefined;
|
|
342
|
+
lastMessageId?: string | undefined;
|
|
343
|
+
lastMessage?: {
|
|
344
|
+
[x: string]: any;
|
|
345
|
+
chatMessageType: MESSAGE_TYPE;
|
|
346
|
+
msg: string;
|
|
347
|
+
referenceContent?: any;
|
|
348
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
349
|
+
messageTemplate?: any;
|
|
350
|
+
messageTemplateData?: any;
|
|
351
|
+
fileUrl?: string | undefined;
|
|
352
|
+
avStatus?: string | undefined;
|
|
353
|
+
} | undefined;
|
|
354
|
+
lastMessageSendTime?: string | undefined;
|
|
355
|
+
lastMessageStatus?: string | undefined;
|
|
356
|
+
lastSenderName?: string | undefined;
|
|
357
|
+
businessInfo?: {
|
|
358
|
+
uiSetting?: AnyObject | undefined;
|
|
359
|
+
topicInfo?: {
|
|
360
|
+
[x: string]: any;
|
|
361
|
+
param?: AnyObject | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
labelList?: AnyObject[] | undefined;
|
|
365
|
+
notDisturb: boolean;
|
|
366
|
+
}[];
|
|
205
367
|
isChangeSession: boolean;
|
|
206
|
-
updateSessionItem: AnyObject;
|
|
207
368
|
isUpdateSession: boolean;
|
|
208
369
|
currentReferenceMsg: AnyObject | null;
|
|
209
370
|
currentReEditMsg: AnyObject | null;
|
|
@@ -221,6 +382,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
221
382
|
info: AnyObject | null;
|
|
222
383
|
};
|
|
223
384
|
isForward: boolean;
|
|
385
|
+
loading: boolean;
|
|
224
386
|
};
|
|
225
387
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
226
388
|
listRef: Ref<any, any>;
|
|
@@ -236,25 +398,25 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
236
398
|
handleInput: () => void;
|
|
237
399
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
|
238
400
|
sessionList: import("vue").ComputedRef<{
|
|
239
|
-
id:
|
|
240
|
-
name:
|
|
241
|
-
avatar:
|
|
242
|
-
chatType:
|
|
243
|
-
roleInfo:
|
|
401
|
+
id: string;
|
|
402
|
+
name: string;
|
|
403
|
+
avatar: string;
|
|
404
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
405
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
244
406
|
}[]>;
|
|
245
407
|
friends: import("vue").ComputedRef<{
|
|
246
|
-
id:
|
|
247
|
-
name:
|
|
248
|
-
avatar:
|
|
249
|
-
chatType:
|
|
250
|
-
roleInfo:
|
|
408
|
+
id: string;
|
|
409
|
+
name: string;
|
|
410
|
+
avatar: string;
|
|
411
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
412
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
251
413
|
}[]>;
|
|
252
414
|
groups: import("vue").ComputedRef<{
|
|
253
|
-
id:
|
|
254
|
-
name:
|
|
255
|
-
avatar:
|
|
256
|
-
chatType:
|
|
257
|
-
roleInfo:
|
|
415
|
+
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
avatar: string;
|
|
418
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
419
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
258
420
|
}[]>;
|
|
259
421
|
checkedIds: import("vue").ComputedRef<any[]>;
|
|
260
422
|
btnDisabled: import("vue").ComputedRef<boolean>;
|