cnhis-design-vue 3.2.6-beta.7 → 3.2.6-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  3. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  4. package/es/components/iho-chat/index.d.ts +57 -27
  5. package/es/components/iho-chat/src/Index.vue.d.ts +58 -27
  6. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  7. package/es/components/iho-chat/src/api/index.js +1 -1
  8. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
  9. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +9 -26
  10. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  11. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +2 -2
  12. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  13. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +3 -2
  14. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  15. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -1
  16. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +10 -3
  17. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  18. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  19. package/es/components/iho-chat/src/components/Video.vue.d.ts +30 -25
  20. package/es/components/iho-chat/src/components/Video.vue.js +1 -0
  21. package/es/components/iho-chat/src/components/Video.vue2.js +1 -0
  22. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  23. package/es/components/iho-chat/src/types/index.d.ts +2 -0
  24. package/es/components/iho-chat/src/utils/index.d.ts +1 -1
  25. package/es/components/iho-chat/src/utils/index.js +1 -1
  26. package/es/components/iho-chat/style/index.css +1 -1
  27. package/es/components/index.css +1 -1
  28. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  29. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  30. package/es/env.d.ts +25 -25
  31. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  32. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  33. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  34. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  35. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  36. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  37. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  38. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  39. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  40. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  41. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  42. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  43. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  44. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  45. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  46. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  47. package/es/shared/assets/img/failure.png.js +1 -1
  48. package/es/shared/assets/img/no-permission.png.js +1 -1
  49. package/es/shared/assets/img/nodata.png.js +1 -1
  50. package/es/shared/assets/img/notfound.png.js +1 -1
  51. package/es/shared/assets/img/qr.png.js +1 -1
  52. package/es/shared/assets/img/success.png.js +1 -1
  53. package/es/shared/assets/img/table_style_2.png.js +1 -1
  54. package/es/shared/assets/img/video.png.js +1 -1
  55. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  56. package/es/shared/assets/img/xb_big.png.js +1 -1
  57. package/es/shared/assets/img/xb_small.png.js +1 -1
  58. package/es/shared/package.json.js +1 -1
  59. package/package.json +2 -2
  60. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  61. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  62. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  63. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  64. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  65. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  66. package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -175,6 +175,9 @@ declare const _default: import("vue").DefineComponent<{
175
175
  modelValue: unknown[];
176
176
  componentData: Record<string, any>;
177
177
  } & {
178
+ /**
179
+ * 改变弹窗大小
180
+ */
178
181
  itemKey?: string | Function | undefined;
179
182
  }>, {
180
183
  move: Function;
@@ -725,8 +725,8 @@ declare const _default: import("vue").DefineComponent<{
725
725
  showSeq: boolean;
726
726
  footerFlag: boolean;
727
727
  fieldDescribeMode: "column" | "tooltip";
728
- showSearch: boolean;
729
728
  customColumns: FieldSetColumnItem[];
729
+ showSearch: boolean;
730
730
  showSortPriority: boolean;
731
731
  showHeadFilter: boolean;
732
732
  }>;
@@ -42,7 +42,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
42
42
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
43
43
  loading: import("vue").Ref<boolean>;
44
44
  stompClient: import("vue").Ref<import("./src/utils/chatSock").ChatSock | undefined>;
45
- showAv: import("vue").Ref<boolean>;
46
45
  state: {
47
46
  orgId: string | number;
48
47
  currentSessionItem: import("../../shared/types").AnyObject;
@@ -56,6 +55,8 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
56
55
  updateSessionItem: import("../../shared/types").AnyObject;
57
56
  isUpdateSession: boolean;
58
57
  currentReferenceMsg: import("../../shared/types").AnyObject | null;
58
+ showVideo: boolean;
59
+ currentAVMsg: import("../../shared/types").AnyObject;
59
60
  };
60
61
  reConnention: number;
61
62
  openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
@@ -268,7 +269,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
268
269
  fileRef: import("vue").Ref<any>;
269
270
  keyword: import("vue").Ref<any>;
270
271
  handleInput: () => void;
271
- currentInfo: {
272
+ pageInfo: {
272
273
  page: number;
273
274
  hasMore: boolean;
274
275
  lastSendTime: string;
@@ -325,7 +326,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
325
326
  startTime: import("vue").Ref<any>;
326
327
  endTime: import("vue").Ref<any>;
327
328
  handleInput: () => void;
328
- currentInfo: {
329
+ pageInfo: {
329
330
  page: number;
330
331
  hasMore: boolean;
331
332
  lastSendTime: string;
@@ -443,7 +444,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
443
444
  setMsgList: (list?: import("../../shared/types").AnyObject[]) => void;
444
445
  setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
445
446
  showMenu: import("vue").Ref<boolean>;
446
- currentInfo: {
447
+ pageInfo: {
447
448
  page: number;
448
449
  hasMore: boolean;
449
450
  lastSendTime: string;
@@ -619,30 +620,18 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
619
620
  formatTime: typeof import("./src/utils").formatTime;
620
621
  downloadFile: typeof import("./src/utils").downloadFile;
621
622
  simplifyMessage: typeof import("./src/utils").simplifyMessage;
623
+ isAudioOrVideoMessage: typeof import("./src/utils").isAudioOrVideoMessage;
622
624
  MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
623
625
  ChatbubbleEllipsesOutline: 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<{}>>, {}>;
624
626
  EllipsisHorizontal: 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<{}>>, {}>;
625
627
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
626
- ChatFooter: import("vue").DefineComponent<{
627
- showAv: {
628
- type: BooleanConstructor;
629
- default: boolean;
630
- };
631
- }, {
632
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
633
- showAv: {
634
- type: BooleanConstructor;
635
- default: boolean;
636
- };
637
- }>> & {}>>;
628
+ ChatFooter: import("vue").DefineComponent<{}, {
638
629
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
639
630
  content: import("vue").Ref<string>;
640
631
  state: import("./src/types").IState;
641
632
  stompClient: import("vue").Ref<import("./src/utils/chatSock").ChatSock>;
642
633
  setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
643
634
  showEmoji: import("vue").Ref<boolean>;
644
- showVideo: import("vue").Ref<boolean>;
645
- callMode: import("vue").Ref<string>;
646
635
  handleCall: (chatMessageType: string) => void;
647
636
  handleKeyDown: (event: KeyboardEvent) => void;
648
637
  isWrap: (event: KeyboardEvent) => boolean;
@@ -666,25 +655,26 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
666
655
  };
667
656
  MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
668
657
  CloseCircleOutline: 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<{}>>, {}>;
658
+ CallOutline: 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<{}>>, {}>;
659
+ VideocamOutline: 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<{}>>, {}>;
669
660
  simplifyMessage: typeof import("./src/utils").simplifyMessage;
670
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
671
- showAv: {
672
- type: BooleanConstructor;
673
- default: boolean;
674
- };
675
- }>>, {
676
- showAv: boolean;
677
- }>;
661
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
678
662
  ChatSearch: import("vue").DefineComponent<{}, {
679
663
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
664
+ listRef: import("vue").Ref<any>;
680
665
  inputRef: import("vue").Ref<any>;
681
666
  showSearch: import("vue").Ref<boolean>;
682
667
  keyword: import("vue").Ref<any>;
683
668
  userList: import("vue").Ref<any>;
684
669
  state: import("./src/types").IState;
685
670
  openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
686
- handleInput: () => Promise<void>;
671
+ pageInfo: {
672
+ page: number;
673
+ hasMore: boolean;
674
+ };
675
+ handleInput: () => void;
687
676
  handleSearch: () => Promise<void>;
677
+ resetAndSearch: () => void;
688
678
  addSession: (userId: string) => Promise<void>;
689
679
  NPopover: any;
690
680
  NButton: any;
@@ -693,6 +683,46 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
693
683
  NIcon: any;
694
684
  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<{}>>, {}>;
695
685
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
686
+ Video: import("vue").DefineComponent<{}, {
687
+ time: {
688
+ timer: any;
689
+ seconds: number;
690
+ };
691
+ state: import("./src/types").IState;
692
+ videoRef: import("vue").Ref<any>;
693
+ selfVideoRef: import("vue").Ref<any>;
694
+ tipContent: import("vue").Ref<any>;
695
+ isConnect: import("vue").Ref<boolean>;
696
+ voiceOpen: import("vue").Ref<boolean>;
697
+ messageType: import("vue").ComputedRef<any>;
698
+ callMode: import("vue").ComputedRef<any>;
699
+ info: import("vue").ComputedRef<{
700
+ sessionKey: any;
701
+ avatar: any;
702
+ name: any;
703
+ userId: any;
704
+ }>;
705
+ trtc: import("trtc-sdk-v5").default;
706
+ handleEnter: () => Promise<void>;
707
+ handleExit: () => Promise<void>;
708
+ installEventHandlers: () => void;
709
+ uninstallEventHandlers: () => void;
710
+ handleRemoteVideoAvailable: (event: any) => Promise<void>;
711
+ handleRemoteAudioAvailable: (event: any) => void;
712
+ handleRemoteUserEnter: () => void;
713
+ handleRemoteUserExit: (event: any) => void;
714
+ startTimer: () => void;
715
+ resetTimer: () => void;
716
+ formatSeconds: (seconds: number) => string;
717
+ toggleAudio: () => Promise<void>;
718
+ NButton: any;
719
+ NAvatar: any;
720
+ NIcon: any;
721
+ Call: 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<{}>>, {}>;
722
+ MicOffCircle: 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<{}>>, {}>;
723
+ Mic: 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<{}>>, {}>;
724
+ MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
725
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
696
726
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "unread-message-update")[], "template-click" | "unread-message-update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
697
727
  token: {
698
728
  type: StringConstructor;
@@ -3,6 +3,7 @@ import { ChatSock } from './utils/chatSock';
3
3
  import { AnyObject } from '../../../shared/types';
4
4
  import { MESSAGE_TYPE } from './constants';
5
5
  import { IState } from './types';
6
+ import { isAudioOrVideoMessage } from './utils';
6
7
  declare const _default: import("vue").DefineComponent<{
7
8
  token: {
8
9
  type: StringConstructor;
@@ -46,7 +47,6 @@ declare const _default: import("vue").DefineComponent<{
46
47
  cssVars: import("vue").ComputedRef<AnyObject>;
47
48
  loading: import("vue").Ref<boolean>;
48
49
  stompClient: import("vue").Ref<ChatSock | undefined>;
49
- showAv: import("vue").Ref<boolean>;
50
50
  state: {
51
51
  orgId: string | number;
52
52
  currentSessionItem: AnyObject;
@@ -60,6 +60,8 @@ declare const _default: import("vue").DefineComponent<{
60
60
  updateSessionItem: AnyObject;
61
61
  isUpdateSession: boolean;
62
62
  currentReferenceMsg: AnyObject | null;
63
+ showVideo: boolean;
64
+ currentAVMsg: AnyObject;
63
65
  };
64
66
  reConnention: number;
65
67
  openSession: (item: AnyObject) => Promise<void>;
@@ -272,7 +274,7 @@ declare const _default: import("vue").DefineComponent<{
272
274
  fileRef: import("vue").Ref<any>;
273
275
  keyword: import("vue").Ref<any>;
274
276
  handleInput: () => void;
275
- currentInfo: {
277
+ pageInfo: {
276
278
  page: number;
277
279
  hasMore: boolean;
278
280
  lastSendTime: string;
@@ -329,7 +331,7 @@ declare const _default: import("vue").DefineComponent<{
329
331
  startTime: import("vue").Ref<any>;
330
332
  endTime: import("vue").Ref<any>;
331
333
  handleInput: () => void;
332
- currentInfo: {
334
+ pageInfo: {
333
335
  page: number;
334
336
  hasMore: boolean;
335
337
  lastSendTime: string;
@@ -447,7 +449,7 @@ declare const _default: import("vue").DefineComponent<{
447
449
  setMsgList: (list?: AnyObject[]) => void;
448
450
  setCurrentSessionItem: (item: AnyObject) => void;
449
451
  showMenu: import("vue").Ref<boolean>;
450
- currentInfo: {
452
+ pageInfo: {
451
453
  page: number;
452
454
  hasMore: boolean;
453
455
  lastSendTime: string;
@@ -623,30 +625,18 @@ declare const _default: import("vue").DefineComponent<{
623
625
  formatTime: typeof import("./utils").formatTime;
624
626
  downloadFile: typeof import("./utils").downloadFile;
625
627
  simplifyMessage: typeof import("./utils").simplifyMessage;
628
+ isAudioOrVideoMessage: typeof isAudioOrVideoMessage;
626
629
  MESSAGE_TYPE: typeof MESSAGE_TYPE;
627
630
  ChatbubbleEllipsesOutline: 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<{}>>, {}>;
628
631
  EllipsisHorizontal: 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<{}>>, {}>;
629
632
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
630
- ChatFooter: import("vue").DefineComponent<{
631
- showAv: {
632
- type: BooleanConstructor;
633
- default: boolean;
634
- };
635
- }, {
636
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
637
- showAv: {
638
- type: BooleanConstructor;
639
- default: boolean;
640
- };
641
- }>> & {}>>;
633
+ ChatFooter: import("vue").DefineComponent<{}, {
642
634
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
643
635
  content: import("vue").Ref<string>;
644
636
  state: IState;
645
637
  stompClient: import("vue").Ref<ChatSock>;
646
638
  setCurrentSessionItem: (item: AnyObject) => void;
647
639
  showEmoji: import("vue").Ref<boolean>;
648
- showVideo: import("vue").Ref<boolean>;
649
- callMode: import("vue").Ref<string>;
650
640
  handleCall: (chatMessageType: string) => void;
651
641
  handleKeyDown: (event: KeyboardEvent) => void;
652
642
  isWrap: (event: KeyboardEvent) => boolean;
@@ -670,25 +660,26 @@ declare const _default: import("vue").DefineComponent<{
670
660
  };
671
661
  MESSAGE_TYPE: typeof MESSAGE_TYPE;
672
662
  CloseCircleOutline: 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<{}>>, {}>;
663
+ CallOutline: 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<{}>>, {}>;
664
+ VideocamOutline: 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<{}>>, {}>;
673
665
  simplifyMessage: typeof import("./utils").simplifyMessage;
674
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
675
- showAv: {
676
- type: BooleanConstructor;
677
- default: boolean;
678
- };
679
- }>>, {
680
- showAv: boolean;
681
- }>;
666
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
682
667
  ChatSearch: import("vue").DefineComponent<{}, {
683
668
  cssVars: import("vue").ComputedRef<AnyObject>;
669
+ listRef: import("vue").Ref<any>;
684
670
  inputRef: import("vue").Ref<any>;
685
671
  showSearch: import("vue").Ref<boolean>;
686
672
  keyword: import("vue").Ref<any>;
687
673
  userList: import("vue").Ref<any>;
688
674
  state: IState;
689
675
  openSession: (item: AnyObject) => Promise<void>;
690
- handleInput: () => Promise<void>;
676
+ pageInfo: {
677
+ page: number;
678
+ hasMore: boolean;
679
+ };
680
+ handleInput: () => void;
691
681
  handleSearch: () => Promise<void>;
682
+ resetAndSearch: () => void;
692
683
  addSession: (userId: string) => Promise<void>;
693
684
  NPopover: any;
694
685
  NButton: any;
@@ -697,6 +688,46 @@ declare const _default: import("vue").DefineComponent<{
697
688
  NIcon: any;
698
689
  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<{}>>, {}>;
699
690
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
691
+ Video: import("vue").DefineComponent<{}, {
692
+ time: {
693
+ timer: any;
694
+ seconds: number;
695
+ };
696
+ state: IState;
697
+ videoRef: import("vue").Ref<any>;
698
+ selfVideoRef: import("vue").Ref<any>;
699
+ tipContent: import("vue").Ref<any>;
700
+ isConnect: import("vue").Ref<boolean>;
701
+ voiceOpen: import("vue").Ref<boolean>;
702
+ messageType: import("vue").ComputedRef<any>;
703
+ callMode: import("vue").ComputedRef<any>;
704
+ info: import("vue").ComputedRef<{
705
+ sessionKey: any;
706
+ avatar: any;
707
+ name: any;
708
+ userId: any;
709
+ }>;
710
+ trtc: import("trtc-sdk-v5").default;
711
+ handleEnter: () => Promise<void>;
712
+ handleExit: () => Promise<void>;
713
+ installEventHandlers: () => void;
714
+ uninstallEventHandlers: () => void;
715
+ handleRemoteVideoAvailable: (event: any) => Promise<void>;
716
+ handleRemoteAudioAvailable: (event: any) => void;
717
+ handleRemoteUserEnter: () => void;
718
+ handleRemoteUserExit: (event: any) => void;
719
+ startTimer: () => void;
720
+ resetTimer: () => void;
721
+ formatSeconds: (seconds: number) => string;
722
+ toggleAudio: () => Promise<void>;
723
+ NButton: any;
724
+ NAvatar: any;
725
+ NIcon: any;
726
+ Call: 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<{}>>, {}>;
727
+ MicOffCircle: 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<{}>>, {}>;
728
+ Mic: 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<{}>>, {}>;
729
+ MESSAGE_TYPE: typeof MESSAGE_TYPE;
730
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
700
731
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "unread-message-update")[], "template-click" | "unread-message-update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
701
732
  token: {
702
733
  type: StringConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as r,openBlock as n,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as u,withCtx as d,createBlock as m,Fragment as p,createElementVNode as l,renderSlot as h}from"vue";import{NConfigProvider as f,NSpin as v,NLayout as S,NLayoutContent as g}from"naive-ui";import b from"./components/SiderList.vue.js";import I from"./components/ChatHeader.vue.js";import y from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import j from"./components/ChatSearch.vue.js";import{ChatSock as _}from"./utils/chatSock.js";import{instanceAxios as C,readMessageApi as L}from"./api/index.js";import{useTheme as N}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as x}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{SUBSCRIBE_MESSAGE_TYPE as M}from"./constants/index.js";import{InjectionIChatState as U,InjectionIChatStompClient as T,InjectionIChatEmits as w}from"./types/index.js";import{isAudioOrVideo as A}from"./utils/index.js";import{useSession as E}from"./hooks/useSession.js";const O={class:"iho-chat__header"},R={class:"toolbar"};var V=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"}},emits:["template-click","unread-message-update"],setup(e,{expose:V,emit:q}){const J=e;C.defaults.baseURL=J.baseURL,C.defaults.headers.Authorization="bearer "+J.token;const F=N(),G=s(!1),H=s(),$=s(!1),z=o({orgId:J.orgId,currentSessionItem:{},id:"",userInfo:{id:J.userId,sdkAppId:1600034888},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1,currentReferenceMsg:null});t(U,z),t(T,H),t(w,q);const{openSession:D,closeSession:W,getCurrentSession:B,setSessionList:K,setUpdateSessionItem:P}=E(z);function Q(){const e={headers:{AccessToken:J.token,UserId:J.userId},heartbeatFn(){try{H.value.send("test")}catch(e){H.value.disconnect(),Q()}},connectCb(){console.log("连接成功"),H.value.subscribe("/user/topic/single",(async({body:e})=>{try{console.log(JSON.parse(e),"订阅新增消息");const s=JSON.parse(e),{messageVo:o,sessionVo:t}=s;switch(s.event){case M.MESSAGE:{if(s.messageVo.sender===z.userInfo.id)return;const e={receiver:o.sender,lastMessageSendTime:o.sendTime,sortTime:o.sendTime,lastMessage:o.content};o.sender===z.currentSessionItem.receiver&&(z.currentMsg=o,A(o.content)||(z.isAppendMsg=!0,await L({chatType:"SINGLE",messageIdSet:o.id,receiver:z.userInfo.id,sender:o.sender})),e.unreadNum=0),P(e),A(o.content)&&($.value=!0);break}case M.NEW_SESSION:P(t)}}catch(e){console.log(e)}})),H.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{currentUser:o,sessionVos:t}=s;if(console.log("body",s),Object.assign(z.userInfo,o),!(null==t?void 0:t.length))return;K(t)}catch(e){console.log(e)}}))},errorCb(e,s){console.log("断线了,正在重连...")}};H.value=new _("/fdp-chat/websocket",e)}return async function(){Q()}(),r((()=>{var e;null==(e=H.value)||e.disconnect()})),V({getUnreadData:function(){return z.sessionList.filter((e=>x(e.unreadNum)&&e.unreadNum>0))},openSession:D,closeSession:W,getCurrentSession:B}),(e,s)=>(n(),i("div",{class:"iho-chat",style:a(c(F))},[u(c(f),{abstract:"",namespace:"iho-chat__popover"},{default:d((()=>[G.value?(n(),m(c(v),{key:0,stroke:"#5585f5"})):(n(),i(p,{key:1},[l("div",O,[u(j),l("div",R,[h(e.$slots,"toolbar")])]),u(c(S),{class:"iho-chat__body","has-sider":""},{default:d((()=>[u(b),u(c(g),{class:"chat-content"},{default:d((()=>[u(I),u(y),u(k,{"show-av":$.value},null,8,["show-av"])])),_:1}),h(e.$slots,"external")])),_:3})],64))])),_:3})],4))}});export{V as default};
1
+ import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as r,openBlock as n,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as d,withCtx as u,createBlock as m,Fragment as p,createElementVNode as l,renderSlot as h}from"vue";import{NConfigProvider as f,NSpin as g,NLayout as v,NLayoutContent as S}from"naive-ui";import b from"./components/SiderList.vue.js";import y from"./components/ChatHeader.vue.js";import I from"./components/ChatMain.vue.js";import j from"./components/ChatFooter.vue.js";import k from"./components/ChatSearch.vue.js";import M from"./components/Video.vue.js";import{ChatSock as _}from"./utils/chatSock.js";import{instanceAxios as N,readMessageApi as C}from"./api/index.js";import{useTheme as L}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as V}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{SUBSCRIBE_MESSAGE_TYPE as x}from"./constants/index.js";import{InjectionIChatState as A,InjectionIChatStompClient as T,InjectionIChatEmits as U}from"./types/index.js";import{isAudioOrVideoMessage as w}from"./utils/index.js";import{useSession as E}from"./hooks/useSession.js";const O={class:"iho-chat__header"},R={class:"toolbar"};var q=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"}},emits:["template-click","unread-message-update"],setup(e,{expose:q,emit:J}){const F=e;N.defaults.baseURL=F.baseURL,N.defaults.headers.Authorization="bearer "+F.token;const G=L(),H=s(!1),K=s(),$=o({orgId:F.orgId,currentSessionItem:{},id:"",userInfo:{id:F.userId},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1,currentReferenceMsg:null,showVideo:!1,currentAVMsg:{}});t(A,$),t(T,K),t(U,J);const{openSession:z,closeSession:D,getCurrentSession:W,setSessionList:B,setUpdateSessionItem:P}=E($);function Q(){const e={headers:{AccessToken:F.token,UserId:F.userId},heartbeatFn(){try{K.value.send("test")}catch(e){K.value.disconnect(),Q()}},connectCb(){console.log("连接成功"),K.value.subscribe("/user/topic/single",(async({body:e})=>{try{console.log(JSON.parse(e),"订阅新增消息");const s=JSON.parse(e),{messageVo:o,sessionVo:t}=s;switch(s.event){case x.MESSAGE:{if(s.messageVo.sender===$.userInfo.id)return;const e={receiver:o.sender,lastMessageSendTime:o.sendTime,sortTime:o.sendTime,lastMessage:o.content,avatar:o.senderAvatar,name:o.senderName,sessionKey:o.sessionKey};o.sender===$.currentSessionItem.receiver&&($.currentMsg=o,w(o.content)||($.isAppendMsg=!0,await C({chatType:"SINGLE",messageIdSet:[o.id],receiver:$.userInfo.id,sender:o.sender})),e.unreadNum=0),P(e),w(o.content)&&($.currentAVMsg.messageType=o.content.chatMessageType,$.currentAVMsg.callMode="invite",$.showVideo=!0);break}case x.NEW_SESSION:P(t)}}catch(e){console.log(e)}})),K.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{authentication:o,currentUser:t,sessionVos:r}=s;if(console.log("body",s),Object.assign($.userInfo,t,o),!(null==r?void 0:r.length))return;B(r)}catch(e){console.log(e)}}))},errorCb(e,s){console.log("断线了,正在重连...")}};K.value=new _("/fdp-chat/websocket",e)}return async function(){Q()}(),r((()=>{var e;null==(e=K.value)||e.disconnect()})),q({getUnreadData:function(){return $.sessionList.filter((e=>V(e.unreadNum)&&e.unreadNum>0))},openSession:z,closeSession:D,getCurrentSession:W}),(e,s)=>(n(),i("div",{class:"iho-chat",style:a(c(G))},[d(c(f),{abstract:"",namespace:"iho-chat__popover"},{default:u((()=>[H.value?(n(),m(c(g),{key:0,stroke:"#5585f5"})):(n(),i(p,{key:1},[l("div",O,[d(k),l("div",R,[h(e.$slots,"toolbar")])]),d(c(v),{class:"iho-chat__body","has-sider":""},{default:u((()=>[d(b),d(c(S),{class:"chat-content"},{default:u((()=>[d(y),d(I),d(j)])),_:1}),h(e.$slots,"external")])),_:3}),d(M)],64))])),_:3})],4))}});export{q as default};
@@ -1 +1 @@
1
- import t from"axios";function e(t){const e=[];for(const o in t){const n=t[o];Array.isArray(n)?n.forEach((t=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(t)}`)})):e.push(`${encodeURIComponent(o)}=${encodeURIComponent(n)}`)}return e.join("&")}const o=t.create({withCredentials:!0,timeout:5e3});function n(t){return o({headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",url:"/chat/openSession",data:e(t)})}function r(t){return o({method:"get",url:"/chat/recordList",params:t})}function a(t){return o({headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",url:"/chat/toppingSession",data:e(t)})}function u(t){return o({headers:{"Content-Type":"multipart/form-data"},method:"post",url:"/chat/uploadFile",data:t})}function s(t){return o({method:"get",url:"/user/listUser",params:t})}function d(t){return o({method:"get",url:"/user/getUserDetail",params:t})}function c(t){return o({method:"post",url:"/chat/readMessage",data:t})}function i(t){return o({method:"post",url:"/chat/searchChatRecord",data:t})}o.interceptors.response.use((t=>{var e,o;if(null==(e=t.data)?void 0:e.result)return null==(o=t.data)?void 0:o.data;console.log("请求错误")}));export{r as getHistoryRecordApi,d as getUserDetailApi,o as instanceAxios,s as listUserApi,n as openSessionApi,c as readMessageApi,i as searchChatRecordApi,a as toppingSessionApi,u as uploadFileApi};
1
+ import t from"axios";function e(t){const e=[];for(const o in t){const n=t[o];Array.isArray(n)?n.forEach((t=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(t)}`)})):e.push(`${encodeURIComponent(o)}=${encodeURIComponent(n)}`)}return e.join("&")}const o=t.create({withCredentials:!0,timeout:5e3});function n(t){return o({headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",url:"/session/openSession",data:e(t)})}function r(t){return o({method:"get",url:"/chat/recordList",params:t})}function a(t){return o({headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",url:"/session/toppingSession",data:e(t)})}function s(t){return o({headers:{"Content-Type":"multipart/form-data"},method:"post",url:"/chat/uploadFile",data:t})}function u(t){return o({method:"get",url:"/user/listUser",params:t})}function d(t){return o({method:"get",url:"/user/getUserDetail",params:t})}function i(t){return o({method:"post",url:"/chat/readMessage",data:t})}function c(t){return o({method:"post",url:"/chat/searchChatRecord",data:t})}o.interceptors.response.use((t=>{var e,o;if(null==(e=t.data)?void 0:e.result)return null==(o=t.data)?void 0:o.data;console.log("请求错误")}));export{r as getHistoryRecordApi,d as getUserDetailApi,o as instanceAxios,u as listUserApi,n as openSessionApi,i as readMessageApi,c as searchChatRecordApi,a as toppingSessionApi,s as uploadFileApi};
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  fileRef: import("vue").Ref<any>;
27
27
  keyword: import("vue").Ref<any>;
28
28
  handleInput: () => void;
29
- currentInfo: {
29
+ pageInfo: {
30
30
  page: number;
31
31
  hasMore: boolean;
32
32
  lastSendTime: string;
@@ -2,35 +2,23 @@ import { UploadFileInfo } from 'naive-ui';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  import { MESSAGE_TYPE } from '../constants';
4
4
  import { simplifyMessage } from '../utils';
5
- declare const _default: import("vue").DefineComponent<{
6
- showAv: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- }, {
11
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
- showAv: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- }>> & {}>>;
5
+ type FileOptions = {
6
+ file: UploadFileInfo;
7
+ fileList: Array<UploadFileInfo>;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<{}, {
17
10
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
18
11
  content: import("vue").Ref<string>;
19
12
  state: import("../types").IState;
20
13
  stompClient: import("vue").Ref<import("../utils/chatSock").ChatSock>;
21
14
  setCurrentSessionItem: (item: AnyObject) => void;
22
15
  showEmoji: import("vue").Ref<boolean>;
23
- showVideo: import("vue").Ref<boolean>;
24
- callMode: import("vue").Ref<string>;
25
16
  handleCall: (chatMessageType: string) => void;
26
17
  handleKeyDown: (event: KeyboardEvent) => void;
27
18
  isWrap: (event: KeyboardEvent) => boolean;
28
19
  handleInput: () => void;
29
20
  selectEmoji: (name: string) => void;
30
- fileChange: (options: {
31
- file: UploadFileInfo;
32
- fileList: Array<UploadFileInfo>;
33
- }, chatMessageType: MESSAGE_TYPE) => Promise<void>;
21
+ fileChange: (options: FileOptions, chatMessageType: MESSAGE_TYPE) => Promise<void>;
34
22
  handleMsgSend: () => void;
35
23
  sendMessage: (contentInfo: AnyObject) => Promise<void>;
36
24
  NButton: any;
@@ -45,13 +33,8 @@ declare const _default: import("vue").DefineComponent<{
45
33
  };
46
34
  MESSAGE_TYPE: typeof MESSAGE_TYPE;
47
35
  CloseCircleOutline: 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<{}>>, {}>;
36
+ CallOutline: 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<{}>>, {}>;
37
+ VideocamOutline: 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<{}>>, {}>;
48
38
  simplifyMessage: typeof simplifyMessage;
49
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
- showAv: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
54
- }>>, {
55
- showAv: boolean;
56
- }>;
39
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
57
40
  export default _default;