cnhis-design-vue 3.2.15-beta.9 → 3.2.16-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/ai-chat/index.d.ts +9 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +9 -0
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/branch-notice/index.d.ts +32 -3
- package/es/components/branch-notice/src/BranchNotice.vue.d.ts +9 -3
- package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
- package/es/components/branch-notice/src/canstants.js +1 -1
- package/es/components/button-print/index.d.ts +6 -13
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +6 -13
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +6 -13
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +10 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/classification/index.d.ts +30 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +30 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +30 -0
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +30 -0
- package/es/components/date-picker/index.d.ts +10 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +10 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +27 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +27 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +27 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +27 -1
- package/es/components/expand-field/src/index.vue.d.ts +27 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -0
- 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/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -2
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +24 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -5
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/condition.vue.d.ts +10 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +20 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +10 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +1051 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +1051 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +10 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1029 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +10 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +10 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +10 -0
- package/es/components/form-render/src/components/renderer/input.d.ts +9 -1
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/iho-chat/index.d.ts +477 -102
- package/es/components/iho-chat/src/Index.vue.d.ts +477 -102
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -9
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +33 -10
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +33 -10
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +133 -45
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +183 -18
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +10 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +0 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +45 -17
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +137 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.js +1 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +40 -13
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +13 -7
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +11 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -1
- 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 +3 -3
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +13 -2
- package/es/components/iho-chat/src/utils/asyncQueue.d.ts +10 -0
- package/es/components/iho-chat/src/utils/asyncQueue.js +1 -0
- package/es/components/iho-chat/style/iconfont.ttf +0 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +10 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +10 -0
- package/es/components/iho-table/src/types/index.d.ts +17 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +20 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +20 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +10 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +10 -0
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +27 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/index.vue.d.ts +27 -1
- package/es/components/select-person/src/index.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +10 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +10 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +20 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +20 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +10 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +40 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +40 -0
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +4 -0
- package/package.json +2 -2
@@ -6,7 +6,6 @@ import { MESSAGE_TYPE } from '../constants';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
7
7
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
8
8
|
state: {
|
9
|
-
filterable: boolean;
|
10
9
|
orgId: string | number;
|
11
10
|
currentSessionItem: AnyObject;
|
12
11
|
id: string;
|
@@ -64,7 +63,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
64
63
|
resetInfo: () => void;
|
65
64
|
setReferenceMsg: (msgItem: AnyObject) => void;
|
66
65
|
handleSelect: (key: string, msgItem: AnyObject) => void;
|
67
|
-
handleRelay: (checkedIds
|
66
|
+
handleRelay: ({ checkedIds, remark }: {
|
67
|
+
checkedIds: string[];
|
68
|
+
remark: string;
|
69
|
+
}) => void;
|
68
70
|
reEdit: (item: AnyObject) => void;
|
69
71
|
NAvatar: any;
|
70
72
|
NImageGroup: any;
|
@@ -75,29 +77,32 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
75
77
|
NSpace: any;
|
76
78
|
PersonProfile: import("vue").DefineComponent<{
|
77
79
|
userId: {
|
78
|
-
type: StringConstructor;
|
79
|
-
required: true;
|
80
|
+
type: (NumberConstructor | StringConstructor)[];
|
80
81
|
};
|
81
82
|
disabled: {
|
82
83
|
type: BooleanConstructor;
|
83
84
|
default: boolean;
|
84
85
|
};
|
86
|
+
userInfo: {
|
87
|
+
type: import("vue").PropType<AnyObject>;
|
88
|
+
};
|
85
89
|
}, {
|
86
90
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
87
91
|
userId: {
|
88
|
-
type: StringConstructor;
|
89
|
-
required: true;
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
90
93
|
};
|
91
94
|
disabled: {
|
92
95
|
type: BooleanConstructor;
|
93
96
|
default: boolean;
|
94
97
|
};
|
98
|
+
userInfo: {
|
99
|
+
type: import("vue").PropType<AnyObject>;
|
100
|
+
};
|
95
101
|
}>> & {
|
96
102
|
onClose?: ((...args: any[]) => any) | undefined;
|
97
103
|
}>>;
|
98
104
|
emit: (event: "close", ...args: any[]) => void;
|
99
105
|
state: {
|
100
|
-
filterable: boolean;
|
101
106
|
orgId: string | number;
|
102
107
|
currentSessionItem: AnyObject;
|
103
108
|
id: string;
|
@@ -147,13 +152,15 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
147
152
|
EyeOffOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
148
153
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
149
154
|
userId: {
|
150
|
-
type: StringConstructor;
|
151
|
-
required: true;
|
155
|
+
type: (NumberConstructor | StringConstructor)[];
|
152
156
|
};
|
153
157
|
disabled: {
|
154
158
|
type: BooleanConstructor;
|
155
159
|
default: boolean;
|
156
160
|
};
|
161
|
+
userInfo: {
|
162
|
+
type: import("vue").PropType<AnyObject>;
|
163
|
+
};
|
157
164
|
}>> & {
|
158
165
|
onClose?: ((...args: any[]) => any) | undefined;
|
159
166
|
}, {
|
@@ -237,6 +244,140 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
237
244
|
required: true;
|
238
245
|
};
|
239
246
|
}>>, {}>;
|
247
|
+
MessageEvent: import("vue").DefineComponent<{
|
248
|
+
data: {
|
249
|
+
type: import("vue").PropType<AnyObject>;
|
250
|
+
required: true;
|
251
|
+
};
|
252
|
+
}, {
|
253
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
254
|
+
data: {
|
255
|
+
type: import("vue").PropType<AnyObject>;
|
256
|
+
required: true;
|
257
|
+
};
|
258
|
+
}>> & {}>>;
|
259
|
+
state: {
|
260
|
+
orgId: string | number;
|
261
|
+
currentSessionItem: AnyObject;
|
262
|
+
id: string;
|
263
|
+
userInfo: AnyObject;
|
264
|
+
msgList: AnyObject[];
|
265
|
+
currentMsg: AnyObject;
|
266
|
+
isAppendMsg: boolean;
|
267
|
+
sessionList: AnyObject[];
|
268
|
+
isChangeSession: boolean;
|
269
|
+
updateSessionItem: AnyObject;
|
270
|
+
isUpdateSession: boolean;
|
271
|
+
currentReferenceMsg: AnyObject | null;
|
272
|
+
currentReEditMsg: AnyObject | null;
|
273
|
+
showVideo: boolean;
|
274
|
+
currentAVMsg: AnyObject;
|
275
|
+
currentGroupUser: AnyObject[];
|
276
|
+
showMultipleVideo: boolean;
|
277
|
+
};
|
278
|
+
inviter: import("vue").Ref<any>;
|
279
|
+
invitee: import("vue").Ref<any[]>;
|
280
|
+
isValidJSON: (str: string) => boolean;
|
281
|
+
getTask: (_id: string | number, arrRes: AnyObject[]) => () => Promise<unknown>;
|
282
|
+
getEventContent: (data: AnyObject) => Promise<void>;
|
283
|
+
NButton: any;
|
284
|
+
PersonProfile: import("vue").DefineComponent<{
|
285
|
+
userId: {
|
286
|
+
type: (NumberConstructor | StringConstructor)[];
|
287
|
+
};
|
288
|
+
disabled: {
|
289
|
+
type: BooleanConstructor;
|
290
|
+
default: boolean;
|
291
|
+
};
|
292
|
+
userInfo: {
|
293
|
+
type: import("vue").PropType<AnyObject>;
|
294
|
+
};
|
295
|
+
}, {
|
296
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
297
|
+
userId: {
|
298
|
+
type: (NumberConstructor | StringConstructor)[];
|
299
|
+
};
|
300
|
+
disabled: {
|
301
|
+
type: BooleanConstructor;
|
302
|
+
default: boolean;
|
303
|
+
};
|
304
|
+
userInfo: {
|
305
|
+
type: import("vue").PropType<AnyObject>;
|
306
|
+
};
|
307
|
+
}>> & {
|
308
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
309
|
+
}>>;
|
310
|
+
emit: (event: "close", ...args: any[]) => void;
|
311
|
+
state: {
|
312
|
+
orgId: string | number;
|
313
|
+
currentSessionItem: AnyObject;
|
314
|
+
id: string;
|
315
|
+
userInfo: AnyObject;
|
316
|
+
msgList: AnyObject[];
|
317
|
+
currentMsg: AnyObject;
|
318
|
+
isAppendMsg: boolean;
|
319
|
+
sessionList: AnyObject[];
|
320
|
+
isChangeSession: boolean;
|
321
|
+
updateSessionItem: AnyObject;
|
322
|
+
isUpdateSession: boolean;
|
323
|
+
currentReferenceMsg: AnyObject | null;
|
324
|
+
currentReEditMsg: AnyObject | null;
|
325
|
+
showVideo: boolean;
|
326
|
+
currentAVMsg: AnyObject;
|
327
|
+
currentGroupUser: AnyObject[];
|
328
|
+
showMultipleVideo: boolean;
|
329
|
+
};
|
330
|
+
openSession: (session: string | AnyObject) => Promise<void>;
|
331
|
+
showUserDetail: import("vue").Ref<boolean>;
|
332
|
+
showLargeAvatar: import("vue").Ref<boolean>;
|
333
|
+
showPhone: import("vue").Ref<boolean>;
|
334
|
+
userDetail: AnyObject;
|
335
|
+
info: {
|
336
|
+
label: string;
|
337
|
+
value: string;
|
338
|
+
key: string;
|
339
|
+
}[];
|
340
|
+
personInfo: import("vue").ComputedRef<{
|
341
|
+
label: string;
|
342
|
+
value: string;
|
343
|
+
key: string;
|
344
|
+
}[]>;
|
345
|
+
toOpenSession: () => Promise<void>;
|
346
|
+
updateShow: (value: boolean) => Promise<void>;
|
347
|
+
getContent: (info: AnyObject) => any;
|
348
|
+
onChange: (options: {
|
349
|
+
file: import("naive-ui").UploadFileInfo;
|
350
|
+
}) => Promise<void>;
|
351
|
+
NAvatar: any;
|
352
|
+
NPopover: any;
|
353
|
+
NButton: any;
|
354
|
+
NIcon: any;
|
355
|
+
ChatbubbleEllipses: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
356
|
+
Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
357
|
+
EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
358
|
+
EyeOffOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
359
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
360
|
+
userId: {
|
361
|
+
type: (NumberConstructor | StringConstructor)[];
|
362
|
+
};
|
363
|
+
disabled: {
|
364
|
+
type: BooleanConstructor;
|
365
|
+
default: boolean;
|
366
|
+
};
|
367
|
+
userInfo: {
|
368
|
+
type: import("vue").PropType<AnyObject>;
|
369
|
+
};
|
370
|
+
}>> & {
|
371
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
372
|
+
}, {
|
373
|
+
disabled: boolean;
|
374
|
+
}>;
|
375
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
376
|
+
data: {
|
377
|
+
type: import("vue").PropType<AnyObject>;
|
378
|
+
required: true;
|
379
|
+
};
|
380
|
+
}>>, {}>;
|
240
381
|
emojis: {
|
241
382
|
default: string[][];
|
242
383
|
findEmoji(name: string): any;
|
@@ -303,6 +444,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
303
444
|
default: boolean;
|
304
445
|
};
|
305
446
|
}, {
|
447
|
+
initialOptions: AnyObject[];
|
448
|
+
tabList: {
|
449
|
+
key: string;
|
450
|
+
label: string;
|
451
|
+
}[];
|
306
452
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
307
453
|
title: {
|
308
454
|
type: StringConstructor;
|
@@ -332,7 +478,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
332
478
|
}>>;
|
333
479
|
emit: (event: "comfirm", ...args: any[]) => void;
|
334
480
|
state: {
|
335
|
-
filterable: boolean;
|
336
481
|
orgId: string | number;
|
337
482
|
currentSessionItem: AnyObject;
|
338
483
|
id: string;
|
@@ -356,27 +501,41 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
356
501
|
keyword: import("vue").Ref<string>;
|
357
502
|
showModal: import("vue").Ref<boolean>;
|
358
503
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
359
|
-
options: import("vue").Ref<AnyObject[]>;
|
360
504
|
groupName: import("vue").Ref<string>;
|
361
|
-
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
362
505
|
remark: import("vue").Ref<string>;
|
506
|
+
currentTab: import("vue").Ref<AnyObject[]>;
|
507
|
+
breadcrumbList: import("vue").Ref<AnyObject[]>;
|
363
508
|
userList: import("vue").Ref<AnyObject[]>;
|
364
509
|
handleInput: () => void;
|
365
510
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
366
|
-
|
511
|
+
sessionList: import("vue").ComputedRef<{
|
512
|
+
id: any;
|
513
|
+
name: any;
|
514
|
+
avatar: any;
|
515
|
+
chatType: any;
|
516
|
+
}[]>;
|
517
|
+
friends: import("vue").ComputedRef<{
|
518
|
+
id: any;
|
519
|
+
name: any;
|
520
|
+
avatar: any;
|
521
|
+
chatType: any;
|
522
|
+
}[]>;
|
523
|
+
groups: import("vue").ComputedRef<{
|
367
524
|
id: any;
|
368
525
|
name: any;
|
369
526
|
avatar: any;
|
527
|
+
chatType: any;
|
370
528
|
}[]>;
|
371
529
|
checkedIds: import("vue").ComputedRef<any[]>;
|
372
530
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
373
531
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
532
|
+
checkedSourceIds: import("vue").WritableComputedRef<any[]>;
|
533
|
+
currentTabKey: import("vue").ComputedRef<any>;
|
534
|
+
getDisabled: (id: string | number) => boolean;
|
535
|
+
handleClickCheckbox: (option: AnyObject) => Promise<void>;
|
536
|
+
toggleTab: (item: AnyObject) => void;
|
537
|
+
handleTabBack: () => void;
|
374
538
|
handlePositiveClick: () => Promise<void>;
|
375
|
-
updateCheckedSourceIds: () => void;
|
376
|
-
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
377
|
-
actionType: "check" | "uncheck";
|
378
|
-
value: string | number;
|
379
|
-
}) => void;
|
380
539
|
closeTag: (id: string) => void;
|
381
540
|
NModal: any;
|
382
541
|
NButton: any;
|
@@ -388,8 +547,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
388
547
|
NCheckbox: any;
|
389
548
|
NCheckboxGroup: any;
|
390
549
|
NTooltip: any;
|
550
|
+
NBreadcrumb: any;
|
551
|
+
NBreadcrumbItem: any;
|
391
552
|
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<{}>>, {}>;
|
392
553
|
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<{}>>, {}>;
|
554
|
+
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<{}>>, {}>;
|
555
|
+
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<{}>>, {}>;
|
556
|
+
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<{}>>, {}>;
|
557
|
+
last: <T>(array: import("lodash").List<T> | null | undefined) => T | undefined;
|
393
558
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
394
559
|
title: {
|
395
560
|
type: StringConstructor;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,computed as n,watch as o,openBlock as s,createElementBlock as i,normalizeClass as r,unref as a,normalizeStyle as l,createVNode as c,withCtx as u,Fragment as m,renderList as d,toDisplayString as p,createCommentVNode as g,createBlock as f,createElementVNode as v,createTextVNode as y,withModifiers as h,nextTick as T}from"vue";import{NImageGroup as M,NButton as w,NAvatar as k,NImage as _,NIcon as C,NSpace as x,NButtonGroup as I,NTooltip as L}from"naive-ui";import{format as j}from"date-fns";import{getHistoryRecordApi as E,readMessageApi as S}from"../api/index.js";import{useData as b}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{MESSAGE_TYPE as A}from"../constants/index.js";import{isAudioOrVideoMessage as z,simplifyMessage as D,getAVTime as H,downloadFile as R}from"../utils/index.js";import{first as B,last as N,toString as O}from"lodash-es";import"trtc-sdk-v5";import P from"./PersonProfile.vue.js";import q from"./MessageTemplate.vue.js";import{emojis as J}from"../utils/emoji.js";import W from"./ContextMenu.js";import U from"./ChatAdd.vue.js";import"../../../../shared/utils/index.js";import"@vueuse/core";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import{CallOutline as X,VideocamOutline as F,DocumentSharp as G,ChatbubbleEllipsesOutline as K,EllipsisHorizontal as Y,ArrowDownSharp as $}from"@vicons/ionicons5";import{useScrollLoading as Q}from"../../../../shared/hooks/useScrollLoading.js";const V={key:0,class:"tip-text"},Z={key:1,class:"tip-text"},ee={key:2,class:"message-box"},te={key:0,class:"content-box"},ne={class:"name-box"},oe=["data-time"],se=["onContextmenu"],ie={key:0,class:"reference-content"},re=["innerHTML"],ae=["src"],le=["innerHTML"],ce=["innerHTML"],ue={style:{"margin-left":"8px"}},me={class:"size"};var de=e({__name:"ChatMain",setup(e){const de=t(),{state:pe,setMsgList:ge,relayMessage:fe,setCurrentSessionItem:ve,isGroupChat:ye}=b(),he=t(),Te=t(!1),Me=t({left:0,top:0}),we=t(),ke=t(),_e={page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")},Ce=n((()=>({"--c-tip-top":ye.value?"1px":"-20px","--c-tip-gap":ye.value?"10px":"0px"})));function xe({nodes:e}){var t,n;const{_ctx:o}=null==(t=e.download)?void 0:t.children,s=o?null==(n=null==o?void 0:o.proxy)?void 0:n.previewSrc:"";return[e.prev,e.next,e.rotateCounterclockwise,e.rotateClockwise,e.resizeToOriginalSize,e.zoomOut,e.zoomIn,c(L,null,{trigger:()=>c(C,{style:"cursor: pointer",color:"rgba(255, 255, 255, 0.75",size:24,component:$,onClick:()=>s&&R(s,"img")},null),default:()=>{var e;return(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.102"))||"下载"}}),e.close]}async function Ie(){try{if(!_e.hasMore)return;_e.page++;const e=await E({sessionKey:pe.currentSessionItem.sessionKey,page:_e.page,lastSendTime:_e.lastSendTime});if(!Array.isArray(e)||0===e.length)return _e.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了");const t=B(e).id;_e.lastSendTime=N(e).sendTime,ge(_e.page>1?[...pe.msgList,...e]:e),1===_e.page&&pe.currentSessionItem.unreadNum&&(await S({chatType:pe.currentSessionItem.chatType,messageIdSet:[t],receiver:pe.userInfo.id,sender:pe.currentSessionItem.receiver}),ve({unreadNum:0}))}catch(e){console.log(e)}}async function Le(e,t){we.value=t,async function(e){var t,n,o,s,i,r;Te.value=!0,await T();const{clientX:a,clientY:l}=e,{width:c=0,height:u=0,left:m=0,top:d=0}=(null==(t=de.value)?void 0:t.getBoundingClientRect())||{},p=null!=(s=null==(o=null==(n=he.value)?void 0:n.$el)?void 0:o.getBoundingClientRect().height)?s:220,g=null!=(r=null==(i=de.value)?void 0:i.scrollTop)?r:0,f=5,v={};a<=m+c/2?v.left=a-m+f+"px":v.right=m+c-a-f+"px";l-d<p/2?v.top=g+f+"px":d+u-l<=p/2?v.bottom=Math.abs(g)+f+"px":v.top=g+l-d-p/2+"px";Me.value=v}(e)}function je(e){const{chatMessageType:t,messageTemplate:n}=e.content;return t!==A.TEMPLATE||!!n}function Ee(e){const{chatMessageType:t}=e.content;return e.sender===pe.userInfo.id&&Date.now()-new Date(e.sendTime).getTime()<864e5&&[A.TEXT,A.EMOJI].includes(t)}function Se(e){const{chatMessageType:t,msg:n=""}=e.content;if(t===A.BLEND){const e=O(n).match(/<img[^>]*>/gi);return!e||!e.length}return t&&[A.TEXT,A.EMOJI].includes(t)}function be(e){const{chatMessageType:t,msg:n=""}=e.content,o=O(n).match(/<img[^>]*>/gi);return t===A.BLEND&&o&&o.length}function Ae(e,t){var n,o;const{chatMessageType:s,messageTemplate:i}=e.content;if(s===A.TEMPLATE)return"system"===t?2==(null==(n=null==i?void 0:i.setting)?void 0:n.style.id):2!=(null==(o=null==i?void 0:i.setting)?void 0:o.style.id)}function ze(e){var t,n;const{chatMessageType:o,messageTemplate:s}=e;return o===A.TEMPLATE&&3==(null==(n=null==(t=null==s?void 0:s.setting)?void 0:t.style)?void 0:n.id)}function De(e,t){var n;const o=new Date(e.sendTime).getTime(),s=null==(n=pe.msgList[t+1])?void 0:n.sendTime;if(s){return o-new Date(s).getTime()>3e5}return!0}function He(e){pe.currentReferenceMsg=e,pe.currentReferenceMsg.content.referenceContent=null,Object.assign(pe.currentReferenceMsg,{chatType:pe.currentSessionItem.chatType,receiver:pe.currentSessionItem.receiver,receiverAvatar:pe.currentSessionItem.avatar,receiverName:pe.currentSessionItem.name})}function Re(e,t){var n;"reply"!==e?"relay"===e&&(null==(n=ke.value)||n.click()):He(t)}function Be(e,t){const n=pe.msgList.find((e=>e.id===we.value));fe({checkedIds:e,remark:t,content:n.content})}return Q(de,(()=>{Ie()}),"top",(()=>{Te.value=!1})),o((()=>pe.id),(e=>{e&&(pe.currentReferenceMsg=null,Object.assign(_e,{page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")}),Ie())}),{immediate:!0}),o((()=>pe.isAppendMsg),(e=>{e&&(ge([pe.currentMsg,...pe.msgList]),async function(){var e;null==(e=de.value)||e.scrollTo({top:0,behavior:"auto"})}(),pe.isAppendMsg=!1)}),{immediate:!0}),(e,t)=>{var n;return s(),i("div",{class:r(["chat-main",{"home-bg":!a(pe).id}]),ref_key:"chatMainRef",ref:de,style:l(a(Ce))},[c(a(M),{"show-toolbar-tooltip":"","render-toolbar":xe},{default:u((()=>[(s(!0),i(m,null,d(a(pe).msgList,((e,t)=>{var n,o;return s(),i(m,{key:e.id},[je(e)?(s(),i("div",{key:0,class:r(["message-item",{"message-item--mine":e.sender==a(pe).userInfo.id}])},[De(e,t)?(s(),i("p",V,p(e.__sendTime),1)):g("v-if",!0),Ae(e,"system")||"WITHDRAWN"===e.status?(s(),i(m,{key:1},[Ae(e,"system")?(s(),f(q,{key:0,data:e},null,8,["data"])):g("v-if",!0),"WITHDRAWN"===e.status?(s(),i("p",Z,[v("span",null,p(e.sender==a(pe).userInfo.id?(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.67"))||"你":e.senderName)+((null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.68"))||"撤回了一条消息"),1),Ee(e)?(s(),f(a(w),{key:0,size:"tiny",style:{color:"var(--c-primary-color)","margin-left":"5px"},text:"",onClick:()=>function(e){pe.currentReEditMsg=e}(e)},{default:u((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.69"))||"重新编辑")]})),_:2},1032,["onClick"])):g("v-if",!0)])):g("v-if",!0)],64)):(s(),i("div",ee,[c(P,{"user-id":e.sender,placement:e.sender==a(pe).userInfo.id?"left":"right"},{trigger:u((()=>[c(a(k),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-id","placement"]),e.content?(s(),i("div",te,[v("div",ne,[v("span",{class:"name","data-time":e.__time},p(a(ye)?e.senderName:""),9,oe)]),v("div",{class:r(["content",{emoji:e.content.chatMessageType===a(A).EMOJI&&!e.content.referenceContent,template:e.content.chatMessageType===a(A).TEMPLATE,"template--3":ze(e.content),"audio-video":a(z)(e.content),file:e.content.chatMessageType===a(A).FILE}]),onContextmenu:h((t=>Le(t,e.id)),["prevent"])},[Se(e)?(s(),i(m,{key:0},[e.content.referenceContent?(s(),i("div",ie,[v("span",null,p(e.content.referenceContent.senderName)+":",1),v("pre",{innerHTML:a(D)(e.content.referenceContent.content)},null,8,re)])):g("v-if",!0),e.content.chatMessageType===a(A).EMOJI?(s(),i("img",{key:1,class:r([e.content.referenceContent?"emoji--min":"emoji--big"]),src:a(J).findEmoji(e.__content)},null,10,ae)):(s(),i("pre",{key:2,innerHTML:e.__content},null,8,le))],64)):g("v-if",!0),be(e)?(s(),i("pre",{key:1,innerHTML:e.__content},null,8,ce)):g("v-if",!0),Ae(e,"template")?(s(),f(q,{key:2,data:e},null,8,["data"])):g("v-if",!0),e.content.chatMessageType===a(A).IMAGE?(s(),f(a(_),{key:3,width:"240",src:e.__content},null,8,["src"])):g("v-if",!0),a(z)(e.content)?(s(),i(m,{key:4},[c(a(C),{class:r({"is-audio":e.content.chatMessageType===a(A).AUDIO}),component:e.content.chatMessageType===a(A).AUDIO?a(X):a(F)},null,8,["class","component"]),v("span",ue,p(a(H)(e.__content)),1)],64)):g("v-if",!0),e.content.chatMessageType===a(A).FILE?(s(),f(a(x),{key:5,"wrap-item":!1},{default:u((()=>[c(a(C),{class:"icon-file",size:"40",component:a(G)},null,8,["component"]),c(a(x),{"wrap-item":!1,vertical:"",justify:"space-between",style:{"row-gap":"0"}},{default:u((()=>[v("span",null,p(e.__content),1),v("span",me,p(e.__size),1)])),_:2},1024)])),_:2},1024)):g("v-if",!0),c(a(I),{class:"quick-menu"},{default:u((()=>[a(z)(e.content)?g("v-if",!0):(s(),i(m,{key:0},[g(' <n-button quaternary size="tiny">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<template #icon>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="chat--iconfont chat--icon-face" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t</template>\r\n\t\t\t\t\t\t\t\t\t\t\t</n-button> '),c(a(w),{quaternary:"",size:"tiny",onClick:()=>He(e)},{icon:u((()=>[c(a(C),{size:"17",component:a(K)},null,8,["component"])])),_:2},1032,["onClick"])],64)),c(a(w),{quaternary:"",size:"tiny",onClick:t=>Le(t,e.id)},{icon:u((()=>[c(a(C),{size:"14",component:a(Y)},null,8,["component"])])),_:2},1032,["onClick"])])),_:2},1024)],42,se)])):g("v-if",!0)]))],2)):g("v-if",!0)],64)})),128))])),_:1}),c(a(W),{ref_key:"contextmenuRef",ref:he,show:Te.value,"onUpdate:show":t[0]||(t[0]=e=>Te.value=e),position:Me.value,id:we.value,onSelect:Re},null,8,["show","position","id"]),c(U,{title:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.44"))||"转发消息",mode:"relay",onComfirm:Be},{trigger:u((()=>{var e;return[v("span",{style:{display:"none"},ref_key:"relayTriggerRef",ref:ke},(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.45"))||"转发",512)]})),_:1})],6)}}});export{de as default};
|
1
|
+
import{defineComponent as e,ref as t,computed as n,watch as o,openBlock as s,createElementBlock as i,normalizeClass as r,unref as a,normalizeStyle as l,createVNode as c,withCtx as u,Fragment as m,renderList as d,toDisplayString as p,createCommentVNode as g,createBlock as v,createElementVNode as f,createTextVNode as y,withModifiers as h,nextTick as T}from"vue";import{NImageGroup as M,NButton as w,NAvatar as k,NImage as _,NIcon as C,NSpace as x,NButtonGroup as I,NTooltip as L}from"naive-ui";import{format as j}from"date-fns";import{getHistoryRecordApi as E,readMessageApi as S}from"../api/index.js";import{useData as b}from"../hooks/useData.js";import"stompjs";import"sockjs-client/dist/sockjs.min.js";import{MESSAGE_TYPE as A}from"../constants/index.js";import{isAudioOrVideoMessage as z,simplifyMessage as D,getAVTime as H,downloadFile as R}from"../utils/index.js";import{first as N,last as B,toString as O}from"lodash-es";import"trtc-sdk-v5";import P from"./PersonProfile.vue.js";import q from"./MessageTemplate.vue.js";import J from"./MessageEvent.vue.js";import{emojis as W}from"../utils/emoji.js";import U from"./ContextMenu.js";import X from"./ChatAdd.vue.js";import"../../../../shared/utils/index.js";import"@vueuse/core";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import{CallOutline as F,VideocamOutline as G,DocumentSharp as K,ChatbubbleEllipsesOutline as V,EllipsisHorizontal as Y,ArrowDownSharp as $}from"@vicons/ionicons5";import{useScrollLoading as Q}from"../../../../shared/hooks/useScrollLoading.js";const Z={key:0,class:"tip-text"},ee={key:1,class:"tip-text"},te={key:2,class:"message-box"},ne={key:0,class:"content-box"},oe={class:"name-box"},se=["data-time"],ie=["onContextmenu"],re={key:0,class:"reference-content"},ae=["innerHTML"],le=["src"],ce=["innerHTML"],ue=["innerHTML"],me={style:{"margin-left":"8px"}},de={class:"size"};var pe=e({__name:"ChatMain",setup(e){const pe=t(),{state:ge,setMsgList:ve,relayMessage:fe,setCurrentSessionItem:ye,isGroupChat:he}=b(),Te=t(),Me=t(!1),we=t({left:0,top:0}),ke=t(),_e=t(),Ce={page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")},xe=n((()=>({"--c-tip-top":he.value?"1px":"-20px","--c-tip-gap":he.value?"10px":"0px"})));function Ie({nodes:e}){var t,n;const{_ctx:o}=null==(t=e.download)?void 0:t.children,s=o?null==(n=null==o?void 0:o.proxy)?void 0:n.previewSrc:"";return[e.prev,e.next,e.rotateCounterclockwise,e.rotateClockwise,e.resizeToOriginalSize,e.zoomOut,e.zoomIn,c(L,null,{trigger:()=>c(C,{style:"cursor: pointer",color:"rgba(255, 255, 255, 0.75",size:24,component:$,onClick:()=>s&&R(s,"img")},null),default:()=>{var e;return(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.102"))||"下载"}}),e.close]}async function Le(){try{if(!Ce.hasMore)return;Ce.page++;const e=await E({sessionKey:ge.currentSessionItem.sessionKey,page:Ce.page,lastSendTime:Ce.lastSendTime});if(!Array.isArray(e)||0===e.length)return Ce.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了");const t=N(e).id;Ce.lastSendTime=B(e).sendTime,ve(Ce.page>1?[...ge.msgList,...e]:e),1===Ce.page&&ge.currentSessionItem.unreadNum&&(await S({chatType:ge.currentSessionItem.chatType,messageIdSet:[t],receiver:ge.userInfo.id,sender:ge.currentSessionItem.receiver}),ye({unreadNum:0}))}catch(e){console.log(e)}}async function je(e,t){ke.value=t,async function(e){var t,n,o,s,i,r;Me.value=!0,await T();const{clientX:a,clientY:l}=e,{width:c=0,height:u=0,left:m=0,top:d=0}=(null==(t=pe.value)?void 0:t.getBoundingClientRect())||{},p=null!=(s=null==(o=null==(n=Te.value)?void 0:n.$el)?void 0:o.getBoundingClientRect().height)?s:220,g=null!=(r=null==(i=pe.value)?void 0:i.scrollTop)?r:0,v=5,f={};a<=m+c/2?f.left=a-m+v+"px":f.right=m+c-a-v+"px";l-d<p/2?f.top=g+v+"px":d+u-l<=p/2?f.bottom=Math.abs(g)+v+"px":f.top=g+l-d-p/2+"px";we.value=f}(e)}function Ee(e){const{chatMessageType:t,messageTemplate:n}=e.content;return t!==A.TEMPLATE||!!n}function Se(e){const{chatMessageType:t}=e.content;return e.sender===ge.userInfo.id&&Date.now()-new Date(e.sendTime).getTime()<864e5&&[A.TEXT,A.EMOJI].includes(t)}function be(e){const{chatMessageType:t,msg:n=""}=e.content;if(t===A.BLEND){const e=O(n).match(/<img[^>]*>/gi);return!e||!e.length}return t&&[A.TEXT,A.EMOJI].includes(t)}function Ae(e){const{chatMessageType:t,msg:n=""}=e.content,o=O(n).match(/<img[^>]*>/gi);return t===A.BLEND&&o&&o.length}function ze(e,t){var n,o;const{chatMessageType:s,messageTemplate:i}=e.content;if(s===A.TEMPLATE)return"system"===t?2==(null==(n=null==i?void 0:i.setting)?void 0:n.style.id):2!=(null==(o=null==i?void 0:i.setting)?void 0:o.style.id)}function De(e){var t,n;const{chatMessageType:o,messageTemplate:s}=e;return o===A.TEMPLATE&&3==(null==(n=null==(t=null==s?void 0:s.setting)?void 0:t.style)?void 0:n.id)}function He(e,t){var n;const o=new Date(e.sendTime).getTime(),s=null==(n=ge.msgList[t+1])?void 0:n.sendTime;if(s){return o-new Date(s).getTime()>3e5}return!0}function Re(e){ge.currentReferenceMsg=e,ge.currentReferenceMsg.content.referenceContent=null,Object.assign(ge.currentReferenceMsg,{chatType:ge.currentSessionItem.chatType,receiver:ge.currentSessionItem.receiver,receiverAvatar:ge.currentSessionItem.avatar,receiverName:ge.currentSessionItem.name})}function Ne(e,t){var n;"reply"!==e?"relay"===e&&(null==(n=_e.value)||n.click()):Re(t)}function Be({checkedIds:e,remark:t}){const n=ge.msgList.find((e=>e.id===ke.value));fe({checkedIds:e,remark:t,content:n.content})}return Q(pe,(()=>{Le()}),"top",(()=>{Me.value=!1})),o((()=>ge.id),(e=>{e&&(ge.currentReferenceMsg=null,Object.assign(Ce,{page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")}),Le())}),{immediate:!0}),o((()=>ge.isAppendMsg),(e=>{e&&(ve([ge.currentMsg,...ge.msgList]),async function(){var e;null==(e=pe.value)||e.scrollTo({top:0,behavior:"auto"})}(),ge.isAppendMsg=!1)}),{immediate:!0}),(e,t)=>{var n;return s(),i("div",{class:r(["chat-main",{"home-bg":!a(ge).id}]),ref_key:"chatMainRef",ref:pe,style:l(a(xe))},[c(a(M),{"show-toolbar-tooltip":"","render-toolbar":Ie},{default:u((()=>[(s(!0),i(m,null,d(a(ge).msgList,((e,t)=>{var n,o,l;return s(),i(m,{key:e.id},[Ee(e)?(s(),i("div",{key:0,class:r(["message-item",{"message-item--mine":e.sender==a(ge).userInfo.id}])},[He(e,t)?(s(),i("p",Z,p(e.__sendTime),1)):g("v-if",!0),ze(e,"system")||"WITHDRAWN"===e.status||(null==(n=e.content)?void 0:n.chatMessageType)===a(A).EVENT?(s(),i(m,{key:1},[ze(e,"system")?(s(),v(q,{key:0,data:e},null,8,["data"])):g("v-if",!0),"WITHDRAWN"===e.status?(s(),i("p",ee,[f("span",null,p(e.sender==a(ge).userInfo.id?(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.67"))||"你":e.senderName)+((null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.68"))||"撤回了一条消息"),1),Se(e)?(s(),v(a(w),{key:0,size:"tiny",style:{color:"var(--c-primary-color)","margin-left":"5px"},text:"",onClick:()=>function(e){ge.currentReEditMsg=e}(e)},{default:u((()=>{var e;return[y((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.69"))||"重新编辑")]})),_:2},1032,["onClick"])):g("v-if",!0)])):(s(),v(J,{key:2,data:e},null,8,["data"]))],64)):(s(),i("div",te,[c(P,{"user-id":e.sender,placement:e.sender==a(ge).userInfo.id?"left":"right"},{trigger:u((()=>[c(a(k),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-id","placement"]),e.content?(s(),i("div",ne,[f("div",oe,[f("span",{class:"name","data-time":e.__time},p(a(he)?e.senderName:""),9,se)]),f("div",{class:r(["content",{emoji:e.content.chatMessageType===a(A).EMOJI&&!e.content.referenceContent,template:e.content.chatMessageType===a(A).TEMPLATE,"template--3":De(e.content),"audio-video":a(z)(e.content),file:e.content.chatMessageType===a(A).FILE}]),onContextmenu:h((t=>je(t,e.id)),["prevent"])},[be(e)?(s(),i(m,{key:0},[e.content.referenceContent?(s(),i("div",re,[f("span",null,p(e.content.referenceContent.senderName)+":",1),f("pre",{innerHTML:a(D)(e.content.referenceContent.content)},null,8,ae)])):g("v-if",!0),e.content.chatMessageType===a(A).EMOJI?(s(),i("img",{key:1,class:r([e.content.referenceContent?"emoji--min":"emoji--big"]),src:a(W).findEmoji(e.__content)},null,10,le)):(s(),i("pre",{key:2,innerHTML:e.__content},null,8,ce))],64)):g("v-if",!0),Ae(e)?(s(),i("pre",{key:1,innerHTML:e.__content},null,8,ue)):g("v-if",!0),ze(e,"template")?(s(),v(q,{key:2,data:e},null,8,["data"])):g("v-if",!0),e.content.chatMessageType===a(A).IMAGE?(s(),v(a(_),{key:3,width:"240",src:e.__content},null,8,["src"])):g("v-if",!0),a(z)(e.content)?(s(),i(m,{key:4},[c(a(C),{class:r({"is-audio":e.content.chatMessageType===a(A).AUDIO}),component:e.content.chatMessageType===a(A).AUDIO?a(F):a(G)},null,8,["class","component"]),f("span",me,p(a(H)(e.__content)),1)],64)):g("v-if",!0),e.content.chatMessageType===a(A).FILE?(s(),v(a(x),{key:5,"wrap-item":!1},{default:u((()=>[c(a(C),{class:"icon-file",size:"40",component:a(K)},null,8,["component"]),c(a(x),{"wrap-item":!1,vertical:"",justify:"space-between",style:{"row-gap":"0"}},{default:u((()=>[f("span",null,p(e.__content),1),f("span",de,p(e.__size),1)])),_:2},1024)])),_:2},1024)):g("v-if",!0),c(a(I),{class:"quick-menu"},{default:u((()=>[a(z)(e.content)?g("v-if",!0):(s(),i(m,{key:0},[g(' <n-button quaternary size="tiny">\n\t\t\t\t\t\t\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="chat--iconfont chat--icon-face" />\n\t\t\t\t\t\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t\t\t\t\t\t</n-button> '),c(a(w),{quaternary:"",size:"tiny",onClick:()=>Re(e)},{icon:u((()=>[c(a(C),{size:"17",component:a(V)},null,8,["component"])])),_:2},1032,["onClick"])],64)),c(a(w),{quaternary:"",size:"tiny",onClick:t=>je(t,e.id)},{icon:u((()=>[c(a(C),{size:"14",component:a(Y)},null,8,["component"])])),_:2},1032,["onClick"])])),_:2},1024)],42,ie)])):g("v-if",!0)]))],2)):g("v-if",!0)],64)})),128))])),_:1}),c(a(U),{ref_key:"contextmenuRef",ref:Te,show:Me.value,"onUpdate:show":t[0]||(t[0]=e=>Me.value=e),position:we.value,id:ke.value,onSelect:Ne},null,8,["show","position","id"]),c(X,{title:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.44"))||"转发消息",mode:"relay",onComfirm:Be},{trigger:u((()=>{var e;return[f("span",{style:{display:"none"},ref_key:"relayTriggerRef",ref:_e},(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.45"))||"转发",512)]})),_:1})],6)}}});export{pe as default};
|
@@ -17,7 +17,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
};
|
18
18
|
}>> & {}>>;
|
19
19
|
state: {
|
20
|
-
filterable: boolean;
|
21
20
|
orgId: string | number;
|
22
21
|
currentSessionItem: AnyObject;
|
23
22
|
id: string;
|
@@ -92,6 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
91
|
type: StringConstructor;
|
93
92
|
default: string;
|
94
93
|
};
|
94
|
+
isDateDisabled: {
|
95
|
+
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
96
|
+
};
|
95
97
|
}, {
|
96
98
|
attrs: {
|
97
99
|
[x: string]: unknown;
|
@@ -124,6 +126,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
124
126
|
type: StringConstructor;
|
125
127
|
default: string;
|
126
128
|
};
|
129
|
+
isDateDisabled: {
|
130
|
+
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
131
|
+
};
|
127
132
|
}>> & {
|
128
133
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
129
134
|
}>>;
|
@@ -136,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
136
141
|
isDateTime: import("vue").ComputedRef<boolean>;
|
137
142
|
formatRef: import("vue").ComputedRef<string>;
|
138
143
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
144
|
+
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
139
145
|
focus: () => any;
|
140
146
|
blur: () => any;
|
141
147
|
handleConfirm: (target: HTMLInputElement) => void;
|
@@ -175,6 +181,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
181
|
type: StringConstructor;
|
176
182
|
default: string;
|
177
183
|
};
|
184
|
+
isDateDisabled: {
|
185
|
+
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
186
|
+
};
|
178
187
|
}>> & {
|
179
188
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
180
189
|
}, {
|
@@ -5,7 +5,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
5
5
|
keyword: import("vue").Ref<string>;
|
6
6
|
cssVars: import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
|
7
7
|
state: {
|
8
|
-
filterable: boolean;
|
9
8
|
orgId: string | number;
|
10
9
|
currentSessionItem: import("../../../../shared/types").AnyObject;
|
11
10
|
id: string;
|
@@ -5,7 +5,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
5
5
|
[x: string]: unknown;
|
6
6
|
};
|
7
7
|
state: {
|
8
|
-
filterable: boolean;
|
9
8
|
orgId: string | number;
|
10
9
|
currentSessionItem: AnyObject;
|
11
10
|
id: string;
|
@@ -58,29 +57,32 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
58
57
|
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<{}>>, {}>;
|
59
58
|
PersonProfile: import("vue").DefineComponent<{
|
60
59
|
userId: {
|
61
|
-
type: StringConstructor;
|
62
|
-
required: true;
|
60
|
+
type: (NumberConstructor | StringConstructor)[];
|
63
61
|
};
|
64
62
|
disabled: {
|
65
63
|
type: BooleanConstructor;
|
66
64
|
default: boolean;
|
67
65
|
};
|
66
|
+
userInfo: {
|
67
|
+
type: import("vue").PropType<AnyObject>;
|
68
|
+
};
|
68
69
|
}, {
|
69
70
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
70
71
|
userId: {
|
71
|
-
type: StringConstructor;
|
72
|
-
required: true;
|
72
|
+
type: (NumberConstructor | StringConstructor)[];
|
73
73
|
};
|
74
74
|
disabled: {
|
75
75
|
type: BooleanConstructor;
|
76
76
|
default: boolean;
|
77
77
|
};
|
78
|
+
userInfo: {
|
79
|
+
type: import("vue").PropType<AnyObject>;
|
80
|
+
};
|
78
81
|
}>> & {
|
79
82
|
onClose?: ((...args: any[]) => any) | undefined;
|
80
83
|
}>>;
|
81
84
|
emit: (event: "close", ...args: any[]) => void;
|
82
85
|
state: {
|
83
|
-
filterable: boolean;
|
84
86
|
orgId: string | number;
|
85
87
|
currentSessionItem: AnyObject;
|
86
88
|
id: string;
|
@@ -130,13 +132,15 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
130
132
|
EyeOffOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
131
133
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
132
134
|
userId: {
|
133
|
-
type: StringConstructor;
|
134
|
-
required: true;
|
135
|
+
type: (NumberConstructor | StringConstructor)[];
|
135
136
|
};
|
136
137
|
disabled: {
|
137
138
|
type: BooleanConstructor;
|
138
139
|
default: boolean;
|
139
140
|
};
|
141
|
+
userInfo: {
|
142
|
+
type: import("vue").PropType<AnyObject>;
|
143
|
+
};
|
140
144
|
}>> & {
|
141
145
|
onClose?: ((...args: any[]) => any) | undefined;
|
142
146
|
}, {
|
@@ -167,6 +171,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
167
171
|
default: boolean;
|
168
172
|
};
|
169
173
|
}, {
|
174
|
+
initialOptions: AnyObject[];
|
175
|
+
tabList: {
|
176
|
+
key: string;
|
177
|
+
label: string;
|
178
|
+
}[];
|
170
179
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
171
180
|
title: {
|
172
181
|
type: StringConstructor;
|
@@ -196,7 +205,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
196
205
|
}>>;
|
197
206
|
emit: (event: "comfirm", ...args: any[]) => void;
|
198
207
|
state: {
|
199
|
-
filterable: boolean;
|
200
208
|
orgId: string | number;
|
201
209
|
currentSessionItem: AnyObject;
|
202
210
|
id: string;
|
@@ -220,27 +228,41 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
220
228
|
keyword: import("vue").Ref<string>;
|
221
229
|
showModal: import("vue").Ref<boolean>;
|
222
230
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
223
|
-
options: import("vue").Ref<AnyObject[]>;
|
224
231
|
groupName: import("vue").Ref<string>;
|
225
|
-
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
226
232
|
remark: import("vue").Ref<string>;
|
233
|
+
currentTab: import("vue").Ref<AnyObject[]>;
|
234
|
+
breadcrumbList: import("vue").Ref<AnyObject[]>;
|
227
235
|
userList: import("vue").Ref<AnyObject[]>;
|
228
236
|
handleInput: () => void;
|
229
237
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
230
|
-
|
238
|
+
sessionList: import("vue").ComputedRef<{
|
239
|
+
id: any;
|
240
|
+
name: any;
|
241
|
+
avatar: any;
|
242
|
+
chatType: any;
|
243
|
+
}[]>;
|
244
|
+
friends: import("vue").ComputedRef<{
|
245
|
+
id: any;
|
246
|
+
name: any;
|
247
|
+
avatar: any;
|
248
|
+
chatType: any;
|
249
|
+
}[]>;
|
250
|
+
groups: import("vue").ComputedRef<{
|
231
251
|
id: any;
|
232
252
|
name: any;
|
233
253
|
avatar: any;
|
254
|
+
chatType: any;
|
234
255
|
}[]>;
|
235
256
|
checkedIds: import("vue").ComputedRef<any[]>;
|
236
257
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
237
258
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
259
|
+
checkedSourceIds: import("vue").WritableComputedRef<any[]>;
|
260
|
+
currentTabKey: import("vue").ComputedRef<any>;
|
261
|
+
getDisabled: (id: string | number) => boolean;
|
262
|
+
handleClickCheckbox: (option: AnyObject) => Promise<void>;
|
263
|
+
toggleTab: (item: AnyObject) => void;
|
264
|
+
handleTabBack: () => void;
|
238
265
|
handlePositiveClick: () => Promise<void>;
|
239
|
-
updateCheckedSourceIds: () => void;
|
240
|
-
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
241
|
-
actionType: "check" | "uncheck";
|
242
|
-
value: string | number;
|
243
|
-
}) => void;
|
244
266
|
closeTag: (id: string) => void;
|
245
267
|
NModal: any;
|
246
268
|
NButton: any;
|
@@ -252,8 +274,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
252
274
|
NCheckbox: any;
|
253
275
|
NCheckboxGroup: any;
|
254
276
|
NTooltip: any;
|
277
|
+
NBreadcrumb: any;
|
278
|
+
NBreadcrumbItem: any;
|
255
279
|
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<{}>>, {}>;
|
256
280
|
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<{}>>, {}>;
|
281
|
+
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<{}>>, {}>;
|
282
|
+
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<{}>>, {}>;
|
283
|
+
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<{}>>, {}>;
|
284
|
+
last: <T>(array: import("lodash").List<T> | null | undefined) => T | undefined;
|
257
285
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
258
286
|
title: {
|
259
287
|
type: StringConstructor;
|