cnhis-design-vue 3.3.1-beta.4 → 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.
- package/README.md +87 -87
- package/es/components/ai-chat/index.d.ts +394 -43
- package/es/components/ai-chat/src/Index.vue.d.ts +394 -43
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/api/index.d.ts +8 -0
- package/es/components/ai-chat/src/api/index.js +1 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +38 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +75 -31
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.d.ts +1 -7
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +2 -0
- package/es/components/ai-chat/src/components/ChatMainDefault.js +1 -0
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +57 -0
- package/es/components/ai-chat/src/components/ChatRight.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +1 -0
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +25 -0
- package/es/components/ai-chat/src/components/card/JsonCard.js +1 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.js +1 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.js +1 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +36 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +1 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +1 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +105 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +1 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +1 -0
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +1 -0
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +1 -0
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +1 -0
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +1 -0
- package/es/components/ai-chat/src/hooks/index.d.ts +2 -0
- package/es/components/ai-chat/src/hooks/index.js +1 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +18 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +1 -0
- package/es/components/ai-chat/src/hooks/useData.d.ts +77 -0
- package/es/components/ai-chat/src/hooks/useData.js +1 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +38 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.js +1 -0
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +14 -0
- package/es/components/ai-chat/src/hooks/useProgram.js +1 -0
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +9 -0
- package/es/components/ai-chat/src/hooks/useSSE.js +1 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +4 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +1 -3
- package/es/components/ai-chat/src/types/index.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +6 -0
- package/es/components/ai-chat/src/utils/index.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/audio-sdk/index.d.ts +274 -2
- package/es/components/audio-sdk/index.js +1 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +274 -0
- package/es/components/audio-sdk/src/Index.vue.js +1 -0
- package/es/components/audio-sdk/src/Index.vue2.js +1 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +60 -28
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/form.vue.d.ts +51 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +100 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +1 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +1 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +53 -4
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/index.d.ts +7 -0
- package/es/components/audio-sdk/src/utils/index.js +1 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +7 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/calendar/index.d.ts +126 -3
- package/es/components/calendar/src/Calendar.vue.d.ts +126 -2
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +4 -8
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-render/src/components/Button.vue.d.ts +3 -0
- package/es/components/card-render/src/components/Button.vue2.js +1 -1
- package/es/components/card-render/src/components/ScaleView.vue.d.ts +39 -0
- package/es/components/card-render/src/components/ScaleView.vue.js +1 -0
- package/es/components/card-render/src/components/ScaleView.vue2.js +1 -0
- package/es/components/card-render/src/components/Table.vue.d.ts +104 -0
- package/es/components/card-render/src/components/Table.vue.js +1 -0
- package/es/components/card-render/src/components/Table.vue2.js +1 -0
- package/es/components/card-render/src/components/Text.vue.d.ts +1 -0
- package/es/components/card-render/src/components/Text.vue2.js +1 -1
- package/es/components/card-render/src/components/index.d.ts +162 -23
- package/es/components/card-render/src/components/index.js +1 -1
- package/es/components/card-render/src/constants/index.d.ts +4 -1
- package/es/components/card-render/src/constants/index.js +1 -1
- package/es/components/card-render/style/index.css +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/editor/src/Editor.js +1 -1
- package/es/components/editor/style/index.css +1 -0
- package/es/components/fabric-chart/index.d.ts +6 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +6 -2
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +40 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +40 -10
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +32 -8
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -2
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +12 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +12 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +12 -1
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +9 -3
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-chat/index.d.ts +206 -4
- package/es/components/iho-chat/src/Index.vue.d.ts +206 -4
- package/es/components/iho-chat/src/api/index.d.ts +1 -0
- package/es/components/iho-chat/src/api/index.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +8 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +11 -3
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +96 -2
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +77 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +71 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +8 -2
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +10 -0
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +70 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +9 -2
- package/es/components/iho-chat/src/constants/index.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchPatientList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchPatientList.js +1 -0
- package/es/components/iho-chat/src/utils/chatSock.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +6 -0
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +3 -0
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -3
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/index.d.ts +79 -3
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/scale-view/index.d.ts +17 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +17 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +3 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -2189
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +8 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -2
- package/es/components/steps-wheel/index.d.ts +18 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +18 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/file-emr.png.js +1 -0
- package/es/shared/assets/img/file.png.js +1 -0
- package/es/shared/assets/img/logo.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/use.png.js +1 -0
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +1 -0
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +5 -3
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -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,8 +50,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
50
|
appId: {
|
52
51
|
type: StringConstructor;
|
53
52
|
};
|
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: {
|
70
|
+
type: StringConstructor;
|
71
|
+
};
|
72
|
+
sessionId: {
|
73
|
+
type: StringConstructor;
|
74
|
+
};
|
75
|
+
prologue: {
|
76
|
+
type: StringConstructor;
|
77
|
+
};
|
78
|
+
configs: {
|
79
|
+
type: PropType<AnyObject>;
|
80
|
+
};
|
81
|
+
bpmnProcessIdAndStartToken: {
|
82
|
+
type: StringConstructor;
|
83
|
+
};
|
84
|
+
mobile: {
|
85
|
+
type: BooleanConstructor;
|
86
|
+
default: boolean;
|
87
|
+
};
|
54
88
|
}, {
|
55
|
-
cssVars: import("vue").ComputedRef<AnyObject>;
|
56
89
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
57
90
|
token: {
|
58
91
|
type: StringConstructor;
|
@@ -69,17 +102,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
102
|
};
|
70
103
|
queryData: {
|
71
104
|
type: PropType<QueryData>;
|
72
|
-
reuired: boolean;
|
73
105
|
};
|
74
106
|
queryRecord: {
|
75
107
|
type: PropType<QueryRecord>;
|
76
|
-
reuired: boolean;
|
77
108
|
};
|
78
109
|
hideInput: {
|
79
110
|
type: BooleanConstructor;
|
80
111
|
};
|
81
112
|
uiStyle: {
|
82
113
|
type: StringConstructor;
|
114
|
+
default: string;
|
83
115
|
};
|
84
116
|
audioTimed: {
|
85
117
|
type: NumberConstructor;
|
@@ -103,31 +135,107 @@ declare const _default: import("vue").DefineComponent<{
|
|
103
135
|
appId: {
|
104
136
|
type: StringConstructor;
|
105
137
|
};
|
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: {
|
155
|
+
type: StringConstructor;
|
156
|
+
};
|
157
|
+
sessionId: {
|
158
|
+
type: StringConstructor;
|
159
|
+
};
|
160
|
+
prologue: {
|
161
|
+
type: StringConstructor;
|
162
|
+
};
|
163
|
+
configs: {
|
164
|
+
type: PropType<AnyObject>;
|
165
|
+
};
|
166
|
+
bpmnProcessIdAndStartToken: {
|
167
|
+
type: StringConstructor;
|
168
|
+
};
|
169
|
+
mobile: {
|
170
|
+
type: BooleanConstructor;
|
171
|
+
default: boolean;
|
172
|
+
};
|
106
173
|
}>> & {
|
107
174
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
175
|
+
onProgram?: ((...args: any[]) => any) | undefined;
|
108
176
|
}>>;
|
109
|
-
|
110
|
-
|
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>;
|
111
216
|
state: AnyObject;
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
} | {}>;
|
217
|
+
chatMainRef: import("vue").Ref<any>;
|
218
|
+
sessionId: import("vue").ComputedRef<any>;
|
219
|
+
onClose: () => void;
|
220
|
+
NIcon: any;
|
221
|
+
NButton: any;
|
222
|
+
NDialogProvider: any;
|
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<{}>>, {}>;
|
120
224
|
ChatFooter: import("vue").DefineComponent<{}, {
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
audioTimed: any;
|
128
|
-
commandList: any;
|
129
|
-
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;
|
130
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>;
|
131
239
|
breadcrumb: import("vue").Ref<{
|
132
240
|
[x: string]: any;
|
133
241
|
shortcutTitle: string;
|
@@ -135,6 +243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
135
243
|
shortcutDescription?: string | undefined;
|
136
244
|
children?: any[] | undefined;
|
137
245
|
}[]>;
|
246
|
+
currentShortcutId: import("vue").Ref<string>;
|
138
247
|
currentCommand: import("vue").Ref<{
|
139
248
|
[x: string]: any;
|
140
249
|
shortcutTitle: string;
|
@@ -142,22 +251,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
142
251
|
shortcutDescription?: string | undefined;
|
143
252
|
children?: any[] | undefined;
|
144
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>;
|
145
267
|
showPrompt: import("vue").Ref<boolean>;
|
146
|
-
currentShortcutId: import("vue").Ref<string>;
|
147
268
|
showPatient: import("vue").Ref<boolean>;
|
148
|
-
placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
|
149
|
-
btnDisabled: import("vue").ComputedRef<any>;
|
150
269
|
showMagicWand: import("vue").ComputedRef<boolean>;
|
151
270
|
patient: import("vue").ComputedRef<string>;
|
152
|
-
recorderStart: () => Promise<void>;
|
153
|
-
getShortcutName: (item: string | AnyObject) => any;
|
154
|
-
handleShortcut: (item: string | AnyObject) => void;
|
155
|
-
resetCurrentCommand: () => void;
|
156
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
157
|
-
isWrap: (event: KeyboardEvent) => boolean;
|
158
|
-
handleInput: (value: string) => void;
|
159
|
-
handleSend: () => void;
|
160
|
-
clickMenu: (menu: CommandItem) => void;
|
161
271
|
handleBack: () => void;
|
162
272
|
updateShow: (value: boolean) => void;
|
163
273
|
NButton: any;
|
@@ -167,6 +277,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
167
277
|
NBreadcrumb: any;
|
168
278
|
NBreadcrumbItem: any;
|
169
279
|
NTag: any;
|
280
|
+
NSwitch: any;
|
170
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<{}>>, {}>;
|
171
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<{}>>, {}>;
|
172
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<{}>>, {}>;
|
@@ -189,8 +300,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
189
300
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
190
301
|
}>>;
|
191
302
|
emit: (event: "update:show", ...args: any[]) => void;
|
192
|
-
|
193
|
-
|
303
|
+
state: AnyObject;
|
304
|
+
queryPrompt: import("vue").Ref<any>;
|
194
305
|
listRef: import("vue").Ref<any>;
|
195
306
|
keyword: import("vue").Ref<string>;
|
196
307
|
list: import("vue").Ref<AnyObject[]>;
|
@@ -228,8 +339,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
228
339
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
229
340
|
}>>;
|
230
341
|
emit: (event: "update:show", ...args: any[]) => void;
|
231
|
-
|
232
|
-
|
342
|
+
state: AnyObject;
|
343
|
+
patientInfo: import("vue").Ref<any>;
|
233
344
|
formValue: {
|
234
345
|
businessType: string;
|
235
346
|
vaa01: null;
|
@@ -271,8 +382,207 @@ declare const _default: import("vue").DefineComponent<{
|
|
271
382
|
}, {
|
272
383
|
show: boolean;
|
273
384
|
}>;
|
385
|
+
ChatAudio: import("vue").DefineComponent<{
|
386
|
+
show: {
|
387
|
+
type: BooleanConstructor;
|
388
|
+
};
|
389
|
+
}, {
|
390
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
391
|
+
show: {
|
392
|
+
type: BooleanConstructor;
|
393
|
+
};
|
394
|
+
}>> & {
|
395
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
396
|
+
}>>;
|
397
|
+
emit: (event: "update:show", ...args: any[]) => void;
|
398
|
+
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
399
|
+
isWarning: import("vue").Ref<boolean>;
|
400
|
+
isActive: import("vue").Ref<boolean>;
|
401
|
+
handlePlay: () => void;
|
402
|
+
handlePause: () => void;
|
403
|
+
handleEnd: (trigger?: string | undefined) => Promise<void>;
|
404
|
+
formattedTime: import("vue").ComputedRef<string>;
|
405
|
+
warnTime: import("vue").Ref<number>;
|
406
|
+
tip: import("vue").ComputedRef<"未识别录音" | "正在录音中..." | "录音已暂停">;
|
407
|
+
NSpace: any;
|
408
|
+
NButton: any;
|
409
|
+
NIcon: any;
|
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<{}>>, {}>;
|
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<{
|
414
|
+
show: {
|
415
|
+
type: BooleanConstructor;
|
416
|
+
};
|
417
|
+
}>> & {
|
418
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
419
|
+
}, {
|
420
|
+
show: boolean;
|
421
|
+
}>;
|
422
|
+
MicroPhone: any;
|
274
423
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
275
|
-
|
424
|
+
ChatRight: import("vue").DefineComponent<{}, {
|
425
|
+
medicalLabel: {
|
426
|
+
key: string;
|
427
|
+
title: string;
|
428
|
+
}[];
|
429
|
+
state: AnyObject;
|
430
|
+
configs: import("vue").Ref<any>;
|
431
|
+
sendMessage: (params?: AnyObject) => Promise<void>;
|
432
|
+
isStreamingOutput: import("vue").Ref<any>;
|
433
|
+
toolbarConfig: {
|
434
|
+
toolbarKeys: never[];
|
435
|
+
};
|
436
|
+
content: import("vue").Ref<string>;
|
437
|
+
saveDisabled: import("vue").ComputedRef<any>;
|
438
|
+
handleSave: () => Promise<void>;
|
439
|
+
handleDelete: () => Promise<void>;
|
440
|
+
createMedicalRecord: () => void;
|
441
|
+
extractContentByTitle: () => AnyObject;
|
442
|
+
NSpace: any;
|
443
|
+
NButton: any;
|
444
|
+
Editor: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
445
|
+
editorConfig: {
|
446
|
+
type: ObjectConstructor;
|
447
|
+
};
|
448
|
+
toolbarConfig: {
|
449
|
+
type: ObjectConstructor;
|
450
|
+
};
|
451
|
+
uploadImgUrl: {
|
452
|
+
type: StringConstructor;
|
453
|
+
};
|
454
|
+
isDisabled: {
|
455
|
+
type: BooleanConstructor;
|
456
|
+
default: boolean;
|
457
|
+
};
|
458
|
+
}, {
|
459
|
+
editorRef: import("vue").ShallowRef<any>;
|
460
|
+
renderVN: () => JSX.Element;
|
461
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
462
|
+
editorConfig: {
|
463
|
+
type: ObjectConstructor;
|
464
|
+
};
|
465
|
+
toolbarConfig: {
|
466
|
+
type: ObjectConstructor;
|
467
|
+
};
|
468
|
+
uploadImgUrl: {
|
469
|
+
type: StringConstructor;
|
470
|
+
};
|
471
|
+
isDisabled: {
|
472
|
+
type: BooleanConstructor;
|
473
|
+
default: boolean;
|
474
|
+
};
|
475
|
+
}>> & {}, {
|
476
|
+
isDisabled: boolean;
|
477
|
+
}>>;
|
478
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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<{
|
276
586
|
token: {
|
277
587
|
type: StringConstructor;
|
278
588
|
required: true;
|
@@ -288,17 +598,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
288
598
|
};
|
289
599
|
queryData: {
|
290
600
|
type: PropType<QueryData>;
|
291
|
-
reuired: boolean;
|
292
601
|
};
|
293
602
|
queryRecord: {
|
294
603
|
type: PropType<QueryRecord>;
|
295
|
-
reuired: boolean;
|
296
604
|
};
|
297
605
|
hideInput: {
|
298
606
|
type: BooleanConstructor;
|
299
607
|
};
|
300
608
|
uiStyle: {
|
301
609
|
type: StringConstructor;
|
610
|
+
default: string;
|
302
611
|
};
|
303
612
|
audioTimed: {
|
304
613
|
type: NumberConstructor;
|
@@ -322,10 +631,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
322
631
|
appId: {
|
323
632
|
type: StringConstructor;
|
324
633
|
};
|
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: {
|
654
|
+
type: StringConstructor;
|
655
|
+
};
|
656
|
+
prologue: {
|
657
|
+
type: StringConstructor;
|
658
|
+
};
|
659
|
+
configs: {
|
660
|
+
type: PropType<AnyObject>;
|
661
|
+
};
|
662
|
+
bpmnProcessIdAndStartToken: {
|
663
|
+
type: StringConstructor;
|
664
|
+
};
|
665
|
+
mobile: {
|
666
|
+
type: BooleanConstructor;
|
667
|
+
default: boolean;
|
668
|
+
};
|
325
669
|
}>> & {
|
326
670
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
671
|
+
onProgram?: ((...args: any[]) => any) | undefined;
|
327
672
|
}, {
|
673
|
+
disabled: boolean;
|
328
674
|
hideInput: boolean;
|
675
|
+
uiStyle: string;
|
329
676
|
audioTimed: number;
|
677
|
+
immediatelyRecording: boolean;
|
678
|
+
isStreamingOutput: boolean;
|
679
|
+
showLBtn: boolean;
|
680
|
+
mobile: boolean;
|
330
681
|
}>;
|
331
682
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as
|
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};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { AnyObject } from '../../../../shared/types';
|
2
|
+
export declare const axiosInstance: import("axios").AxiosInstance;
|
3
|
+
export declare function conversationApi(params: AnyObject): import("axios").AxiosPromise<any>;
|
4
|
+
export declare function deleteApi(params: AnyObject): import("axios").AxiosPromise<any>;
|
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>;
|
@@ -0,0 +1 @@
|
|
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};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
show: {
|
3
|
+
type: BooleanConstructor;
|
4
|
+
};
|
5
|
+
}, {
|
6
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
show: {
|
8
|
+
type: BooleanConstructor;
|
9
|
+
};
|
10
|
+
}>> & {
|
11
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
12
|
+
}>>;
|
13
|
+
emit: (event: "update:show", ...args: any[]) => void;
|
14
|
+
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
15
|
+
isWarning: import("vue").Ref<boolean>;
|
16
|
+
isActive: import("vue").Ref<boolean>;
|
17
|
+
handlePlay: () => 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<"未识别录音" | "正在录音中..." | "录音已暂停">;
|
23
|
+
NSpace: any;
|
24
|
+
NButton: any;
|
25
|
+
NIcon: any;
|
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<{}>>, {}>;
|
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<{
|
30
|
+
show: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
};
|
33
|
+
}>> & {
|
34
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
35
|
+
}, {
|
36
|
+
show: boolean;
|
37
|
+
}>;
|
38
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./ChatAudio.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","ChatAudio.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
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};
|