cnhis-design-vue 3.2.15-beta.2 → 3.2.15-beta.8
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/README.md +87 -87
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/branch-notice/index.d.ts +393 -6
- package/es/components/branch-notice/src/BranchNotice.vue.d.ts +369 -6
- package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
- package/es/components/branch-notice/src/canstants.d.ts +2 -1
- package/es/components/branch-notice/src/canstants.js +1 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +168 -44
- package/es/components/branch-notice/src/components/NoticeItem.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItem.vue2.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +74 -5
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +1 -0
- package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +1 -0
- package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +1 -0
- package/es/components/branch-notice/src/drawLine.js +1 -1
- package/es/components/branch-notice/src/hooks/useTheme.d.ts +1 -0
- package/es/components/branch-notice/src/hooks/useTheme.js +1 -0
- package/es/components/branch-notice/src/types.d.ts +22 -4
- package/es/components/branch-notice/style/index.css +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.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/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/{temperature/useShadow.d.ts → useShadow.d.ts} +2 -2
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/constants/filter.js +1 -1
- package/es/components/field-set/src/constants/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-config/src/hooks/useLocale.js +1 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/index.d.ts +261 -27
- package/es/components/iho-chat/src/Index.vue.d.ts +261 -27
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +11 -2
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +4 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +34 -34
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +4 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +203 -4
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
- package/es/components/iho-chat/src/components/userItemRender.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +4 -2
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +2 -0
- 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/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
- package/es/components/map/src/Map.vue2.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/template-render/src/components/index.d.ts +23 -23
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/logo.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
type: BooleanConstructor;
|
22
22
|
default: boolean;
|
23
23
|
};
|
24
|
-
|
24
|
+
defaultSessionId: {
|
25
25
|
type: StringConstructor;
|
26
26
|
};
|
27
27
|
show: {
|
@@ -32,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
32
|
type: PropType<AnyObject>;
|
33
33
|
default: () => {};
|
34
34
|
};
|
35
|
+
filterable: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
35
39
|
}, {
|
36
40
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
37
41
|
token: {
|
@@ -54,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
58
|
type: BooleanConstructor;
|
55
59
|
default: boolean;
|
56
60
|
};
|
57
|
-
|
61
|
+
defaultSessionId: {
|
58
62
|
type: StringConstructor;
|
59
63
|
};
|
60
64
|
show: {
|
@@ -65,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
69
|
type: PropType<AnyObject>;
|
66
70
|
default: () => {};
|
67
71
|
};
|
72
|
+
filterable: {
|
73
|
+
type: BooleanConstructor;
|
74
|
+
default: boolean;
|
75
|
+
};
|
68
76
|
}>> & {
|
69
77
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
70
78
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -77,6 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
85
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
78
86
|
stompClient: import("vue").Ref<import("./utils/chatSock").ChatSock | undefined>;
|
79
87
|
state: {
|
88
|
+
filterable: boolean;
|
80
89
|
orgId: string | number;
|
81
90
|
currentSessionItem: AnyObject;
|
82
91
|
id: string;
|
@@ -110,7 +119,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
119
|
remark: string;
|
111
120
|
content: AnyObject;
|
112
121
|
}) => Promise<void>;
|
113
|
-
openSession: (
|
122
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
114
123
|
closeSession: () => AnyObject | null;
|
115
124
|
getCurrentSession: () => AnyObject | null;
|
116
125
|
setCurrentSessionItem: (item: AnyObject) => void;
|
@@ -120,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
120
129
|
};
|
121
130
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
122
131
|
state: {
|
132
|
+
filterable: boolean;
|
123
133
|
orgId: string | number;
|
124
134
|
currentSessionItem: AnyObject;
|
125
135
|
id: string;
|
@@ -138,7 +148,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
148
|
currentGroupUser: AnyObject[];
|
139
149
|
showMultipleVideo: boolean;
|
140
150
|
};
|
141
|
-
openSession: (
|
151
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
142
152
|
closeSession: () => AnyObject | null;
|
143
153
|
getCurrentSession: () => AnyObject | null;
|
144
154
|
isEnded: import("vue").ComputedRef<boolean>;
|
@@ -156,8 +166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
166
|
unreadSessionKeys: string[];
|
157
167
|
flexWidth: import("vue").Ref<number>;
|
158
168
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
159
|
-
|
160
|
-
filterList: import("vue").Ref<{
|
169
|
+
filterListByTag: import("vue").Ref<{
|
161
170
|
label: string;
|
162
171
|
key: string;
|
163
172
|
}[]>;
|
@@ -166,7 +175,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
166
175
|
menuPosition: any;
|
167
176
|
sessionId: import("vue").Ref<any>;
|
168
177
|
currentFilterKey: import("vue").Ref<string>;
|
178
|
+
dateRange: import("vue").Ref<any>;
|
179
|
+
keyword: import("vue").Ref<string>;
|
180
|
+
showSearch: import("vue").Ref<boolean>;
|
181
|
+
filterList: import("vue").Ref<AnyObject[]>;
|
182
|
+
handleInput: () => void;
|
169
183
|
state: {
|
184
|
+
filterable: boolean;
|
170
185
|
orgId: string | number;
|
171
186
|
currentSessionItem: AnyObject;
|
172
187
|
id: string;
|
@@ -186,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
201
|
showMultipleVideo: boolean;
|
187
202
|
};
|
188
203
|
unreadTotal: import("vue").ComputedRef<number>;
|
189
|
-
openSession: (
|
204
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
190
205
|
setUpdateSessionItem: (item: AnyObject) => void;
|
191
206
|
setCurrentSessionItem: (item: AnyObject) => void;
|
192
207
|
currentWidth: import("vue").ComputedRef<number>;
|
@@ -197,10 +212,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
212
|
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
198
213
|
handleContextmenu: (event: MouseEvent, id: string) => Promise<void>;
|
199
214
|
handleSelect: (key: string, session: AnyObject) => Promise<void>;
|
200
|
-
|
215
|
+
handleUpdateShow: (value: boolean) => void;
|
216
|
+
handleSearch: () => void;
|
201
217
|
NBadge: any;
|
202
218
|
NAvatar: any;
|
219
|
+
NInput: any;
|
203
220
|
NTag: any;
|
221
|
+
NIcon: any;
|
222
|
+
NPopover: any;
|
204
223
|
ContextMenu: import("vue").DefineComponent<{
|
205
224
|
type: {
|
206
225
|
type: StringConstructor;
|
@@ -244,9 +263,200 @@ declare const _default: import("vue").DefineComponent<{
|
|
244
263
|
};
|
245
264
|
formatTime: typeof import("./utils").formatTime;
|
246
265
|
STATUS: typeof import("./constants").STATUS;
|
266
|
+
CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
267
|
+
updateUnchangedValue: {
|
268
|
+
type: BooleanConstructor;
|
269
|
+
};
|
270
|
+
onConfirm: {
|
271
|
+
type: FunctionConstructor;
|
272
|
+
};
|
273
|
+
formattedValue: {
|
274
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
275
|
+
};
|
276
|
+
placeholder: {
|
277
|
+
type: StringConstructor;
|
278
|
+
};
|
279
|
+
allowedInvalidValue: {
|
280
|
+
type: StringConstructor;
|
281
|
+
};
|
282
|
+
to: {
|
283
|
+
type: PropType<string | false | HTMLElement>;
|
284
|
+
default: string;
|
285
|
+
};
|
286
|
+
holidays: {
|
287
|
+
type: PropType<Date[]>;
|
288
|
+
default: () => never[];
|
289
|
+
};
|
290
|
+
type: {
|
291
|
+
type: StringConstructor;
|
292
|
+
default: string;
|
293
|
+
};
|
294
|
+
}, {
|
295
|
+
attrs: {
|
296
|
+
[x: string]: unknown;
|
297
|
+
};
|
298
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
299
|
+
updateUnchangedValue: {
|
300
|
+
type: BooleanConstructor;
|
301
|
+
};
|
302
|
+
onConfirm: {
|
303
|
+
type: FunctionConstructor;
|
304
|
+
};
|
305
|
+
formattedValue: {
|
306
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
307
|
+
};
|
308
|
+
placeholder: {
|
309
|
+
type: StringConstructor;
|
310
|
+
};
|
311
|
+
allowedInvalidValue: {
|
312
|
+
type: StringConstructor;
|
313
|
+
};
|
314
|
+
to: {
|
315
|
+
type: PropType<string | false | HTMLElement>;
|
316
|
+
default: string;
|
317
|
+
};
|
318
|
+
holidays: {
|
319
|
+
type: PropType<Date[]>;
|
320
|
+
default: () => never[];
|
321
|
+
};
|
322
|
+
type: {
|
323
|
+
type: StringConstructor;
|
324
|
+
default: string;
|
325
|
+
};
|
326
|
+
}>> & {
|
327
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
328
|
+
}>>;
|
329
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
330
|
+
datePickerRef: import("vue").Ref<AnyObject | null>;
|
331
|
+
panelInstRef: import("vue").Ref<null>;
|
332
|
+
placeholderRef: import("vue").Ref<any>;
|
333
|
+
oldValue: string;
|
334
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
335
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
336
|
+
formatRef: import("vue").ComputedRef<string>;
|
337
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
338
|
+
focus: () => any;
|
339
|
+
blur: () => any;
|
340
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
341
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
342
|
+
watchers: import("../../../shared/types").AnyFn[];
|
343
|
+
stopWatcher: () => void;
|
344
|
+
setHoliday: (show: boolean) => Promise<void>;
|
345
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
346
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
347
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
348
|
+
NDatePicker: any;
|
349
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
350
|
+
updateUnchangedValue: {
|
351
|
+
type: BooleanConstructor;
|
352
|
+
};
|
353
|
+
onConfirm: {
|
354
|
+
type: FunctionConstructor;
|
355
|
+
};
|
356
|
+
formattedValue: {
|
357
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
358
|
+
};
|
359
|
+
placeholder: {
|
360
|
+
type: StringConstructor;
|
361
|
+
};
|
362
|
+
allowedInvalidValue: {
|
363
|
+
type: StringConstructor;
|
364
|
+
};
|
365
|
+
to: {
|
366
|
+
type: PropType<string | false | HTMLElement>;
|
367
|
+
default: string;
|
368
|
+
};
|
369
|
+
holidays: {
|
370
|
+
type: PropType<Date[]>;
|
371
|
+
default: () => never[];
|
372
|
+
};
|
373
|
+
type: {
|
374
|
+
type: StringConstructor;
|
375
|
+
default: string;
|
376
|
+
};
|
377
|
+
}>> & {
|
378
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
379
|
+
}, {
|
380
|
+
type: string;
|
381
|
+
updateUnchangedValue: boolean;
|
382
|
+
to: string | false | HTMLElement;
|
383
|
+
holidays: Date[];
|
384
|
+
}>>;
|
385
|
+
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<{}>>, {}>;
|
386
|
+
userItemRender: import("vue").DefineComponent<{
|
387
|
+
item: {
|
388
|
+
type: PropType<AnyObject>;
|
389
|
+
default: () => {};
|
390
|
+
};
|
391
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
392
|
+
item: {
|
393
|
+
type: PropType<AnyObject>;
|
394
|
+
default: () => {};
|
395
|
+
};
|
396
|
+
}>> & {
|
397
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
398
|
+
}, {
|
399
|
+
item: AnyObject;
|
400
|
+
}>;
|
401
|
+
DefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
402
|
+
type: {
|
403
|
+
type: StringConstructor;
|
404
|
+
default: string;
|
405
|
+
};
|
406
|
+
config: {
|
407
|
+
type: PropType<AnyObject>;
|
408
|
+
default: () => {
|
409
|
+
title: string;
|
410
|
+
content: string;
|
411
|
+
};
|
412
|
+
};
|
413
|
+
}, {
|
414
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
415
|
+
type: {
|
416
|
+
type: StringConstructor;
|
417
|
+
default: string;
|
418
|
+
};
|
419
|
+
config: {
|
420
|
+
type: PropType<AnyObject>;
|
421
|
+
default: () => {
|
422
|
+
title: string;
|
423
|
+
content: string;
|
424
|
+
};
|
425
|
+
};
|
426
|
+
}>> & {
|
427
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
428
|
+
}>>;
|
429
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
430
|
+
configResult: import("vue").ComputedRef<{
|
431
|
+
title: string;
|
432
|
+
content: string;
|
433
|
+
img: string;
|
434
|
+
}>;
|
435
|
+
reloadPage: () => void;
|
436
|
+
NIcon: any;
|
437
|
+
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<{}>>, {}>;
|
438
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
439
|
+
type: {
|
440
|
+
type: StringConstructor;
|
441
|
+
default: string;
|
442
|
+
};
|
443
|
+
config: {
|
444
|
+
type: PropType<AnyObject>;
|
445
|
+
default: () => {
|
446
|
+
title: string;
|
447
|
+
content: string;
|
448
|
+
};
|
449
|
+
};
|
450
|
+
}>> & {
|
451
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
452
|
+
}, {
|
453
|
+
type: string;
|
454
|
+
config: AnyObject;
|
455
|
+
}>>;
|
247
456
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
248
457
|
ChatHeader: import("vue").DefineComponent<{}, {
|
249
458
|
state: {
|
459
|
+
filterable: boolean;
|
250
460
|
orgId: string | number;
|
251
461
|
currentSessionItem: AnyObject;
|
252
462
|
id: string;
|
@@ -316,6 +526,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
526
|
}>>;
|
317
527
|
emit: (event: "close", ...args: any[]) => void;
|
318
528
|
state: {
|
529
|
+
filterable: boolean;
|
319
530
|
orgId: string | number;
|
320
531
|
currentSessionItem: AnyObject;
|
321
532
|
id: string;
|
@@ -334,7 +545,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
334
545
|
currentGroupUser: AnyObject[];
|
335
546
|
showMultipleVideo: boolean;
|
336
547
|
};
|
337
|
-
openSession: (
|
548
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
338
549
|
showUserDetail: import("vue").Ref<boolean>;
|
339
550
|
showLargeAvatar: import("vue").Ref<boolean>;
|
340
551
|
showPhone: import("vue").Ref<boolean>;
|
@@ -382,6 +593,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
382
593
|
[x: string]: unknown;
|
383
594
|
};
|
384
595
|
state: {
|
596
|
+
filterable: boolean;
|
385
597
|
orgId: string | number;
|
386
598
|
currentSessionItem: AnyObject;
|
387
599
|
id: string;
|
@@ -456,6 +668,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
456
668
|
}>>;
|
457
669
|
emit: (event: "close", ...args: any[]) => void;
|
458
670
|
state: {
|
671
|
+
filterable: boolean;
|
459
672
|
orgId: string | number;
|
460
673
|
currentSessionItem: AnyObject;
|
461
674
|
id: string;
|
@@ -474,7 +687,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
474
687
|
currentGroupUser: AnyObject[];
|
475
688
|
showMultipleVideo: boolean;
|
476
689
|
};
|
477
|
-
openSession: (
|
690
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
478
691
|
showUserDetail: import("vue").Ref<boolean>;
|
479
692
|
showLargeAvatar: import("vue").Ref<boolean>;
|
480
693
|
showPhone: import("vue").Ref<boolean>;
|
@@ -571,6 +784,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
571
784
|
}>>;
|
572
785
|
emit: (event: "comfirm", ...args: any[]) => void;
|
573
786
|
state: {
|
787
|
+
filterable: boolean;
|
574
788
|
orgId: string | number;
|
575
789
|
currentSessionItem: AnyObject;
|
576
790
|
id: string;
|
@@ -682,6 +896,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
682
896
|
}>> & {}>>;
|
683
897
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
684
898
|
state: {
|
899
|
+
filterable: boolean;
|
685
900
|
orgId: string | number;
|
686
901
|
currentSessionItem: AnyObject;
|
687
902
|
id: string;
|
@@ -789,6 +1004,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
789
1004
|
}>>;
|
790
1005
|
emit: (event: "comfirm", ...args: any[]) => void;
|
791
1006
|
state: {
|
1007
|
+
filterable: boolean;
|
792
1008
|
orgId: string | number;
|
793
1009
|
currentSessionItem: AnyObject;
|
794
1010
|
id: string;
|
@@ -906,6 +1122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
906
1122
|
};
|
907
1123
|
}>> & {}>>;
|
908
1124
|
state: {
|
1125
|
+
filterable: boolean;
|
909
1126
|
orgId: string | number;
|
910
1127
|
currentSessionItem: AnyObject;
|
911
1128
|
id: string;
|
@@ -1138,6 +1355,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1138
1355
|
}>>;
|
1139
1356
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1140
1357
|
state: {
|
1358
|
+
filterable: boolean;
|
1141
1359
|
orgId: string | number;
|
1142
1360
|
currentSessionItem: AnyObject;
|
1143
1361
|
id: string;
|
@@ -1234,6 +1452,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1234
1452
|
ChatMain: import("vue").DefineComponent<{}, {
|
1235
1453
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
1236
1454
|
state: {
|
1455
|
+
filterable: boolean;
|
1237
1456
|
orgId: string | number;
|
1238
1457
|
currentSessionItem: AnyObject;
|
1239
1458
|
id: string;
|
@@ -1324,6 +1543,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1324
1543
|
}>>;
|
1325
1544
|
emit: (event: "close", ...args: any[]) => void;
|
1326
1545
|
state: {
|
1546
|
+
filterable: boolean;
|
1327
1547
|
orgId: string | number;
|
1328
1548
|
currentSessionItem: AnyObject;
|
1329
1549
|
id: string;
|
@@ -1342,7 +1562,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1342
1562
|
currentGroupUser: AnyObject[];
|
1343
1563
|
showMultipleVideo: boolean;
|
1344
1564
|
};
|
1345
|
-
openSession: (
|
1565
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
1346
1566
|
showUserDetail: import("vue").Ref<boolean>;
|
1347
1567
|
showLargeAvatar: import("vue").Ref<boolean>;
|
1348
1568
|
showPhone: import("vue").Ref<boolean>;
|
@@ -1558,6 +1778,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1558
1778
|
}>>;
|
1559
1779
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1560
1780
|
state: {
|
1781
|
+
filterable: boolean;
|
1561
1782
|
orgId: string | number;
|
1562
1783
|
currentSessionItem: AnyObject;
|
1563
1784
|
id: string;
|
@@ -1661,6 +1882,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1661
1882
|
ChatFooter: import("vue").DefineComponent<{}, {
|
1662
1883
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
1663
1884
|
state: {
|
1885
|
+
filterable: boolean;
|
1664
1886
|
orgId: string | number;
|
1665
1887
|
currentSessionItem: AnyObject;
|
1666
1888
|
id: string;
|
@@ -1764,6 +1986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1764
1986
|
}>>;
|
1765
1987
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1766
1988
|
state: {
|
1989
|
+
filterable: boolean;
|
1767
1990
|
orgId: string | number;
|
1768
1991
|
currentSessionItem: AnyObject;
|
1769
1992
|
id: string;
|
@@ -1871,6 +2094,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1871
2094
|
keyword: import("vue").Ref<string>;
|
1872
2095
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
1873
2096
|
state: {
|
2097
|
+
filterable: boolean;
|
1874
2098
|
orgId: string | number;
|
1875
2099
|
currentSessionItem: AnyObject;
|
1876
2100
|
id: string;
|
@@ -1889,28 +2113,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1889
2113
|
currentGroupUser: AnyObject[];
|
1890
2114
|
showMultipleVideo: boolean;
|
1891
2115
|
};
|
1892
|
-
openSession: (item: AnyObject) => Promise<void>;
|
1893
2116
|
userList: import("vue").Ref<AnyObject[]>;
|
1894
2117
|
handleInput: () => void;
|
1895
2118
|
currentTabValue: import("vue").Ref<string>;
|
1896
|
-
userItemRender: import("vue").DefineComponent<{
|
1897
|
-
item: {
|
1898
|
-
type: PropType<AnyObject>;
|
1899
|
-
default: () => {};
|
1900
|
-
};
|
1901
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1902
|
-
item: {
|
1903
|
-
type: PropType<AnyObject>;
|
1904
|
-
default: () => {};
|
1905
|
-
};
|
1906
|
-
}>>, {
|
1907
|
-
item: AnyObject;
|
1908
|
-
}>;
|
1909
2119
|
groupList: import("vue").ComputedRef<AnyObject[]>;
|
1910
2120
|
showNoData: import("vue").ComputedRef<boolean>;
|
1911
2121
|
showAllNoData: import("vue").ComputedRef<boolean>;
|
1912
2122
|
showGroupNoData: import("vue").ComputedRef<boolean>;
|
1913
|
-
|
2123
|
+
handleClose: () => void;
|
1914
2124
|
NPopover: any;
|
1915
2125
|
NButton: any;
|
1916
2126
|
NInput: any;
|
@@ -1974,6 +2184,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1974
2184
|
type: string;
|
1975
2185
|
config: AnyObject;
|
1976
2186
|
}>>;
|
2187
|
+
userItemRender: import("vue").DefineComponent<{
|
2188
|
+
item: {
|
2189
|
+
type: PropType<AnyObject>;
|
2190
|
+
default: () => {};
|
2191
|
+
};
|
2192
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2193
|
+
item: {
|
2194
|
+
type: PropType<AnyObject>;
|
2195
|
+
default: () => {};
|
2196
|
+
};
|
2197
|
+
}>> & {
|
2198
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
2199
|
+
}, {
|
2200
|
+
item: AnyObject;
|
2201
|
+
}>;
|
1977
2202
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1978
2203
|
ChatAdd: import("vue").DefineComponent<{
|
1979
2204
|
title: {
|
@@ -2029,6 +2254,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2029
2254
|
}>>;
|
2030
2255
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2031
2256
|
state: {
|
2257
|
+
filterable: boolean;
|
2032
2258
|
orgId: string | number;
|
2033
2259
|
currentSessionItem: AnyObject;
|
2034
2260
|
id: string;
|
@@ -2126,6 +2352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2126
2352
|
receiver?: string | undefined;
|
2127
2353
|
}) => Promise<void>;
|
2128
2354
|
state: {
|
2355
|
+
filterable: boolean;
|
2129
2356
|
orgId: string | number;
|
2130
2357
|
currentSessionItem: AnyObject;
|
2131
2358
|
id: string;
|
@@ -2207,6 +2434,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2207
2434
|
name: string;
|
2208
2435
|
}[]>;
|
2209
2436
|
state: {
|
2437
|
+
filterable: boolean;
|
2210
2438
|
orgId: string | number;
|
2211
2439
|
currentSessionItem: AnyObject;
|
2212
2440
|
id: string;
|
@@ -2324,6 +2552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2324
2552
|
}>>;
|
2325
2553
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2326
2554
|
state: {
|
2555
|
+
filterable: boolean;
|
2327
2556
|
orgId: string | number;
|
2328
2557
|
currentSessionItem: AnyObject;
|
2329
2558
|
id: string;
|
@@ -2443,7 +2672,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2443
2672
|
type: BooleanConstructor;
|
2444
2673
|
default: boolean;
|
2445
2674
|
};
|
2446
|
-
|
2675
|
+
defaultSessionId: {
|
2447
2676
|
type: StringConstructor;
|
2448
2677
|
};
|
2449
2678
|
show: {
|
@@ -2454,6 +2683,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2454
2683
|
type: PropType<AnyObject>;
|
2455
2684
|
default: () => {};
|
2456
2685
|
};
|
2686
|
+
filterable: {
|
2687
|
+
type: BooleanConstructor;
|
2688
|
+
default: boolean;
|
2689
|
+
};
|
2457
2690
|
}>> & {
|
2458
2691
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
2459
2692
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -2464,5 +2697,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
2464
2697
|
showHeader: boolean;
|
2465
2698
|
baseURL: string;
|
2466
2699
|
extraParams: AnyObject;
|
2700
|
+
filterable: boolean;
|
2467
2701
|
}>;
|
2468
2702
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as a,unref as n,createVNode as i,withCtx as
|
1
|
+
import{defineComponent as e,ref as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as a,unref as n,createVNode as i,withCtx as l,createBlock as u,Fragment as d,createElementVNode as m,renderSlot as p,createCommentVNode as c}from"vue";import{NConfigProvider as f,NSpin as h,NLayout as v,NLayoutContent as y}from"naive-ui";import S from"./components/SiderList.vue.js";import g from"./components/ChatHeader.vue.js";import k from"./components/ChatMain.vue.js";import j from"./components/ChatFooter.vue.js";import _ from"./components/ChatSearch.vue.js";import b from"./components/ChatAdd.vue.js";import w from"./components/Video.vue.js";import C from"./components/MultipleVideo.vue.js";import{instanceAxios as x}from"./api/index.js";import{isNumber as I}from"lodash-es";import{initData as L,InjectionIChatData as V}from"./hooks/useData.js";import{useWebSocket as B}from"./hooks/useWebSocket.js";import"trtc-sdk-v5";import"./utils/index.js";const H={key:0,class:"iho-chat__header"},U={class:"toolbar"};var $=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},showHeader:{type:Boolean,default:!0},defaultSessionId:{type:String},show:{type:Boolean,default:!0},extraParams:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1}},emits:["template-click","unread-message-update","session-change","session-close"],setup(e,{expose:$,emit:q}){const M=e;x.defaults.baseURL=M.baseURL,x.defaults.headers.Authorization="bearer "+M.token;const N=t(!1),R=L(M,q);o(V,R),B(M,R);const{cssVars:A,state:D,openSession:F,closeSession:z,getCurrentSession:E,isEnded:O}=R;return $({getUnreadData:function(){return D.sessionList.filter((e=>I(e.unreadNum)&&e.unreadNum>0))},openSession:F,closeSession:z,getCurrentSession:E}),(t,o)=>e.show?(s(),r("div",{key:0,class:"iho-chat",style:a(n(A))},[i(n(f),{abstract:"",namespace:"iho-chat__popover"},{default:l((()=>{var o;return[N.value?(s(),u(n(h),{key:0,stroke:"#5585f5"})):(s(),r(d,{key:1},[e.showHeader?(s(),r("div",H,[i(_),i(b,{title:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.31"))||"发起群聊",mode:"create","default-value":[n(D).userInfo]},null,8,["default-value"]),m("div",U,[p(t.$slots,"toolbar")])])):c("v-if",!0),i(n(v),{class:"iho-chat__body","has-sider":""},{default:l((()=>[i(S),i(n(y),{class:"chat-content",style:a({"--c-pointer-events":n(O)?"none":"unset","--c-cursor":n(O)?"not-allowed":"unset"})},{default:l((()=>[i(g,null,{header:l((()=>[p(t.$slots,"chatHeader",{session:n(D).currentSessionItem})])),_:3}),i(k),i(j,null,{footer:l((()=>[p(t.$slots,"chatFooter",{session:n(D).currentSessionItem})])),_:3})])),_:3},8,["style"]),p(t.$slots,"external")])),_:3}),n(D).showVideo?(s(),u(w,{key:1})):c("v-if",!0),n(D).showMultipleVideo?(s(),u(C,{key:2})):c("v-if",!0)],64))]})),_:3})],4)):c("v-if",!0)}});export{$ as default};
|
@@ -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.
|
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};
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
}>> & {}>>;
|
22
22
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
23
23
|
state: {
|
24
|
+
filterable: boolean;
|
24
25
|
orgId: string | number;
|
25
26
|
currentSessionItem: AnyObject;
|
26
27
|
id: string;
|
@@ -128,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
129
|
}>>;
|
129
130
|
emit: (event: "comfirm", ...args: any[]) => void;
|
130
131
|
state: {
|
132
|
+
filterable: boolean;
|
131
133
|
orgId: string | number;
|
132
134
|
currentSessionItem: AnyObject;
|
133
135
|
id: string;
|