cnhis-design-vue 3.3.1-beta.3 → 3.3.1-beta.44

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 (248) hide show
  1. package/es/components/ai-chat/index.d.ts +289 -68
  2. package/es/components/ai-chat/src/Index.vue.d.ts +289 -68
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/api/index.d.ts +5 -3
  5. package/es/components/ai-chat/src/api/index.js +1 -1
  6. package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +9 -15
  7. package/es/components/ai-chat/src/components/ChatAudio.vue2.js +1 -1
  8. package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +2 -2
  9. package/es/components/ai-chat/src/components/ChatBI.vue2.js +1 -1
  10. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  11. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +46 -55
  12. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  13. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  14. package/es/components/ai-chat/src/components/ChatMainDefault.js +1 -0
  15. package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +2 -2
  16. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  17. package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +2 -2
  18. package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
  19. package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +6 -5
  20. package/es/components/ai-chat/src/components/ChatRight.vue2.js +1 -1
  21. package/es/components/ai-chat/src/components/card/JsonCard.js +1 -1
  22. package/es/components/ai-chat/src/components/{card/SelectIcon.d.ts → message-render/CardRender.d.ts} +9 -7
  23. package/es/components/ai-chat/src/components/message-render/CardRender.js +1 -0
  24. package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +16 -0
  25. package/es/components/ai-chat/src/components/message-render/FormRender.js +1 -0
  26. package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +36 -0
  27. package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +1 -0
  28. package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +1 -0
  29. package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +105 -0
  30. package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +1 -0
  31. package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +1 -0
  32. package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +1 -0
  33. package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +1 -0
  34. package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +1 -0
  35. package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +1 -0
  36. package/es/components/ai-chat/src/hooks/index.d.ts +2 -0
  37. package/es/components/ai-chat/src/hooks/index.js +1 -0
  38. package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +18 -0
  39. package/es/components/ai-chat/src/hooks/useChartAudioContext.js +1 -0
  40. package/es/components/ai-chat/src/hooks/useData.d.ts +77 -0
  41. package/es/components/ai-chat/src/hooks/useData.js +1 -0
  42. package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +38 -0
  43. package/es/components/ai-chat/src/hooks/useFooterContext.js +1 -0
  44. package/es/components/ai-chat/src/hooks/useProgram.d.ts +12 -4
  45. package/es/components/ai-chat/src/hooks/useProgram.js +1 -1
  46. package/es/components/ai-chat/src/hooks/useSSE.d.ts +9 -0
  47. package/es/components/ai-chat/src/hooks/useSSE.js +1 -0
  48. package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +3 -1
  49. package/es/components/ai-chat/src/hooks/useWebsocket.js +1 -1
  50. package/es/components/ai-chat/src/types/index.d.ts +1 -3
  51. package/es/components/ai-chat/src/types/index.js +1 -1
  52. package/es/components/ai-chat/src/utils/index.d.ts +6 -1
  53. package/es/components/ai-chat/src/utils/index.js +1 -1
  54. package/es/components/ai-chat/style/index.css +1 -1
  55. package/es/components/audio-sdk/index.d.ts +274 -2
  56. package/es/components/audio-sdk/index.js +1 -1
  57. package/es/components/audio-sdk/src/Index.vue.d.ts +274 -0
  58. package/es/components/audio-sdk/src/Index.vue.js +1 -0
  59. package/es/components/audio-sdk/src/Index.vue2.js +1 -0
  60. package/es/components/audio-sdk/src/audioSDK.d.ts +59 -26
  61. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  62. package/es/components/audio-sdk/src/components/form.vue.d.ts +51 -0
  63. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +100 -0
  64. package/es/components/audio-sdk/src/components/recording-modal.vue.js +1 -0
  65. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +1 -0
  66. package/es/components/audio-sdk/src/components/recording.vue.d.ts +53 -4
  67. package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
  68. package/es/components/audio-sdk/src/utils/index.d.ts +7 -0
  69. package/es/components/audio-sdk/src/utils/index.js +1 -0
  70. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +7 -4
  71. package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
  72. package/es/components/audio-sdk/style/index.css +1 -1
  73. package/es/components/button-print/index.d.ts +30 -0
  74. package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
  75. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  76. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
  77. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  78. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
  79. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  80. package/es/components/button-print/src/utils/print.d.ts +2 -2
  81. package/es/components/button-print/src/utils/print.js +1 -1
  82. package/es/components/calendar/index.d.ts +126 -3
  83. package/es/components/calendar/src/Calendar.vue.d.ts +126 -2
  84. package/es/components/callback/src/components/render/popupMaps.d.ts +7 -1
  85. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +4 -8
  86. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  87. package/es/components/card-render/src/components/Button.vue.d.ts +3 -0
  88. package/es/components/card-render/src/components/Button.vue2.js +1 -1
  89. package/es/components/card-render/src/components/ScaleView.vue.d.ts +39 -0
  90. package/es/components/card-render/src/components/ScaleView.vue.js +1 -0
  91. package/es/components/card-render/src/components/ScaleView.vue2.js +1 -0
  92. package/es/components/card-render/src/components/Table.vue.d.ts +104 -0
  93. package/es/components/card-render/src/components/Table.vue.js +1 -0
  94. package/es/components/card-render/src/components/Table.vue2.js +1 -0
  95. package/es/components/card-render/src/components/Text.vue.d.ts +1 -0
  96. package/es/components/card-render/src/components/Text.vue2.js +1 -1
  97. package/es/components/card-render/src/components/index.d.ts +139 -0
  98. package/es/components/card-render/src/components/index.js +1 -1
  99. package/es/components/card-render/src/constants/index.d.ts +4 -1
  100. package/es/components/card-render/src/constants/index.js +1 -1
  101. package/es/components/card-render/style/index.css +1 -1
  102. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  103. package/es/components/fabric-chart/index.d.ts +6 -2
  104. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +6 -2
  105. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/field-editor/index.d.ts +7 -1
  109. package/es/components/field-editor/src/FieldEditor.vue.d.ts +7 -1
  110. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  111. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  112. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  113. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  114. package/es/components/form-config/index.d.ts +73 -13
  115. package/es/components/form-config/src/FormConfig.vue.d.ts +73 -13
  116. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +7 -1
  117. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +45 -9
  118. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +15 -3
  119. package/es/components/form-render/index.d.ts +7 -1
  120. package/es/components/form-render/index.js +1 -1
  121. package/es/components/form-render/src/FormRender.vue.d.ts +7 -1
  122. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  123. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +7 -1
  124. package/es/components/form-render/src/components/renderer/date.d.ts +4 -2
  125. package/es/components/form-render/src/components/renderer/date.js +1 -1
  126. package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
  127. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  128. package/es/components/form-render/src/components/renderer/input.d.ts +5 -0
  129. package/es/components/form-render/src/components/renderer/input.js +1 -1
  130. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
  131. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  132. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +14 -1
  133. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +14 -1
  134. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  135. package/es/components/form-render/src/components/renderer/select.d.ts +5 -0
  136. package/es/components/form-render/src/components/renderer/select.js +1 -1
  137. package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +12 -1
  138. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
  139. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  140. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  141. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
  142. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  143. package/es/components/form-render/src/types/fieldItem.d.ts +9 -3
  144. package/es/components/form-render/src/types/index.d.ts +2 -0
  145. package/es/components/form-render/src/utils/index.d.ts +1 -0
  146. package/es/components/form-render/src/utils/index.js +1 -1
  147. package/es/components/form-render/style/index.css +1 -1
  148. package/es/components/guide/src/renderer.d.ts +2 -2
  149. package/es/components/iho-chat/index.d.ts +206 -4
  150. package/es/components/iho-chat/src/Index.vue.d.ts +206 -4
  151. package/es/components/iho-chat/src/api/index.d.ts +1 -0
  152. package/es/components/iho-chat/src/api/index.js +1 -1
  153. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +8 -0
  154. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  155. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +11 -3
  156. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  157. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +7 -0
  158. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  159. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +96 -2
  160. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +77 -0
  161. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  162. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +71 -1
  163. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  164. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +8 -2
  165. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  166. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +10 -0
  167. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  168. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +70 -1
  169. package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +1 -1
  170. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +7 -0
  171. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +3 -0
  172. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  173. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -1
  174. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  175. package/es/components/iho-chat/src/constants/index.d.ts +9 -2
  176. package/es/components/iho-chat/src/constants/index.js +1 -1
  177. package/es/components/iho-chat/src/hooks/useSearchPatientList.d.ts +11 -0
  178. package/es/components/iho-chat/src/hooks/useSearchPatientList.js +1 -0
  179. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  180. package/es/components/iho-chat/src/utils/index.d.ts +6 -0
  181. package/es/components/iho-chat/src/utils/index.js +1 -1
  182. package/es/components/iho-chat/style/index.css +1 -1
  183. package/es/components/iho-table/index.d.ts +3 -0
  184. package/es/components/iho-table/index.js +1 -1
  185. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  186. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  187. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  188. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -3
  189. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  190. package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -1
  191. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  192. package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -1
  193. package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
  194. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  195. package/es/components/iho-table/src/plugins/index.d.ts +79 -3
  196. package/es/components/iho-table/src/plugins/index.js +1 -1
  197. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +7 -0
  198. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
  199. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  200. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -2
  201. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  202. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  203. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  204. package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
  205. package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -1
  206. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
  207. package/es/components/iho-table/src/types/index.d.ts +1 -0
  208. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  209. package/es/components/iho-table/src/utils/index.js +1 -1
  210. package/es/components/index.css +1 -1
  211. package/es/components/index.d.ts +2 -1
  212. package/es/components/index.js +1 -1
  213. package/es/components/info-header/index.d.ts +24 -2
  214. package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -2
  215. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
  216. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
  217. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -1
  218. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +7 -1
  219. package/es/components/scale-view/index.d.ts +17 -3
  220. package/es/components/scale-view/src/ScaleView.vue.d.ts +17 -3
  221. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  222. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
  223. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  224. package/es/components/scale-view/src/hooks/scaleview-init.d.ts +3 -1
  225. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  226. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  227. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
  228. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -2189
  229. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
  230. package/es/components/shortcut-setter/index.d.ts +15 -3
  231. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -3
  232. package/es/components/steps-wheel/index.d.ts +18 -0
  233. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +18 -0
  234. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  235. package/es/shared/assets/img/use.png.js +1 -1
  236. package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +1 -0
  237. package/es/shared/components/ArrowIcon/index.d.ts +2 -0
  238. package/es/shared/components/ArrowIcon/index.js +1 -0
  239. package/es/shared/components/DateIcon/DateIcon.vue.js +1 -0
  240. package/es/shared/components/DateIcon/index.d.ts +2 -0
  241. package/es/shared/components/DateIcon/index.js +1 -0
  242. package/es/shared/hooks/useLevelSearchCascader.d.ts +1 -0
  243. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  244. package/es/shared/package.json.js +1 -1
  245. package/package.json +5 -3
  246. package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
  247. package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
  248. /package/es/components/ai-chat/src/components/{ChatMainInner.d.ts → ChatMainDefault.d.ts} +0 -0
