cnhis-design-vue 3.3.1-beta.13 → 3.3.1-beta.15

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 (100) hide show
  1. package/README.md +87 -87
  2. package/es/components/ai-chat/index.d.ts +141 -11
  3. package/es/components/ai-chat/src/Index.vue.d.ts +141 -11
  4. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  5. package/es/components/ai-chat/src/api/index.d.ts +5 -0
  6. package/es/components/ai-chat/src/api/index.js +1 -0
  7. package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +43 -0
  8. package/es/components/ai-chat/src/components/ChatAudio.vue.js +1 -0
  9. package/es/components/ai-chat/src/components/ChatAudio.vue2.js +1 -0
  10. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +46 -1
  11. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  12. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  13. package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +2 -0
  14. package/es/components/ai-chat/src/components/ChatMainDefault.js +1 -0
  15. package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +53 -0
  16. package/es/components/ai-chat/src/components/ChatRight.vue.js +1 -0
  17. package/es/components/ai-chat/src/components/ChatRight.vue2.js +1 -0
  18. package/es/components/ai-chat/src/components/card/JsonCard.d.ts +25 -0
  19. package/es/components/ai-chat/src/components/card/JsonCard.js +1 -0
  20. package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +14 -0
  21. package/es/components/ai-chat/src/components/card/SelectIcon.js +1 -0
  22. package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +2 -0
  23. package/es/components/ai-chat/src/hooks/useWebsocket.js +1 -0
  24. package/es/components/ai-chat/src/utils/index.d.ts +1 -0
  25. package/es/components/ai-chat/src/utils/index.js +1 -1
  26. package/es/components/ai-chat/style/index.css +1 -1
  27. package/es/components/audio-sdk/src/audioSDK.d.ts +2 -1
  28. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  29. package/es/components/card-render/src/components/index.d.ts +23 -23
  30. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  31. package/es/components/editor/src/Editor.js +1 -1
  32. package/es/components/editor/style/index.css +1 -0
  33. package/es/components/iho-chat/index.d.ts +46 -0
  34. package/es/components/iho-chat/src/Index.vue.d.ts +46 -0
  35. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +6 -0
  36. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  37. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +6 -0
  38. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  39. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +5 -0
  40. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +22 -0
  41. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +5 -0
  42. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +4 -0
  43. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  44. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  45. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +8 -0
  46. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  47. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +5 -0
  48. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +3 -0
  49. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  50. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -1
  51. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  52. package/es/components/iho-chat/src/constants/index.d.ts +7 -0
  53. package/es/components/iho-chat/src/constants/index.js +1 -1
  54. package/es/components/iho-chat/src/utils/index.d.ts +2 -0
  55. package/es/components/iho-chat/src/utils/index.js +1 -1
  56. package/es/components/iho-chat/style/index.css +1 -1
  57. package/es/components/index.css +1 -1
  58. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  59. package/es/env.d.ts +25 -25
  60. package/es/shared/assets/img/ai__avatar.png.js +1 -1
  61. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  62. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  63. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  64. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  65. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  66. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  67. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  68. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  69. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  70. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  71. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  72. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  73. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  74. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  75. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  76. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  77. package/es/shared/assets/img/failure.png.js +1 -1
  78. package/es/shared/assets/img/file-emr.png.js +1 -0
  79. package/es/shared/assets/img/file.png.js +1 -0
  80. package/es/shared/assets/img/logo.png.js +1 -1
  81. package/es/shared/assets/img/no-permission.png.js +1 -1
  82. package/es/shared/assets/img/nodata.png.js +1 -1
  83. package/es/shared/assets/img/notfound.png.js +1 -1
  84. package/es/shared/assets/img/qr.png.js +1 -1
  85. package/es/shared/assets/img/success.png.js +1 -1
  86. package/es/shared/assets/img/table_style_2.png.js +1 -1
  87. package/es/shared/assets/img/use.png.js +1 -0
  88. package/es/shared/assets/img/video.png.js +1 -1
  89. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  90. package/es/shared/assets/img/xb_big.png.js +1 -1
  91. package/es/shared/assets/img/xb_small.png.js +1 -1
  92. package/es/shared/package.json.js +1 -1
  93. package/package.json +2 -2
  94. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  95. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  96. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  97. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  98. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  99. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  100. 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
