cnhis-design-vue 3.2.16-beta.7 → 3.2.17-beta.2

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.
Files changed (72) hide show
  1. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  2. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  3. package/es/components/expand-field/index.d.ts +28 -1
  4. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +28 -1
  5. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +28 -1
  6. package/es/components/expand-field/src/components/form.vue.d.ts +28 -1
  7. package/es/components/expand-field/src/index.vue.d.ts +28 -1
  8. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  9. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  10. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  12. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  13. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  14. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  15. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  16. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  17. package/es/components/form-config/index.d.ts +147 -24
  18. package/es/components/form-config/src/FormConfig.vue.d.ts +147 -24
  19. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  20. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -0
  21. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +210 -95
  22. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  23. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  24. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  25. package/es/components/form-render/src/components/renderer/text.js +1 -1
  26. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  27. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  28. package/es/components/iho-chat/index.d.ts +321 -365
  29. package/es/components/iho-chat/src/Index.vue.d.ts +321 -365
  30. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  31. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +9 -0
  32. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +18 -0
  33. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +18 -0
  34. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +65 -182
  35. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  36. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +94 -182
  37. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  38. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +9 -0
  39. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +37 -20
  40. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  41. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +19 -91
  42. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  43. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +10 -91
  44. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -1
  45. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +18 -0
  46. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +12 -46
  47. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  48. package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +54 -0
  49. package/es/components/iho-chat/src/components/SelectLabel.vue.js +1 -0
  50. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +1 -0
  51. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +9 -0
  52. package/es/components/iho-chat/src/components/Video.vue.d.ts +9 -0
  53. package/es/components/iho-chat/src/hooks/useData.d.ts +30 -0
  54. package/es/components/iho-chat/src/hooks/useData.js +1 -1
  55. package/es/components/iho-chat/src/hooks/useVideo.d.ts +9 -0
  56. package/es/components/iho-chat/src/types/index.d.ts +9 -0
  57. package/es/components/iho-chat/style/index.css +1 -1
  58. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +1 -0
  59. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  60. package/es/components/iho-table/src/types/index.d.ts +3 -0
  61. package/es/components/index.css +1 -1
  62. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  63. package/es/components/select-person/index.d.ts +28 -1
  64. package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
  65. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  66. package/es/components/select-person/src/index.vue.d.ts +28 -1
  67. package/es/components/select-person/src/index.vue2.js +1 -1
  68. package/es/components/shortcut-setter/index.d.ts +2 -0
  69. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
  70. package/es/env.d.ts +25 -25
  71. package/es/shared/package.json.js +1 -1
  72. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as a,unref as n,createVNode as i,withCtx as l,createBlock as u,Fragment as d,createElementVNode as m,renderSlot as p,createCommentVNode as c}from"vue";import{NConfigProvider as f,NSpin as h,NLayout as v,NLayoutContent as y}from"naive-ui";import S from"./components/SiderList.vue.js";import g from"./components/ChatHeader.vue.js";import j from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import b from"./components/ChatSearch.vue.js";import _ from"./components/ChatAdd.vue.js";import w from"./components/Video.vue.js";import x from"./components/MultipleVideo.vue.js";import{instanceAxios as C}from"./api/index.js";import{isNumber as I}from"lodash-es";import{initData as L,InjectionIChatData as V}from"./hooks/useData.js";import{useWebSocket as B}from"./hooks/useWebSocket.js";import"trtc-sdk-v5";import"./utils/index.js";const H={key:0,class:"iho-chat__header"},U={class:"toolbar"};var $=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},showHeader:{type:Boolean,default:!0},defaultSessionId:{type:String},show:{type:Boolean,default:!0},extraParams:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1},trtcProxy:{type:[String,Object]}},emits:["template-click","unread-message-update","session-change","session-close"],setup(e,{expose:$,emit:q}){const M=e;C.defaults.baseURL=M.baseURL,C.defaults.headers.Authorization="bearer "+M.token;const N=t(!1),R=L(M,q);o(V,R),B(M,R);const{cssVars:A,state:D,openSession:F,closeSession:O,getCurrentSession:P,isEnded:z}=R;return $({getUnreadData:function(){return D.sessionList.filter((e=>I(e.unreadNum)&&e.unreadNum>0))},openSession:F,closeSession:O,getCurrentSession:P}),(t,o)=>e.show?(s(),r("div",{key:0,class:"iho-chat",style:a(n(A))},[i(n(f),{abstract:"",namespace:"iho-chat__popover"},{default:l((()=>{var o;return[N.value?(s(),u(n(h),{key:0,stroke:"#5585f5"})):(s(),r(d,{key:1},[e.showHeader?(s(),r("div",H,[i(b),i(_,{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.31"))||"发起群聊",mode:"create","default-value":[n(D).userInfo]},null,8,["default-value"]),m("div",U,[p(t.$slots,"toolbar")])])):c("v-if",!0),i(n(v),{class:"iho-chat__body","has-sider":""},{default:l((()=>[i(S),i(n(y),{class:"chat-content",style:a({"--c-pointer-events":n(z)?"none":"unset","--c-cursor":n(z)?"not-allowed":"unset"})},{default:l((()=>[i(g,null,{header:l((()=>[p(t.$slots,"chatHeader",{session:n(D).currentSessionItem})])),_:3}),i(j),i(k,null,{footer:l((()=>[p(t.$slots,"chatFooter",{session:n(D).currentSessionItem})])),_:3})])),_:3},8,["style"]),p(t.$slots,"external")])),_:3}),n(D).showVideo?(s(),u(w,{key:1})):c("v-if",!0),n(D).showMultipleVideo?(s(),u(x,{key:2})):c("v-if",!0)],64))]})),_:3})],4)):c("v-if",!0)}});export{$ as default};
1
+ import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as n,unref as a,createVNode as i,withCtx as l,createBlock as u,Fragment as d,createElementVNode as m,renderSlot as p,createCommentVNode as c}from"vue";import{NConfigProvider as f,NSpin as h,NLayout as v,NLayoutContent as y}from"naive-ui";import S from"./components/SiderList.vue.js";import g from"./components/ChatHeader.vue.js";import j from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import b from"./components/ChatSearch.vue.js";import _ from"./components/ChatAdd.vue.js";import w from"./components/Video.vue.js";import x from"./components/MultipleVideo.vue.js";import C from"./components/PersonProfile.vue.js";import{instanceAxios as I}from"./api/index.js";import{isNumber as L}from"lodash-es";import{initData as V,InjectionIChatData as B}from"./hooks/useData.js";import{useWebSocket as H}from"./hooks/useWebSocket.js";import"trtc-sdk-v5";import"./utils/index.js";const P={key:0,class:"iho-chat__header"},U={class:"toolbar"};var $=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},showHeader:{type:Boolean,default:!0},defaultSessionId:{type:String},show:{type:Boolean,default:!0},extraParams:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1},trtcProxy:{type:[String,Object]}},emits:["template-click","unread-message-update","session-change","session-close"],setup(e,{expose:$,emit:q}){const M=e;I.defaults.baseURL=M.baseURL,I.defaults.headers.Authorization="bearer "+M.token;const N=t(!1),R=V(M,q);o(B,R),H(M,R);const{cssVars:A,state:D,openSession:F,closeSession:O,getCurrentSession:z,isEnded:E}=R;return $({getUnreadData:function(){return D.sessionList.filter((e=>L(e.unreadNum)&&e.unreadNum>0))},openSession:F,closeSession:O,getCurrentSession:z}),(t,o)=>e.show?(s(),r("div",{key:0,class:"iho-chat",style:n(a(A))},[i(a(f),{abstract:"",namespace:"iho-chat__popover"},{default:l((()=>{var o;return[N.value?(s(),u(a(h),{key:0,stroke:"#5585f5"})):(s(),r(d,{key:1},[e.showHeader?(s(),r("div",P,[i(b),i(_,{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.31"))||"发起群聊",mode:"create","default-value":[a(D).userInfo]},null,8,["default-value"]),m("div",U,[p(t.$slots,"toolbar")])])):c("v-if",!0),i(a(v),{class:"iho-chat__body","has-sider":""},{default:l((()=>[i(S),i(a(y),{class:"chat-content",style:n({"--c-pointer-events":a(E)?"none":"unset","--c-cursor":a(E)?"not-allowed":"unset"})},{default:l((()=>[i(g,null,{header:l((()=>[p(t.$slots,"chatHeader",{session:a(D).currentSessionItem})])),_:3}),i(j),i(k,null,{footer:l((()=>[p(t.$slots,"chatFooter",{session:a(D).currentSessionItem})])),_:3})])),_:3},8,["style"]),p(t.$slots,"external")])),_:3}),a(D).showVideo?(s(),u(w,{key:1})):c("v-if",!0),a(D).showMultipleVideo?(s(),u(x,{key:2})):c("v-if",!0),i(C)],64))]})),_:3})],4)):c("v-if",!0)}});export{$ as default};
@@ -76,6 +76,15 @@ declare const _default: import("vue").DefineComponent<{
76
76
  currentAVMsg: AnyObject;
77
77
  currentGroupUser: AnyObject[];
78
78
  showMultipleVideo: boolean;
79
+ userDetail: {
80
+ show: boolean;
81
+ position: {
82
+ x: number;
83
+ y: number;
84
+ };
85
+ userId: string;
86
+ info: AnyObject | null;
87
+ };
79
88
  };
80
89
  setCurrentSessionItem: (item: AnyObject) => void;
81
90
  listRef: import("vue").Ref<any>;
@@ -38,6 +38,15 @@ declare const _default: import("vue").DefineComponent<{
38
38
  currentAVMsg: AnyObject;
39
39
  currentGroupUser: AnyObject[];
40
40
  showMultipleVideo: boolean;
41
+ userDetail: {
42
+ show: boolean;
43
+ position: {
44
+ x: number;
45
+ y: number;
46
+ };
47
+ userId: string;
48
+ info: AnyObject | null;
49
+ };
41
50
  };
42
51
  relayMessage: (param: {
43
52
  checkedIds: string[];
@@ -150,6 +159,15 @@ declare const _default: import("vue").DefineComponent<{
150
159
  currentAVMsg: AnyObject;
151
160
  currentGroupUser: AnyObject[];
152
161
  showMultipleVideo: boolean;
162
+ userDetail: {
163
+ show: boolean;
164
+ position: {
165
+ x: number;
166
+ y: number;
167
+ };
168
+ userId: string;
169
+ info: AnyObject | null;
170
+ };
153
171
  };
154
172
  setCurrentSessionItem: (item: AnyObject) => void;
155
173
  listRef: import("vue").Ref<any>;
@@ -23,6 +23,15 @@ declare const _default: import("vue").DefineComponent<{}, {
23
23
  currentAVMsg: AnyObject;
24
24
  currentGroupUser: AnyObject[];
25
25
  showMultipleVideo: boolean;
26
+ userDetail: {
27
+ show: boolean;
28
+ position: {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ userId: string;
33
+ info: AnyObject | null;
34
+ };
26
35
  };
27
36
  sendMessage: (message: {
28
37
  chatType?: string | undefined;
@@ -131,6 +140,15 @@ declare const _default: import("vue").DefineComponent<{}, {
131
140
  currentAVMsg: AnyObject;
132
141
  currentGroupUser: AnyObject[];
133
142
  showMultipleVideo: boolean;
143
+ userDetail: {
144
+ show: boolean;
145
+ position: {
146
+ x: number;
147
+ y: number;
148
+ };
149
+ userId: string;
150
+ info: AnyObject | null;
151
+ };
134
152
  };
135
153
  setCurrentSessionItem: (item: AnyObject) => void;
136
154
  listRef: Ref<any>;
@@ -18,12 +18,22 @@ declare const _default: import("vue").DefineComponent<{}, {
18
18
  currentAVMsg: AnyObject;
19
19
  currentGroupUser: AnyObject[];
20
20
  showMultipleVideo: boolean;
21
+ userDetail: {
22
+ show: boolean;
23
+ position: {
24
+ x: number;
25
+ y: number;
26
+ };
27
+ userId: string;
28
+ info: AnyObject | null;
29
+ };
21
30
  };
22
31
  isGroupChat: import("vue").ComputedRef<boolean>;
23
32
  isGroupLeader: import("vue").ComputedRef<boolean>;
24
33
  isEnded: import("vue").ComputedRef<boolean>;
25
34
  setCurrentSessionItem: (item: AnyObject) => void;
26
35
  emit: (event: "template-click" | "unread-message-update" | "session-change" | "session-close", ...args: any[]) => void;
36
+ setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
27
37
  showChatSet: import("vue").Ref<boolean>;
28
38
  showChatFile: import("vue").Ref<boolean>;
29
39
  chatFileType: import("vue").Ref<string>;
@@ -46,97 +56,6 @@ declare const _default: import("vue").DefineComponent<{}, {
46
56
  NButton: any;
47
57
  NTooltip: any;
48
58
  NPopconfirm: any;
49
- PersonProfile: import("vue").DefineComponent<{
50
- userId: {
51
- type: (NumberConstructor | StringConstructor)[];
52
- };
53
- disabled: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- userInfo: {
58
- type: import("vue").PropType<AnyObject>;
59
- };
60
- }, {
61
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
62
- userId: {
63
- type: (NumberConstructor | StringConstructor)[];
64
- };
65
- disabled: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
- userInfo: {
70
- type: import("vue").PropType<AnyObject>;
71
- };
72
- }>> & {
73
- onClose?: ((...args: any[]) => any) | undefined;
74
- }>>;
75
- emit: (event: "close", ...args: any[]) => void;
76
- state: {
77
- orgId: string | number;
78
- currentSessionItem: AnyObject;
79
- id: string;
80
- userInfo: AnyObject;
81
- msgList: AnyObject[];
82
- currentMsg: AnyObject;
83
- isAppendMsg: boolean;
84
- sessionList: AnyObject[];
85
- isChangeSession: boolean;
86
- updateSessionItem: AnyObject;
87
- isUpdateSession: boolean;
88
- currentReferenceMsg: AnyObject | null;
89
- currentReEditMsg: AnyObject | null;
90
- showVideo: boolean;
91
- currentAVMsg: AnyObject;
92
- currentGroupUser: AnyObject[];
93
- showMultipleVideo: boolean;
94
- };
95
- openSession: (session: string | AnyObject) => Promise<void>;
96
- showUserDetail: import("vue").Ref<boolean>;
97
- showLargeAvatar: import("vue").Ref<boolean>;
98
- showPhone: import("vue").Ref<boolean>;
99
- userDetail: AnyObject;
100
- info: {
101
- label: string;
102
- value: string;
103
- key: string;
104
- }[];
105
- personInfo: import("vue").ComputedRef<{
106
- label: string;
107
- value: string;
108
- key: string;
109
- }[]>;
110
- toOpenSession: () => Promise<void>;
111
- updateShow: (value: boolean) => Promise<void>;
112
- getContent: (info: AnyObject) => any;
113
- onChange: (options: {
114
- file: import("naive-ui").UploadFileInfo;
115
- }) => Promise<void>;
116
- NAvatar: any;
117
- NPopover: any;
118
- NButton: any;
119
- NIcon: any;
120
- ChatbubbleEllipses: 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<{}>>, {}>;
121
- Close: 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<{}>>, {}>;
122
- EyeOutline: 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<{}>>, {}>;
123
- EyeOffOutline: 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<{}>>, {}>;
124
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
125
- userId: {
126
- type: (NumberConstructor | StringConstructor)[];
127
- };
128
- disabled: {
129
- type: BooleanConstructor;
130
- default: boolean;
131
- };
132
- userInfo: {
133
- type: import("vue").PropType<AnyObject>;
134
- };
135
- }>> & {
136
- onClose?: ((...args: any[]) => any) | undefined;
137
- }, {
138
- disabled: boolean;
139
- }>;
140
59
  ChatSet: import("vue").DefineComponent<{}, {
141
60
  attrs: {
142
61
  [x: string]: unknown;
@@ -159,8 +78,18 @@ declare const _default: import("vue").DefineComponent<{}, {
159
78
  currentAVMsg: AnyObject;
160
79
  currentGroupUser: AnyObject[];
161
80
  showMultipleVideo: boolean;
81
+ userDetail: {
82
+ show: boolean;
83
+ position: {
84
+ x: number;
85
+ y: number;
86
+ };
87
+ userId: string;
88
+ info: AnyObject | null;
89
+ };
162
90
  };
163
91
  setCurrentSessionItem: (item: AnyObject) => void;
92
+ setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
164
93
  isGroupChat: import("vue").ComputedRef<boolean>;
165
94
  isGroupLeader: import("vue").ComputedRef<boolean>;
166
95
  inputRef: import("vue").Ref<any>;
@@ -192,97 +121,6 @@ declare const _default: import("vue").DefineComponent<{}, {
192
121
  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<{}>>, {}>;
193
122
  RemoveOutline: 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<{}>>, {}>;
194
123
  ChevronBackOutline: 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<{}>>, {}>;
195
- PersonProfile: import("vue").DefineComponent<{
196
- userId: {
197
- type: (NumberConstructor | StringConstructor)[];
198
- };
199
- disabled: {
200
- type: BooleanConstructor;
201
- default: boolean;
202
- };
203
- userInfo: {
204
- type: import("vue").PropType<AnyObject>;
205
- };
206
- }, {
207
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
208
- userId: {
209
- type: (NumberConstructor | StringConstructor)[];
210
- };
211
- disabled: {
212
- type: BooleanConstructor;
213
- default: boolean;
214
- };
215
- userInfo: {
216
- type: import("vue").PropType<AnyObject>;
217
- };
218
- }>> & {
219
- onClose?: ((...args: any[]) => any) | undefined;
220
- }>>;
221
- emit: (event: "close", ...args: any[]) => void;
222
- state: {
223
- orgId: string | number;
224
- currentSessionItem: AnyObject;
225
- id: string;
226
- userInfo: AnyObject;
227
- msgList: AnyObject[];
228
- currentMsg: AnyObject;
229
- isAppendMsg: boolean;
230
- sessionList: AnyObject[];
231
- isChangeSession: boolean;
232
- updateSessionItem: AnyObject;
233
- isUpdateSession: boolean;
234
- currentReferenceMsg: AnyObject | null;
235
- currentReEditMsg: AnyObject | null;
236
- showVideo: boolean;
237
- currentAVMsg: AnyObject;
238
- currentGroupUser: AnyObject[];
239
- showMultipleVideo: boolean;
240
- };
241
- openSession: (session: string | AnyObject) => Promise<void>;
242
- showUserDetail: import("vue").Ref<boolean>;
243
- showLargeAvatar: import("vue").Ref<boolean>;
244
- showPhone: import("vue").Ref<boolean>;
245
- userDetail: AnyObject;
246
- info: {
247
- label: string;
248
- value: string;
249
- key: string;
250
- }[];
251
- personInfo: import("vue").ComputedRef<{
252
- label: string;
253
- value: string;
254
- key: string;
255
- }[]>;
256
- toOpenSession: () => Promise<void>;
257
- updateShow: (value: boolean) => Promise<void>;
258
- getContent: (info: AnyObject) => any;
259
- onChange: (options: {
260
- file: import("naive-ui").UploadFileInfo;
261
- }) => Promise<void>;
262
- NAvatar: any;
263
- NPopover: any;
264
- NButton: any;
265
- NIcon: any;
266
- ChatbubbleEllipses: 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<{}>>, {}>;
267
- Close: 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<{}>>, {}>;
268
- EyeOutline: 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<{}>>, {}>;
269
- EyeOffOutline: 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<{}>>, {}>;
270
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
271
- userId: {
272
- type: (NumberConstructor | StringConstructor)[];
273
- };
274
- disabled: {
275
- type: BooleanConstructor;
276
- default: boolean;
277
- };
278
- userInfo: {
279
- type: import("vue").PropType<AnyObject>;
280
- };
281
- }>> & {
282
- onClose?: ((...args: any[]) => any) | undefined;
283
- }, {
284
- disabled: boolean;
285
- }>;
286
124
  ChatAdd: import("vue").DefineComponent<{
287
125
  title: {
288
126
  type: StringConstructor;
@@ -359,6 +197,15 @@ declare const _default: import("vue").DefineComponent<{}, {
359
197
  currentAVMsg: AnyObject;
360
198
  currentGroupUser: AnyObject[];
361
199
  showMultipleVideo: boolean;
200
+ userDetail: {
201
+ show: boolean;
202
+ position: {
203
+ x: number;
204
+ y: number;
205
+ };
206
+ userId: string;
207
+ info: AnyObject | null;
208
+ };
362
209
  };
363
210
  setCurrentSessionItem: (item: AnyObject) => void;
364
211
  listRef: import("vue").Ref<any>;
@@ -490,6 +337,15 @@ declare const _default: import("vue").DefineComponent<{}, {
490
337
  currentAVMsg: AnyObject;
491
338
  currentGroupUser: AnyObject[];
492
339
  showMultipleVideo: boolean;
340
+ userDetail: {
341
+ show: boolean;
342
+ position: {
343
+ x: number;
344
+ y: number;
345
+ };
346
+ userId: string;
347
+ info: AnyObject | null;
348
+ };
493
349
  };
494
350
  relayMessage: (param: {
495
351
  checkedIds: string[];
@@ -602,6 +458,15 @@ declare const _default: import("vue").DefineComponent<{}, {
602
458
  currentAVMsg: AnyObject;
603
459
  currentGroupUser: AnyObject[];
604
460
  showMultipleVideo: boolean;
461
+ userDetail: {
462
+ show: boolean;
463
+ position: {
464
+ x: number;
465
+ y: number;
466
+ };
467
+ userId: string;
468
+ info: AnyObject | null;
469
+ };
605
470
  };
606
471
  setCurrentSessionItem: (item: AnyObject) => void;
607
472
  listRef: import("vue").Ref<any>;
@@ -739,6 +604,15 @@ declare const _default: import("vue").DefineComponent<{}, {
739
604
  currentAVMsg: AnyObject;
740
605
  currentGroupUser: AnyObject[];
741
606
  showMultipleVideo: boolean;
607
+ userDetail: {
608
+ show: boolean;
609
+ position: {
610
+ x: number;
611
+ y: number;
612
+ };
613
+ userId: string;
614
+ info: AnyObject | null;
615
+ };
742
616
  };
743
617
  recordRef: import("vue").Ref<any>;
744
618
  recordList: import("vue").Ref<AnyObject[]>;
@@ -986,6 +860,15 @@ declare const _default: import("vue").DefineComponent<{}, {
986
860
  currentAVMsg: AnyObject;
987
861
  currentGroupUser: AnyObject[];
988
862
  showMultipleVideo: boolean;
863
+ userDetail: {
864
+ show: boolean;
865
+ position: {
866
+ x: number;
867
+ y: number;
868
+ };
869
+ userId: string;
870
+ info: AnyObject | null;
871
+ };
989
872
  };
990
873
  setCurrentSessionItem: (item: AnyObject) => void;
991
874
  listRef: import("vue").Ref<any>;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as o,computed as t,openBlock as i,createElementBlock as a,Fragment as r,unref as n,createElementVNode as s,createVNode as l,withCtx as u,toDisplayString as c,renderSlot as d,createTextVNode as m,normalizeProps as v,guardReactiveProps as w,createBlock as h,createCommentVNode as p}from"vue";import{NAvatar as g,NTooltip as f,NButton as y,NIcon as _,NPopconfirm as C}from"naive-ui";import{useData as b}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{STATUS as j}from"../constants/index.js";import{updateStatusApi as k}from"../api/index.js";import{$message as z}from"../utils/index.js";import"lodash-es";import"trtc-sdk-v5";import I from"./PersonProfile.vue.js";import S from"./ChatSet.vue.js";import q from"./ChatFile.vue.js";import L from"./ChatRecord.vue.js";import x from"./ChatAdd.vue.js";import{PersonAddOutline as B,CloseOutline as D}from"@vicons/ionicons5";const E={key:0,class:"chat-header box-shadow"},U={class:"chat-header__left"},G={class:"name"},P={class:"chat-header__right"},N=s("i",{class:"chat--iconfont chat--icon-image"},null,-1),A=s("i",{class:"chat--iconfont chat--icon-folder"},null,-1),F=s("i",{class:"chat--iconfont chat--icon-list-search"},null,-1),H=s("i",{class:"chat--iconfont chat--icon-set"},null,-1);var R=e({__name:"ChatHeader",setup(e){const{state:R,isGroupChat:V,isGroupLeader:$,isEnded:J,setCurrentSessionItem:K,emit:M}=b(),O=o(!1),Q=o(!1),T=o("image"),W=o(!1),X=t((()=>{const e=R.currentGroupUser.map((e=>e.id));return V.value?{mode:"join",disabledIds:e,disabled:J.value}:{mode:"create",defaultValue:R.currentGroupUser}}));function Y(e){T.value=e,Q.value=!0}async function Z(){try{await k({id:R.currentSessionItem.id,status:j.ENDED}),K({status:j.ENDED}),M("session-close",R.currentSessionItem),z.success("当前会话已结束")}catch(e){console.log(e)}}return(e,o)=>(i(),a(r,null,[n(R).id?(i(),a("section",E,[s("div",U,[l(I,{"user-id":n(R).currentSessionItem.receiver,disabled:n(V),placement:"bottom"},{trigger:u((()=>[l(n(g),{round:"",size:30,src:n(R).currentSessionItem.avatar},null,8,["src"])])),_:1},8,["user-id","disabled"]),s("span",G,c(n(R).currentSessionItem.name),1)]),s("div",P,[d(e.$slots,"header"),l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny",onClick:o[0]||(o[0]=()=>Y("image"))},{icon:u((()=>[N])),_:1})])),default:u((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.62"))||"图片")]})),_:1}),l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny",onClick:o[1]||(o[1]=()=>Y("file"))},{icon:u((()=>[A])),_:1})])),default:u((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.63"))||"文件")]})),_:1}),l(x,v(w(n(X))),{trigger:u((()=>[l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny"},{icon:u((()=>[l(n(_),{size:"18",component:n(B)},null,8,["component"])])),_:1})])),default:u((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.64"))||"添加成员")]})),_:1})])),_:1},16),l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny",onClick:o[2]||(o[2]=()=>W.value=!0)},{icon:u((()=>[F])),_:1})])),default:u((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.65"))||"聊天记录")]})),_:1}),l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny",onClick:o[3]||(o[3]=()=>O.value=!0)},{icon:u((()=>[H])),_:1})])),default:u((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.66"))||"聊天设置")]})),_:1}),n(V)&&n($)?(i(),h(n(C),{key:0,onPositiveClick:Z},{trigger:u((()=>[l(n(f),{"show-arrow":!1,placement:"bottom"},{trigger:u((()=>[l(n(y),{quaternary:"",size:"tiny"},{icon:u((()=>[l(n(_),{size:"18",component:n(D)},null,8,["component"])])),_:1})])),default:u((()=>[m(" 结束聊天 ")])),_:1})])),default:u((()=>[m(" 是否确认结束群聊? ")])),_:1})):p("v-if",!0)])])):p("v-if",!0),l(S,{show:O.value,"onUpdate:show":o[4]||(o[4]=e=>O.value=e)},null,8,["show"]),l(q,{show:Q.value,"onUpdate:show":o[5]||(o[5]=e=>Q.value=e),type:T.value,visible:Q.value},null,8,["show","type","visible"]),l(L,{show:W.value,"onUpdate:show":o[6]||(o[6]=e=>W.value=e),visible:W.value},null,8,["show","visible"])],64))}});export{R as default};