@@ -50,18 +50,42 @@ declare const _default: import("vue").DefineComponent<{
50
50
  appId: {
51
51
  type: StringConstructor;
52
52
  };
53
- orgId: {
53
+ immediatelyRecording: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ isStreamingOutput: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ showLBtn: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ disabled: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ appCode: {
54
70
  type: StringConstructor;
55
71
  };
56
- userId: {
72
+ sessionId: {
57
73
  type: StringConstructor;
58
74
  };
59
- immediatelyRecording: {
75
+ prologue: {
76
+ type: StringConstructor;
77
+ };
78
+ configs: {
79
+ type: PropType<AnyObject>;
80
+ };
81
+ bpmnProcessIdAndStartToken: {
82
+ type: StringConstructor;
83
+ };
84
+ mobile: {
60
85
  type: BooleanConstructor;
61
86
  default: boolean;
62
87
  };
63
88
  }, {
64
- cssVars: import("vue").ComputedRef<AnyObject>;
65
89
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
66
90
  token: {
67
91
  type: StringConstructor;
@@ -111,42 +135,107 @@ declare const _default: import("vue").DefineComponent<{
111
135
  appId: {
112
136
  type: StringConstructor;
113
137
  };
114
- orgId: {
138
+ immediatelyRecording: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ isStreamingOutput: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ showLBtn: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ disabled: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ appCode: {
115
155
  type: StringConstructor;
116
156
  };
117
- userId: {
157
+ sessionId: {
118
158
  type: StringConstructor;
119
159
  };
120
- immediatelyRecording: {
160
+ prologue: {
161
+ type: StringConstructor;
162
+ };
163
+ configs: {
164
+ type: PropType<AnyObject>;
165
+ };
166
+ bpmnProcessIdAndStartToken: {
167
+ type: StringConstructor;
168
+ };
169
+ mobile: {
121
170
  type: BooleanConstructor;
122
171
  default: boolean;
123
172
  };
124
173
  }>> & {
125
174
  "onButton-click"?: ((...args: any[]) => any) | undefined;
175
+ onProgram?: ((...args: any[]) => any) | undefined;
126
176
  }>>;
127
- emit: (event: "button-click", ...args: any[]) => void;
128
- showSmallStyle: import("vue").ComputedRef<boolean>;
177
+ emit: (event: "button-click" | "program", ...args: any[]) => void;
178
+ data: {
179
+ chatMainRef: import("vue").Ref<any>;
180
+ patientInfo: import("vue").Ref<any>;
181
+ configs: import("vue").Ref<any>;
182
+ queryPrompt: import("vue").Ref<any>;
183
+ queryData: import("vue").Ref<any>;
184
+ queryRecord: import("vue").Ref<any>;
185
+ defaultShortcutList: import("vue").Ref<any>;
186
+ hideInput: import("vue").Ref<any>;
187
+ shortcutList: import("vue").Ref<any>;
188
+ audioTimed: import("vue").Ref<any>;
189
+ commandList: import("vue").Ref<any>;
190
+ appId: import("vue").Ref<any>;
191
+ immediatelyRecording: import("vue").Ref<any>;
192
+ isStreamingOutput: import("vue").Ref<any>;
193
+ showLBtn: import("vue").Ref<any>;
194
+ disabled: import("vue").Ref<any>;
195
+ appCode: import("vue").Ref<any>;
196
+ prologue: import("vue").Ref<any>;
197
+ mobile: import("vue").Ref<any>;
198
+ bpmnProcessIdAndStartToken: import("vue").Ref<any>;
199
+ cssVars: import("vue").ComputedRef<AnyObject>;
200
+ state: AnyObject;
201
+ isSmall: import("vue").ComputedRef<boolean>;
202
+ isDefault: import("vue").ComputedRef<boolean>;
203
+ vaa07: import("vue").ComputedRef<any>;
204
+ sessionId: import("vue").ComputedRef<any>;
205
+ axiosInstance: import("axios").AxiosInstance;
206
+ $dialog: import("naive-ui").DialogApi;
207
+ emit: (event: "button-click" | "program", ...args: any[]) => void;
208
+ appendMessage: (item: AnyObject) => Promise<void>;
209
+ sendMessage: (params?: AnyObject) => Promise<void>;
210
+ toFinishProgram: (bpmnProcessId: string) => void;
211
+ toNext: (bpmnProcessId?: string | undefined, variables?: any) => void;
212
+ toReplyAiConditions: (params?: AnyObject | undefined) => void;
213
+ formatProcessInfo: (result: string) => void;
214
+ };
215
+ cssVars: import("vue").ComputedRef<AnyObject>;
129
216
  state: AnyObject;
217
+ chatMainRef: import("vue").Ref<any>;
218
+ sessionId: import("vue").ComputedRef<any>;
219
+ onClose: () => void;
220
+ NIcon: any;
221
+ NButton: any;
222
+ NDialogProvider: any;
130
223
  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<{}>>, {}>;
131
224
  ChatFooter: import("vue").DefineComponent<{}, {
132
- innerDefaultShortcutList: {
133
- key: string;
134
- value: string;
135
- }[];
136
- programMethod: (bpmnProcessId: string, params: AnyObject) => Promise<any>;
137
- MedicalOrderId: string;
138
- cssVars: import("vue").ComputedRef<AnyObject>;
139
- audioSdk: import("../..").CAudioSDK;
140
- emit: (event: string, ...args: any[]) => void;
141
- shortcutList: any;
142
- state: any;
143
- isSmall: any;
144
- audioTimed: any;
145
- commandList: any;
146
- isInner: any;
147
- patientInfo: any;
148
- inputRef: import("vue").Ref<any>;
225
+ state: AnyObject;
226
+ shortcutList: import("vue").Ref<any>;
227
+ getShortcutName: (item: string | AnyObject) => any;
228
+ isAllDisabled: import("vue").ComputedRef<any>;
229
+ isStreamingOutput: import("vue").Ref<any>;
230
+ handleShortcut: (item: string | AnyObject) => void;
149
231
  showPopover: import("vue").Ref<boolean>;
232
+ handleKeyDown: (event: KeyboardEvent) => void;
233
+ handleInput: (value: string) => void;
234
+ btnDisabled: import("vue").ComputedRef<any>;
235
+ commandList: import("vue").Ref<any>;
236
+ showAudio: import("vue").Ref<boolean>;
237
+ handleSend: () => void;
238
+ isDefault: import("vue").ComputedRef<boolean>;
150
239
  breadcrumb: import("vue").Ref<{
151
240
  [x: string]: any;
152
241
  shortcutTitle: string;
@@ -154,6 +243,7 @@ declare const _default: import("vue").DefineComponent<{
154
243
  shortcutDescription?: string | undefined;
155
244
  children?: any[] | undefined;
156
245
  }[]>;
246
+ currentShortcutId: import("vue").Ref<string>;
157
247
  currentCommand: import("vue").Ref<{
158
248
  [x: string]: any;
159
249
  shortcutTitle: string;
@@ -161,25 +251,23 @@ declare const _default: import("vue").DefineComponent<{
161
251
  shortcutDescription?: string | undefined;
162
252
  children?: any[] | undefined;
163
253
  }[]>;
254
+ clickMenu: (menu: CommandItem) => void;
255
+ audioTimed: import("vue").Ref<any>;
256
+ showLBtn: import("vue").Ref<any>;
257
+ isSmall: import("vue").ComputedRef<boolean>;
258
+ cssVars: import("vue").ComputedRef<AnyObject>;
259
+ railStyle: ({ focused, checked }: {
260
+ focused: boolean;
261
+ checked: boolean;
262
+ }) => import("vue").CSSProperties;
263
+ inputRef: import("vue").Ref<any>;
264
+ placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
265
+ audioSdk: import("../..").CAudioSDK;
266
+ recorderStart: () => Promise<void>;
164
267
  showPrompt: import("vue").Ref<boolean>;
165
- currentShortcutId: import("vue").Ref<string>;
166
268
  showPatient: import("vue").Ref<boolean>;
167
- showAudio: import("vue").Ref<boolean>;
168
- placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
169
- btnDisabled: import("vue").ComputedRef<any>;
170
269
  showMagicWand: import("vue").ComputedRef<boolean>;
171
270
  patient: import("vue").ComputedRef<string>;
172
- currentShortcutList: import("vue").ComputedRef<any>;
173
- isAllDisabled: import("vue").ComputedRef<any>;
174
- recorderStart: () => Promise<void>;
175
- getShortcutName: (item: string | AnyObject) => any;
176
- handleShortcut: (item: string | AnyObject) => Promise<void>;
177
- resetCurrentCommand: () => void;
178
- handleKeyDown: (event: KeyboardEvent) => void;
179
- isWrap: (event: KeyboardEvent) => boolean;
180
- handleInput: (value: string) => void;
181
- handleSend: () => void;
182
- clickMenu: (menu: CommandItem) => void;
183
271
  handleBack: () => void;
184
272
  updateShow: (value: boolean) => void;
185
273
  NButton: any;
@@ -189,6 +277,7 @@ declare const _default: import("vue").DefineComponent<{
189
277
  NBreadcrumb: any;
190
278
  NBreadcrumbItem: any;
191
279
  NTag: any;
280
+ NSwitch: any;
192
281
  PaperPlane: 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<{}>>, {}>;
193
282
  ChevronBack: 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<{}>>, {}>;
194
283
  ChevronForward: 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<{}>>, {}>;
@@ -211,8 +300,8 @@ declare const _default: import("vue").DefineComponent<{
211
300
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
212
301
  }>>;
213
302
  emit: (event: "update:show", ...args: any[]) => void;
214
- queryPrompt: any;
215
- state: any;
303
+ state: AnyObject;
304
+ queryPrompt: import("vue").Ref<any>;
216
305
  listRef: import("vue").Ref<any>;
217
306
  keyword: import("vue").Ref<string>;
218
307
  list: import("vue").Ref<AnyObject[]>;
@@ -250,8 +339,8 @@ declare const _default: import("vue").DefineComponent<{
250
339
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
251
340
  }>>;
252
341
  emit: (event: "update:show", ...args: any[]) => void;
253
- patientInfo: any;
254
- state: any;
342
+ state: AnyObject;
343
+ patientInfo: import("vue").Ref<any>;
255
344
  formValue: {
256
345
  businessType: string;
257
346
  vaa01: null;
@@ -298,7 +387,6 @@ declare const _default: import("vue").DefineComponent<{
298
387
  type: BooleanConstructor;
299
388
  };
300
389
  }, {
301
- audioSdk: import("../..").CAudioSDK;
302
390
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
303
391
  show: {
304
392
  type: BooleanConstructor;
@@ -307,25 +395,21 @@ declare const _default: import("vue").DefineComponent<{
307
395
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
308
396
  }>>;
309
397
  emit: (event: "update:show", ...args: any[]) => void;
310
- state: any;
311
- vaa07: any;
312
- immediatelyRecording: any;
313
- time: import("vue").Ref<number>;
314
- endType: string;
315
- pause: import("@vueuse/shared").Fn;
316
- resume: import("@vueuse/shared").Fn;
398
+ audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
399
+ isWarning: import("vue").Ref<boolean>;
317
400
  isActive: import("vue").Ref<boolean>;
318
- tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
319
- formattedTime: import("vue").ComputedRef<string>;
320
- checkEnvironment: () => boolean;
321
- start: () => Promise<void>;
322
- handlePause: () => void;
323
401
  handlePlay: () => void;
402
+ handlePause: () => void;
324
403
  handleEnd: (trigger?: string | undefined) => Promise<void>;
404
+ formattedTime: import("vue").ComputedRef<string>;
405
+ warnTime: import("vue").Ref<number>;
406
+ tip: import("vue").ComputedRef<"未识别录音" | "正在录音中..." | "录音已暂停">;
325
407
  NSpace: any;
326
408
  NButton: any;
327
409
  NIcon: any;
328
410
  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<{}>>, {}>;
411
+ MicOff: 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<{}>>, {}>;
412
+ AlertCircle: 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<{}>>, {}>;
329
413
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
330
414
  show: {
331
415
  type: BooleanConstructor;
@@ -335,24 +419,26 @@ declare const _default: import("vue").DefineComponent<{
335
419
  }, {
336
420
  show: boolean;
337
421
  }>;
422
+ MicroPhone: any;
338
423
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
339
- ChatMainInner: 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<{}>>, {}>;
340
424
  ChatRight: import("vue").DefineComponent<{}, {
341
425
  medicalLabel: {
342
426
  key: string;
343
427
  title: string;
344
428
  }[];
345
- state: any;
346
- patientInfo: any;
429
+ state: AnyObject;
430
+ configs: import("vue").Ref<any>;
431
+ sendMessage: (params?: AnyObject) => Promise<void>;
432
+ isStreamingOutput: import("vue").Ref<any>;
347
433
  toolbarConfig: {
348
434
  toolbarKeys: never[];
349
435
  };
350
436
  content: import("vue").Ref<string>;
351
- key: import("vue").Ref<string>;
437
+ saveDisabled: import("vue").ComputedRef<any>;
352
438
  handleSave: () => Promise<void>;
439
+ handleDelete: () => Promise<void>;
353
440
  createMedicalRecord: () => void;
354
441
  extractContentByTitle: () => AnyObject;
355
- NIcon: any;
356
442
  NSpace: any;
357
443
  NButton: any;
358
444
  Editor: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
@@ -389,9 +475,114 @@ declare const _default: import("vue").DefineComponent<{
389
475
  }>> & {}, {
390
476
  isDisabled: boolean;
391
477
  }>>;
392
- 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<{}>>, {}>;
393
478
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
394
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
479
+ 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<{}>>, {}>;
480
+ 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<{}>>, {}>;
481
+ MobileChatFooter: import("vue").DefineComponent<{}, {
482
+ state: AnyObject;
483
+ shortcutList: import("vue").Ref<any>;
484
+ getShortcutName: (item: string | AnyObject) => any;
485
+ isAllDisabled: import("vue").ComputedRef<any>;
486
+ isStreamingOutput: import("vue").Ref<any>;
487
+ handleShortcut: (item: string | AnyObject) => void;
488
+ showPopover: import("vue").Ref<boolean>;
489
+ handleKeyDown: (event: KeyboardEvent) => void;
490
+ handleInput: (value: string) => void;
491
+ btnDisabled: import("vue").ComputedRef<any>;
492
+ showAudio: import("vue").Ref<boolean>;
493
+ breadcrumb: import("vue").Ref<{
494
+ [x: string]: any;
495
+ shortcutTitle: string;
496
+ shortcutId: string;
497
+ shortcutDescription?: string | undefined;
498
+ children?: any[] | undefined;
499
+ }[]>;
500
+ currentShortcutId: import("vue").Ref<string>;
501
+ currentCommand: import("vue").Ref<{
502
+ [x: string]: any;
503
+ shortcutTitle: string;
504
+ shortcutId: string;
505
+ shortcutDescription?: string | undefined;
506
+ children?: any[] | undefined;
507
+ }[]>;
508
+ commandList: import("vue").Ref<any>;
509
+ clickMenu: (menu: CommandItem) => void;
510
+ handleBack: () => void;
511
+ AudioStateMap: {
512
+ INPUT: string;
513
+ AUDIO: string;
514
+ AUDIO_DOING: string;
515
+ AUDIO_CANCEL: string;
516
+ };
517
+ audioState: any;
518
+ showState: {
519
+ show: boolean;
520
+ };
521
+ footerRef: import("vue").Ref<HTMLDivElement | undefined>;
522
+ footerRect: null;
523
+ onBarTouchStart: () => void;
524
+ onFooterTouchMove: (event: TouchEvent) => void;
525
+ onFooterTouchEnd: () => void;
526
+ onFooterTouchCancel: () => void;
527
+ audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
528
+ isWarning: import("vue").Ref<boolean>;
529
+ isActive: import("vue").Ref<boolean>;
530
+ handlePlay: () => void;
531
+ handlePause: () => void;
532
+ handleEnd: (trigger?: string | undefined) => Promise<void>;
533
+ handleCancel: () => void;
534
+ formattedTime: import("vue").ComputedRef<string>;
535
+ warnTime: import("vue").Ref<number>;
536
+ audioSdk: import("../..").CAudioSDK;
537
+ ChevronBack: 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<{}>>, {}>;
538
+ ChevronForward: 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<{}>>, {}>;
539
+ NBreadcrumb: any;
540
+ NBreadcrumbItem: any;
541
+ NButton: any;
542
+ NIcon: any;
543
+ NInput: any;
544
+ NPopover: any;
545
+ MobileChatAudio: import("vue").DefineComponent<{
546
+ show: {
547
+ type: BooleanConstructor;
548
+ };
549
+ }, {
550
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
551
+ show: {
552
+ type: BooleanConstructor;
553
+ };
554
+ }>> & {
555
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
556
+ }>>;
557
+ emit: (event: "update:show", ...args: any[]) => void;
558
+ audioChatRef: import("vue").Ref<HTMLDivElement | undefined>;
559
+ isWarning: import("vue").Ref<boolean>;
560
+ isActive: import("vue").Ref<boolean>;
561
+ handlePlay: () => void;
562
+ handlePause: () => void;
563
+ handleEnd: (trigger?: string | undefined) => Promise<void>;
564
+ formattedTime: import("vue").ComputedRef<string>;
565
+ warnTime: import("vue").Ref<number>;
566
+ audioSdk: import("../..").CAudioSDK;
567
+ audioSdkContentRef: import("vue").Ref<string>;
568
+ tip: import("vue").ComputedRef<"未识别录音" | "录音已暂停" | "正在听...">;
569
+ stateText: import("vue").ComputedRef<"" | "已暂停">;
570
+ NButton: any;
571
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
572
+ show: {
573
+ type: BooleanConstructor;
574
+ };
575
+ }>> & {
576
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
577
+ }, {
578
+ show: boolean;
579
+ }>;
580
+ AddIcon: any;
581
+ MicroPhone: any;
582
+ AudioIcon: any;
583
+ KeyboardIcon: any;
584
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
585
+ }, 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<{
395
586
  token: {
396
587
  type: StringConstructor;
397
588
  required: true;
@@ -440,22 +631,52 @@ declare const _default: import("vue").DefineComponent<{
440
631
  appId: {
441
632
  type: StringConstructor;
442
633
  };
443
- orgId: {
634
+ immediatelyRecording: {
635
+ type: BooleanConstructor;
636
+ default: boolean;
637
+ };
638
+ isStreamingOutput: {
639
+ type: BooleanConstructor;
640
+ default: boolean;
641
+ };
642
+ showLBtn: {
643
+ type: BooleanConstructor;
644
+ default: boolean;
645
+ };
646
+ disabled: {
647
+ type: BooleanConstructor;
648
+ default: boolean;
649
+ };
650
+ appCode: {
651
+ type: StringConstructor;
652
+ };
653
+ sessionId: {
444
654
  type: StringConstructor;
445
655
  };
446
- userId: {
656
+ prologue: {
447
657
  type: StringConstructor;
448
658
  };
449
- immediatelyRecording: {
659
+ configs: {
660
+ type: PropType<AnyObject>;
661
+ };
662
+ bpmnProcessIdAndStartToken: {
663
+ type: StringConstructor;
664
+ };
665
+ mobile: {
450
666
  type: BooleanConstructor;
451
667
  default: boolean;
452
668
  };
453
669
  }>> & {
454
670
  "onButton-click"?: ((...args: any[]) => any) | undefined;
671
+ onProgram?: ((...args: any[]) => any) | undefined;
455
672
  }, {
673
+ disabled: boolean;
456
674
  hideInput: boolean;
457
675
  uiStyle: string;
458
676
  audioTimed: number;
459
677
  immediatelyRecording: boolean;
678
+ isStreamingOutput: boolean;
679
+ showLBtn: boolean;
680
+ mobile: boolean;
460
681
  }>;
461
682
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,reactive as o,provide as i,toRefs as n,openBlock as r,createElementBlock as a,normalizeStyle as s,unref as l,createElementVNode as u,normalizeClass as d,createBlock as p,createCommentVNode as m}from"vue";import c from"./components/ChatMain.js";import y from"./components/ChatFooter.vue.js";import h from"./components/ChatMainInner.js";import f from"./components/ChatRight.vue.js";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import{uuidGenerator as S}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as g,InjectionAIChatEmits as k}from"./types/index.js";import{instanceAxios as j}from"./api/index.js";import{useWebsocket as I}from"./hooks/useWebsocket.js";const x=["id"];var C=e({__name:"Index",props:{token:{type:String,required:!0},userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function},queryRecord:{type:Function},hideInput:{type:Boolean},uiStyle:{type:String,default:"big"},audioTimed:{type:Number,default:10},commandList:{type:Array},queryPrompt:{type:Function},patientInfo:{type:Object},appId:{type:String},orgId:{type:String},userId:{type:String},immediatelyRecording:{type:Boolean,default:!1}},emits:["button-click"],setup(e,{expose:C,emit:P}){const _=e,b=v();j.defaults.headers.Authorization="bearer "+_.token,"inner"!==_.uiStyle&&(j.defaults.timeout=5e3,j.interceptors.response.use((e=>{var t;return(null==(t=e.data)?void 0:t.success)?e.data:{success:!1,data:[]}})));const A=t((()=>["small","inner"].includes(_.uiStyle))),F=o({id:"ai-chat-doctor-"+S(),loading:!1,loadingText:"",sending:!1,sendContent:"",selectedCommand:null,selectedPrompt:null,externalData:null,selectedPatient:null,selectedPatientLabel:"",selectedPatientForm:null,showPatient:!1,showRight:!1,consultationContent:null,params:{},reportContent:null,refreshMedical:!1});return i(g,{...n(_),state:F,isSmall:t((()=>"small"===_.uiStyle)),isInner:t((()=>"inner"===_.uiStyle)),vaa07:t((()=>{var e,t;return null==(t=null==(e=_.patientInfo)?void 0:e.info)?void 0:t.vaa07}))}),i(k,P),"inner"===_.uiStyle&&I(_,F),C({pushMessage:e=>{F.externalData=e},updatePatientInfo:e=>{F.selectedPatient=e}}),(t,o)=>(r(),a("div",{class:"ai-chat-doctor",style:s(l(b))},[u("div",{id:F.id,class:d(["ai-chat-doctor__main",l(A)?"ai-chat-doctor__main--small":"","inner"===e.uiStyle?"ai-chat-doctor__main--inner":""])},["inner"===e.uiStyle?(r(),p(l(h),{key:0})):(r(),p(l(c),{key:1})),e.hideInput?m("v-if",!0):(r(),p(y,{key:2}))],10,x),"inner"===e.uiStyle?(r(),p(f,{key:0})):m("v-if",!0)],4))}});export{C as default};
1
+ import{defineComponent as t,provide as e,openBlock as o,createElementBlock as i,normalizeStyle as a,unref as n,normalizeClass as s,createVNode as r,withCtx as l,createElementVNode as p,createBlock as u,Fragment as c,createCommentVNode as h,withDirectives as m,vShow as d,renderSlot as y}from"vue";import{NDialogProvider as f,NButton as g,NIcon as S}from"naive-ui";import v from"./components/ChatMain.js";import R from"./components/ChatFooter.vue.js";import w from"./components/ChatRight.vue.js";import k from"./components/ChatMainDefault.js";import{CloseOutline as b}from"@vicons/ionicons5";import{initData as j,InjectionAIChatData as I}from"./hooks/useData.js";import{useWebsocket as B}from"./hooks/useWebsocket.js";import C from"./components/mobile/MobileChatFooter.vue.js";const M=["id"],q={class:"chat-right-wrapper"},A={class:"header"},F={class:"content"},_={class:"slot-wrapper"};var x=t({__name:"Index",props:{token:{type:String,required:!0},userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function},queryRecord:{type:Function},hideInput:{type:Boolean},uiStyle:{type:String,default:"default"},audioTimed:{type:Number,default:10},commandList:{type:Array},queryPrompt:{type:Function},patientInfo:{type:Object},appId:{type:String},immediatelyRecording:{type:Boolean,default:!1},isStreamingOutput:{type:Boolean,default:!1},showLBtn:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appCode:{type:String},sessionId:{type:String},prologue:{type:String},configs:{type:Object},bpmnProcessIdAndStartToken:{type:String},mobile:{type:Boolean,default:!1}},emits:["button-click","program"],setup(t,{expose:x,emit:D}){const L=t,P=j(L,D);e(I,P);const{cssVars:O,state:T,chatMainRef:z,sessionId:N}=P;function V(){T.showRight=!1,T.showRightSlot=!1}return"default"===L.uiStyle&&B(L,P,N),x({pushMessage:t=>{T.externalData=t},updatePatientInfo:t=>{T.selectedPatient=t},showRight(t){T.showRight=!1,T.showRightSlot=t}}),(e,j)=>(o(),i("div",{style:a(n(O)),class:s(["ai-chat","small"===t.uiStyle?"ai-chat--small":""])},[r(n(f),null,{default:l((()=>[p("div",{id:n(T).id,class:"chat-left-wrapper"},["default"===t.uiStyle?(o(),u(n(k),{key:0,ref_key:"chatMainRef",ref:z},null,512)):(o(),u(n(v),{key:1})),t.hideInput?h("v-if",!0):(o(),i(c,{key:2},[t.mobile?(o(),u(C,{key:0})):(o(),u(R,{key:1}))],64))],8,M),m(p("div",q,[p("div",A,[m(p("h4",null,"问诊记录",512),[[d,n(T).showRight]]),r(n(g),{quaternary:"",onClick:V},{icon:l((()=>[r(n(S),{size:"20",component:n(b)},null,8,["component"])])),_:1})]),p("div",F,[m(r(w,null,null,512),[[d,n(T).showRight]]),m(p("div",_,[y(e.$slots,"chat-right")],512),[[d,n(T).showRightSlot]])])],512),[[d,n(T).showRight||n(T).showRightSlot]])])),_:3})],6))}});export{x as default};
@@ -1,6 +1,8 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
- export declare const instanceAxios: import("axios").AxiosInstance;
3
- export declare function uploadFileApi(params: FormData): import("axios").AxiosPromise<any>;
2
+ export declare const axiosInstance: import("axios").AxiosInstance;
4
3
  export declare function conversationApi(params: AnyObject): import("axios").AxiosPromise<any>;
5
- export declare function saveApi(params: AnyObject): import("axios").AxiosPromise<any>;
4
+ export declare function deleteApi(params: AnyObject): import("axios").AxiosPromise<any>;
6
5
  export declare function getHistoryRecordApi(params: AnyObject): import("axios").AxiosPromise<any>;
6
+ export declare function conversationStreamApi(params: AnyObject): import("axios").AxiosPromise<any>;
7
+ export declare function getSessionMsgApi(params: AnyObject): import("axios").AxiosPromise<any>;
8
+ export declare function callbackApi(params: AnyObject): import("axios").AxiosPromise<any>;
@@ -1 +1 @@
1
- import e from"axios";import{$message as t}from"../utils/index.js";const r=e.create({withCredentials:!0,timeout:1e4});function o(e){return r({headers:{"Content-Type":"multipart/form-data"},method:"post",url:"/storage-service/storage/uploadFile",data:e})}function a(e){return r({method:"post",url:"/flow/api/opd/conversation",data:e})}function s(e){return r({method:"put",url:"/flow/api/opd/message",data:e})}function i(e){return r({method:"get",url:`/flow/api/dialog/${e.sessionId}/messages`,params:{page:e.page||1,pageSize:e.pageSize||20}})}r.interceptors.request.use((e=>{var t;if(null==(t=e.url)?void 0:t.includes("/conversation")){const t={...e};return delete t.timeout,t}return e})),r.interceptors.response.use((e=>{var r,o,a;if(null==(r=e.data)?void 0:r.success)return null==(o=e.data)?void 0:o.data;500==(null==(a=e.data)?void 0:a.code)&&e.data.msg&&t.error(e.data.msg)}));export{a as conversationApi,i as getHistoryRecordApi,r as instanceAxios,s as saveApi,o as uploadFileApi};
1
+ import e from"axios";import{$message as t}from"../utils/index.js";const o=e.create({withCredentials:!0,timeout:5e3});function s(e){return o({method:"post",url:"/flow/api/opd/conversation",data:e})}function a(e){return o({method:"delete",url:`/flow/api/opd/message/${e.messageId}`})}function r(e){return o({method:"get",url:`/flow/api/dialog/${e.sessionId}/messages`,params:{page:e.page||1,pageSize:e.pageSize||20}})}function n(e){return o({method:"post",url:"/flow/ai/api/conversation",data:e})}function i(e){return o({method:"get",url:"/flow/ai/api/sessionMsg",params:e})}function u(e){return o({method:"post",url:"/flow/ai/api/callback",data:e})}o.interceptors.request.use((e=>{var t;if(null==(t=e.url)?void 0:t.includes("/conversation")){const t={...e};return delete t.timeout,t}return e})),o.interceptors.response.use((e=>{var o,s,a,r,n,i;return(null==(o=e.config.url)?void 0:o.includes("/options"))||(null==(s=e.config.url)?void 0:s.includes("process/start"))?(null==(a=e.data)?void 0:a.success)?e.data:{success:!1,data:[]}:(null==(r=e.data)?void 0:r.success)?null==(n=e.data)?void 0:n.data:void(!(null==(i=e.data)?void 0:i.success)&&e.data.msg?t.error(e.data.msg):console.log("请求错误"))}));export{o as axiosInstance,u as callbackApi,s as conversationApi,n as conversationStreamApi,a as deleteApi,r as getHistoryRecordApi,i as getSessionMsgApi};
@@ -1,10 +1,8 @@
1
- import { CAudioSDK } from '../../../../components/audio-sdk';
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  show: {
4
3
  type: BooleanConstructor;
5
4
  };
6
5
  }, {
7
- audioSdk: CAudioSDK;
8
6
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
9
7
  show: {
10
8
  type: BooleanConstructor;
@@ -13,25 +11,21 @@ declare const _default: import("vue").DefineComponent<{
13
11
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
14
12
  }>>;
15
13
  emit: (event: "update:show", ...args: any[]) => void;
16
- state: any;
17
- vaa07: any;
18
- immediatelyRecording: any;
19
- time: import("vue").Ref<number>;
20
- endType: string;
21
- pause: import("@vueuse/shared").Fn;
22
- resume: import("@vueuse/shared").Fn;
14
+ audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
15
+ isWarning: import("vue").Ref<boolean>;
23
16
  isActive: import("vue").Ref<boolean>;
24
- tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
25
- formattedTime: import("vue").ComputedRef<string>;
26
- checkEnvironment: () => boolean;
27
- start: () => Promise<void>;
28
- handlePause: () => void;
29
17
  handlePlay: () => void;
30
- handleEnd: (trigger?: string) => Promise<void>;
18
+ handlePause: () => void;
19
+ handleEnd: (trigger?: string | undefined) => Promise<void>;
20
+ formattedTime: import("vue").ComputedRef<string>;
21
+ warnTime: import("vue").Ref<number>;
22
+ tip: import("vue").ComputedRef<"未识别录音" | "正在录音中..." | "录音已暂停">;
31
23
  NSpace: any;
32
24
  NButton: any;
33
25
  NIcon: any;
34
26
  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<{}>>, {}>;
27
+ MicOff: 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<{}>>, {}>;
28
+ AlertCircle: 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<{}>>, {}>;
35
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
30
  show: {
37
31
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as o,inject as e,ref as t,computed as i,watch as a,onBeforeUnmount as n,withDirectives as r,openBlock as s,createElementBlock as l,unref as u,createBlock as d,createCommentVNode as c,createElementVNode as p,toDisplayString as m,normalizeStyle as f,createVNode as v,withCtx as w,createTextVNode as h,vShow as g}from"vue";import{NIcon as y,NSpace as _,NButton as F}from"naive-ui";import{StopCircleOutline as S}from"@vicons/ionicons5";import{InjectionAIChat as k}from"../types/index.js";import{useIntervalFn as x,promiseTimeout as C}from"@vueuse/core";import $ from"../../../audio-sdk/src/audioSDK.js";import{uploadFileApi as j}from"../api/index.js";import{uuidGenerator as M}from"../../../../shared/utils/index.js";import{$message as z}from"../utils/index.js";const A={class:"ai-chat-doctor__audio"};var I=o({__name:"ChatAudio",props:{show:{type:Boolean}},emits:["update:show"],setup(o,{emit:I}){const B=o,D=$.create(),{state:T,vaa07:b,immediatelyRecording:q}=e(k),K=t(0);let L="";const{pause:N,resume:O,isActive:R}=x((()=>{K.value++}),1e3,{immediate:!1}),U=i((()=>R.value?"正在录音中...":"录音已暂停")),E=i((()=>{const o=Math.floor(K.value/3600),e=Math.floor(K.value%3600/60),t=K.value%60,i=e.toString().padStart(2,"0"),a=t.toString().padStart(2,"0");if(o>0){return`${o.toString().padStart(2,"0")}:${i}:${a}`}return`${i}:${a}`}));async function G(){try{if((null==(o=null==navigator?void 0:navigator.userAgent)?void 0:o.includes("Chrome"))&&!(null==window?void 0:window.isSecureContext)&&(I("update:show",!1),z.warning("当前使用的http协议默认不支持麦克风权限,需要用户开启浏览器麦克风权限"),1))return;const e=await D.start(void 0,{timed:1800,recognizable:!1,showModal:!1});if(I("update:show",!1),"click"!==L)return;const{result:t,data:i}=e||{};if("success"!==t)return;if(i){const o=new File([i],`${M()}.mp3`,{type:i.type}),e=new FormData;e.append("file",o),e.append("channelId","MINIO");const t=await j(e),a=(null==t?void 0:t.path)||"";console.log("音频地址 ==>",a),T.params={audioUrl:a,opType:"create_inquiry"},T.sending=!0,T.loading=!0,T.loadingText="系统正在对您的对话内容进行梳理整合,转化为规范的结构化问诊记录"}}catch(o){console.log(o),I("update:show",!1),"fail"===(null==o?void 0:o.result)&&o.msg&&z.warning(o.msg)}var o}function H(){N(),D.pause()}function J(){O(),D.resume()}async function P(o){L=o||"",null==D||D.stop(),I("update:show",!1)}return a((()=>B.show),(o=>{o?(L="",K.value=0,O(),G()):N()}),{immediate:!0}),a((()=>b.value),(async o=>{const e=B.show;B.show&&P(),q.value&&(e&&await C(10),I("update:show",!0))}),{immediate:!0}),n((()=>{$.destroy()})),(e,t)=>r((s(),l("div",A,[u(R)?c("v-if",!0):(s(),d(u(y),{key:0,size:"42",color:"#FF1818",component:u(S)},null,8,["component"])),p("p",null,m(u(U)),1),p("h3",{style:f(u(R)?"":"color: #FF1818")},m(u(E)),5),v(u(_),{"wrap-item":!1,size:15},{default:w((()=>[r(v(u(F),{round:"",onClick:H},{default:w((()=>[h("暂停")])),_:1},512),[[g,u(R)]]),r(v(u(F),{round:"",onClick:J},{default:w((()=>[h("继续")])),_:1},512),[[g,!u(R)]]),v(u(F),{round:"",color:"#FF1818",onClick:t[0]||(t[0]=()=>P("click"))},{default:w((()=>{var o;return[h((null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.77"))||"结束")]})),_:1})])),_:1})],512)),[[g,o.show]])}});export{I as default};
1
+ import{defineComponent as o,ref as e,computed as n,withDirectives as l,openBlock as i,createElementBlock as a,normalizeClass as t,unref as r,createVNode as s,createElementVNode as u,toDisplayString as c,createCommentVNode as d,createBlock as p,vShow as m,normalizeStyle as v,withCtx as f,createTextVNode as h}from"vue";import{NIcon as w,NSpace as k,NButton as C}from"naive-ui";import{AlertCircle as F,MicOff as y,StopCircleOutline as g}from"@vicons/ionicons5";import{useChartAudioContext as z}from"../hooks/useChartAudioContext.js";const _={key:0,class:"warn-top"},x=u("p",null,"当前未发现语音录入,请确认是否正在录音!",-1),A={class:"tip"};var B=o({__name:"ChatAudio",props:{show:{type:Boolean}},emits:["update:show"],setup(o,{emit:B}){const P=o,T=e(),{isWarning:j,isActive:E,handlePlay:L,handlePause:R,handleEnd:S,formattedTime:W,warnTime:b}=z(P,B,{waveSelector:()=>T.value}),q=n((()=>E.value?j.value?"未识别录音":"正在录音中...":"录音已暂停"));return(e,n)=>l((i(),a("div",{class:t(["ai-chat-audio",{"audio--warn":r(j)}])},[r(j)?(i(),a("div",_,[s(r(w),{size:"24",color:"#FF1818",component:r(F)},null,8,["component"]),x,u("span",null,""+c(r(b))+"s)",1)])):d("v-if",!0),l(u("div",null,[r(j)?(i(),p(r(w),{key:0,size:"75",color:"#FF1818",component:r(y)},null,8,["component"])):d("v-if",!0),l(u("div",{ref_key:"audioChartRef",ref:T,style:{width:"300px",height:"80px"}},null,512),[[m,!r(j)]])],512),[[m,r(E)]]),r(E)?d("v-if",!0):(i(),p(r(w),{key:1,size:"75",color:"#FF1818",component:r(g)},null,8,["component"])),u("p",A,c(r(q)),1),u("h3",{style:v(r(E)?"":"color: #FF1818")},c(r(W)),5),s(r(k),{"wrap-item":!1,size:15},{default:f((()=>[l(s(r(C),{size:"large",round:"",onClick:r(R)},{default:f((()=>[h("暂停")])),_:1},8,["onClick"]),[[m,r(E)]]),l(s(r(C),{size:"large",round:"",onClick:r(L)},{default:f((()=>[h("继续")])),_:1},8,["onClick"]),[[m,!r(E)]]),s(r(C),{size:"large",round:"",color:"#FF1818",onClick:n[0]||(n[0]=()=>r(S)("click"))},{default:f((()=>{var o;return[h((null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.77"))||"结束")]})),_:1})])),_:1})],2)),[[m,o.show]])}});export{B as default};
@@ -18,9 +18,9 @@ declare const _default: import("vue").DefineComponent<{
18
18
  }>> & {
19
19
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
20
20
  }>>;
21
- emit: (event: string, ...args: any[]) => void;
22
21
  _emit: (event: "update:show", ...args: any[]) => void;
23
- state: any;
22
+ state: AnyObject;
23
+ emit: (event: "button-click" | "program", ...args: any[]) => void;
24
24
  templateProps: import("vue").ComputedRef<{
25
25
  config: any;
26
26
  data: any;