cnhis-design-vue 3.2.9-beta.9 → 3.2.9-release.4
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/src/components/ChatMain.js +1 -1
- package/es/components/base-search/index.d.ts +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +6 -5
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +87 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +87 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +87 -0
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +87 -0
- package/es/components/date-picker/index.d.ts +29 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +30 -1
- package/es/components/date-picker/src/DatePicker.vue2.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/field-set/index.d.ts +8 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +90 -7
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +32 -7
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +74 -31
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +8 -1
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +29 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +58 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +29 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +29 -2
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/types/index.d.ts +4 -3
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +2 -1
- 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/iho-chat/index.d.ts +316 -6
- package/es/components/iho-chat/src/Index.vue.d.ts +316 -6
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/api/index.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +5 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +121 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +6 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +160 -2
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +122 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +29 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +6 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +5 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +1 -3
- package/es/components/iho-chat/src/components/SiderList.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/useSearchUserList.js +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +3 -1
- package/es/components/iho-chat/src/types/index.js +1 -1
- package/es/components/iho-chat/src/utils/chatSock.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +29 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +29 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +3 -0
- package/es/components/quick-search/src/index.vue.d.ts +3 -0
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +2 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +76 -76
@@ -107,7 +107,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
107
107
|
submitFormData: (o: AnyObject) => Promise<void>;
|
108
108
|
handleGroupName: () => Promise<void>;
|
109
109
|
handleAvatar: (options: import("../types").FileOptions) => Promise<void>;
|
110
|
-
|
110
|
+
closeChatSet: () => void;
|
111
111
|
NDrawer: any;
|
112
112
|
NDrawerContent: any;
|
113
113
|
NAvatar: any;
|
@@ -209,6 +209,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
209
209
|
};
|
210
210
|
defaultValue: {
|
211
211
|
type: import("vue").PropType<AnyObject[]>;
|
212
|
+
default: () => never[];
|
212
213
|
};
|
213
214
|
}, {
|
214
215
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -229,6 +230,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
229
230
|
};
|
230
231
|
defaultValue: {
|
231
232
|
type: import("vue").PropType<AnyObject[]>;
|
233
|
+
default: () => never[];
|
232
234
|
};
|
233
235
|
}>> & {
|
234
236
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -243,6 +245,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
243
245
|
options: import("vue").Ref<AnyObject[]>;
|
244
246
|
groupName: import("vue").Ref<string>;
|
245
247
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
248
|
+
remark: import("vue").Ref<string>;
|
246
249
|
userList: import("vue").Ref<AnyObject[]>;
|
247
250
|
handleInput: () => void;
|
248
251
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
@@ -291,10 +294,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
291
294
|
};
|
292
295
|
defaultValue: {
|
293
296
|
type: import("vue").PropType<AnyObject[]>;
|
297
|
+
default: () => never[];
|
294
298
|
};
|
295
299
|
}>> & {
|
296
300
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
297
301
|
}, {
|
302
|
+
defaultValue: AnyObject[];
|
298
303
|
mode: string;
|
299
304
|
title: string;
|
300
305
|
disabledIds: string[];
|
@@ -320,6 +325,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
320
325
|
};
|
321
326
|
}>> & {}>>;
|
322
327
|
state: import("../types").IState;
|
328
|
+
relayMessage: (param: {
|
329
|
+
checkedIds: string[];
|
330
|
+
remark: string;
|
331
|
+
content: AnyObject;
|
332
|
+
}) => Promise<void>;
|
323
333
|
imageList: import("vue").Ref<AnyObject[]>;
|
324
334
|
fileList: import("vue").Ref<AnyObject[]>;
|
325
335
|
imageRef: import("vue").Ref<any>;
|
@@ -334,7 +344,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
334
344
|
handleSearch: () => Promise<void>;
|
335
345
|
formatImageList: (data: AnyObject[]) => {
|
336
346
|
label: string;
|
337
|
-
list:
|
347
|
+
list: any;
|
338
348
|
}[];
|
339
349
|
resetAndSearch: () => void;
|
340
350
|
title: import("vue").ComputedRef<"聊天图片" | "聊天文件">;
|
@@ -347,8 +357,122 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
347
357
|
NIcon: any;
|
348
358
|
NTooltip: any;
|
349
359
|
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<{}>>, {}>;
|
360
|
+
OpenOutline: 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<{}>>, {}>;
|
350
361
|
DownloadOutline: 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<{}>>, {}>;
|
351
362
|
downloadFile: typeof import("../utils").downloadFile;
|
363
|
+
ChatAdd: import("vue").DefineComponent<{
|
364
|
+
title: {
|
365
|
+
type: StringConstructor;
|
366
|
+
default: string;
|
367
|
+
};
|
368
|
+
mode: {
|
369
|
+
type: StringConstructor;
|
370
|
+
default: string;
|
371
|
+
};
|
372
|
+
options: {
|
373
|
+
type: import("vue").PropType<AnyObject[]>;
|
374
|
+
};
|
375
|
+
disabledIds: {
|
376
|
+
type: import("vue").PropType<string[]>;
|
377
|
+
default: () => never[];
|
378
|
+
};
|
379
|
+
defaultValue: {
|
380
|
+
type: import("vue").PropType<AnyObject[]>;
|
381
|
+
default: () => never[];
|
382
|
+
};
|
383
|
+
}, {
|
384
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
385
|
+
title: {
|
386
|
+
type: StringConstructor;
|
387
|
+
default: string;
|
388
|
+
};
|
389
|
+
mode: {
|
390
|
+
type: StringConstructor;
|
391
|
+
default: string;
|
392
|
+
};
|
393
|
+
options: {
|
394
|
+
type: import("vue").PropType<AnyObject[]>;
|
395
|
+
};
|
396
|
+
disabledIds: {
|
397
|
+
type: import("vue").PropType<string[]>;
|
398
|
+
default: () => never[];
|
399
|
+
};
|
400
|
+
defaultValue: {
|
401
|
+
type: import("vue").PropType<AnyObject[]>;
|
402
|
+
default: () => never[];
|
403
|
+
};
|
404
|
+
}>> & {
|
405
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
406
|
+
}>>;
|
407
|
+
emit: (event: "comfirm", ...args: any[]) => void;
|
408
|
+
state: import("../types").IState;
|
409
|
+
setCurrentSessionItem: (item: AnyObject) => void;
|
410
|
+
listRef: import("vue").Ref<any>;
|
411
|
+
keyword: import("vue").Ref<string>;
|
412
|
+
showModal: import("vue").Ref<boolean>;
|
413
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
414
|
+
options: import("vue").Ref<AnyObject[]>;
|
415
|
+
groupName: import("vue").Ref<string>;
|
416
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
417
|
+
remark: import("vue").Ref<string>;
|
418
|
+
userList: import("vue").Ref<AnyObject[]>;
|
419
|
+
handleInput: () => void;
|
420
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
421
|
+
defaultOptions: import("vue").ComputedRef<{
|
422
|
+
id: any;
|
423
|
+
name: any;
|
424
|
+
avatar: any;
|
425
|
+
}[]>;
|
426
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
427
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
428
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
429
|
+
handlePositiveClick: () => Promise<void>;
|
430
|
+
updateCheckedSourceIds: () => void;
|
431
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
432
|
+
actionType: "check" | "uncheck";
|
433
|
+
value: string | number;
|
434
|
+
}) => void;
|
435
|
+
closeTag: (id: string) => void;
|
436
|
+
NModal: any;
|
437
|
+
NButton: any;
|
438
|
+
NSpace: any;
|
439
|
+
NAvatar: any;
|
440
|
+
NIcon: any;
|
441
|
+
NTag: any;
|
442
|
+
NInput: any;
|
443
|
+
NCheckbox: any;
|
444
|
+
NCheckboxGroup: any;
|
445
|
+
NTooltip: any;
|
446
|
+
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<{}>>, {}>;
|
447
|
+
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<{}>>, {}>;
|
448
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
449
|
+
title: {
|
450
|
+
type: StringConstructor;
|
451
|
+
default: string;
|
452
|
+
};
|
453
|
+
mode: {
|
454
|
+
type: StringConstructor;
|
455
|
+
default: string;
|
456
|
+
};
|
457
|
+
options: {
|
458
|
+
type: import("vue").PropType<AnyObject[]>;
|
459
|
+
};
|
460
|
+
disabledIds: {
|
461
|
+
type: import("vue").PropType<string[]>;
|
462
|
+
default: () => never[];
|
463
|
+
};
|
464
|
+
defaultValue: {
|
465
|
+
type: import("vue").PropType<AnyObject[]>;
|
466
|
+
default: () => never[];
|
467
|
+
};
|
468
|
+
}>> & {
|
469
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
470
|
+
}, {
|
471
|
+
defaultValue: AnyObject[];
|
472
|
+
mode: string;
|
473
|
+
title: string;
|
474
|
+
disabledIds: string[];
|
475
|
+
}>;
|
352
476
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
353
477
|
type: {
|
354
478
|
type: StringConstructor;
|
@@ -424,6 +548,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
424
548
|
type: import("vue").PropType<string | false | HTMLElement>;
|
425
549
|
default: string;
|
426
550
|
};
|
551
|
+
holidays: {
|
552
|
+
type: import("vue").PropType<Date[]>;
|
553
|
+
default: () => never[];
|
554
|
+
};
|
555
|
+
type: {
|
556
|
+
type: StringConstructor;
|
557
|
+
default: string;
|
558
|
+
};
|
427
559
|
}, {
|
428
560
|
attrs: {
|
429
561
|
[x: string]: unknown;
|
@@ -448,6 +580,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
448
580
|
type: import("vue").PropType<string | false | HTMLElement>;
|
449
581
|
default: string;
|
450
582
|
};
|
583
|
+
holidays: {
|
584
|
+
type: import("vue").PropType<Date[]>;
|
585
|
+
default: () => never[];
|
586
|
+
};
|
587
|
+
type: {
|
588
|
+
type: StringConstructor;
|
589
|
+
default: string;
|
590
|
+
};
|
451
591
|
}>> & {
|
452
592
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
453
593
|
}>>;
|
@@ -464,6 +604,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
464
604
|
blur: () => any;
|
465
605
|
handleConfirm: (target: HTMLInputElement) => void;
|
466
606
|
onUpdateShow: (show: boolean) => Promise<void>;
|
607
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
608
|
+
stopWatcher: () => void;
|
609
|
+
setHoliday: (show: boolean) => Promise<void>;
|
467
610
|
onConfirm: (...args: any[]) => Promise<void>;
|
468
611
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
469
612
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -488,11 +631,21 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
488
631
|
type: import("vue").PropType<string | false | HTMLElement>;
|
489
632
|
default: string;
|
490
633
|
};
|
634
|
+
holidays: {
|
635
|
+
type: import("vue").PropType<Date[]>;
|
636
|
+
default: () => never[];
|
637
|
+
};
|
638
|
+
type: {
|
639
|
+
type: StringConstructor;
|
640
|
+
default: string;
|
641
|
+
};
|
491
642
|
}>> & {
|
492
643
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
493
644
|
}, {
|
645
|
+
type: string;
|
494
646
|
updateUnchangedValue: boolean;
|
495
647
|
to: string | false | HTMLElement;
|
648
|
+
holidays: Date[];
|
496
649
|
}>>;
|
497
650
|
formatTime: typeof import("../utils").formatTime;
|
498
651
|
MESSAGE_TYPE: typeof import("../constants").MESSAGE_TYPE;
|
@@ -525,6 +678,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
525
678
|
};
|
526
679
|
defaultValue: {
|
527
680
|
type: import("vue").PropType<AnyObject[]>;
|
681
|
+
default: () => never[];
|
528
682
|
};
|
529
683
|
}, {
|
530
684
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -545,6 +699,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
545
699
|
};
|
546
700
|
defaultValue: {
|
547
701
|
type: import("vue").PropType<AnyObject[]>;
|
702
|
+
default: () => never[];
|
548
703
|
};
|
549
704
|
}>> & {
|
550
705
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -559,6 +714,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
559
714
|
options: import("vue").Ref<AnyObject[]>;
|
560
715
|
groupName: import("vue").Ref<string>;
|
561
716
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
717
|
+
remark: import("vue").Ref<string>;
|
562
718
|
userList: import("vue").Ref<AnyObject[]>;
|
563
719
|
handleInput: () => void;
|
564
720
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
@@ -607,10 +763,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
607
763
|
};
|
608
764
|
defaultValue: {
|
609
765
|
type: import("vue").PropType<AnyObject[]>;
|
766
|
+
default: () => never[];
|
610
767
|
};
|
611
768
|
}>> & {
|
612
769
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
613
770
|
}, {
|
771
|
+
defaultValue: AnyObject[];
|
614
772
|
mode: string;
|
615
773
|
title: string;
|
616
774
|
disabledIds: string[];
|
@@ -7,12 +7,18 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
7
7
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
8
8
|
state: import("../types").IState;
|
9
9
|
setMsgList: (list?: AnyObject[]) => void;
|
10
|
+
relayMessage: (param: {
|
11
|
+
checkedIds: string[];
|
12
|
+
remark: string;
|
13
|
+
content: AnyObject;
|
14
|
+
}) => Promise<void>;
|
10
15
|
setCurrentSessionItem: (item: AnyObject) => void;
|
11
16
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
12
17
|
contextmenuRef: import("vue").Ref<any>;
|
13
18
|
showMenu: import("vue").Ref<boolean>;
|
14
19
|
menuPosition: any;
|
15
20
|
menuMsgId: import("vue").Ref<any>;
|
21
|
+
relayTriggerRef: import("vue").Ref<any>;
|
16
22
|
pageInfo: {
|
17
23
|
page: number;
|
18
24
|
hasMore: boolean;
|
@@ -29,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
29
35
|
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
30
36
|
setMenuPosition: (event: MouseEvent) => Promise<void>;
|
31
37
|
showMessage: (item: AnyObject) => boolean;
|
38
|
+
showReEdit: (item: AnyObject) => boolean;
|
32
39
|
showReferenceMsg: (item: AnyObject) => any;
|
33
40
|
showBlendMsg: (item: AnyObject) => any;
|
34
41
|
showTemplateMsg: (item: AnyObject, type: 'system' | 'template') => boolean | undefined;
|
@@ -38,6 +45,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
38
45
|
resetInfo: () => void;
|
39
46
|
setReferenceMsg: (msgItem: AnyObject) => void;
|
40
47
|
handleSelect: (key: string, msgItem: AnyObject) => void;
|
48
|
+
handleRelay: (checkedIds: string[], remark: string) => void;
|
49
|
+
reEdit: (item: AnyObject) => void;
|
41
50
|
NAvatar: any;
|
42
51
|
NImageGroup: any;
|
43
52
|
NImage: any;
|
@@ -222,6 +231,119 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
222
231
|
}, {
|
223
232
|
show: boolean;
|
224
233
|
}>;
|
234
|
+
ChatAdd: import("vue").DefineComponent<{
|
235
|
+
title: {
|
236
|
+
type: StringConstructor;
|
237
|
+
default: string;
|
238
|
+
};
|
239
|
+
mode: {
|
240
|
+
type: StringConstructor;
|
241
|
+
default: string;
|
242
|
+
};
|
243
|
+
options: {
|
244
|
+
type: import("vue").PropType<AnyObject[]>;
|
245
|
+
};
|
246
|
+
disabledIds: {
|
247
|
+
type: import("vue").PropType<string[]>;
|
248
|
+
default: () => never[];
|
249
|
+
};
|
250
|
+
defaultValue: {
|
251
|
+
type: import("vue").PropType<AnyObject[]>;
|
252
|
+
default: () => never[];
|
253
|
+
};
|
254
|
+
}, {
|
255
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
256
|
+
title: {
|
257
|
+
type: StringConstructor;
|
258
|
+
default: string;
|
259
|
+
};
|
260
|
+
mode: {
|
261
|
+
type: StringConstructor;
|
262
|
+
default: string;
|
263
|
+
};
|
264
|
+
options: {
|
265
|
+
type: import("vue").PropType<AnyObject[]>;
|
266
|
+
};
|
267
|
+
disabledIds: {
|
268
|
+
type: import("vue").PropType<string[]>;
|
269
|
+
default: () => never[];
|
270
|
+
};
|
271
|
+
defaultValue: {
|
272
|
+
type: import("vue").PropType<AnyObject[]>;
|
273
|
+
default: () => never[];
|
274
|
+
};
|
275
|
+
}>> & {
|
276
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
277
|
+
}>>;
|
278
|
+
emit: (event: "comfirm", ...args: any[]) => void;
|
279
|
+
state: import("../types").IState;
|
280
|
+
setCurrentSessionItem: (item: AnyObject) => void;
|
281
|
+
listRef: import("vue").Ref<any>;
|
282
|
+
keyword: import("vue").Ref<string>;
|
283
|
+
showModal: import("vue").Ref<boolean>;
|
284
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
285
|
+
options: import("vue").Ref<AnyObject[]>;
|
286
|
+
groupName: import("vue").Ref<string>;
|
287
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
288
|
+
remark: import("vue").Ref<string>;
|
289
|
+
userList: import("vue").Ref<AnyObject[]>;
|
290
|
+
handleInput: () => void;
|
291
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
292
|
+
defaultOptions: import("vue").ComputedRef<{
|
293
|
+
id: any;
|
294
|
+
name: any;
|
295
|
+
avatar: any;
|
296
|
+
}[]>;
|
297
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
298
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
299
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
300
|
+
handlePositiveClick: () => Promise<void>;
|
301
|
+
updateCheckedSourceIds: () => void;
|
302
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
303
|
+
actionType: "check" | "uncheck";
|
304
|
+
value: string | number;
|
305
|
+
}) => void;
|
306
|
+
closeTag: (id: string) => void;
|
307
|
+
NModal: any;
|
308
|
+
NButton: any;
|
309
|
+
NSpace: any;
|
310
|
+
NAvatar: any;
|
311
|
+
NIcon: any;
|
312
|
+
NTag: any;
|
313
|
+
NInput: any;
|
314
|
+
NCheckbox: any;
|
315
|
+
NCheckboxGroup: any;
|
316
|
+
NTooltip: any;
|
317
|
+
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<{}>>, {}>;
|
318
|
+
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<{}>>, {}>;
|
319
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
320
|
+
title: {
|
321
|
+
type: StringConstructor;
|
322
|
+
default: string;
|
323
|
+
};
|
324
|
+
mode: {
|
325
|
+
type: StringConstructor;
|
326
|
+
default: string;
|
327
|
+
};
|
328
|
+
options: {
|
329
|
+
type: import("vue").PropType<AnyObject[]>;
|
330
|
+
};
|
331
|
+
disabledIds: {
|
332
|
+
type: import("vue").PropType<string[]>;
|
333
|
+
default: () => never[];
|
334
|
+
};
|
335
|
+
defaultValue: {
|
336
|
+
type: import("vue").PropType<AnyObject[]>;
|
337
|
+
default: () => never[];
|
338
|
+
};
|
339
|
+
}>> & {
|
340
|
+
onComfirm?: ((...args: any[]) => any) | undefined;
|
341
|
+
}, {
|
342
|
+
defaultValue: AnyObject[];
|
343
|
+
mode: string;
|
344
|
+
title: string;
|
345
|
+
disabledIds: string[];
|
346
|
+
}>;
|
225
347
|
simplifyMessage: typeof simplifyMessage;
|
226
348
|
isAudioOrVideoMessage: typeof isAudioOrVideoMessage;
|
227
349
|
getAVTime: typeof getAVTime;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,computed as n,watch as s,openBlock as o,createElementBlock as i,normalizeClass as r,unref as a,normalizeStyle as c,createVNode as l,withCtx as u,Fragment as m,renderList as p,toDisplayString as d,createCommentVNode as
|
1
|
+
import{defineComponent as e,ref as t,computed as n,watch as s,openBlock as o,createElementBlock as i,normalizeClass as r,unref as a,normalizeStyle as c,createVNode as l,withCtx as u,Fragment as m,renderList as p,toDisplayString as d,createCommentVNode as f,createBlock as g,createElementVNode as v,createTextVNode as y,withModifiers as h,nextTick as T}from"vue";import{NImageGroup as M,NButton as k,NAvatar as _,NImage as x,NIcon as I,NSpace as C,NButtonGroup as w,NTooltip as S}from"naive-ui";import{format as j}from"date-fns";import{getHistoryRecordApi as E,readMessageApi as L}from"../api/index.js";import{useState as b}from"../hooks/useState.js";import{useSession as A}from"../hooks/useSession.js";import{MESSAGE_TYPE as z}from"../constants/index.js";import"trtc-sdk-v5";import{isAudioOrVideoMessage as H,simplifyMessage as D,getAVTime as R,downloadFile as N}from"../utils/index.js";import{first as O,last as P}from"lodash-es";import q from"./PersonProfile.vue.js";import B 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"},se=["data-time"],oe=["onContextmenu"],ie={key:0,class:"reference-content"},re=["innerHTML"],ae=["src"],ce=["innerHTML"],le=["innerHTML"],ue={style:{"margin-left":"8px"}},me={class:"size"};var pe=e({__name:"ChatMain",setup(e){const pe=t(),{state:de,setMsgList:fe,relayMessage:ge}=b(),{setCurrentSessionItem:ve,isGroupChat:ye}=A(de),he=t(),Te=t(!1),Me=t({left:0,top:0}),ke=t(),_e=t(),xe={page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")},Ie=n((()=>({"--c-tip-top":ye.value?"1px":"-20px","--c-tip-gap":ye.value?"10px":"0px"})));function Ce({nodes:e}){var t,n;const{_ctx:s}=null==(t=e.download)?void 0:t.children,o=s?null==(n=null==s?void 0:s.proxy)?void 0:n.previewSrc:"";return[e.prev,e.next,e.rotateCounterclockwise,e.rotateClockwise,e.resizeToOriginalSize,e.zoomOut,e.zoomIn,l(S,null,{trigger:()=>l(I,{style:"cursor: pointer",color:"rgba(255, 255, 255, 0.75",size:24,component:$,onClick:()=>o&&N(o,"img")},null),default:()=>"下载"}),e.close]}async function we(){try{if(!xe.hasMore)return;xe.page++;const e=await E({sessionKey:de.currentSessionItem.sessionKey,page:xe.page,lastSendTime:xe.lastSendTime});if(!Array.isArray(e)||0===e.length)return xe.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了");const t=O(e).id;xe.lastSendTime=P(e).sendTime,fe(xe.page>1?[...de.msgList,...e]:e),1===xe.page&&de.currentSessionItem.unreadNum&&(await L({chatType:de.currentSessionItem.chatType,messageIdSet:[t],receiver:de.userInfo.id,sender:de.currentSessionItem.receiver}),ve({unreadNum:0}))}catch(e){console.log(e)}}async function Se(e,t){ke.value=t,async function(e){var t,n,s,o,i,r;Te.value=!0,await T();const{clientX:a,clientY:c}=e,{width:l=0,height:u=0,left:m=0,top:p=0}=(null==(t=pe.value)?void 0:t.getBoundingClientRect())||{},d=null!=(o=null==(s=null==(n=he.value)?void 0:n.$el)?void 0:s.getBoundingClientRect().height)?o:220,f=null!=(r=null==(i=pe.value)?void 0:i.scrollTop)?r:0,g=5,v={};a<=m+l/2?v.left=a-m+g+"px":v.right=m+l-a-g+"px";c-p<d/2?v.top=f+g+"px":p+u-c<=d/2?v.bottom=Math.abs(f)+g+"px":v.top=f+c-p-d/2+"px";Me.value=v}(e)}function je(e){const{chatMessageType:t,messageTemplate:n}=e.content;return t!==z.TEMPLATE||!!n}function Ee(e){const{chatMessageType:t}=e.content;return e.sender===de.userInfo.id&&Date.now()-new Date(e.sendTime).getTime()<864e5&&[z.TEXT,z.EMOJI].includes(t)}function Le(e){const{chatMessageType:t,msg:n=""}=e.content;if(t===z.BLEND){const e=n.match(/<img[^>]*>/gi);return!e||!e.length}return t&&[z.TEXT,z.EMOJI].includes(t)}function be(e){const{chatMessageType:t,msg:n=""}=e.content,s=n.match(/<img[^>]*>/gi);return t===z.BLEND&&s&&s.length}function Ae(e,t){var n,s;const{chatMessageType:o,messageTemplate:i}=e.content;if(o===z.TEMPLATE)return"system"===t?2==(null==(n=null==i?void 0:i.setting)?void 0:n.style.id):2!=(null==(s=null==i?void 0:i.setting)?void 0:s.style.id)}function ze(e){var t,n;const{chatMessageType:s,messageTemplate:o}=e;return s===z.TEMPLATE&&3==(null==(n=null==(t=null==o?void 0:o.setting)?void 0:t.style)?void 0:n.id)}function He(e,t){var n;const s=new Date(e.sendTime).getTime(),o=null==(n=de.msgList[t+1])?void 0:n.sendTime;if(o){return s-new Date(o).getTime()>3e5}return!0}function De(e){de.currentReferenceMsg=e,de.currentReferenceMsg.content.referenceContent=null,Object.assign(de.currentReferenceMsg,{chatType:de.currentSessionItem.chatType,receiver:de.currentSessionItem.receiver,receiverAvatar:de.currentSessionItem.avatar,receiverName:de.currentSessionItem.name})}function Re(e,t){var n;"reply"!==e?"relay"===e&&(null==(n=_e.value)||n.click()):De(t)}function Ne(e,t){const n=de.msgList.find((e=>e.id===ke.value));ge({checkedIds:e,remark:t,content:n.content})}return Q(pe,(()=>{we()}),"top",(()=>{Te.value=!1})),s((()=>de.id),(e=>{e&&(de.currentReferenceMsg=null,Object.assign(xe,{page:0,hasMore:!0,lastSendTime:j(new Date,"yyyy-MM-dd HH:mm:ss")}),we())}),{immediate:!0}),s((()=>de.isAppendMsg),(e=>{e&&(fe([de.currentMsg,...de.msgList]),async function(){var e,t,n;await T();const s=null!=(t=null==(e=pe.value)?void 0:e.scrollHeight)?t:0;null==(n=pe.value)||n.scrollTo({top:s,behavior:"auto"})}(),de.isAppendMsg=!1)}),{immediate:!0}),(e,t)=>(o(),i("div",{class:r(["chat-main",{"home-bg":!a(de).id}]),ref_key:"chatMainRef",ref:pe,style:c(a(Ie))},[l(a(M),{"show-toolbar-tooltip":"","render-toolbar":Ce},{default:u((()=>[(o(!0),i(m,null,p(a(de).msgList,((e,t)=>(o(),i(m,{key:e.id},[je(e)?(o(),i("div",{key:0,class:r(["message-item",{"message-item--mine":e.sender==a(de).userInfo.id}])},[He(e,t)?(o(),i("p",V,d(e.__sendTime),1)):f("v-if",!0),Ae(e,"system")||"WITHDRAWN"===e.status?(o(),i(m,{key:1},[Ae(e,"system")?(o(),g(B,{key:0,data:e},null,8,["data"])):f("v-if",!0),"WITHDRAWN"===e.status?(o(),i("p",Z,[v("span",null,d(e.sender==a(de).userInfo.id?"你":e.senderName)+"撤回了一条消息",1),Ee(e)?(o(),g(a(k),{key:0,size:"tiny",style:{color:"var(--c-primary-color)","margin-left":"5px"},text:"",onClick:()=>function(e){de.currentReEditMsg=e}(e)},{default:u((()=>[y(" 重新编辑 ")])),_:2},1032,["onClick"])):f("v-if",!0)])):f("v-if",!0)],64)):(o(),i("div",ee,[l(q,{"user-id":e.sender,placement:e.sender==a(de).userInfo.id?"left":"right"},{trigger:u((()=>[l(a(_),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-id","placement"]),e.content?(o(),i("div",te,[v("div",ne,[v("span",{class:"name","data-time":e.__time},d(a(ye)?e.senderName:""),9,se)]),v("div",{class:r(["content",{emoji:e.content.chatMessageType===a(z).EMOJI,template:e.content.chatMessageType===a(z).TEMPLATE,"template--3":ze(e.content),"audio-video":a(H)(e.content),file:e.content.chatMessageType===a(z).FILE}]),onContextmenu:h((t=>Se(t,e.id)),["prevent"])},[Le(e)?(o(),i(m,{key:0},[e.content.referenceContent?(o(),i("div",ie,[v("span",null,d(e.content.referenceContent.senderName)+":",1),v("pre",{innerHTML:a(D)(e.content.referenceContent.content)},null,8,re)])):f("v-if",!0),e.content.chatMessageType===a(z).EMOJI?(o(),i("img",{key:1,class:r([e.content.referenceContent?"emoji--min":"emoji--big"]),src:a(J).findEmoji(e.__content)},null,10,ae)):(o(),i("pre",{key:2,innerHTML:e.__content},null,8,ce))],64)):f("v-if",!0),be(e)?(o(),i("pre",{key:1,innerHTML:e.__content},null,8,le)):f("v-if",!0),Ae(e,"template")?(o(),g(B,{key:2,data:e},null,8,["data"])):f("v-if",!0),e.content.chatMessageType===a(z).IMAGE?(o(),g(a(x),{key:3,width:"240",src:e.__content},null,8,["src"])):f("v-if",!0),a(H)(e.content)?(o(),i(m,{key:4},[l(a(I),{class:r({"is-audio":e.content.chatMessageType===a(z).AUDIO}),component:e.content.chatMessageType===a(z).AUDIO?a(X):a(F)},null,8,["class","component"]),v("span",ue,d(a(R)(e.__content)),1)],64)):f("v-if",!0),e.content.chatMessageType===a(z).FILE?(o(),g(a(C),{key:5,"wrap-item":!1},{default:u((()=>[l(a(I),{class:"icon-file",size:"40",component:a(G)},null,8,["component"]),l(a(C),{"wrap-item":!1,vertical:"",justify:"space-between",style:{"row-gap":"0"}},{default:u((()=>[v("span",null,d(e.__content),1),v("span",me,d(e.__size),1)])),_:2},1024)])),_:2},1024)):f("v-if",!0),l(a(w),{class:"quick-menu"},{default:u((()=>[a(H)(e.content)?f("v-if",!0):(o(),i(m,{key:0},[f(' <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> '),l(a(k),{quaternary:"",size:"tiny",onClick:()=>De(e)},{icon:u((()=>[l(a(I),{size:"17",component:a(K)},null,8,["component"])])),_:2},1032,["onClick"])],64)),l(a(k),{quaternary:"",size:"tiny",onClick:t=>Se(t,e.id)},{icon:u((()=>[l(a(I),{size:"14",component:a(Y)},null,8,["component"])])),_:2},1032,["onClick"])])),_:2},1024)],42,oe)])):f("v-if",!0)]))],2)):f("v-if",!0)],64)))),128))])),_:1}),l(a(W),{ref_key:"contextmenuRef",ref:he,show:Te.value,"onUpdate:show":t[0]||(t[0]=e=>Te.value=e),position:Me.value,"msg-id":ke.value,onSelect:Re},null,8,["show","position","msg-id"]),l(U,{title:"转发消息",mode:"relay",onComfirm:Ne},{trigger:u((()=>[v("span",{style:{display:"none"},ref_key:"relayTriggerRef",ref:_e},"转发",512)])),_:1})],6))}});export{pe as default};
|
@@ -65,6 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
65
|
type: PropType<string | false | HTMLElement>;
|
66
66
|
default: string;
|
67
67
|
};
|
68
|
+
holidays: {
|
69
|
+
type: PropType<Date[]>;
|
70
|
+
default: () => never[];
|
71
|
+
};
|
72
|
+
type: {
|
73
|
+
type: StringConstructor;
|
74
|
+
default: string;
|
75
|
+
};
|
68
76
|
}, {
|
69
77
|
attrs: {
|
70
78
|
[x: string]: unknown;
|
@@ -89,6 +97,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
97
|
type: PropType<string | false | HTMLElement>;
|
90
98
|
default: string;
|
91
99
|
};
|
100
|
+
holidays: {
|
101
|
+
type: PropType<Date[]>;
|
102
|
+
default: () => never[];
|
103
|
+
};
|
104
|
+
type: {
|
105
|
+
type: StringConstructor;
|
106
|
+
default: string;
|
107
|
+
};
|
92
108
|
}>> & {
|
93
109
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
94
110
|
}>>;
|
@@ -105,6 +121,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
105
121
|
blur: () => any;
|
106
122
|
handleConfirm: (target: HTMLInputElement) => void;
|
107
123
|
onUpdateShow: (show: boolean) => Promise<void>;
|
124
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
125
|
+
stopWatcher: () => void;
|
126
|
+
setHoliday: (show: boolean) => Promise<void>;
|
108
127
|
onConfirm: (...args: any[]) => Promise<void>;
|
109
128
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
110
129
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -129,11 +148,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
148
|
type: PropType<string | false | HTMLElement>;
|
130
149
|
default: string;
|
131
150
|
};
|
151
|
+
holidays: {
|
152
|
+
type: PropType<Date[]>;
|
153
|
+
default: () => never[];
|
154
|
+
};
|
155
|
+
type: {
|
156
|
+
type: StringConstructor;
|
157
|
+
default: string;
|
158
|
+
};
|
132
159
|
}>> & {
|
133
160
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
134
161
|
}, {
|
162
|
+
type: string;
|
135
163
|
updateUnchangedValue: boolean;
|
136
164
|
to: string | false | HTMLElement;
|
165
|
+
holidays: Date[];
|
137
166
|
}>>;
|
138
167
|
formatTime: typeof formatTime;
|
139
168
|
MESSAGE_TYPE: typeof MESSAGE_TYPE;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as a,watch as l,openBlock as t,createBlock as r,unref as s,withCtx as o,createElementVNode as n,createVNode as i,toDisplayString as u,resolveDynamicComponent as c,createElementBlock as d,Fragment as v,renderList as m,withDirectives as p,createTextVNode as f,vShow as
|
1
|
+
import{defineComponent as e,ref as a,watch as l,openBlock as t,createBlock as r,unref as s,withCtx as o,createElementVNode as n,createVNode as i,toDisplayString as u,resolveDynamicComponent as c,createElementBlock as d,Fragment as v,renderList as m,withDirectives as p,createTextVNode as f,vShow as h}from"vue";import{NModal as g,NAvatar as y,NInputGroup as b,NInput as _,NSelect as T,NPopover as k,NTag as M,NIcon as x}from"naive-ui";import{SearchOutline as j}from"@vicons/ionicons5";import{useState as I}from"../hooks/useState.js";import{transformMessage as w,formatTime as S}from"../utils/index.js";import{last as A}from"lodash-es";import{MESSAGE_TYPE as L}from"../constants/index.js";import{searchChatRecordApi as C}from"../api/index.js";import"trtc-sdk-v5";import E from"../../../date-picker/index.js";import{useDebounceFn as H}from"@vueuse/core";import{format as D}from"date-fns";import"../../../../shared/utils/index.js";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import{useScrollLoading as U}from"../../../../shared/hooks/useScrollLoading.js";import{emojis as z}from"../utils/emoji.js";const G={class:"iho-chat-dialog__header"},N=n("span",{class:"left"},"聊天记录",-1),R={class:"center"},B={class:"iho-chat-dialog__content iho-chat-record-wrapper"},O={class:"chat-record-box"},W={class:"msg-box"},J={class:"name-and-time"},P={class:"content"},X=["src"],$=["src"],q=["innerHTML"],F={key:1,class:"no-data"},K={class:"chat-record-box__filter"},Q=n("span",{class:"filter-title"},"添加筛选条件",-1),V={class:"filter-item"},Y=n("span",{class:"label"},"成员:",-1),Z={class:"filter-item"},ee=n("span",{class:"label"},"日期:",-1),ae={class:"time-target"},le={class:"time-target__item"},te=n("span",null,"开始:",-1),re={class:"tip"},se={class:"time-target__item"},oe=n("span",null,"结束:",-1),ne={class:"tip"};var ie=e({__name:"ChatRecord",props:{visible:{type:Boolean}},setup(e){const ie=e,ue={color:"#fff",textColor:"#666"},{state:ce}=I(),de=a(),ve=a([]),me=a(),pe=a([]),fe=a(),he=a(),ge=H(_e,500),ye={page:0,hasMore:!0,lastSendTime:D(new Date,"yyyy-MM-dd HH:mm:ss")};async function be(){var e;try{if(!ye.hasMore)return;ye.page++;const a=await C({orgId:ce.orgId,keyword:me.value,endTime:Me(),startTime:fe.value?fe.value+" 00:00:00":"",lastSendTime:ye.lastSendTime,memberIdSet:pe.value,page:ye.page,recordType:"ALL",receiver:ce.currentSessionItem.receiver,userId:ce.userInfo.id});Array.isArray(a)&&0!==a.length&&Array.isArray(a[0].recordList)||(ye.hasMore=!1);let l=a||[];Array.isArray(a)&&a.length>0&&(l=a[0].recordList.filter((e=>"WITHDRAWN"!==e.status))),ye.lastSendTime=null==(e=A(l))?void 0:e.sendTime,l.forEach((e=>{var a,l,t,r;let s="";switch(e.content.chatMessageType){case L.TEXT:case L.BLEND:s=w(e.content);break;case L.TEMPLATE:s=null==(t=null==(l=null==(a=e.content)?void 0:a.messageTemplate)?void 0:l.setting)?void 0:t.title;break;default:s=null==(r=e.content)?void 0:r.msg}e.__content=s})),ve.value=ye.page>1?ve.value.concat(l):l}catch(e){}}function _e(){Object.assign(ye,{page:0,hasMore:!0,lastSendTime:Me()||D(new Date,"yyyy-MM-dd HH:mm:ss")}),be()}function Te(e){return!!he.value&&e>Date.parse(`${he.value} 23:59:59`)}function ke(e){return!!fe.value&&e<Date.parse(fe.value)}function Me(){return he.value?he.value+" 23:59:59":""}function xe(e){switch(e){case"member":pe.value=[];break;case"start":fe.value=null;break;case"end":he.value=null}}function je(e){return i(v,null,[i("div",{style:"display: flex;align-items: center"},[i(y,{src:e.avatar,round:!0,size:"small"},null),i("span",{style:"margin-left: 10px"},[e.name])])])}return U(de,(()=>{be()})),l([()=>pe.value,()=>fe.value,()=>he.value],(()=>{ie.visible&&_e()}),{deep:!0}),l((()=>ie.visible),(e=>{e?_e():(me.value="",he.value=null,fe.value=null,pe.value=[],ve.value=[])})),(e,a)=>(t(),r(s(g),{preset:"dialog",title:"","show-icon":!1,"auto-focus":!1,class:"iho-chat-dialog"},{header:o((()=>[n("div",G,[N,n("div",R,[i(s(y),{round:"",size:30,src:s(ce).currentSessionItem.avatar},null,8,["src"]),n("span",null,u(s(ce).currentSessionItem.name),1)])])])),default:o((()=>[n("div",B,[i(s(b),null,{default:o((()=>[(t(),r(c((()=>[i(x,{component:j,size:18,color:"#6666"},null),pe.value.length>0?i(M,{closable:!0,bordered:!1,color:ue,onClose:()=>xe("member")},{default:()=>{var e;return[f("成员:")," ",pe.value.length>1?pe.value.length+"人":null==(e=ce.currentGroupUser.find((e=>e.id===pe.value[0])))?void 0:e.name]}}):null,fe.value?i(M,{closable:!0,bordered:!1,color:ue,onClose:()=>xe("start")},{default:()=>[f("起始时间: "),fe.value]}):null,he.value?i(M,{closable:!0,bordered:!1,color:ue,onClose:()=>xe("end")},{default:()=>[f("结束时间: "),he.value]}):null])))),i(s(_),{placeholder:"搜索",value:me.value,"onUpdate:value":a[0]||(a[0]=e=>me.value=e),valueModifiers:{trim:!0},onInput:s(ge)},null,8,["value","onInput"])])),_:1}),n("div",O,[n("div",{class:"chat-record-box__content",ref_key:"recordRef",ref:de},[ve.value.length>0?(t(!0),d(v,{key:0},m(ve.value,(e=>(t(),d("div",{class:"content-item",key:e.id},[i(s(y),{round:"",size:38,src:e.senderAvatar},null,8,["src"]),n("div",W,[n("div",J,[n("span",null,u(e.senderName),1),n("span",null,u(s(S)(e.sendTime).recordTime),1)]),n("div",P,[e.content.chatMessageType===s(L).IMAGE?(t(),d("img",{key:0,src:e.__content},null,8,X)):e.content.chatMessageType===s(L).EMOJI?(t(),d("img",{key:1,class:"emoji",src:s(z).findEmoji(e.__content)},null,8,$)):(t(),d("p",{key:2,innerHTML:e.__content},null,8,q))])])])))),128)):(t(),d("div",F,"没有找到相关记录"))],512),n("div",K,[Q,n("div",V,[Y,i(s(T),{value:pe.value,"onUpdate:value":a[1]||(a[1]=e=>pe.value=e),multiple:"","max-tag-count":1,"render-label":je,options:s(ce).currentGroupUser,"value-field":"id"},null,8,["value","options"])]),n("div",Z,[ee,n("div",ae,[i(s(k),{trigger:"click","show-arrow":!1},{trigger:o((()=>[n("div",le,[te,p(i(s(M),{bordered:!1,color:ue,closable:"",onClose:a[2]||(a[2]=()=>xe("start"))},{default:o((()=>[f(u(fe.value),1)])),_:1},512),[[h,fe.value]]),p(n("span",re,"点击选择",512),[[h,!fe.value]])])])),default:o((()=>[i(s(E),{"formatted-value":fe.value,"onUpdate:formatted-value":a[3]||(a[3]=e=>fe.value=e),type:"date",panel:"",clearable:"","is-date-disabled":Te},null,8,["formatted-value"])])),_:1}),i(s(k),{trigger:"click","show-arrow":!1},{trigger:o((()=>[n("div",se,[oe,p(i(s(M),{bordered:!1,color:ue,closable:"",onClose:a[4]||(a[4]=()=>xe("end"))},{default:o((()=>[f(u(he.value),1)])),_:1},512),[[h,he.value]]),p(n("span",ne,"点击选择",512),[[h,!he.value]])])])),default:o((()=>[i(s(E),{"formatted-value":he.value,"onUpdate:formatted-value":a[5]||(a[5]=e=>he.value=e),type:"date",panel:"",clearable:"","is-date-disabled":ke},null,8,["formatted-value"])])),_:1})])])])])])])),_:1}))}});export{ie as default};
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
20
20
|
submitFormData: (o: AnyObject) => Promise<void>;
|
21
21
|
handleGroupName: () => Promise<void>;
|
22
22
|
handleAvatar: (options: FileOptions) => Promise<void>;
|
23
|
-
|
23
|
+
closeChatSet: () => void;
|
24
24
|
NDrawer: any;
|
25
25
|
NDrawerContent: any;
|
26
26
|
NAvatar: any;
|
@@ -122,6 +122,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
122
122
|
};
|
123
123
|
defaultValue: {
|
124
124
|
type: import("vue").PropType<AnyObject[]>;
|
125
|
+
default: () => never[];
|
125
126
|
};
|
126
127
|
}, {
|
127
128
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -142,6 +143,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
142
143
|
};
|
143
144
|
defaultValue: {
|
144
145
|
type: import("vue").PropType<AnyObject[]>;
|
146
|
+
default: () => never[];
|
145
147
|
};
|
146
148
|
}>> & {
|
147
149
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -156,6 +158,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
156
158
|
options: import("vue").Ref<AnyObject[]>;
|
157
159
|
groupName: import("vue").Ref<string>;
|
158
160
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
161
|
+
remark: import("vue").Ref<string>;
|
159
162
|
userList: import("vue").Ref<AnyObject[]>;
|
160
163
|
handleInput: () => void;
|
161
164
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
@@ -204,10 +207,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
204
207
|
};
|
205
208
|
defaultValue: {
|
206
209
|
type: import("vue").PropType<AnyObject[]>;
|
210
|
+
default: () => never[];
|
207
211
|
};
|
208
212
|
}>> & {
|
209
213
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
210
214
|
}, {
|
215
|
+
defaultValue: AnyObject[];
|
211
216
|
mode: string;
|
212
217
|
title: string;
|
213
218
|
disabledIds: string[];
|