cnhis-design-vue 3.2.15-beta.5 → 3.2.15-beta.9
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/classification/src/index.vue2.js +1 -1
- 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 +256 -18
- package/es/components/iho-chat/src/Index.vue.d.ts +256 -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 +206 -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,15 @@ 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
|
+
datePickerRef: import("vue").Ref<any>;
|
179
|
+
inputRef: import("vue").Ref<any>;
|
180
|
+
dateRange: import("vue").Ref<any>;
|
181
|
+
keyword: import("vue").Ref<string>;
|
182
|
+
showSearch: import("vue").Ref<boolean>;
|
183
|
+
filterList: import("vue").Ref<AnyObject[]>;
|
184
|
+
handleInput: () => void;
|
169
185
|
state: {
|
186
|
+
filterable: boolean;
|
170
187
|
orgId: string | number;
|
171
188
|
currentSessionItem: AnyObject;
|
172
189
|
id: string;
|
@@ -197,10 +214,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
214
|
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
198
215
|
handleContextmenu: (event: MouseEvent, id: string) => Promise<void>;
|
199
216
|
handleSelect: (key: string, session: AnyObject) => Promise<void>;
|
200
|
-
|
217
|
+
handleUpdateShow: (value: boolean) => void;
|
218
|
+
handleClickoutside: (e: Event) => void;
|
219
|
+
handleUpdateDate: (value: string[]) => void;
|
220
|
+
handleSearch: () => void;
|
201
221
|
NBadge: any;
|
202
222
|
NAvatar: any;
|
223
|
+
NInput: any;
|
203
224
|
NTag: any;
|
225
|
+
NIcon: any;
|
226
|
+
NPopover: any;
|
204
227
|
ContextMenu: import("vue").DefineComponent<{
|
205
228
|
type: {
|
206
229
|
type: StringConstructor;
|
@@ -244,9 +267,200 @@ declare const _default: import("vue").DefineComponent<{
|
|
244
267
|
};
|
245
268
|
formatTime: typeof import("./utils").formatTime;
|
246
269
|
STATUS: typeof import("./constants").STATUS;
|
270
|
+
CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
271
|
+
updateUnchangedValue: {
|
272
|
+
type: BooleanConstructor;
|
273
|
+
};
|
274
|
+
onConfirm: {
|
275
|
+
type: FunctionConstructor;
|
276
|
+
};
|
277
|
+
formattedValue: {
|
278
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
279
|
+
};
|
280
|
+
placeholder: {
|
281
|
+
type: StringConstructor;
|
282
|
+
};
|
283
|
+
allowedInvalidValue: {
|
284
|
+
type: StringConstructor;
|
285
|
+
};
|
286
|
+
to: {
|
287
|
+
type: PropType<string | false | HTMLElement>;
|
288
|
+
default: string;
|
289
|
+
};
|
290
|
+
holidays: {
|
291
|
+
type: PropType<Date[]>;
|
292
|
+
default: () => never[];
|
293
|
+
};
|
294
|
+
type: {
|
295
|
+
type: StringConstructor;
|
296
|
+
default: string;
|
297
|
+
};
|
298
|
+
}, {
|
299
|
+
attrs: {
|
300
|
+
[x: string]: unknown;
|
301
|
+
};
|
302
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
303
|
+
updateUnchangedValue: {
|
304
|
+
type: BooleanConstructor;
|
305
|
+
};
|
306
|
+
onConfirm: {
|
307
|
+
type: FunctionConstructor;
|
308
|
+
};
|
309
|
+
formattedValue: {
|
310
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
311
|
+
};
|
312
|
+
placeholder: {
|
313
|
+
type: StringConstructor;
|
314
|
+
};
|
315
|
+
allowedInvalidValue: {
|
316
|
+
type: StringConstructor;
|
317
|
+
};
|
318
|
+
to: {
|
319
|
+
type: PropType<string | false | HTMLElement>;
|
320
|
+
default: string;
|
321
|
+
};
|
322
|
+
holidays: {
|
323
|
+
type: PropType<Date[]>;
|
324
|
+
default: () => never[];
|
325
|
+
};
|
326
|
+
type: {
|
327
|
+
type: StringConstructor;
|
328
|
+
default: string;
|
329
|
+
};
|
330
|
+
}>> & {
|
331
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
332
|
+
}>>;
|
333
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
334
|
+
datePickerRef: import("vue").Ref<AnyObject | null>;
|
335
|
+
panelInstRef: import("vue").Ref<null>;
|
336
|
+
placeholderRef: import("vue").Ref<any>;
|
337
|
+
oldValue: string;
|
338
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
339
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
340
|
+
formatRef: import("vue").ComputedRef<string>;
|
341
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
342
|
+
focus: () => any;
|
343
|
+
blur: () => any;
|
344
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
345
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
346
|
+
watchers: import("../../../shared/types").AnyFn[];
|
347
|
+
stopWatcher: () => void;
|
348
|
+
setHoliday: (show: boolean) => Promise<void>;
|
349
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
350
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
351
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
352
|
+
NDatePicker: any;
|
353
|
+
}, 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<{
|
354
|
+
updateUnchangedValue: {
|
355
|
+
type: BooleanConstructor;
|
356
|
+
};
|
357
|
+
onConfirm: {
|
358
|
+
type: FunctionConstructor;
|
359
|
+
};
|
360
|
+
formattedValue: {
|
361
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
362
|
+
};
|
363
|
+
placeholder: {
|
364
|
+
type: StringConstructor;
|
365
|
+
};
|
366
|
+
allowedInvalidValue: {
|
367
|
+
type: StringConstructor;
|
368
|
+
};
|
369
|
+
to: {
|
370
|
+
type: PropType<string | false | HTMLElement>;
|
371
|
+
default: string;
|
372
|
+
};
|
373
|
+
holidays: {
|
374
|
+
type: PropType<Date[]>;
|
375
|
+
default: () => never[];
|
376
|
+
};
|
377
|
+
type: {
|
378
|
+
type: StringConstructor;
|
379
|
+
default: string;
|
380
|
+
};
|
381
|
+
}>> & {
|
382
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
383
|
+
}, {
|
384
|
+
type: string;
|
385
|
+
updateUnchangedValue: boolean;
|
386
|
+
to: string | false | HTMLElement;
|
387
|
+
holidays: Date[];
|
388
|
+
}>>;
|
389
|
+
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<{}>>, {}>;
|
390
|
+
userItemRender: import("vue").DefineComponent<{
|
391
|
+
item: {
|
392
|
+
type: PropType<AnyObject>;
|
393
|
+
default: () => {};
|
394
|
+
};
|
395
|
+
}, () => 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<{
|
396
|
+
item: {
|
397
|
+
type: PropType<AnyObject>;
|
398
|
+
default: () => {};
|
399
|
+
};
|
400
|
+
}>> & {
|
401
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
402
|
+
}, {
|
403
|
+
item: AnyObject;
|
404
|
+
}>;
|
405
|
+
DefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
406
|
+
type: {
|
407
|
+
type: StringConstructor;
|
408
|
+
default: string;
|
409
|
+
};
|
410
|
+
config: {
|
411
|
+
type: PropType<AnyObject>;
|
412
|
+
default: () => {
|
413
|
+
title: string;
|
414
|
+
content: string;
|
415
|
+
};
|
416
|
+
};
|
417
|
+
}, {
|
418
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
419
|
+
type: {
|
420
|
+
type: StringConstructor;
|
421
|
+
default: string;
|
422
|
+
};
|
423
|
+
config: {
|
424
|
+
type: PropType<AnyObject>;
|
425
|
+
default: () => {
|
426
|
+
title: string;
|
427
|
+
content: string;
|
428
|
+
};
|
429
|
+
};
|
430
|
+
}>> & {
|
431
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
432
|
+
}>>;
|
433
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
434
|
+
configResult: import("vue").ComputedRef<{
|
435
|
+
title: string;
|
436
|
+
content: string;
|
437
|
+
img: string;
|
438
|
+
}>;
|
439
|
+
reloadPage: () => void;
|
440
|
+
NIcon: any;
|
441
|
+
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<{}>>, {}>;
|
442
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
443
|
+
type: {
|
444
|
+
type: StringConstructor;
|
445
|
+
default: string;
|
446
|
+
};
|
447
|
+
config: {
|
448
|
+
type: PropType<AnyObject>;
|
449
|
+
default: () => {
|
450
|
+
title: string;
|
451
|
+
content: string;
|
452
|
+
};
|
453
|
+
};
|
454
|
+
}>> & {
|
455
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
456
|
+
}, {
|
457
|
+
type: string;
|
458
|
+
config: AnyObject;
|
459
|
+
}>>;
|
247
460
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
248
461
|
ChatHeader: import("vue").DefineComponent<{}, {
|
249
462
|
state: {
|
463
|
+
filterable: boolean;
|
250
464
|
orgId: string | number;
|
251
465
|
currentSessionItem: AnyObject;
|
252
466
|
id: string;
|
@@ -316,6 +530,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
530
|
}>>;
|
317
531
|
emit: (event: "close", ...args: any[]) => void;
|
318
532
|
state: {
|
533
|
+
filterable: boolean;
|
319
534
|
orgId: string | number;
|
320
535
|
currentSessionItem: AnyObject;
|
321
536
|
id: string;
|
@@ -382,6 +597,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
382
597
|
[x: string]: unknown;
|
383
598
|
};
|
384
599
|
state: {
|
600
|
+
filterable: boolean;
|
385
601
|
orgId: string | number;
|
386
602
|
currentSessionItem: AnyObject;
|
387
603
|
id: string;
|
@@ -456,6 +672,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
672
|
}>>;
|
457
673
|
emit: (event: "close", ...args: any[]) => void;
|
458
674
|
state: {
|
675
|
+
filterable: boolean;
|
459
676
|
orgId: string | number;
|
460
677
|
currentSessionItem: AnyObject;
|
461
678
|
id: string;
|
@@ -571,6 +788,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
571
788
|
}>>;
|
572
789
|
emit: (event: "comfirm", ...args: any[]) => void;
|
573
790
|
state: {
|
791
|
+
filterable: boolean;
|
574
792
|
orgId: string | number;
|
575
793
|
currentSessionItem: AnyObject;
|
576
794
|
id: string;
|
@@ -682,6 +900,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
682
900
|
}>> & {}>>;
|
683
901
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
684
902
|
state: {
|
903
|
+
filterable: boolean;
|
685
904
|
orgId: string | number;
|
686
905
|
currentSessionItem: AnyObject;
|
687
906
|
id: string;
|
@@ -789,6 +1008,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
789
1008
|
}>>;
|
790
1009
|
emit: (event: "comfirm", ...args: any[]) => void;
|
791
1010
|
state: {
|
1011
|
+
filterable: boolean;
|
792
1012
|
orgId: string | number;
|
793
1013
|
currentSessionItem: AnyObject;
|
794
1014
|
id: string;
|
@@ -906,6 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
906
1126
|
};
|
907
1127
|
}>> & {}>>;
|
908
1128
|
state: {
|
1129
|
+
filterable: boolean;
|
909
1130
|
orgId: string | number;
|
910
1131
|
currentSessionItem: AnyObject;
|
911
1132
|
id: string;
|
@@ -1138,6 +1359,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1138
1359
|
}>>;
|
1139
1360
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1140
1361
|
state: {
|
1362
|
+
filterable: boolean;
|
1141
1363
|
orgId: string | number;
|
1142
1364
|
currentSessionItem: AnyObject;
|
1143
1365
|
id: string;
|
@@ -1234,6 +1456,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1234
1456
|
ChatMain: import("vue").DefineComponent<{}, {
|
1235
1457
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
1236
1458
|
state: {
|
1459
|
+
filterable: boolean;
|
1237
1460
|
orgId: string | number;
|
1238
1461
|
currentSessionItem: AnyObject;
|
1239
1462
|
id: string;
|
@@ -1324,6 +1547,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1324
1547
|
}>>;
|
1325
1548
|
emit: (event: "close", ...args: any[]) => void;
|
1326
1549
|
state: {
|
1550
|
+
filterable: boolean;
|
1327
1551
|
orgId: string | number;
|
1328
1552
|
currentSessionItem: AnyObject;
|
1329
1553
|
id: string;
|
@@ -1558,6 +1782,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1558
1782
|
}>>;
|
1559
1783
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1560
1784
|
state: {
|
1785
|
+
filterable: boolean;
|
1561
1786
|
orgId: string | number;
|
1562
1787
|
currentSessionItem: AnyObject;
|
1563
1788
|
id: string;
|
@@ -1661,6 +1886,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1661
1886
|
ChatFooter: import("vue").DefineComponent<{}, {
|
1662
1887
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
1663
1888
|
state: {
|
1889
|
+
filterable: boolean;
|
1664
1890
|
orgId: string | number;
|
1665
1891
|
currentSessionItem: AnyObject;
|
1666
1892
|
id: string;
|
@@ -1764,6 +1990,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1764
1990
|
}>>;
|
1765
1991
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1766
1992
|
state: {
|
1993
|
+
filterable: boolean;
|
1767
1994
|
orgId: string | number;
|
1768
1995
|
currentSessionItem: AnyObject;
|
1769
1996
|
id: string;
|
@@ -1871,6 +2098,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1871
2098
|
keyword: import("vue").Ref<string>;
|
1872
2099
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
1873
2100
|
state: {
|
2101
|
+
filterable: boolean;
|
1874
2102
|
orgId: string | number;
|
1875
2103
|
currentSessionItem: AnyObject;
|
1876
2104
|
id: string;
|
@@ -1889,28 +2117,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1889
2117
|
currentGroupUser: AnyObject[];
|
1890
2118
|
showMultipleVideo: boolean;
|
1891
2119
|
};
|
1892
|
-
openSession: (session: string | AnyObject) => Promise<void>;
|
1893
2120
|
userList: import("vue").Ref<AnyObject[]>;
|
1894
2121
|
handleInput: () => void;
|
1895
2122
|
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
2123
|
groupList: import("vue").ComputedRef<AnyObject[]>;
|
1910
2124
|
showNoData: import("vue").ComputedRef<boolean>;
|
1911
2125
|
showAllNoData: import("vue").ComputedRef<boolean>;
|
1912
2126
|
showGroupNoData: import("vue").ComputedRef<boolean>;
|
1913
|
-
|
2127
|
+
handleClose: () => void;
|
1914
2128
|
NPopover: any;
|
1915
2129
|
NButton: any;
|
1916
2130
|
NInput: any;
|
@@ -1974,6 +2188,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1974
2188
|
type: string;
|
1975
2189
|
config: AnyObject;
|
1976
2190
|
}>>;
|
2191
|
+
userItemRender: import("vue").DefineComponent<{
|
2192
|
+
item: {
|
2193
|
+
type: PropType<AnyObject>;
|
2194
|
+
default: () => {};
|
2195
|
+
};
|
2196
|
+
}, () => 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<{
|
2197
|
+
item: {
|
2198
|
+
type: PropType<AnyObject>;
|
2199
|
+
default: () => {};
|
2200
|
+
};
|
2201
|
+
}>> & {
|
2202
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
2203
|
+
}, {
|
2204
|
+
item: AnyObject;
|
2205
|
+
}>;
|
1977
2206
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1978
2207
|
ChatAdd: import("vue").DefineComponent<{
|
1979
2208
|
title: {
|
@@ -2029,6 +2258,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2029
2258
|
}>>;
|
2030
2259
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2031
2260
|
state: {
|
2261
|
+
filterable: boolean;
|
2032
2262
|
orgId: string | number;
|
2033
2263
|
currentSessionItem: AnyObject;
|
2034
2264
|
id: string;
|
@@ -2126,6 +2356,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2126
2356
|
receiver?: string | undefined;
|
2127
2357
|
}) => Promise<void>;
|
2128
2358
|
state: {
|
2359
|
+
filterable: boolean;
|
2129
2360
|
orgId: string | number;
|
2130
2361
|
currentSessionItem: AnyObject;
|
2131
2362
|
id: string;
|
@@ -2207,6 +2438,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2207
2438
|
name: string;
|
2208
2439
|
}[]>;
|
2209
2440
|
state: {
|
2441
|
+
filterable: boolean;
|
2210
2442
|
orgId: string | number;
|
2211
2443
|
currentSessionItem: AnyObject;
|
2212
2444
|
id: string;
|
@@ -2324,6 +2556,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2324
2556
|
}>>;
|
2325
2557
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2326
2558
|
state: {
|
2559
|
+
filterable: boolean;
|
2327
2560
|
orgId: string | number;
|
2328
2561
|
currentSessionItem: AnyObject;
|
2329
2562
|
id: string;
|
@@ -2454,6 +2687,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2454
2687
|
type: PropType<AnyObject>;
|
2455
2688
|
default: () => {};
|
2456
2689
|
};
|
2690
|
+
filterable: {
|
2691
|
+
type: BooleanConstructor;
|
2692
|
+
default: boolean;
|
2693
|
+
};
|
2457
2694
|
}>> & {
|
2458
2695
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
2459
2696
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -2464,5 +2701,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
2464
2701
|
showHeader: boolean;
|
2465
2702
|
baseURL: string;
|
2466
2703
|
extraParams: AnyObject;
|
2704
|
+
filterable: boolean;
|
2467
2705
|
}>;
|
2468
2706
|
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;
|