cnhis-design-vue 3.2.7-release.0 → 3.2.7-release.2
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/classification/index.d.ts +60 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
- package/es/components/classification/src/index.vue.d.ts +60 -5
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -1
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +204 -69
- package/es/components/iho-chat/src/Index.vue.d.ts +204 -69
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +34 -13
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +38 -13
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +48 -14
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +20 -3
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +3 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +47 -22
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
@@ -21,6 +21,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
type: StringConstructor;
|
22
22
|
default: string;
|
23
23
|
};
|
24
|
+
chatBox: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
defaultSessionKey: {
|
29
|
+
type: StringConstructor;
|
30
|
+
};
|
24
31
|
}, {
|
25
32
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
26
33
|
token: {
|
@@ -39,6 +46,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
46
|
type: StringConstructor;
|
40
47
|
default: string;
|
41
48
|
};
|
49
|
+
chatBox: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
defaultSessionKey: {
|
54
|
+
type: StringConstructor;
|
55
|
+
};
|
42
56
|
}>> & {
|
43
57
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
44
58
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -62,7 +76,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
76
|
currentReferenceMsg: AnyObject | null;
|
63
77
|
showVideo: boolean;
|
64
78
|
currentAVMsg: AnyObject;
|
65
|
-
userList: AnyObject[];
|
66
79
|
currentGroupUser: AnyObject[];
|
67
80
|
showMultipleVideo: boolean;
|
68
81
|
};
|
@@ -75,9 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
75
88
|
setCurrentSessionItem: (item: AnyObject) => void;
|
76
89
|
groupSessionList: AnyObject[];
|
77
90
|
init: () => Promise<void>;
|
78
|
-
handleUserSearch: () => Promise<void>;
|
79
91
|
initWebSocket: () => void;
|
80
92
|
subscribeSessionList: () => void;
|
93
|
+
handleDefaultSession: () => void;
|
81
94
|
subscribeGroupMessage: () => void;
|
82
95
|
subscribeMessage: () => void;
|
83
96
|
handleMessage: (messageVo: AnyObject, chatType: string) => Promise<void>;
|
@@ -137,7 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
150
|
defaultValue?: undefined;
|
138
151
|
} | {
|
139
152
|
mode: string;
|
140
|
-
defaultValue:
|
153
|
+
defaultValue: AnyObject[];
|
141
154
|
disabledIds?: undefined;
|
142
155
|
}>;
|
143
156
|
handleOpenChatFile: (type: string) => void;
|
@@ -419,6 +432,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
419
432
|
allowedInvalidValue: {
|
420
433
|
type: StringConstructor;
|
421
434
|
};
|
435
|
+
to: {
|
436
|
+
type: PropType<string | false | HTMLElement>;
|
437
|
+
default: string;
|
438
|
+
};
|
422
439
|
}, {
|
423
440
|
attrs: {
|
424
441
|
[x: string]: unknown;
|
@@ -439,6 +456,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
439
456
|
allowedInvalidValue: {
|
440
457
|
type: StringConstructor;
|
441
458
|
};
|
459
|
+
to: {
|
460
|
+
type: PropType<string | false | HTMLElement>;
|
461
|
+
default: string;
|
462
|
+
};
|
442
463
|
}>> & {
|
443
464
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
444
465
|
}>>;
|
@@ -475,10 +496,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
475
496
|
allowedInvalidValue: {
|
476
497
|
type: StringConstructor;
|
477
498
|
};
|
499
|
+
to: {
|
500
|
+
type: PropType<string | false | HTMLElement>;
|
501
|
+
default: string;
|
502
|
+
};
|
478
503
|
}>> & {
|
479
504
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
480
505
|
}, {
|
481
506
|
updateUnchangedValue: boolean;
|
507
|
+
to: string | false | HTMLElement;
|
482
508
|
}>>;
|
483
509
|
formatTime: typeof import("./utils").formatTime;
|
484
510
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
@@ -507,9 +533,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
507
533
|
};
|
508
534
|
disabledIds: {
|
509
535
|
type: PropType<string[]>;
|
536
|
+
default: () => never[];
|
510
537
|
};
|
511
538
|
defaultValue: {
|
512
|
-
type: PropType<
|
539
|
+
type: PropType<AnyObject[]>;
|
513
540
|
};
|
514
541
|
}, {
|
515
542
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -526,34 +553,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
526
553
|
};
|
527
554
|
disabledIds: {
|
528
555
|
type: PropType<string[]>;
|
556
|
+
default: () => never[];
|
529
557
|
};
|
530
558
|
defaultValue: {
|
531
|
-
type: PropType<
|
559
|
+
type: PropType<AnyObject[]>;
|
532
560
|
};
|
533
561
|
}>> & {
|
534
562
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
535
563
|
}>>;
|
536
564
|
emit: (event: "comfirm", ...args: any[]) => void;
|
537
565
|
state: IState;
|
566
|
+
listRef: import("vue").Ref<any>;
|
567
|
+
keyword: import("vue").Ref<any>;
|
538
568
|
showModal: import("vue").Ref<boolean>;
|
539
|
-
|
569
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
540
570
|
options: import("vue").Ref<AnyObject[]>;
|
541
571
|
groupName: import("vue").Ref<string>;
|
572
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
573
|
+
userList: import("vue").Ref<AnyObject[]>;
|
574
|
+
handleInput: () => void;
|
575
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
576
|
+
defaultOptions: import("vue").ComputedRef<{
|
577
|
+
id: any;
|
578
|
+
name: any;
|
579
|
+
avatar: any;
|
580
|
+
}[]>;
|
581
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
542
582
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
583
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
543
584
|
handlePositiveClick: () => Promise<void>;
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
}) => JSX.Element | null;
|
585
|
+
updateCheckedSourceIds: () => void;
|
586
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
587
|
+
actionType: "check" | "uncheck";
|
588
|
+
value: string | number;
|
589
|
+
}) => void;
|
590
|
+
closeTag: (id: string) => void;
|
591
|
+
renderTargetList: () => JSX.Element[] | null;
|
552
592
|
NModal: any;
|
553
593
|
NButton: any;
|
554
|
-
|
594
|
+
NSpace: any;
|
595
|
+
NAvatar: any;
|
555
596
|
NIcon: any;
|
597
|
+
NTag: any;
|
556
598
|
NInput: any;
|
599
|
+
NCheckbox: any;
|
600
|
+
NCheckboxGroup: any;
|
601
|
+
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<{}>>, {}>;
|
557
602
|
AddOutline: 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<{}>>, {}>;
|
558
603
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
559
604
|
title: {
|
@@ -569,15 +614,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
569
614
|
};
|
570
615
|
disabledIds: {
|
571
616
|
type: PropType<string[]>;
|
617
|
+
default: () => never[];
|
572
618
|
};
|
573
619
|
defaultValue: {
|
574
|
-
type: PropType<
|
620
|
+
type: PropType<AnyObject[]>;
|
575
621
|
};
|
576
622
|
}>> & {
|
577
623
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
578
624
|
}, {
|
579
625
|
mode: string;
|
580
626
|
title: string;
|
627
|
+
disabledIds: string[];
|
581
628
|
}>;
|
582
629
|
PersonAddOutline: 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<{}>>, {}>;
|
583
630
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -587,7 +634,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
587
634
|
setMsgList: (list?: AnyObject[]) => void;
|
588
635
|
setCurrentSessionItem: (item: AnyObject) => void;
|
589
636
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
637
|
+
contextmenuRef: import("vue").Ref<any>;
|
590
638
|
showMenu: import("vue").Ref<boolean>;
|
639
|
+
menuPosition: any;
|
640
|
+
menuMsgId: import("vue").Ref<any>;
|
591
641
|
pageInfo: {
|
592
642
|
page: number;
|
593
643
|
hasMore: boolean;
|
@@ -598,6 +648,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
598
648
|
'--c-tip-gap': string;
|
599
649
|
}>;
|
600
650
|
getHistoryRecord: () => Promise<void>;
|
651
|
+
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
652
|
+
setMenuPosition: (event: MouseEvent) => Promise<void>;
|
601
653
|
showMessage: (item: AnyObject) => boolean;
|
602
654
|
showTemplateMsg: (item: AnyObject, type: "template" | "system") => boolean | undefined;
|
603
655
|
isTemplate3: (content: AnyObject) => boolean;
|
@@ -768,13 +820,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
768
820
|
type: BooleanConstructor;
|
769
821
|
default: boolean;
|
770
822
|
};
|
771
|
-
|
823
|
+
position: {
|
824
|
+
type: PropType<import("vue").CSSProperties>;
|
825
|
+
};
|
826
|
+
msgId: {
|
827
|
+
type: StringConstructor;
|
828
|
+
};
|
829
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show")[], "select" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
772
830
|
show: {
|
773
831
|
type: BooleanConstructor;
|
774
832
|
default: boolean;
|
775
833
|
};
|
834
|
+
position: {
|
835
|
+
type: PropType<import("vue").CSSProperties>;
|
836
|
+
};
|
837
|
+
msgId: {
|
838
|
+
type: StringConstructor;
|
839
|
+
};
|
776
840
|
}>> & {
|
777
|
-
|
841
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
778
842
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
779
843
|
}, {
|
780
844
|
show: boolean;
|
@@ -785,7 +849,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
785
849
|
getAVTime: typeof import("./utils").getAVTime;
|
786
850
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
787
851
|
ChatbubbleEllipsesOutline: 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<{}>>, {}>;
|
788
|
-
EllipsisHorizontal: 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<{}>>, {}>;
|
789
852
|
CallOutline: 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<{}>>, {}>;
|
790
853
|
VideocamOutline: 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<{}>>, {}>;
|
791
854
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -800,6 +863,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
800
863
|
}) => Promise<void>;
|
801
864
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
802
865
|
showEmoji: import("vue").Ref<boolean>;
|
866
|
+
chatAddProps: import("vue").ComputedRef<{
|
867
|
+
options: AnyObject[];
|
868
|
+
defaultValue: AnyObject[];
|
869
|
+
}>;
|
803
870
|
handleCall: (chatMessageType: string, checkedIds?: never[]) => void;
|
804
871
|
handleKeyDown: (event: KeyboardEvent) => void;
|
805
872
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -831,9 +898,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
831
898
|
};
|
832
899
|
disabledIds: {
|
833
900
|
type: PropType<string[]>;
|
901
|
+
default: () => never[];
|
834
902
|
};
|
835
903
|
defaultValue: {
|
836
|
-
type: PropType<
|
904
|
+
type: PropType<AnyObject[]>;
|
837
905
|
};
|
838
906
|
}, {
|
839
907
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -850,34 +918,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
850
918
|
};
|
851
919
|
disabledIds: {
|
852
920
|
type: PropType<string[]>;
|
921
|
+
default: () => never[];
|
853
922
|
};
|
854
923
|
defaultValue: {
|
855
|
-
type: PropType<
|
924
|
+
type: PropType<AnyObject[]>;
|
856
925
|
};
|
857
926
|
}>> & {
|
858
927
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
859
928
|
}>>;
|
860
929
|
emit: (event: "comfirm", ...args: any[]) => void;
|
861
930
|
state: IState;
|
931
|
+
listRef: import("vue").Ref<any>;
|
932
|
+
keyword: import("vue").Ref<any>;
|
862
933
|
showModal: import("vue").Ref<boolean>;
|
863
|
-
|
934
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
864
935
|
options: import("vue").Ref<AnyObject[]>;
|
865
936
|
groupName: import("vue").Ref<string>;
|
937
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
938
|
+
userList: import("vue").Ref<AnyObject[]>;
|
939
|
+
handleInput: () => void;
|
940
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
941
|
+
defaultOptions: import("vue").ComputedRef<{
|
942
|
+
id: any;
|
943
|
+
name: any;
|
944
|
+
avatar: any;
|
945
|
+
}[]>;
|
946
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
866
947
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
948
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
867
949
|
handlePositiveClick: () => Promise<void>;
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
}) => JSX.Element | null;
|
950
|
+
updateCheckedSourceIds: () => void;
|
951
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
952
|
+
actionType: "check" | "uncheck";
|
953
|
+
value: string | number;
|
954
|
+
}) => void;
|
955
|
+
closeTag: (id: string) => void;
|
956
|
+
renderTargetList: () => JSX.Element[] | null;
|
876
957
|
NModal: any;
|
877
958
|
NButton: any;
|
878
|
-
|
959
|
+
NSpace: any;
|
960
|
+
NAvatar: any;
|
879
961
|
NIcon: any;
|
962
|
+
NTag: any;
|
880
963
|
NInput: any;
|
964
|
+
NCheckbox: any;
|
965
|
+
NCheckboxGroup: any;
|
966
|
+
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<{}>>, {}>;
|
881
967
|
AddOutline: 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<{}>>, {}>;
|
882
968
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
883
969
|
title: {
|
@@ -893,15 +979,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
893
979
|
};
|
894
980
|
disabledIds: {
|
895
981
|
type: PropType<string[]>;
|
982
|
+
default: () => never[];
|
896
983
|
};
|
897
984
|
defaultValue: {
|
898
|
-
type: PropType<
|
985
|
+
type: PropType<AnyObject[]>;
|
899
986
|
};
|
900
987
|
}>> & {
|
901
988
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
902
989
|
}, {
|
903
990
|
mode: string;
|
904
991
|
title: string;
|
992
|
+
disabledIds: string[];
|
905
993
|
}>;
|
906
994
|
emojis: {
|
907
995
|
default: string[][];
|
@@ -919,16 +1007,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
919
1007
|
inputRef: import("vue").Ref<any>;
|
920
1008
|
showSearch: import("vue").Ref<boolean>;
|
921
1009
|
keyword: import("vue").Ref<any>;
|
922
|
-
userList: import("vue").Ref<any>;
|
923
1010
|
state: IState;
|
924
1011
|
openSession: (item: AnyObject) => Promise<void>;
|
925
|
-
|
926
|
-
page: number;
|
927
|
-
hasMore: boolean;
|
928
|
-
};
|
1012
|
+
userList: import("vue").Ref<AnyObject[]>;
|
929
1013
|
handleInput: () => void;
|
930
|
-
handleSearch: () => Promise<void>;
|
931
|
-
resetAndSearch: () => void;
|
932
1014
|
addSession: (userId: string) => Promise<void>;
|
933
1015
|
NPopover: any;
|
934
1016
|
NButton: any;
|
@@ -951,9 +1033,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
951
1033
|
};
|
952
1034
|
disabledIds: {
|
953
1035
|
type: PropType<string[]>;
|
1036
|
+
default: () => never[];
|
954
1037
|
};
|
955
1038
|
defaultValue: {
|
956
|
-
type: PropType<
|
1039
|
+
type: PropType<AnyObject[]>;
|
957
1040
|
};
|
958
1041
|
}, {
|
959
1042
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -970,34 +1053,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
970
1053
|
};
|
971
1054
|
disabledIds: {
|
972
1055
|
type: PropType<string[]>;
|
1056
|
+
default: () => never[];
|
973
1057
|
};
|
974
1058
|
defaultValue: {
|
975
|
-
type: PropType<
|
1059
|
+
type: PropType<AnyObject[]>;
|
976
1060
|
};
|
977
1061
|
}>> & {
|
978
1062
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
979
1063
|
}>>;
|
980
1064
|
emit: (event: "comfirm", ...args: any[]) => void;
|
981
1065
|
state: IState;
|
1066
|
+
listRef: import("vue").Ref<any>;
|
1067
|
+
keyword: import("vue").Ref<any>;
|
982
1068
|
showModal: import("vue").Ref<boolean>;
|
983
|
-
|
1069
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
984
1070
|
options: import("vue").Ref<AnyObject[]>;
|
985
1071
|
groupName: import("vue").Ref<string>;
|
1072
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1073
|
+
userList: import("vue").Ref<AnyObject[]>;
|
1074
|
+
handleInput: () => void;
|
1075
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
1076
|
+
defaultOptions: import("vue").ComputedRef<{
|
1077
|
+
id: any;
|
1078
|
+
name: any;
|
1079
|
+
avatar: any;
|
1080
|
+
}[]>;
|
1081
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
986
1082
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1083
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
987
1084
|
handlePositiveClick: () => Promise<void>;
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
}) => JSX.Element | null;
|
1085
|
+
updateCheckedSourceIds: () => void;
|
1086
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1087
|
+
actionType: "check" | "uncheck";
|
1088
|
+
value: string | number;
|
1089
|
+
}) => void;
|
1090
|
+
closeTag: (id: string) => void;
|
1091
|
+
renderTargetList: () => JSX.Element[] | null;
|
996
1092
|
NModal: any;
|
997
1093
|
NButton: any;
|
998
|
-
|
1094
|
+
NSpace: any;
|
1095
|
+
NAvatar: any;
|
999
1096
|
NIcon: any;
|
1097
|
+
NTag: any;
|
1000
1098
|
NInput: any;
|
1099
|
+
NCheckbox: any;
|
1100
|
+
NCheckboxGroup: any;
|
1101
|
+
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<{}>>, {}>;
|
1001
1102
|
AddOutline: 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<{}>>, {}>;
|
1002
1103
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1003
1104
|
title: {
|
@@ -1013,15 +1114,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
1013
1114
|
};
|
1014
1115
|
disabledIds: {
|
1015
1116
|
type: PropType<string[]>;
|
1117
|
+
default: () => never[];
|
1016
1118
|
};
|
1017
1119
|
defaultValue: {
|
1018
|
-
type: PropType<
|
1120
|
+
type: PropType<AnyObject[]>;
|
1019
1121
|
};
|
1020
1122
|
}>> & {
|
1021
1123
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1022
1124
|
}, {
|
1023
1125
|
mode: string;
|
1024
1126
|
title: string;
|
1127
|
+
disabledIds: string[];
|
1025
1128
|
}>;
|
1026
1129
|
Video: import("vue").DefineComponent<{}, {
|
1027
1130
|
sendMessage: (message: {
|
@@ -1076,7 +1179,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1076
1179
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1077
1180
|
MultipleVideo: import("vue").DefineComponent<{}, {
|
1078
1181
|
selfVideoRef: import("vue").Ref<any>;
|
1079
|
-
remoteUsers: import("vue").Ref<
|
1182
|
+
remoteUsers: import("vue").Ref<{
|
1183
|
+
id: string;
|
1184
|
+
name: string;
|
1185
|
+
}[]>;
|
1080
1186
|
state: IState;
|
1081
1187
|
sendMessage: (message: {
|
1082
1188
|
chatType?: string | undefined;
|
@@ -1104,11 +1210,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
1104
1210
|
installEventHandlers: () => void;
|
1105
1211
|
uninstallEventHandlers: () => void;
|
1106
1212
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1107
|
-
handleRemoteAudioAvailable: (event: any) => void
|
1108
|
-
handleRemoteUserEnter: (event: any) => void
|
1213
|
+
handleRemoteAudioAvailable: (event: any) => Promise<void>;
|
1214
|
+
handleRemoteUserEnter: (event: any) => Promise<void>;
|
1215
|
+
getUserName: (userId: string) => Promise<any>;
|
1109
1216
|
handleRemoteUserExit: (event: any) => void;
|
1110
1217
|
handleError: (error: any) => void;
|
1111
|
-
getName: (id: string) => any;
|
1112
1218
|
NButton: any;
|
1113
1219
|
NIcon: any;
|
1114
1220
|
ChatAdd: import("vue").DefineComponent<{
|
@@ -1125,9 +1231,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1125
1231
|
};
|
1126
1232
|
disabledIds: {
|
1127
1233
|
type: PropType<string[]>;
|
1234
|
+
default: () => never[];
|
1128
1235
|
};
|
1129
1236
|
defaultValue: {
|
1130
|
-
type: PropType<
|
1237
|
+
type: PropType<AnyObject[]>;
|
1131
1238
|
};
|
1132
1239
|
}, {
|
1133
1240
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1144,34 +1251,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
1144
1251
|
};
|
1145
1252
|
disabledIds: {
|
1146
1253
|
type: PropType<string[]>;
|
1254
|
+
default: () => never[];
|
1147
1255
|
};
|
1148
1256
|
defaultValue: {
|
1149
|
-
type: PropType<
|
1257
|
+
type: PropType<AnyObject[]>;
|
1150
1258
|
};
|
1151
1259
|
}>> & {
|
1152
1260
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1153
1261
|
}>>;
|
1154
1262
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1155
1263
|
state: IState;
|
1264
|
+
listRef: import("vue").Ref<any>;
|
1265
|
+
keyword: import("vue").Ref<any>;
|
1156
1266
|
showModal: import("vue").Ref<boolean>;
|
1157
|
-
|
1267
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
1158
1268
|
options: import("vue").Ref<AnyObject[]>;
|
1159
1269
|
groupName: import("vue").Ref<string>;
|
1270
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1271
|
+
userList: import("vue").Ref<AnyObject[]>;
|
1272
|
+
handleInput: () => void;
|
1273
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
1274
|
+
defaultOptions: import("vue").ComputedRef<{
|
1275
|
+
id: any;
|
1276
|
+
name: any;
|
1277
|
+
avatar: any;
|
1278
|
+
}[]>;
|
1279
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
1160
1280
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1281
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
1161
1282
|
handlePositiveClick: () => Promise<void>;
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
}) => JSX.Element | null;
|
1283
|
+
updateCheckedSourceIds: () => void;
|
1284
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1285
|
+
actionType: "check" | "uncheck";
|
1286
|
+
value: string | number;
|
1287
|
+
}) => void;
|
1288
|
+
closeTag: (id: string) => void;
|
1289
|
+
renderTargetList: () => JSX.Element[] | null;
|
1170
1290
|
NModal: any;
|
1171
1291
|
NButton: any;
|
1172
|
-
|
1292
|
+
NSpace: any;
|
1293
|
+
NAvatar: any;
|
1173
1294
|
NIcon: any;
|
1295
|
+
NTag: any;
|
1174
1296
|
NInput: any;
|
1297
|
+
NCheckbox: any;
|
1298
|
+
NCheckboxGroup: any;
|
1299
|
+
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<{}>>, {}>;
|
1175
1300
|
AddOutline: 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<{}>>, {}>;
|
1176
1301
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1177
1302
|
title: {
|
@@ -1187,15 +1312,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
1187
1312
|
};
|
1188
1313
|
disabledIds: {
|
1189
1314
|
type: PropType<string[]>;
|
1315
|
+
default: () => never[];
|
1190
1316
|
};
|
1191
1317
|
defaultValue: {
|
1192
|
-
type: PropType<
|
1318
|
+
type: PropType<AnyObject[]>;
|
1193
1319
|
};
|
1194
1320
|
}>> & {
|
1195
1321
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1196
1322
|
}, {
|
1197
1323
|
mode: string;
|
1198
1324
|
title: string;
|
1325
|
+
disabledIds: string[];
|
1199
1326
|
}>;
|
1200
1327
|
Call: 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<{}>>, {}>;
|
1201
1328
|
Videocam: 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<{}>>, {}>;
|
@@ -1222,10 +1349,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
1222
1349
|
type: StringConstructor;
|
1223
1350
|
default: string;
|
1224
1351
|
};
|
1352
|
+
chatBox: {
|
1353
|
+
type: BooleanConstructor;
|
1354
|
+
default: boolean;
|
1355
|
+
};
|
1356
|
+
defaultSessionKey: {
|
1357
|
+
type: StringConstructor;
|
1358
|
+
};
|
1225
1359
|
}>> & {
|
1226
1360
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
1227
1361
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
1228
1362
|
}, {
|
1229
1363
|
baseURL: string;
|
1364
|
+
chatBox: boolean;
|
1230
1365
|
}>;
|
1231
1366
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as
|
1
|
+
import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as n,openBlock as r,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as d,withCtx as u,createBlock as l,Fragment as p,createElementVNode as m,renderSlot as h,createCommentVNode as f}from"vue";import{NConfigProvider as g,NSpin as y,NLayout as v,NLayoutContent as S}from"naive-ui";import b from"./components/SiderList.vue.js";import M from"./components/ChatHeader.vue.js";import I from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import T from"./components/ChatSearch.vue.js";import V from"./components/ChatAdd.vue.js";import j from"./components/Video.vue.js";import N from"./components/MultipleVideo.vue.js";import{ChatSock as w}from"./utils/chatSock.js";import{instanceAxios as L,readMessageApi as U}from"./api/index.js";import{useTheme as _}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as A}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{CHAT_TYPE as C,SUBSCRIBE_MESSAGE_TYPE as O,AV_STATUS as x}from"./constants/index.js";import{InjectionIChatState as R,InjectionIChatStompClient as G,InjectionIChatEmits as K}from"./types/index.js";import{isAudioOrVideoMessage as E}from"./utils/index.js";import{useSession as B}from"./hooks/useSession.js";import"trtc-sdk-v5";const J={key:0,class:"iho-chat__header"},P={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"},chatBox:{type:Boolean,default:!1},defaultSessionKey:{type:String}},emits:["template-click","unread-message-update"],setup(e,{expose:$,emit:q}){const F=e;L.defaults.baseURL=F.baseURL,L.defaults.headers.Authorization="bearer "+F.token;const H=_(),z=s(!1),D=s(),W=o({orgId:F.orgId,currentSessionItem:{},id:"",userInfo:{id:F.userId},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1,currentReferenceMsg:null,showVideo:!1,currentAVMsg:{},currentGroupUser:[],showMultipleVideo:!1});t(R,W),t(G,D),t(K,q);const{openSession:Y,closeSession:Q,getCurrentSession:X,setSessionList:Z,setUpdateSessionItem:ee,setCurrentSessionItem:se}=B(W),oe=[];function te(){const e={headers:{AccessToken:F.token,UserId:F.userId},heartbeatFn(){try{D.value.send("test")}catch(e){D.value.disconnect(),te()}},connectCb(){console.log("连接成功"),D.value.subscribe("/user/topic/single",(({body:e})=>re({body:e,chatType:C.SINGLE}))),D.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{authentication:o,currentUser:t,sessionVos:n}=s;if(console.log("body",s),Object.assign(W.userInfo,t,o),!(null==n?void 0:n.length))return;Z(n),oe.splice(0,oe.length),oe.push(...n.filter((e=>e.chatType===C.GROUP))),oe.forEach((e=>{D.value.subscribe(`/topic/group/${e.receiver}`,(({body:e})=>re({body:e,chatType:C.GROUP})))})),function(){const e=W.sessionList.find((e=>e.sessionKey===F.defaultSessionKey));e&&Y(e)}()}catch(e){console.log(e)}}))},errorCb(e,s){console.log("断线了,正在重连...")}};D.value=new w("/fdp-chat/websocket",e)}async function ne(e,s){if(W.currentMsg=e,e.sessionKey===W.currentSessionItem.sessionKey)return W.isAppendMsg=!0,e.sender!==W.userInfo.id&&await U({chatType:s,messageIdSet:[e.id],receiver:W.userInfo.id,sender:e.sender}),void se({lastMessageSendTime:e.sendTime,lastMessage:e.content,sortTime:e.sendTime,unreadNum:0,lastSenderName:e.senderName});const o={lastMessageSendTime:e.sendTime,sortTime:e.sendTime,lastMessage:e.content,sessionKey:e.sessionKey,lastSenderName:e.senderName};ee(o)}async function re({body:e,chatType:s}){try{console.log(JSON.parse(e),"订阅新增消息");const o=JSON.parse(e),{messageVo:t,sessionVo:n,chatAvStatusVo:r}=o;switch(o.event){case O.MESSAGE:E(t.content)?!W.showVideo&&!W.showMultipleVideo||t.content.avStatus!==x.IN_CALL?(W.currentMsg=t,Object.assign(W.currentAVMsg,{strRoomId:t.sessionKey,chatMessageType:t.content.chatMessageType,callMode:t.sender===W.userInfo.id?"call":"invite",currentMsg:t}),W.showVideo||W.showMultipleVideo?ne(t,s):W.showVideo=!0):(D.value.send("/app/chat/send",{},JSON.stringify({chatType:C.SINGLE,receiver:t.sender,content:{chatMessageType:t.content.chatMessageType,avStatus:x.CALL_BUSY}})),console.log("用户忙!")):ne(t,s);break;case O.AV_STATUS:Object.assign(W.currentAVMsg,r,{callMode:r.sender===W.userInfo.id?"call":"invite",checkedIds:[]}),W.showVideo||W.showMultipleVideo?console.log("用户忙!"):W.showMultipleVideo=!0;break;case O.NEW_SESSION:if(s===C.GROUP)return;ee(n);break;case O.JOIN:if(s===C.GROUP)return;ee(n),D.value.subscribe(`/topic/group/${n.receiver}`,(({body:e})=>re({body:e,chatType:C.GROUP})))}}catch(e){console.log(e)}}return async function(){te()}(),n((()=>{var e;null==(e=D.value)||e.disconnect()})),$({getUnreadData:function(){return W.sessionList.filter((e=>A(e.unreadNum)&&e.unreadNum>0))},openSession:Y,closeSession:Q,getCurrentSession:X}),(s,o)=>(r(),i("div",{class:"iho-chat",style:a(c(H))},[d(c(g),{abstract:"",namespace:"iho-chat__popover"},{default:u((()=>[z.value?(r(),l(c(y),{key:0,stroke:"#5585f5"})):(r(),i(p,{key:1},[e.chatBox?f("v-if",!0):(r(),i("div",J,[d(T),d(V,{title:"发起群聊",mode:"create","default-value":[W.userInfo]},null,8,["default-value"]),m("div",P,[h(s.$slots,"toolbar")])])),d(c(v),{class:"iho-chat__body","has-sider":""},{default:u((()=>[e.chatBox?f("v-if",!0):(r(),l(b,{key:0})),d(c(S),{class:"chat-content"},{default:u((()=>[d(M),d(I),d(k)])),_:1}),h(s.$slots,"external")])),_:3}),W.showVideo?(r(),l(j,{key:1})):f("v-if",!0),W.showMultipleVideo?(r(),l(N,{key:2})):f("v-if",!0)],64))])),_:3})],4))}});export{$ as default};
|