cnhis-design-vue 3.2.7-release.2 → 3.2.7-release.3
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/base-search/index.d.ts +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/button-print/index.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.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.js +1 -1
- package/es/components/form-config/index.d.ts +37 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +37 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +20 -0
- package/es/components/form-render/index.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-chat/index.d.ts +99 -10
- package/es/components/iho-chat/src/Index.vue.d.ts +99 -10
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +3 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +5 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +57 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +15 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/src/hooks/useSession.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +34 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +21 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/directive/drag-move.d.ts +3 -0
- package/es/components/scale-view/src/directive/drag-move.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/src/types/index.d.ts +2 -0
- package/es/components/time-line/index.d.ts +4 -4
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/headerPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +0 -1
@@ -103,6 +103,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
103
103
|
all: string;
|
104
104
|
unread: string;
|
105
105
|
};
|
106
|
+
unreadSessionKeys: string[];
|
106
107
|
flexWidth: import("vue").Ref<number>;
|
107
108
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
108
109
|
loading: import("vue").Ref<boolean>;
|
@@ -114,11 +115,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
114
115
|
state: import("./src/types").IState;
|
115
116
|
emit: (event: string, ...args: any[]) => void;
|
116
117
|
openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
|
117
|
-
|
118
|
-
setSessionList: (list: import("../../shared/types").AnyObject[]) => void;
|
118
|
+
updateSessionList: (sessionItem: import("../../shared/types").AnyObject) => void;
|
119
119
|
currentWidth: import("vue").ComputedRef<number>;
|
120
120
|
sessionList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
121
|
-
|
121
|
+
unreadTotal: import("vue").ComputedRef<number>;
|
122
122
|
changeWidth: ({ distance }: import("../../shared/types").AnyObject) => void;
|
123
123
|
handleFilter: (key: string) => void;
|
124
124
|
showSession: (item: import("../../shared/types").AnyObject, currentKey?: string) => boolean | undefined;
|
@@ -152,6 +152,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
152
152
|
NAvatar: any;
|
153
153
|
NIcon: any;
|
154
154
|
NButton: any;
|
155
|
+
NTooltip: any;
|
155
156
|
PersonProfile: import("vue").DefineComponent<{
|
156
157
|
userId: {
|
157
158
|
type: StringConstructor;
|
@@ -593,6 +594,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
593
594
|
NInput: any;
|
594
595
|
NCheckbox: any;
|
595
596
|
NCheckboxGroup: any;
|
597
|
+
NTooltip: any;
|
596
598
|
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<{}>>, {}>;
|
597
599
|
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<{}>>, {}>;
|
598
600
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -652,12 +654,14 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
652
654
|
setScrollToButtom: () => Promise<void>;
|
653
655
|
resetInfo: () => void;
|
654
656
|
setReferenceMsg: (msgItem: import("../../shared/types").AnyObject) => void;
|
657
|
+
handleSelect: (key: string, msgItem: import("../../shared/types").AnyObject) => void;
|
655
658
|
NAvatar: any;
|
656
659
|
NImageGroup: any;
|
657
660
|
NImage: any;
|
658
661
|
NIcon: any;
|
659
662
|
NButtonGroup: any;
|
660
663
|
NButton: any;
|
664
|
+
NSpace: any;
|
661
665
|
PersonProfile: import("vue").DefineComponent<{
|
662
666
|
userId: {
|
663
667
|
type: StringConstructor;
|
@@ -838,18 +842,18 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
838
842
|
}, {
|
839
843
|
show: boolean;
|
840
844
|
}>;
|
841
|
-
downloadFile: typeof import("./src/utils").downloadFile;
|
842
845
|
simplifyMessage: typeof import("./src/utils").simplifyMessage;
|
843
846
|
isAudioOrVideoMessage: typeof import("./src/utils").isAudioOrVideoMessage;
|
844
847
|
getAVTime: typeof import("./src/utils").getAVTime;
|
845
848
|
MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
|
846
849
|
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<{}>>, {}>;
|
850
|
+
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<{}>>, {}>;
|
847
851
|
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<{}>>, {}>;
|
848
852
|
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<{}>>, {}>;
|
853
|
+
DocumentSharp: 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<{}>>, {}>;
|
849
854
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
850
855
|
ChatFooter: import("vue").DefineComponent<{}, {
|
851
856
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
852
|
-
content: import("vue").Ref<string>;
|
853
857
|
state: import("./src/types").IState;
|
854
858
|
sendMessage: (message: {
|
855
859
|
chatType?: string | undefined;
|
@@ -858,10 +862,12 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
858
862
|
}) => Promise<void>;
|
859
863
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
860
864
|
showEmoji: import("vue").Ref<boolean>;
|
865
|
+
content: import("vue").Ref<string>;
|
861
866
|
chatAddProps: import("vue").ComputedRef<{
|
862
867
|
options: import("../../shared/types").AnyObject[];
|
863
868
|
defaultValue: import("../../shared/types").AnyObject[];
|
864
869
|
}>;
|
870
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
865
871
|
handleCall: (chatMessageType: string, checkedIds?: never[]) => void;
|
866
872
|
handleKeyDown: (event: KeyboardEvent) => void;
|
867
873
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -958,6 +964,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
958
964
|
NInput: any;
|
959
965
|
NCheckbox: any;
|
960
966
|
NCheckboxGroup: any;
|
967
|
+
NTooltip: any;
|
961
968
|
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<{}>>, {}>;
|
962
969
|
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<{}>>, {}>;
|
963
970
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1001,11 +1008,12 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1001
1008
|
listRef: import("vue").Ref<any>;
|
1002
1009
|
inputRef: import("vue").Ref<any>;
|
1003
1010
|
showSearch: import("vue").Ref<boolean>;
|
1004
|
-
keyword: import("vue").Ref<
|
1011
|
+
keyword: import("vue").Ref<string>;
|
1005
1012
|
state: import("./src/types").IState;
|
1006
1013
|
openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
|
1007
1014
|
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1008
1015
|
handleInput: () => void;
|
1016
|
+
showNoData: import("vue").ComputedRef<boolean>;
|
1009
1017
|
addSession: (userId: string) => Promise<void>;
|
1010
1018
|
NPopover: any;
|
1011
1019
|
NButton: any;
|
@@ -1013,6 +1021,61 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1013
1021
|
NInput: any;
|
1014
1022
|
NIcon: any;
|
1015
1023
|
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<{}>>, {}>;
|
1024
|
+
DefaultPage: SFCWithInstall<import("vue").DefineComponent<{
|
1025
|
+
type: {
|
1026
|
+
type: StringConstructor;
|
1027
|
+
default: string;
|
1028
|
+
};
|
1029
|
+
config: {
|
1030
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1031
|
+
default: () => {
|
1032
|
+
title: string;
|
1033
|
+
content: string;
|
1034
|
+
};
|
1035
|
+
};
|
1036
|
+
}, {
|
1037
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1038
|
+
type: {
|
1039
|
+
type: StringConstructor;
|
1040
|
+
default: string;
|
1041
|
+
};
|
1042
|
+
config: {
|
1043
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1044
|
+
default: () => {
|
1045
|
+
title: string;
|
1046
|
+
content: string;
|
1047
|
+
};
|
1048
|
+
};
|
1049
|
+
}>> & {
|
1050
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
1051
|
+
}>>;
|
1052
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
1053
|
+
configResult: import("vue").ComputedRef<{
|
1054
|
+
title: string;
|
1055
|
+
content: string;
|
1056
|
+
img: string;
|
1057
|
+
}>;
|
1058
|
+
reloadPage: () => void;
|
1059
|
+
NIcon: any;
|
1060
|
+
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<{}>>, {}>;
|
1061
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1062
|
+
type: {
|
1063
|
+
type: StringConstructor;
|
1064
|
+
default: string;
|
1065
|
+
};
|
1066
|
+
config: {
|
1067
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1068
|
+
default: () => {
|
1069
|
+
title: string;
|
1070
|
+
content: string;
|
1071
|
+
};
|
1072
|
+
};
|
1073
|
+
}>> & {
|
1074
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
1075
|
+
}, {
|
1076
|
+
type: string;
|
1077
|
+
config: import("../../shared/types").AnyObject;
|
1078
|
+
}>>;
|
1016
1079
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1017
1080
|
ChatAdd: import("vue").DefineComponent<{
|
1018
1081
|
title: {
|
@@ -1093,6 +1156,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1093
1156
|
NInput: any;
|
1094
1157
|
NCheckbox: any;
|
1095
1158
|
NCheckboxGroup: any;
|
1159
|
+
NTooltip: any;
|
1096
1160
|
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<{}>>, {}>;
|
1097
1161
|
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<{}>>, {}>;
|
1098
1162
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1141,6 +1205,20 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1141
1205
|
timer: any;
|
1142
1206
|
seconds: number;
|
1143
1207
|
};
|
1208
|
+
installEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1209
|
+
handleError: import("../../shared/types").AnyFn;
|
1210
|
+
handleRemoteUserEnter: import("../../shared/types").AnyFn;
|
1211
|
+
handleRemoteAudioAvailable: import("../../shared/types").AnyFn;
|
1212
|
+
handleRemoteUserExit: import("../../shared/types").AnyFn;
|
1213
|
+
handleRemoteVideoAvailable: import("../../shared/types").AnyFn;
|
1214
|
+
}) => void;
|
1215
|
+
uninstallEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1216
|
+
handleError: import("../../shared/types").AnyFn;
|
1217
|
+
handleRemoteUserEnter: import("../../shared/types").AnyFn;
|
1218
|
+
handleRemoteAudioAvailable: import("../../shared/types").AnyFn;
|
1219
|
+
handleRemoteUserExit: import("../../shared/types").AnyFn;
|
1220
|
+
handleRemoteVideoAvailable: import("../../shared/types").AnyFn;
|
1221
|
+
}) => void;
|
1144
1222
|
videoRef: import("vue").Ref<any>;
|
1145
1223
|
selfVideoRef: import("vue").Ref<any>;
|
1146
1224
|
isConnect: import("vue").Ref<boolean>;
|
@@ -1157,8 +1235,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1157
1235
|
handleEnter: () => Promise<void>;
|
1158
1236
|
handleFinish: () => void;
|
1159
1237
|
handleExit: () => Promise<void>;
|
1160
|
-
installEventHandlers: () => void;
|
1161
|
-
uninstallEventHandlers: () => void;
|
1162
1238
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1163
1239
|
handleRemoteAudioAvailable: (event: any) => void;
|
1164
1240
|
handleRemoteUserEnter: () => void;
|
@@ -1195,6 +1271,20 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1195
1271
|
timing: import("vue").Ref<string>;
|
1196
1272
|
toggleVideo: () => Promise<void>;
|
1197
1273
|
videocamOpen: import("vue").Ref<boolean>;
|
1274
|
+
installEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1275
|
+
handleError: import("../../shared/types").AnyFn;
|
1276
|
+
handleRemoteUserEnter: import("../../shared/types").AnyFn;
|
1277
|
+
handleRemoteAudioAvailable: import("../../shared/types").AnyFn;
|
1278
|
+
handleRemoteUserExit: import("../../shared/types").AnyFn;
|
1279
|
+
handleRemoteVideoAvailable: import("../../shared/types").AnyFn;
|
1280
|
+
}) => void;
|
1281
|
+
uninstallEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1282
|
+
handleError: import("../../shared/types").AnyFn;
|
1283
|
+
handleRemoteUserEnter: import("../../shared/types").AnyFn;
|
1284
|
+
handleRemoteAudioAvailable: import("../../shared/types").AnyFn;
|
1285
|
+
handleRemoteUserExit: import("../../shared/types").AnyFn;
|
1286
|
+
handleRemoteVideoAvailable: import("../../shared/types").AnyFn;
|
1287
|
+
}) => void;
|
1198
1288
|
isConnect: import("vue").Ref<boolean>;
|
1199
1289
|
callUser: import("vue").ComputedRef<any>;
|
1200
1290
|
title: import("vue").ComputedRef<string>;
|
@@ -1202,8 +1292,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1202
1292
|
handleCall: () => void;
|
1203
1293
|
handleEnter: () => Promise<void>;
|
1204
1294
|
handleExit: () => Promise<void>;
|
1205
|
-
installEventHandlers: () => void;
|
1206
|
-
uninstallEventHandlers: () => void;
|
1207
1295
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1208
1296
|
handleRemoteAudioAvailable: (event: any) => Promise<void>;
|
1209
1297
|
handleRemoteUserEnter: (event: any) => Promise<void>;
|
@@ -1291,6 +1379,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1291
1379
|
NInput: any;
|
1292
1380
|
NCheckbox: any;
|
1293
1381
|
NCheckboxGroup: any;
|
1382
|
+
NTooltip: any;
|
1294
1383
|
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<{}>>, {}>;
|
1295
1384
|
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<{}>>, {}>;
|
1296
1385
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -108,6 +108,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
108
108
|
all: string;
|
109
109
|
unread: string;
|
110
110
|
};
|
111
|
+
unreadSessionKeys: string[];
|
111
112
|
flexWidth: import("vue").Ref<number>;
|
112
113
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
113
114
|
loading: import("vue").Ref<boolean>;
|
@@ -119,11 +120,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
120
|
state: IState;
|
120
121
|
emit: (event: string, ...args: any[]) => void;
|
121
122
|
openSession: (item: AnyObject) => Promise<void>;
|
122
|
-
|
123
|
-
setSessionList: (list: AnyObject[]) => void;
|
123
|
+
updateSessionList: (sessionItem: AnyObject) => void;
|
124
124
|
currentWidth: import("vue").ComputedRef<number>;
|
125
125
|
sessionList: import("vue").ComputedRef<AnyObject[]>;
|
126
|
-
|
126
|
+
unreadTotal: import("vue").ComputedRef<number>;
|
127
127
|
changeWidth: ({ distance }: AnyObject) => void;
|
128
128
|
handleFilter: (key: string) => void;
|
129
129
|
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
@@ -157,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
157
|
NAvatar: any;
|
158
158
|
NIcon: any;
|
159
159
|
NButton: any;
|
160
|
+
NTooltip: any;
|
160
161
|
PersonProfile: import("vue").DefineComponent<{
|
161
162
|
userId: {
|
162
163
|
type: StringConstructor;
|
@@ -598,6 +599,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
598
599
|
NInput: any;
|
599
600
|
NCheckbox: any;
|
600
601
|
NCheckboxGroup: any;
|
602
|
+
NTooltip: any;
|
601
603
|
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<{}>>, {}>;
|
602
604
|
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<{}>>, {}>;
|
603
605
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -657,12 +659,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
657
659
|
setScrollToButtom: () => Promise<void>;
|
658
660
|
resetInfo: () => void;
|
659
661
|
setReferenceMsg: (msgItem: AnyObject) => void;
|
662
|
+
handleSelect: (key: string, msgItem: AnyObject) => void;
|
660
663
|
NAvatar: any;
|
661
664
|
NImageGroup: any;
|
662
665
|
NImage: any;
|
663
666
|
NIcon: any;
|
664
667
|
NButtonGroup: any;
|
665
668
|
NButton: any;
|
669
|
+
NSpace: any;
|
666
670
|
PersonProfile: import("vue").DefineComponent<{
|
667
671
|
userId: {
|
668
672
|
type: StringConstructor;
|
@@ -843,18 +847,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
843
847
|
}, {
|
844
848
|
show: boolean;
|
845
849
|
}>;
|
846
|
-
downloadFile: typeof import("./utils").downloadFile;
|
847
850
|
simplifyMessage: typeof import("./utils").simplifyMessage;
|
848
851
|
isAudioOrVideoMessage: typeof isAudioOrVideoMessage;
|
849
852
|
getAVTime: typeof import("./utils").getAVTime;
|
850
853
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
851
854
|
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<{}>>, {}>;
|
855
|
+
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<{}>>, {}>;
|
852
856
|
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<{}>>, {}>;
|
853
857
|
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<{}>>, {}>;
|
858
|
+
DocumentSharp: 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<{}>>, {}>;
|
854
859
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
855
860
|
ChatFooter: import("vue").DefineComponent<{}, {
|
856
861
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
857
|
-
content: import("vue").Ref<string>;
|
858
862
|
state: IState;
|
859
863
|
sendMessage: (message: {
|
860
864
|
chatType?: string | undefined;
|
@@ -863,10 +867,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
863
867
|
}) => Promise<void>;
|
864
868
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
865
869
|
showEmoji: import("vue").Ref<boolean>;
|
870
|
+
content: import("vue").Ref<string>;
|
866
871
|
chatAddProps: import("vue").ComputedRef<{
|
867
872
|
options: AnyObject[];
|
868
873
|
defaultValue: AnyObject[];
|
869
874
|
}>;
|
875
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
870
876
|
handleCall: (chatMessageType: string, checkedIds?: never[]) => void;
|
871
877
|
handleKeyDown: (event: KeyboardEvent) => void;
|
872
878
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -963,6 +969,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
963
969
|
NInput: any;
|
964
970
|
NCheckbox: any;
|
965
971
|
NCheckboxGroup: any;
|
972
|
+
NTooltip: any;
|
966
973
|
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<{}>>, {}>;
|
967
974
|
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<{}>>, {}>;
|
968
975
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1006,11 +1013,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1006
1013
|
listRef: import("vue").Ref<any>;
|
1007
1014
|
inputRef: import("vue").Ref<any>;
|
1008
1015
|
showSearch: import("vue").Ref<boolean>;
|
1009
|
-
keyword: import("vue").Ref<
|
1016
|
+
keyword: import("vue").Ref<string>;
|
1010
1017
|
state: IState;
|
1011
1018
|
openSession: (item: AnyObject) => Promise<void>;
|
1012
1019
|
userList: import("vue").Ref<AnyObject[]>;
|
1013
1020
|
handleInput: () => void;
|
1021
|
+
showNoData: import("vue").ComputedRef<boolean>;
|
1014
1022
|
addSession: (userId: string) => Promise<void>;
|
1015
1023
|
NPopover: any;
|
1016
1024
|
NButton: any;
|
@@ -1018,6 +1026,61 @@ declare const _default: import("vue").DefineComponent<{
|
|
1018
1026
|
NInput: any;
|
1019
1027
|
NIcon: any;
|
1020
1028
|
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<{}>>, {}>;
|
1029
|
+
DefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
1030
|
+
type: {
|
1031
|
+
type: StringConstructor;
|
1032
|
+
default: string;
|
1033
|
+
};
|
1034
|
+
config: {
|
1035
|
+
type: PropType<AnyObject>;
|
1036
|
+
default: () => {
|
1037
|
+
title: string;
|
1038
|
+
content: string;
|
1039
|
+
};
|
1040
|
+
};
|
1041
|
+
}, {
|
1042
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1043
|
+
type: {
|
1044
|
+
type: StringConstructor;
|
1045
|
+
default: string;
|
1046
|
+
};
|
1047
|
+
config: {
|
1048
|
+
type: PropType<AnyObject>;
|
1049
|
+
default: () => {
|
1050
|
+
title: string;
|
1051
|
+
content: string;
|
1052
|
+
};
|
1053
|
+
};
|
1054
|
+
}>> & {
|
1055
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
1056
|
+
}>>;
|
1057
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
1058
|
+
configResult: import("vue").ComputedRef<{
|
1059
|
+
title: string;
|
1060
|
+
content: string;
|
1061
|
+
img: string;
|
1062
|
+
}>;
|
1063
|
+
reloadPage: () => void;
|
1064
|
+
NIcon: any;
|
1065
|
+
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<{}>>, {}>;
|
1066
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1067
|
+
type: {
|
1068
|
+
type: StringConstructor;
|
1069
|
+
default: string;
|
1070
|
+
};
|
1071
|
+
config: {
|
1072
|
+
type: PropType<AnyObject>;
|
1073
|
+
default: () => {
|
1074
|
+
title: string;
|
1075
|
+
content: string;
|
1076
|
+
};
|
1077
|
+
};
|
1078
|
+
}>> & {
|
1079
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
1080
|
+
}, {
|
1081
|
+
type: string;
|
1082
|
+
config: AnyObject;
|
1083
|
+
}>>;
|
1021
1084
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1022
1085
|
ChatAdd: import("vue").DefineComponent<{
|
1023
1086
|
title: {
|
@@ -1098,6 +1161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1098
1161
|
NInput: any;
|
1099
1162
|
NCheckbox: any;
|
1100
1163
|
NCheckboxGroup: any;
|
1164
|
+
NTooltip: any;
|
1101
1165
|
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<{}>>, {}>;
|
1102
1166
|
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<{}>>, {}>;
|
1103
1167
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1146,6 +1210,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
1146
1210
|
timer: any;
|
1147
1211
|
seconds: number;
|
1148
1212
|
};
|
1213
|
+
installEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1214
|
+
handleError: import("../../../shared/types").AnyFn;
|
1215
|
+
handleRemoteUserEnter: import("../../../shared/types").AnyFn;
|
1216
|
+
handleRemoteAudioAvailable: import("../../../shared/types").AnyFn;
|
1217
|
+
handleRemoteUserExit: import("../../../shared/types").AnyFn;
|
1218
|
+
handleRemoteVideoAvailable: import("../../../shared/types").AnyFn;
|
1219
|
+
}) => void;
|
1220
|
+
uninstallEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1221
|
+
handleError: import("../../../shared/types").AnyFn;
|
1222
|
+
handleRemoteUserEnter: import("../../../shared/types").AnyFn;
|
1223
|
+
handleRemoteAudioAvailable: import("../../../shared/types").AnyFn;
|
1224
|
+
handleRemoteUserExit: import("../../../shared/types").AnyFn;
|
1225
|
+
handleRemoteVideoAvailable: import("../../../shared/types").AnyFn;
|
1226
|
+
}) => void;
|
1149
1227
|
videoRef: import("vue").Ref<any>;
|
1150
1228
|
selfVideoRef: import("vue").Ref<any>;
|
1151
1229
|
isConnect: import("vue").Ref<boolean>;
|
@@ -1162,8 +1240,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1162
1240
|
handleEnter: () => Promise<void>;
|
1163
1241
|
handleFinish: () => void;
|
1164
1242
|
handleExit: () => Promise<void>;
|
1165
|
-
installEventHandlers: () => void;
|
1166
|
-
uninstallEventHandlers: () => void;
|
1167
1243
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1168
1244
|
handleRemoteAudioAvailable: (event: any) => void;
|
1169
1245
|
handleRemoteUserEnter: () => void;
|
@@ -1200,6 +1276,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
1200
1276
|
timing: import("vue").Ref<string>;
|
1201
1277
|
toggleVideo: () => Promise<void>;
|
1202
1278
|
videocamOpen: import("vue").Ref<boolean>;
|
1279
|
+
installEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1280
|
+
handleError: import("../../../shared/types").AnyFn;
|
1281
|
+
handleRemoteUserEnter: import("../../../shared/types").AnyFn;
|
1282
|
+
handleRemoteAudioAvailable: import("../../../shared/types").AnyFn;
|
1283
|
+
handleRemoteUserExit: import("../../../shared/types").AnyFn;
|
1284
|
+
handleRemoteVideoAvailable: import("../../../shared/types").AnyFn;
|
1285
|
+
}) => void;
|
1286
|
+
uninstallEventHandlers: ({ handleError, handleRemoteUserEnter, handleRemoteAudioAvailable, handleRemoteUserExit, handleRemoteVideoAvailable }: {
|
1287
|
+
handleError: import("../../../shared/types").AnyFn;
|
1288
|
+
handleRemoteUserEnter: import("../../../shared/types").AnyFn;
|
1289
|
+
handleRemoteAudioAvailable: import("../../../shared/types").AnyFn;
|
1290
|
+
handleRemoteUserExit: import("../../../shared/types").AnyFn;
|
1291
|
+
handleRemoteVideoAvailable: import("../../../shared/types").AnyFn;
|
1292
|
+
}) => void;
|
1203
1293
|
isConnect: import("vue").Ref<boolean>;
|
1204
1294
|
callUser: import("vue").ComputedRef<any>;
|
1205
1295
|
title: import("vue").ComputedRef<string>;
|
@@ -1207,8 +1297,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1207
1297
|
handleCall: () => void;
|
1208
1298
|
handleEnter: () => Promise<void>;
|
1209
1299
|
handleExit: () => Promise<void>;
|
1210
|
-
installEventHandlers: () => void;
|
1211
|
-
uninstallEventHandlers: () => void;
|
1212
1300
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1213
1301
|
handleRemoteAudioAvailable: (event: any) => Promise<void>;
|
1214
1302
|
handleRemoteUserEnter: (event: any) => Promise<void>;
|
@@ -1296,6 +1384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1296
1384
|
NInput: any;
|
1297
1385
|
NCheckbox: any;
|
1298
1386
|
NCheckboxGroup: any;
|
1387
|
+
NTooltip: any;
|
1299
1388
|
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<{}>>, {}>;
|
1300
1389
|
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<{}>>, {}>;
|
1301
1390
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -79,6 +79,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
79
|
NInput: any;
|
80
80
|
NCheckbox: any;
|
81
81
|
NCheckboxGroup: any;
|
82
|
+
NTooltip: any;
|
82
83
|
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<{}>>, {}>;
|
83
84
|
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<{}>>, {}>;
|
84
85
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as i,createElementBlock as
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as i,createElementBlock as o,Fragment as u,createVNode as r,unref as s,withCtx as d,createElementVNode as n,createCommentVNode as v,isRef as c,renderList as p,createBlock as f,toDisplayString as m,createTextVNode as h,renderSlot as b}from"vue";import{NModal as g,NInput as k,NIcon as y,NCheckbox as _,NCheckboxGroup as w,NSpace as I,NAvatar as x,NTag as S,NTooltip as U,NButton as j}from"naive-ui";import{SearchOutline as C,AddOutline as L}from"@vicons/ionicons5";import{useState as A}from"../hooks/useState.js";import{listSort as V}from"../utils/index.js";import{cloneDeep as R,union as E,unionBy as G,remove as M,isArray as T,uniqBy as z}from"lodash-es";import{CHAT_TYPE as D}from"../constants/index.js";import{groupJoinApi as N,groupCreateApi as P}from"../api/index.js";import"trtc-sdk-v5";import{useSearchUserList as $}from"../hooks/useSearchUserList.js";const q={class:"iho-chat-dialog__content iho-chat-add-wrapper"},B={key:0,class:"input-box"},F=n("span",null,"群名称:",-1),H={class:"transfer-box"},J={class:"transfer-box__left"},K={class:"user-list-box"},O={key:1,class:"no-data"},Q={class:"transfer-box__right"},W={class:"checked-tag-box"};var X=e({__name:"ChatAdd",props:{title:{type:String,default:"添加新成员"},mode:{type:String,default:"select"},options:{type:Array},disabledIds:{type:Array,default:()=>[]},defaultValue:{type:Array}},emits:["comfirm"],setup(e,{emit:X}){const Y=e,{state:Z}=A(),ee=a(),ae=a(),le=a(!1),te=a([]),ie=a([]),oe=a(""),ue=a([]),{userList:re,handleInput:se}=$({wrapperRef:ee,keywordRef:ae,before:()=>{re.value=R(ie.value),me()},after:()=>{re.value.forEach((e=>{var a;e.disabled=null==(a=de.value)?void 0:a.includes(e.id)})),me()}}),de=l((()=>E(Y.disabledIds,[Z.userInfo.id]))),ne=l((()=>{var e,a;return(null==(e=Z.sessionList)?void 0:e.length)?null==(a=V(Z.sessionList).filter((e=>e.chatType===D.SINGLE)))?void 0:a.map((e=>({id:e.receiver,name:e.name,avatar:e.avatar}))):[]})),ve=l((()=>te.value.length?te.value.map((e=>e.id)):[])),ce=l((()=>"create"===Y.mode?ve.value.length<3:ve.value.length<1)),pe=l({get:()=>ue.value.length===re.value.filter((e=>!e.disabled)).length,set(e){const a=re.value.filter((e=>!e.disabled));ue.value=e?a.map((e=>e.id)):[],e?te.value=G(te.value,a,"id"):M(te.value,(e=>a.map((e=>e.id)).includes(e.id)))}});async function fe(){switch(Y.mode){case"create":await P({creator:Z.userInfo.id,memberIdSet:ve.value,name:oe.value,orgId:Z.orgId});break;case"join":await N({groupId:Z.currentSessionItem.receiver,operator:Z.userInfo.id,memberIdSet:ve.value}),Z.currentGroupUser.push(re.value.filter((e=>ve.value.includes(e.value))));break;default:X("comfirm",ve.value)}le.value=!1}function me(){var e,a;ue.value=null!=(a=null==(e=re.value.filter((e=>ve.value.includes(e.id))))?void 0:e.map((e=>e.id)))?a:[]}function he(e,a){if("check"===a.actionType){const e=re.value.find((e=>e.id===a.value));te.value.push(e)}else M(te.value,(e=>e.id===a.value))}return t((()=>le.value),(e=>{if(!e)return;const a=T(Y.options)&&Y.options.length?Y.options:ne.value;ie.value=z(a,"id").map((e=>{var a;return{...e,disabled:null==(a=de.value)?void 0:a.includes(e.id)}})),re.value=R(ie.value),T(Y.defaultValue)&&Y.defaultValue.length?(te.value=R(Y.defaultValue),me()):(te.value=[],ue.value=[])})),(a,l)=>(i(),o(u,null,[r(s(g),{preset:"dialog",title:e.title,"show-icon":!1,"auto-focus":!1,"trap-focus":!1,class:"iho-chat-dialog",show:le.value,"onUpdate:show":l[4]||(l[4]=e=>le.value=e),"negative-text":"取消","positive-text":"确定","positive-button-props":{disabled:s(ce)},onPositiveClick:fe},{default:d((()=>[n("div",q,["create"===e.mode?(i(),o("div",B,[F,r(s(k),{clearable:"",placeholder:"取个群名称方便后续搜索",value:oe.value,"onUpdate:value":l[0]||(l[0]=e=>oe.value=e),valueModifiers:{trim:!0}},null,8,["value"])])):v("v-if",!0),n("div",H,[n("div",J,[r(s(k),{placeholder:"搜索",clearable:"",value:ae.value,"onUpdate:value":[l[1]||(l[1]=e=>ae.value=e),s(se)],valueModifiers:{trim:!0}},{prefix:d((()=>[r(s(y),{component:s(C)},null,8,["component"])])),_:1},8,["value","onUpdate:value"]),n("div",K,[s(re).length>0?(i(),o(u,{key:0},[r(s(_),{label:"全选",checked:s(pe),"onUpdate:checked":l[2]||(l[2]=e=>c(pe)?pe.value=e:null)},null,8,["checked"]),r(s(w),{ref_key:"listRef",ref:ee,value:ue.value,"onUpdate:value":[l[3]||(l[3]=e=>ue.value=e),he]},{default:d((()=>[(i(!0),o(u,null,p(s(re),(e=>(i(),f(s(_),{key:e.id,value:e.id,disabled:e.disabled},{default:d((()=>[r(s(I),{align:"center","wrap-item":!1},{default:d((()=>[r(s(x),{src:e.avatar,round:"",size:32},null,8,["src"]),n("span",null,m(e.name),1)])),_:2},1024)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value"])],64)):(i(),o("div",O,"找不到相关结果"))])]),n("div",Q,[n("span",null,"已选择 "+m(s(ve).length)+" 人",1),n("div",W,[(i(!0),o(u,null,p(te.value,(e=>(i(),f(s(S),{key:e.id,bordered:!1,closable:e.id!==s(Z).userInfo.id,disabled:s(de).includes(e.id),onClose:()=>{return a=e.id,M(te.value,(e=>e.id===a)),void M(ue.value,(e=>e===a));var a}},{avatar:d((()=>[r(s(x),{round:"",src:e.avatar},null,8,["src"])])),default:d((()=>[h(" "+m(e.name),1)])),_:2},1032,["closable","disabled","onClose"])))),128))])])])])])),_:1},8,["title","show","positive-button-props"]),n("span",{class:"btn-wrapper",onClick:l[5]||(l[5]=e=>le.value=!0)},[b(a.$slots,"trigger",{},(()=>[r(s(U),{"show-arrow":!1,trigger:"hover",placement:"bottom"},{trigger:d((()=>[r(s(j),{color:"#ffffff4D",class:"add-btn"},{icon:d((()=>[r(s(y),{component:s(L),color:"#fff"},null,8,["component"])])),_:1})])),default:d((()=>[h(" "+m(e.title),1)])),_:1})]))])],64))}});export{X as default};
|
@@ -8,7 +8,6 @@ type FileOptions = {
|
|
8
8
|
};
|
9
9
|
declare const _default: import("vue").DefineComponent<{}, {
|
10
10
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
11
|
-
content: import("vue").Ref<string>;
|
12
11
|
state: import("../types").IState;
|
13
12
|
sendMessage: (message: {
|
14
13
|
chatType?: string | undefined;
|
@@ -17,10 +16,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
17
16
|
}) => Promise<void>;
|
18
17
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
19
18
|
showEmoji: import("vue").Ref<boolean>;
|
19
|
+
content: import("vue").Ref<string>;
|
20
20
|
chatAddProps: import("vue").ComputedRef<{
|
21
21
|
options: AnyObject[];
|
22
22
|
defaultValue: AnyObject[];
|
23
23
|
}>;
|
24
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
24
25
|
handleCall: (chatMessageType: string, checkedIds?: never[]) => void;
|
25
26
|
handleKeyDown: (event: KeyboardEvent) => void;
|
26
27
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -114,6 +115,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
114
115
|
NInput: any;
|
115
116
|
NCheckbox: any;
|
116
117
|
NCheckboxGroup: any;
|
118
|
+
NTooltip: any;
|
117
119
|
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<{}>>, {}>;
|
118
120
|
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<{}>>, {}>;
|
119
121
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|