+ ```
@@ -15,17 +15,16 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
15
15
  };
16
16
  queryData: {
17
17
  type: import("vue").PropType<import("./src/types").QueryData>;
18
- reuired: boolean;
19
18
  };
20
19
  queryRecord: {
21
20
  type: import("vue").PropType<import("./src/types").QueryRecord>;
22
- reuired: boolean;
23
21
  };
24
22
  hideInput: {
25
23
  type: BooleanConstructor;
26
24
  };
27
25
  uiStyle: {
28
26
  type: StringConstructor;
27
+ default: string;
29
28
  };
30
29
  audioTimed: {
31
30
  type: NumberConstructor;
@@ -49,6 +48,16 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
49
48
  appId: {
50
49
  type: StringConstructor;
51
50
  };
51
+ orgId: {
52
+ type: StringConstructor;
53
+ };
54
+ userId: {
55
+ type: StringConstructor;
56
+ };
57
+ immediatelyRecording: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
52
61
  }, {
53
62
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
54
63
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -67,17 +76,16 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
67
76
  };
68
77
  queryData: {
69
78
  type: import("vue").PropType<import("./src/types").QueryData>;
70
- reuired: boolean;
71
79
  };
72
80
  queryRecord: {
73
81
  type: import("vue").PropType<import("./src/types").QueryRecord>;
74
- reuired: boolean;
75
82
  };
76
83
  hideInput: {
77
84
  type: BooleanConstructor;
78
85
  };
79
86
  uiStyle: {
80
87
  type: StringConstructor;
88
+ default: string;
81
89
  };
82
90
  audioTimed: {
83
91
  type: NumberConstructor;
@@ -101,13 +109,25 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
101
109
  appId: {
102
110
  type: StringConstructor;
103
111
  };
112
+ orgId: {
113
+ type: StringConstructor;
114
+ };
115
+ userId: {
116
+ type: StringConstructor;
117
+ };
118
+ immediatelyRecording: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
104
122
  }>> & {
105
123
  "onButton-click"?: ((...args: any[]) => any) | undefined;
124
+ onProgram?: ((...args: any[]) => any) | undefined;
106
125
  }>>;
107
- axiosInstance: import("axios").AxiosInstance;
108
- emit: (event: "button-click", ...args: any[]) => void;
126
+ emit: (event: "button-click" | "program", ...args: any[]) => void;
109
127
  state: import("../../shared/types").AnyObject;
110
- NMessageProvider: any;
128
+ onClose: () => void;
129
+ NIcon: any;
130
+ NButton: any;
111
131
  ChatMain: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
112
132
  ChatFooter: import("vue").DefineComponent<{}, {
113
133
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
@@ -118,6 +138,8 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
118
138
  isSmall: any;
119
139
  audioTimed: any;
120
140
  commandList: any;
141
+ isDefault: any;
142
+ patientInfo: any;
121
143
  inputRef: import("vue").Ref<any>;
122
144
  showPopover: import("vue").Ref<boolean>;
123
145
  breadcrumb: import("vue").Ref<{
@@ -137,7 +159,9 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
137
159
  showPrompt: import("vue").Ref<boolean>;
138
160
  currentShortcutId: import("vue").Ref<string>;
139
161
  showPatient: import("vue").Ref<boolean>;
140
- placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
162
+ showAudio: import("vue").Ref<boolean>;
163
+ placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
164
+ isAllDisabled: import("vue").ComputedRef<any>;
141
165
  btnDisabled: import("vue").ComputedRef<any>;
142
166
  showMagicWand: import("vue").ComputedRef<boolean>;
143
167
  patient: import("vue").ComputedRef<string>;
@@ -263,8 +287,102 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
263
287
  }, {
264
288
  show: boolean;
265
289
  }>;
290
+ ChatAudio: import("vue").DefineComponent<{
291
+ show: {
292
+ type: BooleanConstructor;
293
+ };
294
+ }, {
295
+ audioSdk: import("..").CAudioSDK;
296
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
297
+ show: {
298
+ type: BooleanConstructor;
299
+ };
300
+ }>> & {
301
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
302
+ }>>;
303
+ emit: (event: "update:show", ...args: any[]) => void;
304
+ state: any;
305
+ vaa07: any;
306
+ immediatelyRecording: any;
307
+ time: import("vue").Ref<number>;
308
+ endType: string;
309
+ pause: import("@vueuse/shared").Fn;
310
+ resume: import("@vueuse/shared").Fn;
311
+ isActive: import("vue").Ref<boolean>;
312
+ tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
313
+ formattedTime: import("vue").ComputedRef<string>;
314
+ start: () => Promise<void>;
315
+ handlePause: () => void;
316
+ handlePlay: () => void;
317
+ handleEnd: (trigger?: string | undefined) => Promise<void>;
318
+ NSpace: any;
319
+ NButton: any;
320
+ NIcon: any;
321
+ StopCircleOutline: 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<{}>>, {}>;
322
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
323
+ show: {
324
+ type: BooleanConstructor;
325
+ };
326
+ }>> & {
327
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
328
+ }, {
329
+ show: boolean;
330
+ }>;
266
331
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
267
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
332
+ ChatRight: import("vue").DefineComponent<{}, {
333
+ medicalLabel: {
334
+ key: string;
335
+ title: string;
336
+ }[];
337
+ state: any;
338
+ patientInfo: any;
339
+ toolbarConfig: {
340
+ toolbarKeys: never[];
341
+ };
342
+ content: import("vue").Ref<string>;
343
+ handleSave: () => Promise<void>;
344
+ createMedicalRecord: () => void;
345
+ extractContentByTitle: () => import("../../shared/types").AnyObject;
346
+ NSpace: any;
347
+ NButton: any;
348
+ Editor: SFCWithInstall<import("vue").DefineComponent<{
349
+ editorConfig: {
350
+ type: ObjectConstructor;
351
+ };
352
+ toolbarConfig: {
353
+ type: ObjectConstructor;
354
+ };
355
+ uploadImgUrl: {
356
+ type: StringConstructor;
357
+ };
358
+ isDisabled: {
359
+ type: BooleanConstructor;
360
+ default: boolean;
361
+ };
362
+ }, {
363
+ editorRef: import("vue").ShallowRef<any>;
364
+ renderVN: () => JSX.Element;
365
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
366
+ editorConfig: {
367
+ type: ObjectConstructor;
368
+ };
369
+ toolbarConfig: {
370
+ type: ObjectConstructor;
371
+ };
372
+ uploadImgUrl: {
373
+ type: StringConstructor;
374
+ };
375
+ isDisabled: {
376
+ type: BooleanConstructor;
377
+ default: boolean;
378
+ };
379
+ }>> & {}, {
380
+ isDisabled: boolean;
381
+ }>>;
382
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
383
+ ChatMainDefault: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
384
+ CloseOutline: 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<{}>>, {}>;
385
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("button-click" | "program")[], "button-click" | "program", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
268
386
  token: {
269
387
  type: StringConstructor;
270
388
  required: true;
@@ -280,17 +398,16 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
280
398
  };
281
399
  queryData: {
282
400
  type: import("vue").PropType<import("./src/types").QueryData>;
283
- reuired: boolean;
284
401
  };
285
402
  queryRecord: {
286
403
  type: import("vue").PropType<import("./src/types").QueryRecord>;
287
- reuired: boolean;
288
404
  };
289
405
  hideInput: {
290
406
  type: BooleanConstructor;
291
407
  };
292
408
  uiStyle: {
293
409
  type: StringConstructor;
410
+ default: string;
294
411
  };
295
412
  audioTimed: {
296
413
  type: NumberConstructor;
@@ -314,10 +431,23 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
314
431
  appId: {
315
432
  type: StringConstructor;
316
433
  };
434
+ orgId: {
435
+ type: StringConstructor;
436
+ };
437
+ userId: {
438
+ type: StringConstructor;
439
+ };
440
+ immediatelyRecording: {
441
+ type: BooleanConstructor;
442
+ default: boolean;
443
+ };
317
444
  }>> & {
318
445
  "onButton-click"?: ((...args: any[]) => any) | undefined;
446
+ onProgram?: ((...args: any[]) => any) | undefined;
319
447
  }, {
320
448
  hideInput: boolean;
449
+ uiStyle: string;
321
450
  audioTimed: number;
451
+ immediatelyRecording: boolean;
322
452
  }>>;
323
453
  export default AiChat;
@@ -17,17 +17,16 @@ declare const _default: import("vue").DefineComponent<{
17
17
  };
18
18
  queryData: {
19
19
  type: PropType<QueryData>;
20
- reuired: boolean;
21
20
  };
22
21
  queryRecord: {
23
22
  type: PropType<QueryRecord>;
24
- reuired: boolean;
25
23
  };
26
24
  hideInput: {
27
25
  type: BooleanConstructor;
28
26
  };
29
27
  uiStyle: {
30
28
  type: StringConstructor;
29
+ default: string;
31
30
  };
32
31
  audioTimed: {
33
32
  type: NumberConstructor;
@@ -51,6 +50,16 @@ declare const _default: import("vue").DefineComponent<{
51
50
  appId: {
52
51
  type: StringConstructor;
53
52
  };
53
+ orgId: {
54
+ type: StringConstructor;
55
+ };
56
+ userId: {
57
+ type: StringConstructor;
58
+ };
59
+ immediatelyRecording: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
54
63
  }, {
55
64
  cssVars: import("vue").ComputedRef<AnyObject>;
56
65
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -69,17 +78,16 @@ declare const _default: import("vue").DefineComponent<{
69
78
  };
70
79
  queryData: {
71
80
  type: PropType<QueryData>;
72
- reuired: boolean;
73
81
  };
74
82
  queryRecord: {
75
83
  type: PropType<QueryRecord>;
76
- reuired: boolean;
77
84
  };
78
85
  hideInput: {
79
86
  type: BooleanConstructor;
80
87
  };
81
88
  uiStyle: {
82
89
  type: StringConstructor;
90
+ default: string;
83
91
  };
84
92
  audioTimed: {
85
93
  type: NumberConstructor;
@@ -103,13 +111,25 @@ declare const _default: import("vue").DefineComponent<{
103
111
  appId: {
104
112
  type: StringConstructor;
105
113
  };
114
+ orgId: {
115
+ type: StringConstructor;
116
+ };
117
+ userId: {
118
+ type: StringConstructor;
119
+ };
120
+ immediatelyRecording: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
106
124
  }>> & {
107
125
  "onButton-click"?: ((...args: any[]) => any) | undefined;
126
+ onProgram?: ((...args: any[]) => any) | undefined;
108
127
  }>>;
109
- axiosInstance: import("axios").AxiosInstance;
110
- emit: (event: "button-click", ...args: any[]) => void;
128
+ emit: (event: "button-click" | "program", ...args: any[]) => void;
111
129
  state: AnyObject;
112
- NMessageProvider: any;
130
+ onClose: () => void;
131
+ NIcon: any;
132
+ NButton: any;
113
133
  ChatMain: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
114
134
  ChatFooter: import("vue").DefineComponent<{}, {
115
135
  cssVars: import("vue").ComputedRef<AnyObject>;
@@ -120,6 +140,8 @@ declare const _default: import("vue").DefineComponent<{
120
140
  isSmall: any;
121
141
  audioTimed: any;
122
142
  commandList: any;
143
+ isDefault: any;
144
+ patientInfo: any;
123
145
  inputRef: import("vue").Ref<any>;
124
146
  showPopover: import("vue").Ref<boolean>;
125
147
  breadcrumb: import("vue").Ref<{
@@ -139,7 +161,9 @@ declare const _default: import("vue").DefineComponent<{
139
161
  showPrompt: import("vue").Ref<boolean>;
140
162
  currentShortcutId: import("vue").Ref<string>;
141
163
  showPatient: import("vue").Ref<boolean>;
142
- placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
164
+ showAudio: import("vue").Ref<boolean>;
165
+ placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
166
+ isAllDisabled: import("vue").ComputedRef<any>;
143
167
  btnDisabled: import("vue").ComputedRef<any>;
144
168
  showMagicWand: import("vue").ComputedRef<boolean>;
145
169
  patient: import("vue").ComputedRef<string>;
@@ -265,8 +289,102 @@ declare const _default: import("vue").DefineComponent<{
265
289
  }, {
266
290
  show: boolean;
267
291
  }>;
292
+ ChatAudio: import("vue").DefineComponent<{
293
+ show: {
294
+ type: BooleanConstructor;
295
+ };
296
+ }, {
297
+ audioSdk: import("../..").CAudioSDK;
298
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
299
+ show: {
300
+ type: BooleanConstructor;
301
+ };
302
+ }>> & {
303
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
304
+ }>>;
305
+ emit: (event: "update:show", ...args: any[]) => void;
306
+ state: any;
307
+ vaa07: any;
308
+ immediatelyRecording: any;
309
+ time: import("vue").Ref<number>;
310
+ endType: string;
311
+ pause: import("@vueuse/shared").Fn;
312
+ resume: import("@vueuse/shared").Fn;
313
+ isActive: import("vue").Ref<boolean>;
314
+ tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
315
+ formattedTime: import("vue").ComputedRef<string>;
316
+ start: () => Promise<void>;
317
+ handlePause: () => void;
318
+ handlePlay: () => void;
319
+ handleEnd: (trigger?: string | undefined) => Promise<void>;
320
+ NSpace: any;
321
+ NButton: any;
322
+ NIcon: any;
323
+ StopCircleOutline: 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<{}>>, {}>;
324
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
325
+ show: {
326
+ type: BooleanConstructor;
327
+ };
328
+ }>> & {
329
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
330
+ }, {
331
+ show: boolean;
332
+ }>;
268
333
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
269
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
334
+ ChatRight: import("vue").DefineComponent<{}, {
335
+ medicalLabel: {
336
+ key: string;
337
+ title: string;
338
+ }[];
339
+ state: any;
340
+ patientInfo: any;
341
+ toolbarConfig: {
342
+ toolbarKeys: never[];
343
+ };
344
+ content: import("vue").Ref<string>;
345
+ handleSave: () => Promise<void>;
346
+ createMedicalRecord: () => void;
347
+ extractContentByTitle: () => AnyObject;
348
+ NSpace: any;
349
+ NButton: any;
350
+ Editor: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
351
+ editorConfig: {
352
+ type: ObjectConstructor;
353
+ };
354
+ toolbarConfig: {
355
+ type: ObjectConstructor;
356
+ };
357
+ uploadImgUrl: {
358
+ type: StringConstructor;
359
+ };
360
+ isDisabled: {
361
+ type: BooleanConstructor;
362
+ default: boolean;
363
+ };
364
+ }, {
365
+ editorRef: import("vue").ShallowRef<any>;
366
+ renderVN: () => JSX.Element;
367
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
368
+ editorConfig: {
369
+ type: ObjectConstructor;
370
+ };
371
+ toolbarConfig: {
372
+ type: ObjectConstructor;
373
+ };
374
+ uploadImgUrl: {
375
+ type: StringConstructor;
376
+ };
377
+ isDisabled: {
378
+ type: BooleanConstructor;
379
+ default: boolean;
380
+ };
381
+ }>> & {}, {
382
+ isDisabled: boolean;
383
+ }>>;
384
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
385
+ ChatMainDefault: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
386
+ CloseOutline: 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<{}>>, {}>;
387
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("button-click" | "program")[], "button-click" | "program", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
270
388
  token: {
271
389
  type: StringConstructor;
272
390
  required: true;
@@ -282,17 +400,16 @@ declare const _default: import("vue").DefineComponent<{
282
400
  };
283
401
  queryData: {
284
402
  type: PropType<QueryData>;
285
- reuired: boolean;
286
403
  };
287
404
  queryRecord: {
288
405
  type: PropType<QueryRecord>;
289
- reuired: boolean;
290
406
  };
291
407
  hideInput: {
292
408
  type: BooleanConstructor;
293
409
  };
294
410
  uiStyle: {
295
411
  type: StringConstructor;
412
+ default: string;
296
413
  };
297
414
  audioTimed: {
298
415
  type: NumberConstructor;
@@ -316,10 +433,23 @@ declare const _default: import("vue").DefineComponent<{
316
433
  appId: {
317
434
  type: StringConstructor;
318
435
  };
436
+ orgId: {
437
+ type: StringConstructor;
438
+ };
439
+ userId: {
440
+ type: StringConstructor;
441
+ };
442
+ immediatelyRecording: {
443
+ type: BooleanConstructor;
444
+ default: boolean;
445
+ };
319
446
  }>> & {
320
447
  "onButton-click"?: ((...args: any[]) => any) | undefined;
448
+ onProgram?: ((...args: any[]) => any) | undefined;
321
449
  }, {
322
450
  hideInput: boolean;
451
+ uiStyle: string;
323
452
  audioTimed: number;
453
+ immediatelyRecording: boolean;
324
454
  }>;
325
455
  export default _default;