cnhis-design-vue 3.2.15-beta.9 → 3.2.15-release.5

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 (104) hide show
  1. package/es/components/ai-chat/index.d.ts +9 -0
  2. package/es/components/ai-chat/src/Index.vue.d.ts +9 -0
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/style/index.css +1 -1
  6. package/es/components/branch-notice/index.d.ts +32 -3
  7. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +9 -3
  8. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
  9. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  10. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  11. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  12. package/es/components/classification/index.d.ts +30 -0
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +30 -0
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +30 -0
  15. package/es/components/classification/src/index.vue.d.ts +30 -0
  16. package/es/components/date-picker/index.d.ts +10 -0
  17. package/es/components/date-picker/src/DatePicker.vue.d.ts +10 -0
  18. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  19. package/es/components/expand-field/index.d.ts +1 -1
  20. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +1 -1
  21. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +1 -1
  22. package/es/components/expand-field/src/components/form.vue.d.ts +1 -1
  23. package/es/components/expand-field/src/index.vue.d.ts +1 -1
  24. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -0
  26. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -2
  29. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  30. package/es/components/field-set/src/FieldColor.vue.d.ts +21 -1
  31. package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -2
  32. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  33. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  34. package/es/components/field-set/src/components/condition.vue.d.ts +10 -0
  35. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +20 -0
  36. package/es/components/field-set/src/components/edit-filter.vue.d.ts +10 -0
  37. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  38. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  39. package/es/components/field-set/src/utils/index.js +1 -1
  40. package/es/components/form-config/index.d.ts +1021 -1
  41. package/es/components/form-config/src/FormConfig.vue.d.ts +1021 -1
  42. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  43. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  44. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1019 -0
  45. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  46. package/es/components/form-config/src/constants/index.js +1 -1
  47. package/es/components/form-config/style/index.css +1 -1
  48. package/es/components/form-render/src/components/renderer/select.d.ts +6 -0
  49. package/es/components/form-render/src/components/renderer/select.js +1 -1
  50. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  51. package/es/components/iho-chat/index.d.ts +296 -79
  52. package/es/components/iho-chat/src/Index.vue.d.ts +296 -79
  53. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  54. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -9
  55. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  56. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +33 -10
  57. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +33 -10
  58. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +109 -33
  59. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +33 -11
  60. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +10 -1
  61. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +0 -1
  62. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +33 -11
  63. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +34 -10
  64. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  65. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +0 -1
  66. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +11 -1
  67. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  68. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
  69. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  70. package/es/components/iho-chat/src/hooks/useData.d.ts +4 -2
  71. package/es/components/iho-chat/src/hooks/useData.js +1 -1
  72. package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -1
  73. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  74. package/es/components/iho-chat/src/types/index.d.ts +13 -2
  75. package/es/components/iho-chat/style/iconfont.ttf +0 -0
  76. package/es/components/iho-chat/style/index.css +1 -1
  77. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +10 -0
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +10 -0
  80. package/es/components/iho-table/style/index.css +1 -1
  81. package/es/components/index.css +1 -1
  82. package/es/components/select-person/index.d.ts +1 -1
  83. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  84. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  85. package/es/components/select-person/src/index.vue.d.ts +1 -1
  86. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +10 -0
  87. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +10 -0
  88. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +10 -0
  89. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +10 -0
  90. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +20 -0
  91. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +10 -0
  92. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +10 -0
  93. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +20 -0
  94. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -0
  95. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +10 -0
  96. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +10 -0
  97. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +10 -0
  98. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +10 -0
  99. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  100. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +40 -0
  101. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +40 -0
  102. package/es/shared/package.json.js +1 -1
  103. package/es/shared/types/business.d.ts +4 -0
  104. 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 k from"./components/ChatMain.vue.js";import j from"./components/ChatFooter.vue.js";import _ from"./components/ChatSearch.vue.js";import b from"./components/ChatAdd.vue.js";import w from"./components/Video.vue.js";import C from"./components/MultipleVideo.vue.js";import{instanceAxios as x}from"./api/index.js";import{isNumber as I}from"lodash-es";import{initData as L,InjectionIChatData as V}from"./hooks/useData.js";import{useWebSocket as B}from"./hooks/useWebSocket.js";import"trtc-sdk-v5";import"./utils/index.js";const H={key:0,class:"iho-chat__header"},U={class:"toolbar"};var $=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},showHeader:{type:Boolean,default:!0},defaultSessionId:{type:String},show:{type:Boolean,default:!0},extraParams:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1}},emits:["template-click","unread-message-update","session-change","session-close"],setup(e,{expose:$,emit:q}){const M=e;x.defaults.baseURL=M.baseURL,x.defaults.headers.Authorization="bearer "+M.token;const N=t(!1),R=L(M,q);o(V,R),B(M,R);const{cssVars:A,state:D,openSession:F,closeSession:z,getCurrentSession:E,isEnded:O}=R;return $({getUnreadData:function(){return D.sessionList.filter((e=>I(e.unreadNum)&&e.unreadNum>0))},openSession:F,closeSession:z,getCurrentSession:E}),(t,o)=>e.show?(s(),r("div",{key:0,class:"iho-chat",style:a(n(A))},[i(n(f),{abstract:"",namespace:"iho-chat__popover"},{default:l((()=>{var o;return[N.value?(s(),u(n(h),{key:0,stroke:"#5585f5"})):(s(),r(d,{key:1},[e.showHeader?(s(),r("div",H,[i(_),i(b,{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.31"))||"发起群聊",mode:"create","default-value":[n(D).userInfo]},null,8,["default-value"]),m("div",U,[p(t.$slots,"toolbar")])])):c("v-if",!0),i(n(v),{class:"iho-chat__body","has-sider":""},{default:l((()=>[i(S),i(n(y),{class:"chat-content",style:a({"--c-pointer-events":n(O)?"none":"unset","--c-cursor":n(O)?"not-allowed":"unset"})},{default:l((()=>[i(g,null,{header:l((()=>[p(t.$slots,"chatHeader",{session:n(D).currentSessionItem})])),_:3}),i(k),i(j,null,{footer:l((()=>[p(t.$slots,"chatFooter",{session:n(D).currentSessionItem})])),_:3})])),_:3},8,["style"]),p(t.$slots,"external")])),_:3}),n(D).showVideo?(s(),u(w,{key:1})):c("v-if",!0),n(D).showMultipleVideo?(s(),u(C,{key:2})):c("v-if",!0)],64))]})),_:3})],4)):c("v-if",!0)}});export{$ as default};
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};
@@ -25,6 +25,11 @@ declare const _default: import("vue").DefineComponent<{
25
25
  default: boolean;
26
26
  };
27
27
  }, {
28
+ initialOptions: AnyObject[];
29
+ tabList: {
30
+ key: string;
31
+ label: string;
32
+ }[];
28
33
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
29
34
  title: {
30
35
  type: StringConstructor;
@@ -54,7 +59,6 @@ declare const _default: import("vue").DefineComponent<{
54
59
  }>>;
55
60
  emit: (event: "comfirm", ...args: any[]) => void;
56
61
  state: {
57
- filterable: boolean;
58
62
  orgId: string | number;
59
63
  currentSessionItem: AnyObject;
60
64
  id: string;
@@ -78,27 +82,41 @@ declare const _default: import("vue").DefineComponent<{
78
82
  keyword: import("vue").Ref<string>;
79
83
  showModal: import("vue").Ref<boolean>;
80
84
  checkedOptions: import("vue").Ref<AnyObject[]>;
81
- options: import("vue").Ref<AnyObject[]>;
82
85
  groupName: import("vue").Ref<string>;
83
- checkedSourceIds: import("vue").Ref<(string | number)[]>;
84
86
  remark: import("vue").Ref<string>;
87
+ currentTab: import("vue").Ref<AnyObject[]>;
88
+ breadcrumbList: import("vue").Ref<AnyObject[]>;
85
89
  userList: import("vue").Ref<AnyObject[]>;
86
90
  handleInput: () => void;
87
91
  _disabledIds: import("vue").ComputedRef<any[]>;
88
- defaultOptions: import("vue").ComputedRef<{
92
+ sessionList: import("vue").ComputedRef<{
89
93
  id: any;
90
94
  name: any;
91
95
  avatar: any;
96
+ chatType: any;
97
+ }[]>;
98
+ friends: import("vue").ComputedRef<{
99
+ id: any;
100
+ name: any;
101
+ avatar: any;
102
+ chatType: any;
103
+ }[]>;
104
+ groups: import("vue").ComputedRef<{
105
+ id: any;
106
+ name: any;
107
+ avatar: any;
108
+ chatType: any;
92
109
  }[]>;
93
110
  checkedIds: import("vue").ComputedRef<any[]>;
94
111
  btnDisabled: import("vue").ComputedRef<boolean>;
95
112
  allChecked: import("vue").WritableComputedRef<boolean>;
113
+ checkedSourceIds: import("vue").WritableComputedRef<any[]>;
114
+ currentTabKey: import("vue").ComputedRef<any>;
115
+ getDisabled: (id: string | number) => boolean;
116
+ handleClickCheckbox: (option: AnyObject) => Promise<void>;
117
+ toggleTab: (item: AnyObject) => void;
118
+ handleTabBack: () => void;
96
119
  handlePositiveClick: () => Promise<void>;
97
- updateCheckedSourceIds: () => void;
98
- handleSourceIdsUpdate: (value: (string | number)[], meta: {
99
- actionType: 'check' | 'uncheck';
100
- value: string | number;
101
- }) => void;
102
120
  closeTag: (id: string) => void;
103
121
  NModal: any;
104
122
  NButton: any;
@@ -110,8 +128,14 @@ declare const _default: import("vue").DefineComponent<{
110
128
  NCheckbox: any;
111
129
  NCheckboxGroup: any;
112
130
  NTooltip: any;
131
+ NBreadcrumb: any;
132
+ NBreadcrumbItem: any;
113
133
  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<{}>>, {}>;
114
134
  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<{}>>, {}>;
135
+ PersonOutline: 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<{}>>, {}>;
136
+ PeopleOutline: 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<{}>>, {}>;
137
+ 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<{}>>, {}>;
138
+ last: <T>(array: import("lodash").List<T> | null | undefined) => T | undefined;
115
139
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
116
140
  title: {
117
141
  type: StringConstructor;
@@ -1 +1 @@
1
- import{createElementVNode as e,defineComponent as a,ref as l,computed as o,watch as t,openBlock as i,createElementBlock as n,Fragment as u,createVNode as d,unref as r,withCtx as s,createCommentVNode as v,isRef as c,renderList as p,createBlock as m,toDisplayString as f,createTextVNode as g,normalizeClass as w,renderSlot as h}from"vue";import{NModal as b,NInput as y,NIcon as k,NCheckbox as I,NCheckboxGroup as C,NSpace as _,NAvatar as x,NTag as L,NTooltip as S,NButton as j}from"naive-ui";import{SearchOutline as B,AddOutline as U}from"@vicons/ionicons5";import{useData as R}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{CHAT_TYPE as V}from"../constants/index.js";import{groupLeaveApi as A,groupJoinApi as E,groupCreateApi as G}from"../api/index.js";import{listSort as N}from"../utils/index.js";import{union as $,intersection as z,unionBy as D,remove as M,isArray as T,uniqBy as P,cloneDeep as q,trim as F}from"lodash-es";import"trtc-sdk-v5";import{useSearchUserList as H}from"../hooks/useSearchUserList.js";var J,K;const O={class:"iho-chat-dialog__content iho-chat-add-wrapper"},Q={key:0,class:"input-box"},W=e("span",null,(null==(J=window.getLanguageByCode)?void 0:J.call(window,"10010.1.34"))||"群名称:",-1),X={class:"transfer-box"},Y={class:"transfer-box__left"},Z={class:"user-list-box"},ee={key:1,class:"no-data"},ae={class:"transfer-box__right"},le={class:"checked-tag-box"},oe={key:0,class:"input-wrapper"};var te=a({__name:"ChatAdd",props:{title:{type:String,default:(null==(K=window.getLanguageByCode)?void 0:K.call(window,"10010.1.42"))||"添加新成员"},mode:{type:String,default:"select"},options:{type:Array},disabledIds:{type:Array,default:()=>[]},defaultValue:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["comfirm"],setup(a,{emit:J}){const K=a,{state:te,setCurrentSessionItem:ie}=R(),ne=l(),ue=l(""),de=l(!1),re=l([]),se=l([]),ve=l(""),ce=l([]),pe=l(""),{userList:me,handleInput:fe}=H({wrapperRef:ne,keywordRef:ue,before:()=>{me.value=q(se.value),Ie()},after:()=>{ge.value.length&&me.value.forEach((e=>{var a;e.disabled=null==(a=ge.value)?void 0:a.includes(e.id)})),Ie()}}),ge=o((()=>"relay"===K.mode?[]:$(K.disabledIds,[te.userInfo.id]))),we=o((()=>{var e,a;if(!(null==(e=te.sessionList)?void 0:e.length))return[];const l=N(te.sessionList);return null==(a="relay"===K.mode?l:l.filter((e=>e.chatType===V.SINGLE)))?void 0:a.map((e=>({id:e.receiver,name:e.name,avatar:e.avatar})))})),he=o((()=>re.value.length?re.value.map((e=>e.id)):[])),be=o((()=>"create"===K.mode?he.value.length<3:he.value.length<1)),ye=o({get:()=>ce.value.filter((e=>!ge.value.includes(e))).length===me.value.filter((e=>!e.disabled)).length,set(e){const a=K.defaultValue.map((e=>e.id)),l=z(a,ge.value,me.value.map((e=>e.id))),o=me.value.filter((e=>!e.disabled));ce.value=l.concat(e?o.map((e=>e.id)):[]),e?re.value=D(re.value,o,"id"):M(re.value,(e=>o.map((e=>e.id)).includes(e.id)))}});async function ke(){switch(K.mode){case"create":await G({creator:te.userInfo.id,memberIdSet:he.value,name:F(ve.value),orgId:te.orgId});break;case"join":if(await E({groupId:te.currentSessionItem.receiver,operator:te.userInfo.id,memberIdSet:he.value}),!te.currentSessionItem.defaultName){const e=re.value.map((e=>e.name)).join(",");ie({name:`${te.currentSessionItem.name},${e}`})}te.currentGroupUser.push(...me.value.filter((e=>he.value.includes(e.id))));break;case"remove":if(await A({dissolution:!1,groupId:te.currentSessionItem.receiver,operator:te.userInfo.id,memberIdSet:he.value}),!te.currentSessionItem.defaultName){const e=re.value.map((e=>e.name)).join(","),a=new RegExp(e,"g");ie({name:te.currentSessionItem.name.replace(a,"")})}M(te.currentGroupUser,(e=>he.value.includes(e.id)));break;default:J("comfirm",he.value,pe.value)}de.value=!1}function Ie(){var e,a;ce.value=null!=(a=null==(e=me.value.filter((e=>he.value.includes(e.id))))?void 0:e.map((e=>e.id)))?a:[]}function Ce(e,a){if("check"===a.actionType){const e=me.value.find((e=>e.id===a.value));re.value.push(e)}else M(re.value,(e=>e.id===a.value))}return t((()=>de.value),(e=>{if(!e)return;ue.value="",ve.value="";const a=T(K.options)&&K.options.length?K.options:we.value;se.value=P(a,"id").map((e=>{var a;return{...e,disabled:null==(a=ge.value)?void 0:a.includes(e.id)}})),me.value=q(se.value),T(K.defaultValue)&&K.defaultValue.length?(re.value=q(K.defaultValue),Ie()):(re.value=[],ce.value=[])})),(l,o)=>{var t,R;return i(),n(u,null,[d(r(b),{preset:"dialog",title:a.title,"show-icon":!1,"auto-focus":!1,"trap-focus":!1,class:"iho-chat-dialog",show:de.value,"onUpdate:show":o[5]||(o[5]=e=>de.value=e),"negative-text":(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.28"))||"取消","positive-text":(null==(R=window.getLanguageByCode)?void 0:R.call(window,"10010.1.27"))||"确定","display-directive":"show","positive-button-props":{disabled:r(be)},onPositiveClick:ke},{default:s((()=>{var l,t,w,h,b,S,j;return[e("div",O,["create"===a.mode?(i(),n("div",Q,[W,d(r(y),{clearable:"",placeholder:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.35"))||"取个群名称方便后续搜索",value:ve.value,"onUpdate:value":o[0]||(o[0]=e=>ve.value=e),valueModifiers:{trim:!0}},null,8,["value"])])):v("v-if",!0),e("div",X,[e("div",Y,[d(r(y),{placeholder:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.36"))||"搜索",clearable:"",value:ue.value,"onUpdate:value":[o[1]||(o[1]=e=>ue.value=e),r(fe)],valueModifiers:{trim:!0}},{prefix:s((()=>[d(r(k),{component:r(B)},null,8,["component"])])),_:1},8,["value","onUpdate:value"]),e("div",Z,[r(me).length>0?(i(),n(u,{key:0},[d(r(I),{label:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.37"))||"全选",checked:r(ye),"onUpdate:checked":o[2]||(o[2]=e=>c(ye)?ye.value=e:null)},null,8,["checked"]),d(r(C),{ref_key:"listRef",ref:ne,value:ce.value,"onUpdate:value":[o[3]||(o[3]=e=>ce.value=e),Ce]},{default:s((()=>[(i(!0),n(u,null,p(r(me),(a=>(i(),m(r(I),{key:a.id,value:a.id,disabled:a.disabled},{default:s((()=>[d(r(_),{align:"center","wrap-item":!1},{default:s((()=>[d(r(x),{src:a.avatar,round:"",size:32},null,8,["src"]),e("span",null,f(a.name),1)])),_:2},1024)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value"])],64)):(i(),n("div",ee,(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.38"))||"找不到相关结果"))])]),e("div",ae,[e("span",null,((null==(b=window.getLanguageByCode)?void 0:b.call(window,"10010.1.39"))||"已选择")+f(r(he).length)+((null==(S=window.getLanguageByCode)?void 0:S.call(window,"10010.1.40"))||"人"),1),e("div",le,[(i(!0),n(u,null,p(re.value,(e=>(i(),m(r(L),{key:e.id,bordered:!1,closable:"relay"===a.mode||e.id!==r(te).userInfo.id,disabled:r(ge).includes(e.id),onClose:()=>{return a=e.id,M(re.value,(e=>e.id===a)),void M(ce.value,(e=>e===a));var a}},{avatar:s((()=>[d(r(x),{round:"",src:e.avatar},null,8,["src"])])),default:s((()=>[g(" "+f(e.name),1)])),_:2},1032,["closable","disabled","onClose"])))),128))]),"relay"===a.mode?(i(),n("div",oe,[d(r(y),{clearable:"",value:pe.value,"onUpdate:value":o[4]||(o[4]=e=>pe.value=e),type:"textarea",placeholder:(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.41"))||"留言",autosize:{minRows:2,maxRows:2}},null,8,["value"])])):v("v-if",!0)])])])]})),_:1},8,["title","show","positive-button-props"]),e("span",{class:w(["btn-wrapper",{disabled:a.disabled}]),onClick:o[6]||(o[6]=e=>de.value=!0)},[h(l.$slots,"trigger",{},(()=>[d(r(S),{"show-arrow":!1,placement:"bottom"},{trigger:s((()=>[d(r(j),{color:"#ffffff4D",class:"add-btn"},{icon:s((()=>[d(r(k),{component:r(U),color:"#fff"},null,8,["component"])])),_:1})])),default:s((()=>[g(" "+f(a.title),1)])),_:1})]))],2)],64)}}});export{te as default};
1
+ import{createElementVNode as e,defineComponent as l,ref as a,computed as o,watch as t,openBlock as n,createElementBlock as i,Fragment as u,createVNode as r,unref as d,withCtx as s,createCommentVNode as v,createBlock as c,renderList as p,toDisplayString as m,createTextVNode as f,withDirectives as g,isRef as w,vShow as y,normalizeClass as h,renderSlot as k}from"vue";import{NModal as b,NInput as I,NIcon as _,NSpace as C,NButton as x,NBreadcrumb as L,NBreadcrumbItem as S,NCheckbox as j,NCheckboxGroup as B,NAvatar as U,NTag as R,NTooltip as A}from"naive-ui";import{SearchOutline as G,PersonOutline as T,PeopleOutline as V,ChevronBackOutline as z,AddOutline as E}from"@vicons/ionicons5";import{useData as N}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{CHAT_TYPE as $}from"../constants/index.js";import{groupUserApi as D,groupLeaveApi as M,groupJoinApi as P,groupCreateApi as O}from"../api/index.js";import{listSort as q}from"../utils/index.js";import{union as F,unionBy as H,remove as J,last as K,isArray as Q,uniqBy as W,cloneDeep as X,trim as Y}from"lodash-es";import"trtc-sdk-v5";import{useSearchUserList as Z}from"../hooks/useSearchUserList.js";var ee,le;const ae={class:"iho-chat-dialog__content iho-chat-add-wrapper"},oe={key:0,class:"input-box"},te=e("span",null,(null==(ee=window.getLanguageByCode)?void 0:ee.call(window,"10010.1.34"))||"群名称:",-1),ne={class:"transfer-box"},ie={class:"transfer-box__left"},ue={key:0,class:"nav-wrapper"},re={key:0,class:"chat--iconfont chat--icon-map-site"},de={style:{"font-size":"12px"}},se={key:1,class:"header"},ve={class:"user-list-box"},ce={key:1,class:"no-data"},pe={class:"transfer-box__right"},me={class:"checked-tag-box"},fe={key:0,class:"input-wrapper"};var ge=l({__name:"ChatAdd",props:{title:{type:String,default:(null==(le=window.getLanguageByCode)?void 0:le.call(window,"10010.1.42"))||"添加新成员"},mode:{type:String,default:"select"},options:{type:Array},disabledIds:{type:Array,default:()=>[]},defaultValue:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["comfirm"],setup(l,{emit:ee}){const le=l;let ge=[];const we=[{key:"single",label:"按好友选"},{key:"group",label:"按群聊选"},{key:"framework",label:"按架构选"}],{state:ye,setCurrentSessionItem:he}=N(),ke=a(),be=a(""),Ie=a(!1),_e=a([]),Ce=a(""),xe=a(""),Le=a([]),Se=a([]),{userList:je,handleInput:Be}=Z({wrapperRef:ke,keywordRef:be,before:()=>{Le.value.length>0||(je.value=ge)}}),Ue=o((()=>"relay"===le.mode?[]:F(le.disabledIds,[ye.userInfo.id]))),Re=o((()=>{var e;return(null==(e=ye.sessionList)?void 0:e.length)?q(ye.sessionList).map((e=>({id:e.receiver,name:e.name,avatar:e.avatar,chatType:e.chatType}))):[]})),Ae=o((()=>Re.value.filter((e=>e.chatType===$.SINGLE)))),Ge=o((()=>Re.value.filter((e=>e.chatType===$.GROUP)))),Te=o((()=>_e.value.length?_e.value.map((e=>e.id)):[])),Ve=o((()=>"create"===le.mode?Te.value.length<3:Te.value.length<1)),ze=o({get:()=>Ee.value.filter((e=>!Ue.value.includes(e))).length===je.value.filter((e=>!$e(e.id))).length,set(e){const l=je.value.filter((e=>!$e(e.id)));e?_e.value=H(_e.value,l,"id"):J(_e.value,(e=>l.map((e=>e.id)).includes(e.id)))}}),Ee=o({get(){var e,l,a;return null!=(a=null==(l=null==(e=je.value)?void 0:e.filter((e=>Te.value.includes(e.id))))?void 0:l.map((e=>e.id)))?a:[]},set(e){je.value.forEach((l=>{e.includes(l.id)?_e.value=H(_e.value,[l],"id"):J(_e.value,(e=>e.id==l.id))}))}}),Ne=o((()=>{var e;return Le.value.length>0?null==(e=K(Le.value))?void 0:e.key:""}));function $e(e){var l,a;return"group"===Ne.value?"relay"!==le.mode&&(1===Le.value.length||(null==(l=Ue.value)?void 0:l.includes(e))):null==(a=Ue.value)?void 0:a.includes(e)}function De(){if(Le.value.length>1&&"group"===Ne.value)return je.value=Ge.value,void Le.value.pop();Le.value.pop(),je.value=ge}async function Me(){switch(le.mode){case"create":await O({creator:ye.userInfo.id,memberIdSet:Te.value,name:Y(Ce.value),orgId:ye.orgId});break;case"join":if(await P({groupId:ye.currentSessionItem.receiver,operator:ye.userInfo.id,memberIdSet:Te.value}),!ye.currentSessionItem.defaultName){const e=_e.value.map((e=>e.name)).join(",");he({name:`${ye.currentSessionItem.name},${e}`})}ye.currentGroupUser.push(...je.value.filter((e=>Te.value.includes(e.id))));break;case"remove":if(await M({dissolution:!1,groupId:ye.currentSessionItem.receiver,operator:ye.userInfo.id,memberIdSet:Te.value}),!ye.currentSessionItem.defaultName){const e=_e.value.map((e=>e.name)).join(","),l=new RegExp(e,"g");he({name:ye.currentSessionItem.name.replace(l,"")})}J(ye.currentGroupUser,(e=>Te.value.includes(e.id)));break;default:ee("comfirm",Te.value,xe.value)}Ie.value=!1}return t((()=>Ie.value),(e=>{if(!e)return;be.value="",Ce.value="",Le.value=[];const l="relay"===le.mode?Re.value:Ae.value,a=Q(le.options)&&le.options.length?le.options:l;ge=W(a,"id"),je.value=ge,_e.value=Q(le.defaultValue)&&le.defaultValue.length?X(le.defaultValue):[]})),(a,o)=>{var t,N;return n(),i(u,null,[r(d(b),{preset:"dialog",title:l.title,"show-icon":!1,"auto-focus":!1,"trap-focus":!1,class:"iho-chat-dialog",show:Ie.value,"onUpdate:show":o[5]||(o[5]=e=>Ie.value=e),"negative-text":(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.28"))||"取消","positive-text":(null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.27"))||"确定","display-directive":"show","positive-button-props":{disabled:d(Ve)},onPositiveClick:Me},{default:s((()=>{var a,t,h,k,b,A,E,N,$;return[e("div",ae,["create"===l.mode?(n(),i("div",oe,[te,r(d(I),{clearable:"",placeholder:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.35"))||"取个群名称方便后续搜索",value:Ce.value,"onUpdate:value":o[0]||(o[0]=e=>Ce.value=e),valueModifiers:{trim:!0}},null,8,["value"])])):v("v-if",!0),e("div",ne,[e("div",ie,[r(d(I),{placeholder:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.36"))||"搜索",clearable:"",value:be.value,"onUpdate:value":[o[1]||(o[1]=e=>be.value=e),d(Be)],valueModifiers:{trim:!0}},{prefix:s((()=>[r(d(_),{component:d(G)},null,8,["component"])])),_:1},8,["value","onUpdate:value"]),be.value||"remove"===l.mode?v("v-if",!0):(n(),i("div",ue,[0===Le.value.length?(n(),c(d(C),{key:0,justify:"space-around","wrap-item":!1},{default:s((()=>[(n(),i(u,null,p(we,(l=>r(d(C),{vertical:"",align:"center","wrap-item":!1,key:l.key,onClick:()=>function(e){switch(be.value="",Le.value=[e],e.key){case"single":je.value=Ae.value;break;case"group":je.value=Ge.value;break;case"framework":je.value=[]}}(l)},{default:s((()=>[r(d(x),{tertiary:""},{icon:s((()=>["framework"===l.key?(n(),i("i",re)):(n(),c(d(_),{key:1,component:"single"===l.key?d(T):d(V)},null,8,["component"]))])),_:2},1024),e("span",de,m(l.label),1)])),_:2},1032,["onClick"]))),64))])),_:1})):v("v-if",!0),Le.value.length>0?(n(),i("div",se,[r(d(x),{text:"",onClick:De},{icon:s((()=>[r(d(_),{component:d(z)},null,8,["component"])])),_:1}),e("h4",null,m(null==(h=d(K)(Le.value))?void 0:h.label),1)])):v("v-if",!0),Le.value.length>0&&"framework"===(null==(k=d(K)(Le.value))?void 0:k.key)&&Se.value.length>0?(n(),c(d(L),{key:2,separator:">"},{default:s((()=>[(n(!0),i(u,null,p(Se.value,(e=>(n(),c(d(S),{key:e.id},{default:s((()=>[f(m(e.name),1)])),_:2},1024)))),128))])),_:1})):v("v-if",!0)])),e("div",ve,[d(je).length>0?(n(),i(u,{key:0},[g(r(d(j),{label:(null==(b=window.getLanguageByCode)?void 0:b.call(window,"10010.1.37"))||"全选",checked:d(ze),"onUpdate:checked":o[2]||(o[2]=e=>w(ze)?ze.value=e:null)},null,8,["checked"]),[[y,!("relay"!==l.mode&&"group"===d(Ne)&&1===Le.value.length)]]),r(d(B),{ref_key:"listRef",ref:ke,value:d(Ee),"onUpdate:value":o[3]||(o[3]=e=>w(Ee)?Ee.value=e:null)},{default:s((()=>[(n(!0),i(u,null,p(d(je),(l=>(n(),c(d(j),{key:l.id,value:l.id,disabled:$e(l.id),onClick:()=>async function(e){const l=d(Ne);if(l&&"relay"!==le.mode&&"group"===l&&1===Le.value.length)try{Le.value.push({key:l,label:e.name});const a=await D({id:e.id});je.value=Q(a)?a:[]}catch(e){console.log("error ==>",e)}}(l)},{default:s((()=>[r(d(C),{align:"center","wrap-item":!1},{default:s((()=>[r(d(U),{src:l.avatar,round:"",size:32},null,8,["src"]),e("span",null,m(l.name),1)])),_:2},1024)])),_:2},1032,["value","disabled","onClick"])))),128))])),_:1},8,["value"])],64)):(n(),i("div",ce,(null==(A=window.getLanguageByCode)?void 0:A.call(window,"10010.1.38"))||"找不到相关结果"))])]),e("div",pe,[e("span",null,((null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.39"))||"已选择")+m(d(Te).length)+((null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.40"))||"人"),1),e("div",me,[(n(!0),i(u,null,p(_e.value,(e=>(n(),c(d(R),{key:e.id,bordered:!1,closable:"relay"===l.mode||e.id!==d(ye).userInfo.id,disabled:d(Ue).includes(e.id),onClose:()=>{return l=e.id,void J(_e.value,(e=>e.id===l));var l}},{avatar:s((()=>[r(d(U),{round:"",src:e.avatar},null,8,["src"])])),default:s((()=>[f(" "+m(e.name),1)])),_:2},1032,["closable","disabled","onClose"])))),128))]),"relay"===l.mode?(n(),i("div",fe,[r(d(I),{clearable:"",value:xe.value,"onUpdate:value":o[4]||(o[4]=e=>xe.value=e),type:"textarea",placeholder:(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.41"))||"留言",autosize:{minRows:2,maxRows:2}},null,8,["value"])])):v("v-if",!0)])])])]})),_:1},8,["title","show","positive-button-props"]),e("span",{class:h(["btn-wrapper",{disabled:l.disabled}]),onClick:o[6]||(o[6]=e=>Ie.value=!0)},[k(a.$slots,"trigger",{},(()=>[r(d(A),{"show-arrow":!1,placement:"bottom"},{trigger:s((()=>[r(d(x),{color:"#ffffff4D",class:"add-btn"},{icon:s((()=>[r(d(_),{component:d(E),color:"#fff"},null,8,["component"])])),_:1})])),default:s((()=>[f(" "+m(l.title),1)])),_:1})]))],2)],64)}}});export{ge as default};
@@ -21,7 +21,6 @@ declare const _default: import("vue").DefineComponent<{
21
21
  }>> & {}>>;
22
22
  cssVars: import("vue").ComputedRef<AnyObject>;
23
23
  state: {
24
- filterable: boolean;
25
24
  orgId: string | number;
26
25
  currentSessionItem: AnyObject;
27
26
  id: string;
@@ -100,6 +99,11 @@ declare const _default: import("vue").DefineComponent<{
100
99
  default: boolean;
101
100
  };
102
101
  }, {
102
+ initialOptions: AnyObject[];
103
+ tabList: {
104
+ key: string;
105
+ label: string;
106
+ }[];
103
107
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
104
108
  title: {
105
109
  type: StringConstructor;
@@ -129,7 +133,6 @@ declare const _default: import("vue").DefineComponent<{
129
133
  }>>;
130
134
  emit: (event: "comfirm", ...args: any[]) => void;
131
135
  state: {
132
- filterable: boolean;
133
136
  orgId: string | number;
134
137
  currentSessionItem: AnyObject;
135
138
  id: string;
@@ -153,27 +156,41 @@ declare const _default: import("vue").DefineComponent<{
153
156
  keyword: import("vue").Ref<string>;
154
157
  showModal: import("vue").Ref<boolean>;
155
158
  checkedOptions: import("vue").Ref<AnyObject[]>;
156
- options: import("vue").Ref<AnyObject[]>;
157
159
  groupName: import("vue").Ref<string>;
158
- checkedSourceIds: import("vue").Ref<(string | number)[]>;
159
160
  remark: import("vue").Ref<string>;
161
+ currentTab: import("vue").Ref<AnyObject[]>;
162
+ breadcrumbList: import("vue").Ref<AnyObject[]>;
160
163
  userList: import("vue").Ref<AnyObject[]>;
161
164
  handleInput: () => void;
162
165
  _disabledIds: import("vue").ComputedRef<any[]>;
163
- defaultOptions: import("vue").ComputedRef<{
166
+ sessionList: import("vue").ComputedRef<{
164
167
  id: any;
165
168
  name: any;
166
169
  avatar: any;
170
+ chatType: any;
171
+ }[]>;
172
+ friends: import("vue").ComputedRef<{
173
+ id: any;
174
+ name: any;
175
+ avatar: any;
176
+ chatType: any;
177
+ }[]>;
178
+ groups: import("vue").ComputedRef<{
179
+ id: any;
180
+ name: any;
181
+ avatar: any;
182
+ chatType: any;
167
183
  }[]>;
168
184
  checkedIds: import("vue").ComputedRef<any[]>;
169
185
  btnDisabled: import("vue").ComputedRef<boolean>;
170
186
  allChecked: import("vue").WritableComputedRef<boolean>;
187
+ checkedSourceIds: import("vue").WritableComputedRef<any[]>;
188
+ currentTabKey: import("vue").ComputedRef<any>;
189
+ getDisabled: (id: string | number) => boolean;
190
+ handleClickCheckbox: (option: AnyObject) => Promise<void>;
191
+ toggleTab: (item: AnyObject) => void;
192
+ handleTabBack: () => void;
171
193
  handlePositiveClick: () => Promise<void>;
172
- updateCheckedSourceIds: () => void;
173
- handleSourceIdsUpdate: (value: (string | number)[], meta: {
174
- actionType: "check" | "uncheck";
175
- value: string | number;
176
- }) => void;
177
194
  closeTag: (id: string) => void;
178
195
  NModal: any;
179
196
  NButton: any;
@@ -185,8 +202,14 @@ declare const _default: import("vue").DefineComponent<{
185
202
  NCheckbox: any;
186
203
  NCheckboxGroup: any;
187
204
  NTooltip: any;
205
+ NBreadcrumb: any;
206
+ NBreadcrumbItem: any;
188
207
  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<{}>>, {}>;
189
208
  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<{}>>, {}>;
209
+ PersonOutline: 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<{}>>, {}>;
210
+ PeopleOutline: 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<{}>>, {}>;
211
+ 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<{}>>, {}>;
212
+ last: <T>(array: import("lodash").List<T> | null | undefined) => T | undefined;
190
213
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
191
214
  title: {
192
215
  type: StringConstructor;
@@ -6,7 +6,6 @@ import { FileOptions } from '../types';
6
6
  declare const _default: import("vue").DefineComponent<{}, {
7
7
  inputRef: Ref<HTMLDivElement | undefined>;
8
8
  state: {
9
- filterable: boolean;
10
9
  orgId: string | number;
11
10
  currentSessionItem: AnyObject;
12
11
  id: string;
@@ -81,6 +80,11 @@ declare const _default: import("vue").DefineComponent<{}, {
81
80
  default: boolean;
82
81
  };
83
82
  }, {
83
+ initialOptions: AnyObject[];
84
+ tabList: {
85
+ key: string;
86
+ label: string;
87
+ }[];
84
88
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
85
89
  title: {
86
90
  type: StringConstructor;
@@ -110,7 +114,6 @@ declare const _default: import("vue").DefineComponent<{}, {
110
114
  }>>;
111
115
  emit: (event: "comfirm", ...args: any[]) => void;
112
116
  state: {
113
- filterable: boolean;
114
117
  orgId: string | number;
115
118
  currentSessionItem: AnyObject;
116
119
  id: string;
@@ -134,27 +137,41 @@ declare const _default: import("vue").DefineComponent<{}, {
134
137
  keyword: Ref<string>;
135
138
  showModal: Ref<boolean>;
136
139
  checkedOptions: Ref<AnyObject[]>;
137
- options: Ref<AnyObject[]>;
138
140
  groupName: Ref<string>;
139
- checkedSourceIds: Ref<(string | number)[]>;
140
141
  remark: Ref<string>;
142
+ currentTab: Ref<AnyObject[]>;
143
+ breadcrumbList: Ref<AnyObject[]>;
141
144
  userList: Ref<AnyObject[]>;
142
145
  handleInput: () => void;
143
146
  _disabledIds: import("vue").ComputedRef<any[]>;
144
- defaultOptions: import("vue").ComputedRef<{
147
+ sessionList: import("vue").ComputedRef<{
145
148
  id: any;
146
149
  name: any;
147
150
  avatar: any;
151
+ chatType: any;
152
+ }[]>;
153
+ friends: import("vue").ComputedRef<{
154
+ id: any;
155
+ name: any;
156
+ avatar: any;
157
+ chatType: any;
158
+ }[]>;
159
+ groups: import("vue").ComputedRef<{
160
+ id: any;
161
+ name: any;
162
+ avatar: any;
163
+ chatType: any;
148
164
  }[]>;
149
165
  checkedIds: import("vue").ComputedRef<any[]>;
150
166
  btnDisabled: import("vue").ComputedRef<boolean>;
151
167
  allChecked: import("vue").WritableComputedRef<boolean>;
168
+ checkedSourceIds: import("vue").WritableComputedRef<any[]>;
169
+ currentTabKey: import("vue").ComputedRef<any>;
170
+ getDisabled: (id: string | number) => boolean;
171
+ handleClickCheckbox: (option: AnyObject) => Promise<void>;
172
+ toggleTab: (item: AnyObject) => void;
173
+ handleTabBack: () => void;
152
174
  handlePositiveClick: () => Promise<void>;
153
- updateCheckedSourceIds: () => void;
154
- handleSourceIdsUpdate: (value: (string | number)[], meta: {
155
- actionType: "check" | "uncheck";
156
- value: string | number;
157
- }) => void;
158
175
  closeTag: (id: string) => void;
159
176
  NModal: any;
160
177
  NButton: any;
@@ -166,8 +183,14 @@ declare const _default: import("vue").DefineComponent<{}, {
166
183
  NCheckbox: any;
167
184
  NCheckboxGroup: any;
168
185
  NTooltip: any;
186
+ NBreadcrumb: any;
187
+ NBreadcrumbItem: any;
169
188
  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<{}>>, {}>;
170
189
  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<{}>>, {}>;
190
+ PersonOutline: 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<{}>>, {}>;
191
+ PeopleOutline: 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<{}>>, {}>;
192
+ 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<{}>>, {}>;
193
+ last: <T>(array: import("lodash").List<T> | null | undefined) => T | undefined;
171
194
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
172
195
  title: {
173
196
  type: StringConstructor;