1
+ import{defineComponent as e,ref as o,computed as t,openBlock as a,createElementBlock as i,Fragment as n,unref as r,createElementVNode as s,createVNode as l,toDisplayString as c,renderSlot as u,withCtx as d,createTextVNode as m,normalizeProps as v,guardReactiveProps as w,createBlock as h,createCommentVNode as p}from"vue";import{NAvatar as g,NTooltip as f,NButton as y,NIcon as _,NPopconfirm as C}from"naive-ui";import{useData as b}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{STATUS as j}from"../constants/index.js";import{updateStatusApi as k}from"../api/index.js";import{$message as z}from"../utils/index.js";import"lodash-es";import"trtc-sdk-v5";import I from"./ChatSet.vue.js";import S from"./ChatFile.vue.js";import q from"./ChatRecord.vue.js";import D from"./ChatAdd.vue.js";import{PersonAddOutline as L,CloseOutline as U}from"@vicons/ionicons5";const x={key:0,class:"chat-header box-shadow"},B={class:"chat-header__left"},E={class:"name"},G={class:"chat-header__right"},N=s("i",{class:"chat--iconfont chat--icon-image"},null,-1),A=s("i",{class:"chat--iconfont chat--icon-folder"},null,-1),F=s("i",{class:"chat--iconfont chat--icon-list-search"},null,-1),H=s("i",{class:"chat--iconfont chat--icon-set"},null,-1);var P=e({__name:"ChatHeader",setup(e){const{state:P,isGroupChat:R,isGroupLeader:V,isEnded:$,setCurrentSessionItem:J,emit:K,setUserDetail:M}=b(),O=o(!1),Q=o(!1),T=o("image"),W=o(!1),X=t((()=>{const e=P.currentGroupUser.map((e=>e.id));return R.value?{mode:"join",disabledIds:e,disabled:$.value}:{mode:"create",defaultValue:P.currentGroupUser}}));function Y(e){T.value=e,Q.value=!0}async function Z(){try{await k({id:P.currentSessionItem.id,status:j.ENDED}),J({status:j.ENDED}),K("session-close",P.currentSessionItem),z.success("当前会话已结束")}catch(e){console.log(e)}}return(e,o)=>(a(),i(n,null,[r(P).id?(a(),i("section",x,[s("div",B,[l(r(g),{round:"",size:30,src:r(P).currentSessionItem.avatar,onClick:o[0]||(o[0]=e=>!r(R)&&r(M)(e,{show:!0,userId:r(P).currentSessionItem.receiver}))},null,8,["src"]),s("span",E,c(r(P).currentSessionItem.name),1)]),s("div",G,[u(e.$slots,"header"),l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny",onClick:o[1]||(o[1]=()=>Y("image"))},{icon:d((()=>[N])),_:1})])),default:d((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.62"))||"图片")]})),_:1}),l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny",onClick:o[2]||(o[2]=()=>Y("file"))},{icon:d((()=>[A])),_:1})])),default:d((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.63"))||"文件")]})),_:1}),l(D,v(w(r(X))),{trigger:d((()=>[l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny"},{icon:d((()=>[l(r(_),{size:"18",component:r(L)},null,8,["component"])])),_:1})])),default:d((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.64"))||"添加成员")]})),_:1})])),_:1},16),l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny",onClick:o[3]||(o[3]=()=>W.value=!0)},{icon:d((()=>[F])),_:1})])),default:d((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.65"))||"聊天记录")]})),_:1}),l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny",onClick:o[4]||(o[4]=()=>O.value=!0)},{icon:d((()=>[H])),_:1})])),default:d((()=>{var e;return[m((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.66"))||"聊天设置")]})),_:1}),r(R)&&r(V)?(a(),h(r(C),{key:0,onPositiveClick:Z},{trigger:d((()=>[l(r(f),{"show-arrow":!1,placement:"bottom"},{trigger:d((()=>[l(r(y),{quaternary:"",size:"tiny"},{icon:d((()=>[l(r(_),{size:"18",component:r(U)},null,8,["component"])])),_:1})])),default:d((()=>[m(" 结束聊天 ")])),_:1})])),default:d((()=>[m(" 是否确认结束群聊? ")])),_:1})):p("v-if",!0)])])):p("v-if",!0),l(I,{show:O.value,"onUpdate:show":o[5]||(o[5]=e=>O.value=e)},null,8,["show"]),l(S,{show:Q.value,"onUpdate:show":o[6]||(o[6]=e=>Q.value=e),type:T.value,visible:Q.value},null,8,["show","type","visible"]),l(q,{show:W.value,"onUpdate:show":o[7]||(o[7]=e=>W.value=e),visible:W.value},null,8,["show","visible"])],64))}});export{P as default};