cnhis-design-vue 3.2.15-beta.5 → 3.2.15-beta.8
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/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/iho-chat/index.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +34 -34
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +202 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
- package/es/components/iho-chat/src/components/userItemRender.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +2 -0
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +2 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -32,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
32
|
type: PropType<AnyObject>;
|
33
33
|
default: () => {};
|
34
34
|
};
|
35
|
+
filterable: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
35
39
|
}, {
|
36
40
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
37
41
|
token: {
|
@@ -65,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
69
|
type: PropType<AnyObject>;
|
66
70
|
default: () => {};
|
67
71
|
};
|
72
|
+
filterable: {
|
73
|
+
type: BooleanConstructor;
|
74
|
+
default: boolean;
|
75
|
+
};
|
68
76
|
}>> & {
|
69
77
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
70
78
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -77,6 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
85
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
78
86
|
stompClient: import("vue").Ref<import("./utils/chatSock").ChatSock | undefined>;
|
79
87
|
state: {
|
88
|
+
filterable: boolean;
|
80
89
|
orgId: string | number;
|
81
90
|
currentSessionItem: AnyObject;
|
82
91
|
id: string;
|
@@ -120,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
120
129
|
};
|
121
130
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
122
131
|
state: {
|
132
|
+
filterable: boolean;
|
123
133
|
orgId: string | number;
|
124
134
|
currentSessionItem: AnyObject;
|
125
135
|
id: string;
|
@@ -156,8 +166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
166
|
unreadSessionKeys: string[];
|
157
167
|
flexWidth: import("vue").Ref<number>;
|
158
168
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
159
|
-
|
160
|
-
filterList: import("vue").Ref<{
|
169
|
+
filterListByTag: import("vue").Ref<{
|
161
170
|
label: string;
|
162
171
|
key: string;
|
163
172
|
}[]>;
|
@@ -166,7 +175,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
166
175
|
menuPosition: any;
|
167
176
|
sessionId: import("vue").Ref<any>;
|
168
177
|
currentFilterKey: import("vue").Ref<string>;
|
178
|
+
dateRange: import("vue").Ref<any>;
|
179
|
+
keyword: import("vue").Ref<string>;
|
180
|
+
showSearch: import("vue").Ref<boolean>;
|
181
|
+
filterList: import("vue").Ref<AnyObject[]>;
|
182
|
+
handleInput: () => void;
|
169
183
|
state: {
|
184
|
+
filterable: boolean;
|
170
185
|
orgId: string | number;
|
171
186
|
currentSessionItem: AnyObject;
|
172
187
|
id: string;
|
@@ -197,10 +212,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
212
|
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
198
213
|
handleContextmenu: (event: MouseEvent, id: string) => Promise<void>;
|
199
214
|
handleSelect: (key: string, session: AnyObject) => Promise<void>;
|
200
|
-
|
215
|
+
handleUpdateShow: (value: boolean) => void;
|
216
|
+
handleSearch: () => void;
|
201
217
|
NBadge: any;
|
202
218
|
NAvatar: any;
|
219
|
+
NInput: any;
|
203
220
|
NTag: any;
|
221
|
+
NIcon: any;
|
222
|
+
NPopover: any;
|
204
223
|
ContextMenu: import("vue").DefineComponent<{
|
205
224
|
type: {
|
206
225
|
type: StringConstructor;
|
@@ -244,9 +263,200 @@ declare const _default: import("vue").DefineComponent<{
|
|
244
263
|
};
|
245
264
|
formatTime: typeof import("./utils").formatTime;
|
246
265
|
STATUS: typeof import("./constants").STATUS;
|
266
|
+
CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
267
|
+
updateUnchangedValue: {
|
268
|
+
type: BooleanConstructor;
|
269
|
+
};
|
270
|
+
onConfirm: {
|
271
|
+
type: FunctionConstructor;
|
272
|
+
};
|
273
|
+
formattedValue: {
|
274
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
275
|
+
};
|
276
|
+
placeholder: {
|
277
|
+
type: StringConstructor;
|
278
|
+
};
|
279
|
+
allowedInvalidValue: {
|
280
|
+
type: StringConstructor;
|
281
|
+
};
|
282
|
+
to: {
|
283
|
+
type: PropType<string | false | HTMLElement>;
|
284
|
+
default: string;
|
285
|
+
};
|
286
|
+
holidays: {
|
287
|
+
type: PropType<Date[]>;
|
288
|
+
default: () => never[];
|
289
|
+
};
|
290
|
+
type: {
|
291
|
+
type: StringConstructor;
|
292
|
+
default: string;
|
293
|
+
};
|
294
|
+
}, {
|
295
|
+
attrs: {
|
296
|
+
[x: string]: unknown;
|
297
|
+
};
|
298
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
299
|
+
updateUnchangedValue: {
|
300
|
+
type: BooleanConstructor;
|
301
|
+
};
|
302
|
+
onConfirm: {
|
303
|
+
type: FunctionConstructor;
|
304
|
+
};
|
305
|
+
formattedValue: {
|
306
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
307
|
+
};
|
308
|
+
placeholder: {
|
309
|
+
type: StringConstructor;
|
310
|
+
};
|
311
|
+
allowedInvalidValue: {
|
312
|
+
type: StringConstructor;
|
313
|
+
};
|
314
|
+
to: {
|
315
|
+
type: PropType<string | false | HTMLElement>;
|
316
|
+
default: string;
|
317
|
+
};
|
318
|
+
holidays: {
|
319
|
+
type: PropType<Date[]>;
|
320
|
+
default: () => never[];
|
321
|
+
};
|
322
|
+
type: {
|
323
|
+
type: StringConstructor;
|
324
|
+
default: string;
|
325
|
+
};
|
326
|
+
}>> & {
|
327
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
328
|
+
}>>;
|
329
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
330
|
+
datePickerRef: import("vue").Ref<AnyObject | null>;
|
331
|
+
panelInstRef: import("vue").Ref<null>;
|
332
|
+
placeholderRef: import("vue").Ref<any>;
|
333
|
+
oldValue: string;
|
334
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
335
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
336
|
+
formatRef: import("vue").ComputedRef<string>;
|
337
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
338
|
+
focus: () => any;
|
339
|
+
blur: () => any;
|
340
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
341
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
342
|
+
watchers: import("../../../shared/types").AnyFn[];
|
343
|
+
stopWatcher: () => void;
|
344
|
+
setHoliday: (show: boolean) => Promise<void>;
|
345
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
346
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
347
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
348
|
+
NDatePicker: any;
|
349
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
350
|
+
updateUnchangedValue: {
|
351
|
+
type: BooleanConstructor;
|
352
|
+
};
|
353
|
+
onConfirm: {
|
354
|
+
type: FunctionConstructor;
|
355
|
+
};
|
356
|
+
formattedValue: {
|
357
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
358
|
+
};
|
359
|
+
placeholder: {
|
360
|
+
type: StringConstructor;
|
361
|
+
};
|
362
|
+
allowedInvalidValue: {
|
363
|
+
type: StringConstructor;
|
364
|
+
};
|
365
|
+
to: {
|
366
|
+
type: PropType<string | false | HTMLElement>;
|
367
|
+
default: string;
|
368
|
+
};
|
369
|
+
holidays: {
|
370
|
+
type: PropType<Date[]>;
|
371
|
+
default: () => never[];
|
372
|
+
};
|
373
|
+
type: {
|
374
|
+
type: StringConstructor;
|
375
|
+
default: string;
|
376
|
+
};
|
377
|
+
}>> & {
|
378
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
379
|
+
}, {
|
380
|
+
type: string;
|
381
|
+
updateUnchangedValue: boolean;
|
382
|
+
to: string | false | HTMLElement;
|
383
|
+
holidays: Date[];
|
384
|
+
}>>;
|
385
|
+
SearchOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
386
|
+
userItemRender: import("vue").DefineComponent<{
|
387
|
+
item: {
|
388
|
+
type: PropType<AnyObject>;
|
389
|
+
default: () => {};
|
390
|
+
};
|
391
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
392
|
+
item: {
|
393
|
+
type: PropType<AnyObject>;
|
394
|
+
default: () => {};
|
395
|
+
};
|
396
|
+
}>> & {
|
397
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
398
|
+
}, {
|
399
|
+
item: AnyObject;
|
400
|
+
}>;
|
401
|
+
DefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
402
|
+
type: {
|
403
|
+
type: StringConstructor;
|
404
|
+
default: string;
|
405
|
+
};
|
406
|
+
config: {
|
407
|
+
type: PropType<AnyObject>;
|
408
|
+
default: () => {
|
409
|
+
title: string;
|
410
|
+
content: string;
|
411
|
+
};
|
412
|
+
};
|
413
|
+
}, {
|
414
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
415
|
+
type: {
|
416
|
+
type: StringConstructor;
|
417
|
+
default: string;
|
418
|
+
};
|
419
|
+
config: {
|
420
|
+
type: PropType<AnyObject>;
|
421
|
+
default: () => {
|
422
|
+
title: string;
|
423
|
+
content: string;
|
424
|
+
};
|
425
|
+
};
|
426
|
+
}>> & {
|
427
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
428
|
+
}>>;
|
429
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
430
|
+
configResult: import("vue").ComputedRef<{
|
431
|
+
title: string;
|
432
|
+
content: string;
|
433
|
+
img: string;
|
434
|
+
}>;
|
435
|
+
reloadPage: () => void;
|
436
|
+
NIcon: any;
|
437
|
+
Refresh: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
438
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
439
|
+
type: {
|
440
|
+
type: StringConstructor;
|
441
|
+
default: string;
|
442
|
+
};
|
443
|
+
config: {
|
444
|
+
type: PropType<AnyObject>;
|
445
|
+
default: () => {
|
446
|
+
title: string;
|
447
|
+
content: string;
|
448
|
+
};
|
449
|
+
};
|
450
|
+
}>> & {
|
451
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
452
|
+
}, {
|
453
|
+
type: string;
|
454
|
+
config: AnyObject;
|
455
|
+
}>>;
|
247
456
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
248
457
|
ChatHeader: import("vue").DefineComponent<{}, {
|
249
458
|
state: {
|
459
|
+
filterable: boolean;
|
250
460
|
orgId: string | number;
|
251
461
|
currentSessionItem: AnyObject;
|
252
462
|
id: string;
|
@@ -316,6 +526,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
526
|
}>>;
|
317
527
|
emit: (event: "close", ...args: any[]) => void;
|
318
528
|
state: {
|
529
|
+
filterable: boolean;
|
319
530
|
orgId: string | number;
|
320
531
|
currentSessionItem: AnyObject;
|
321
532
|
id: string;
|
@@ -382,6 +593,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
382
593
|
[x: string]: unknown;
|
383
594
|
};
|
384
595
|
state: {
|
596
|
+
filterable: boolean;
|
385
597
|
orgId: string | number;
|
386
598
|
currentSessionItem: AnyObject;
|
387
599
|
id: string;
|
@@ -456,6 +668,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
668
|
}>>;
|
457
669
|
emit: (event: "close", ...args: any[]) => void;
|
458
670
|
state: {
|
671
|
+
filterable: boolean;
|
459
672
|
orgId: string | number;
|
460
673
|
currentSessionItem: AnyObject;
|
461
674
|
id: string;
|
@@ -571,6 +784,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
571
784
|
}>>;
|
572
785
|
emit: (event: "comfirm", ...args: any[]) => void;
|
573
786
|
state: {
|
787
|
+
filterable: boolean;
|
574
788
|
orgId: string | number;
|
575
789
|
currentSessionItem: AnyObject;
|
576
790
|
id: string;
|
@@ -682,6 +896,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
682
896
|
}>> & {}>>;
|
683
897
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
684
898
|
state: {
|
899
|
+
filterable: boolean;
|
685
900
|
orgId: string | number;
|
686
901
|
currentSessionItem: AnyObject;
|
687
902
|
id: string;
|
@@ -789,6 +1004,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
789
1004
|
}>>;
|
790
1005
|
emit: (event: "comfirm", ...args: any[]) => void;
|
791
1006
|
state: {
|
1007
|
+
filterable: boolean;
|
792
1008
|
orgId: string | number;
|
793
1009
|
currentSessionItem: AnyObject;
|
794
1010
|
id: string;
|
@@ -906,6 +1122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
906
1122
|
};
|
907
1123
|
}>> & {}>>;
|
908
1124
|
state: {
|
1125
|
+
filterable: boolean;
|
909
1126
|
orgId: string | number;
|
910
1127
|
currentSessionItem: AnyObject;
|
911
1128
|
id: string;
|
@@ -1138,6 +1355,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1138
1355
|
}>>;
|
1139
1356
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1140
1357
|
state: {
|
1358
|
+
filterable: boolean;
|
1141
1359
|
orgId: string | number;
|
1142
1360
|
currentSessionItem: AnyObject;
|
1143
1361
|
id: string;
|
@@ -1234,6 +1452,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1234
1452
|
ChatMain: import("vue").DefineComponent<{}, {
|
1235
1453
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
1236
1454
|
state: {
|
1455
|
+
filterable: boolean;
|
1237
1456
|
orgId: string | number;
|
1238
1457
|
currentSessionItem: AnyObject;
|
1239
1458
|
id: string;
|
@@ -1324,6 +1543,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1324
1543
|
}>>;
|
1325
1544
|
emit: (event: "close", ...args: any[]) => void;
|
1326
1545
|
state: {
|
1546
|
+
filterable: boolean;
|
1327
1547
|
orgId: string | number;
|
1328
1548
|
currentSessionItem: AnyObject;
|
1329
1549
|
id: string;
|
@@ -1558,6 +1778,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1558
1778
|
}>>;
|
1559
1779
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1560
1780
|
state: {
|
1781
|
+
filterable: boolean;
|
1561
1782
|
orgId: string | number;
|
1562
1783
|
currentSessionItem: AnyObject;
|
1563
1784
|
id: string;
|
@@ -1661,6 +1882,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1661
1882
|
ChatFooter: import("vue").DefineComponent<{}, {
|
1662
1883
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
1663
1884
|
state: {
|
1885
|
+
filterable: boolean;
|
1664
1886
|
orgId: string | number;
|
1665
1887
|
currentSessionItem: AnyObject;
|
1666
1888
|
id: string;
|
@@ -1764,6 +1986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1764
1986
|
}>>;
|
1765
1987
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1766
1988
|
state: {
|
1989
|
+
filterable: boolean;
|
1767
1990
|
orgId: string | number;
|
1768
1991
|
currentSessionItem: AnyObject;
|
1769
1992
|
id: string;
|
@@ -1871,6 +2094,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1871
2094
|
keyword: import("vue").Ref<string>;
|
1872
2095
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
1873
2096
|
state: {
|
2097
|
+
filterable: boolean;
|
1874
2098
|
orgId: string | number;
|
1875
2099
|
currentSessionItem: AnyObject;
|
1876
2100
|
id: string;
|
@@ -1889,28 +2113,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1889
2113
|
currentGroupUser: AnyObject[];
|
1890
2114
|
showMultipleVideo: boolean;
|
1891
2115
|
};
|
1892
|
-
openSession: (session: string | AnyObject) => Promise<void>;
|
1893
2116
|
userList: import("vue").Ref<AnyObject[]>;
|
1894
2117
|
handleInput: () => void;
|
1895
2118
|
currentTabValue: import("vue").Ref<string>;
|
1896
|
-
userItemRender: import("vue").DefineComponent<{
|
1897
|
-
item: {
|
1898
|
-
type: PropType<AnyObject>;
|
1899
|
-
default: () => {};
|
1900
|
-
};
|
1901
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1902
|
-
item: {
|
1903
|
-
type: PropType<AnyObject>;
|
1904
|
-
default: () => {};
|
1905
|
-
};
|
1906
|
-
}>>, {
|
1907
|
-
item: AnyObject;
|
1908
|
-
}>;
|
1909
2119
|
groupList: import("vue").ComputedRef<AnyObject[]>;
|
1910
2120
|
showNoData: import("vue").ComputedRef<boolean>;
|
1911
2121
|
showAllNoData: import("vue").ComputedRef<boolean>;
|
1912
2122
|
showGroupNoData: import("vue").ComputedRef<boolean>;
|
1913
|
-
|
2123
|
+
handleClose: () => void;
|
1914
2124
|
NPopover: any;
|
1915
2125
|
NButton: any;
|
1916
2126
|
NInput: any;
|
@@ -1974,6 +2184,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1974
2184
|
type: string;
|
1975
2185
|
config: AnyObject;
|
1976
2186
|
}>>;
|
2187
|
+
userItemRender: import("vue").DefineComponent<{
|
2188
|
+
item: {
|
2189
|
+
type: PropType<AnyObject>;
|
2190
|
+
default: () => {};
|
2191
|
+
};
|
2192
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2193
|
+
item: {
|
2194
|
+
type: PropType<AnyObject>;
|
2195
|
+
default: () => {};
|
2196
|
+
};
|
2197
|
+
}>> & {
|
2198
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
2199
|
+
}, {
|
2200
|
+
item: AnyObject;
|
2201
|
+
}>;
|
1977
2202
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1978
2203
|
ChatAdd: import("vue").DefineComponent<{
|
1979
2204
|
title: {
|
@@ -2029,6 +2254,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2029
2254
|
}>>;
|
2030
2255
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2031
2256
|
state: {
|
2257
|
+
filterable: boolean;
|
2032
2258
|
orgId: string | number;
|
2033
2259
|
currentSessionItem: AnyObject;
|
2034
2260
|
id: string;
|
@@ -2126,6 +2352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2126
2352
|
receiver?: string | undefined;
|
2127
2353
|
}) => Promise<void>;
|
2128
2354
|
state: {
|
2355
|
+
filterable: boolean;
|
2129
2356
|
orgId: string | number;
|
2130
2357
|
currentSessionItem: AnyObject;
|
2131
2358
|
id: string;
|
@@ -2207,6 +2434,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2207
2434
|
name: string;
|
2208
2435
|
}[]>;
|
2209
2436
|
state: {
|
2437
|
+
filterable: boolean;
|
2210
2438
|
orgId: string | number;
|
2211
2439
|
currentSessionItem: AnyObject;
|
2212
2440
|
id: string;
|
@@ -2324,6 +2552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2324
2552
|
}>>;
|
2325
2553
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2326
2554
|
state: {
|
2555
|
+
filterable: boolean;
|
2327
2556
|
orgId: string | number;
|
2328
2557
|
currentSessionItem: AnyObject;
|
2329
2558
|
id: string;
|
@@ -2454,6 +2683,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2454
2683
|
type: PropType<AnyObject>;
|
2455
2684
|
default: () => {};
|
2456
2685
|
};
|
2686
|
+
filterable: {
|
2687
|
+
type: BooleanConstructor;
|
2688
|
+
default: boolean;
|
2689
|
+
};
|
2457
2690
|
}>> & {
|
2458
2691
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
2459
2692
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -2464,5 +2697,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
2464
2697
|
showHeader: boolean;
|
2465
2698
|
baseURL: string;
|
2466
2699
|
extraParams: AnyObject;
|
2700
|
+
filterable: boolean;
|
2467
2701
|
}>;
|
2468
2702
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as a,unref as n,createVNode as i,withCtx as
|
1
|
+
import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as a,unref as n,createVNode as i,withCtx as l,createBlock as u,Fragment as d,createElementVNode as m,renderSlot as p,createCommentVNode as c}from"vue";import{NConfigProvider as f,NSpin as h,NLayout as v,NLayoutContent as y}from"naive-ui";import S from"./components/SiderList.vue.js";import g from"./components/ChatHeader.vue.js";import k from"./components/ChatMain.vue.js";import j from"./components/ChatFooter.vue.js";import _ from"./components/ChatSearch.vue.js";import b from"./components/ChatAdd.vue.js";import w from"./components/Video.vue.js";import C from"./components/MultipleVideo.vue.js";import{instanceAxios as x}from"./api/index.js";import{isNumber as I}from"lodash-es";import{initData as L,InjectionIChatData as V}from"./hooks/useData.js";import{useWebSocket as B}from"./hooks/useWebSocket.js";import"trtc-sdk-v5";import"./utils/index.js";const H={key:0,class:"iho-chat__header"},U={class:"toolbar"};var $=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},showHeader:{type:Boolean,default:!0},defaultSessionId:{type:String},show:{type:Boolean,default:!0},extraParams:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1}},emits:["template-click","unread-message-update","session-change","session-close"],setup(e,{expose:$,emit:q}){const M=e;x.defaults.baseURL=M.baseURL,x.defaults.headers.Authorization="bearer "+M.token;const N=t(!1),R=L(M,q);o(V,R),B(M,R);const{cssVars:A,state:D,openSession:F,closeSession:z,getCurrentSession:E,isEnded:O}=R;return $({getUnreadData:function(){return D.sessionList.filter((e=>I(e.unreadNum)&&e.unreadNum>0))},openSession:F,closeSession:z,getCurrentSession:E}),(t,o)=>e.show?(s(),r("div",{key:0,class:"iho-chat",style:a(n(A))},[i(n(f),{abstract:"",namespace:"iho-chat__popover"},{default:l((()=>{var o;return[N.value?(s(),u(n(h),{key:0,stroke:"#5585f5"})):(s(),r(d,{key:1},[e.showHeader?(s(),r("div",H,[i(_),i(b,{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.31"))||"发起群聊",mode:"create","default-value":[n(D).userInfo]},null,8,["default-value"]),m("div",U,[p(t.$slots,"toolbar")])])):c("v-if",!0),i(n(v),{class:"iho-chat__body","has-sider":""},{default:l((()=>[i(S),i(n(y),{class:"chat-content",style:a({"--c-pointer-events":n(O)?"none":"unset","--c-cursor":n(O)?"not-allowed":"unset"})},{default:l((()=>[i(g,null,{header:l((()=>[p(t.$slots,"chatHeader",{session:n(D).currentSessionItem})])),_:3}),i(k),i(j,null,{footer:l((()=>[p(t.$slots,"chatFooter",{session:n(D).currentSessionItem})])),_:3})])),_:3},8,["style"]),p(t.$slots,"external")])),_:3}),n(D).showVideo?(s(),u(w,{key:1})):c("v-if",!0),n(D).showMultipleVideo?(s(),u(C,{key:2})):c("v-if",!0)],64))]})),_:3})],4)):c("v-if",!0)}});export{$ as default};
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
}>> & {}>>;
|
22
22
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
23
23
|
state: {
|
24
|
+
filterable: boolean;
|
24
25
|
orgId: string | number;
|
25
26
|
currentSessionItem: AnyObject;
|
26
27
|
id: string;
|
@@ -128,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
129
|
}>>;
|
129
130
|
emit: (event: "comfirm", ...args: any[]) => void;
|
130
131
|
state: {
|
132
|
+
filterable: boolean;
|
131
133
|
orgId: string | number;
|
132
134
|
currentSessionItem: AnyObject;
|
133
135
|
id: string;
|
@@ -6,6 +6,7 @@ import { FileOptions } from '../types';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
7
7
|
inputRef: Ref<HTMLDivElement | undefined>;
|
8
8
|
state: {
|
9
|
+
filterable: boolean;
|
9
10
|
orgId: string | number;
|
10
11
|
currentSessionItem: AnyObject;
|
11
12
|
id: string;
|
@@ -109,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
109
110
|
}>>;
|
110
111
|
emit: (event: "comfirm", ...args: any[]) => void;
|
111
112
|
state: {
|
113
|
+
filterable: boolean;
|
112
114
|
orgId: string | number;
|
113
115
|
currentSessionItem: AnyObject;
|
114
116
|
id: string;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { AnyObject } from '../../../../shared/types';
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
3
3
|
state: {
|
4
|
+
filterable: boolean;
|
4
5
|
orgId: string | number;
|
5
6
|
currentSessionItem: AnyObject;
|
6
7
|
id: string;
|
@@ -70,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
70
71
|
}>>;
|
71
72
|
emit: (event: "close", ...args: any[]) => void;
|
72
73
|
state: {
|
74
|
+
filterable: boolean;
|
73
75
|
orgId: string | number;
|
74
76
|
currentSessionItem: AnyObject;
|
75
77
|
id: string;
|
@@ -136,6 +138,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
136
138
|
[x: string]: unknown;
|
137
139
|
};
|
138
140
|
state: {
|
141
|
+
filterable: boolean;
|
139
142
|
orgId: string | number;
|
140
143
|
currentSessionItem: AnyObject;
|
141
144
|
id: string;
|
@@ -210,6 +213,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
210
213
|
}>>;
|
211
214
|
emit: (event: "close", ...args: any[]) => void;
|
212
215
|
state: {
|
216
|
+
filterable: boolean;
|
213
217
|
orgId: string | number;
|
214
218
|
currentSessionItem: AnyObject;
|
215
219
|
id: string;
|
@@ -325,6 +329,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
325
329
|
}>>;
|
326
330
|
emit: (event: "comfirm", ...args: any[]) => void;
|
327
331
|
state: {
|
332
|
+
filterable: boolean;
|
328
333
|
orgId: string | number;
|
329
334
|
currentSessionItem: AnyObject;
|
330
335
|
id: string;
|
@@ -436,6 +441,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
436
441
|
}>> & {}>>;
|
437
442
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
438
443
|
state: {
|
444
|
+
filterable: boolean;
|
439
445
|
orgId: string | number;
|
440
446
|
currentSessionItem: AnyObject;
|
441
447
|
id: string;
|
@@ -543,6 +549,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
543
549
|
}>>;
|
544
550
|
emit: (event: "comfirm", ...args: any[]) => void;
|
545
551
|
state: {
|
552
|
+
filterable: boolean;
|
546
553
|
orgId: string | number;
|
547
554
|
currentSessionItem: AnyObject;
|
548
555
|
id: string;
|
@@ -660,6 +667,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
660
667
|
};
|
661
668
|
}>> & {}>>;
|
662
669
|
state: {
|
670
|
+
filterable: boolean;
|
663
671
|
orgId: string | number;
|
664
672
|
currentSessionItem: AnyObject;
|
665
673
|
id: string;
|
@@ -892,6 +900,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
892
900
|
}>>;
|
893
901
|
emit: (event: "comfirm", ...args: any[]) => void;
|
894
902
|
state: {
|
903
|
+
filterable: boolean;
|
895
904
|
orgId: string | number;
|
896
905
|
currentSessionItem: AnyObject;
|
897
906
|
id: string;
|
@@ -6,6 +6,7 @@ import { MESSAGE_TYPE } from '../constants';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
7
7
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
8
8
|
state: {
|
9
|
+
filterable: boolean;
|
9
10
|
orgId: string | number;
|
10
11
|
currentSessionItem: AnyObject;
|
11
12
|
id: string;
|
@@ -96,6 +97,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
96
97
|
}>>;
|
97
98
|
emit: (event: "close", ...args: any[]) => void;
|
98
99
|
state: {
|
100
|
+
filterable: boolean;
|
99
101
|
orgId: string | number;
|
100
102
|
currentSessionItem: AnyObject;
|
101
103
|
id: string;
|
@@ -330,6 +332,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
330
332
|
}>>;
|
331
333
|
emit: (event: "comfirm", ...args: any[]) => void;
|
332
334
|
state: {
|
335
|
+
filterable: boolean;
|
333
336
|
orgId: string | number;
|
334
337
|
currentSessionItem: AnyObject;
|
335
338
|
id: string;
|