cnhis-design-vue 3.3.1-beta.12 → 3.3.1-beta.13
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 +10 -145
- package/es/components/ai-chat/src/Index.vue.d.ts +10 -145
- package/es/components/ai-chat/src/Index.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 +2 -55
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -1
- 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 +304 -2
- package/es/components/audio-sdk/index.js +1 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +304 -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 +5 -8
- 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/form.vue.js +1 -0
- package/es/components/audio-sdk/src/components/form.vue2.js +1 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +91 -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 +43 -4
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/index.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/index.js +1 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +7 -4
- package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +7 -1
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/editor/src/Editor.js +1 -1
- package/es/components/editor/style/index.css +0 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/field-editor/index.d.ts +7 -1
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +7 -1
- package/es/components/form-config/index.d.ts +38 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +38 -3
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +7 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +17 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -1
- package/es/components/form-render/index.d.ts +7 -1
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +7 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +7 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- 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/input.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +14 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +14 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +5 -0
- 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/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +1 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +26 -23
- 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 +78 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +7 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.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/selectRendererPlugin/selectUtils.d.ts +1 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.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/index.d.ts +1 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
- 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/info-header/index.d.ts +24 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +7 -1
- package/es/components/scale-view/index.d.ts +3 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -2
- package/es/components/scale-view/src/ScaleView.vue2.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/use-component.d.ts +1 -2189
- package/es/components/shortcut-setter/index.d.ts +8 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -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/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/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/components/ArrowIcon/ArrowIcon.vue.js +1 -0
- package/es/shared/components/ArrowIcon/index.d.ts +2 -0
- package/es/shared/components/ArrowIcon/index.js +1 -0
- package/es/shared/components/DateIcon/DateIcon.vue.js +1 -0
- package/es/shared/components/DateIcon/index.d.ts +2 -0
- package/es/shared/components/DateIcon/index.js +1 -0
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/ai-chat/src/api/index.d.ts +0 -6
- package/es/components/ai-chat/src/api/index.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -44
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -1
- package/es/components/ai-chat/src/components/ChatMainInner.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -55
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -1
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -1
- package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +0 -14
- package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -6
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -1
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -1
- package/es/shared/assets/img/file-emr.png.js +0 -1
- package/es/shared/assets/img/file.png.js +0 -1
- package/es/shared/assets/img/use.png.js +0 -1
@@ -1,2 +1,304 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import { SFCWithInstall } from '../../shared/types';
|
2
|
+
import AudioSDK from './src/audioSDK';
|
3
|
+
export { AudioSDK as CAudioSDK };
|
4
|
+
declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
5
|
+
timed: {
|
6
|
+
type: NumberConstructor;
|
7
|
+
default: number;
|
8
|
+
};
|
9
|
+
realTimeRecognition: {
|
10
|
+
type: BooleanConstructor;
|
11
|
+
};
|
12
|
+
allowPunctuationMark: {
|
13
|
+
type: BooleanConstructor;
|
14
|
+
default: boolean;
|
15
|
+
};
|
16
|
+
isGenerateMedicalRecord: {
|
17
|
+
type: BooleanConstructor;
|
18
|
+
};
|
19
|
+
token: {
|
20
|
+
type: StringConstructor;
|
21
|
+
};
|
22
|
+
medicalTemplateInfo: {
|
23
|
+
type: import("vue").PropType<Record<string, any>[]>;
|
24
|
+
};
|
25
|
+
}, {
|
26
|
+
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
27
|
+
audioSdk: AudioSDK;
|
28
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
29
|
+
timed: {
|
30
|
+
type: NumberConstructor;
|
31
|
+
default: number;
|
32
|
+
};
|
33
|
+
realTimeRecognition: {
|
34
|
+
type: BooleanConstructor;
|
35
|
+
};
|
36
|
+
allowPunctuationMark: {
|
37
|
+
type: BooleanConstructor;
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
isGenerateMedicalRecord: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
};
|
43
|
+
token: {
|
44
|
+
type: StringConstructor;
|
45
|
+
};
|
46
|
+
medicalTemplateInfo: {
|
47
|
+
type: import("vue").PropType<Record<string, any>[]>;
|
48
|
+
};
|
49
|
+
}>> & {
|
50
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
51
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
52
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
53
|
+
}>>;
|
54
|
+
emit: (event: "close" | "success" | "fail", ...args: any[]) => void;
|
55
|
+
recordingRef: import("vue").Ref<any>;
|
56
|
+
jsonData: import("vue").Ref<{}>;
|
57
|
+
isRecording: import("vue").Ref<boolean>;
|
58
|
+
isForm: import("vue").Ref<boolean>;
|
59
|
+
configs: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
60
|
+
content: import("vue").ComputedRef<string>;
|
61
|
+
onClose: () => void;
|
62
|
+
onFormClose: () => void;
|
63
|
+
onEnd: () => void;
|
64
|
+
onEdit: (data: import("../../shared/types").AnyObject) => void;
|
65
|
+
onFinish: (data: import("../../shared/types").AnyObject) => void;
|
66
|
+
CRecording: import("vue").DefineComponent<{
|
67
|
+
content: {
|
68
|
+
type: StringConstructor;
|
69
|
+
default: string;
|
70
|
+
};
|
71
|
+
showBtn: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
};
|
74
|
+
token: {
|
75
|
+
type: StringConstructor;
|
76
|
+
};
|
77
|
+
configs: {
|
78
|
+
type: import("vue").PropType<Record<string, string>>;
|
79
|
+
};
|
80
|
+
}, {
|
81
|
+
consultationRecordUrl: string;
|
82
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
83
|
+
content: {
|
84
|
+
type: StringConstructor;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
showBtn: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
};
|
90
|
+
token: {
|
91
|
+
type: StringConstructor;
|
92
|
+
};
|
93
|
+
configs: {
|
94
|
+
type: import("vue").PropType<Record<string, string>>;
|
95
|
+
};
|
96
|
+
}>> & {
|
97
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
98
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
99
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
100
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
101
|
+
}>>;
|
102
|
+
emit: (event: "edit" | "close" | "end" | "fail", ...args: any[]) => void;
|
103
|
+
loading: import("vue").Ref<boolean>;
|
104
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
105
|
+
close: () => void;
|
106
|
+
toEdit: () => Promise<void>;
|
107
|
+
NIcon: any;
|
108
|
+
NButton: any;
|
109
|
+
NSpin: any;
|
110
|
+
Mic: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
111
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "close" | "end" | "fail")[], "edit" | "close" | "end" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
112
|
+
content: {
|
113
|
+
type: StringConstructor;
|
114
|
+
default: string;
|
115
|
+
};
|
116
|
+
showBtn: {
|
117
|
+
type: BooleanConstructor;
|
118
|
+
};
|
119
|
+
token: {
|
120
|
+
type: StringConstructor;
|
121
|
+
};
|
122
|
+
configs: {
|
123
|
+
type: import("vue").PropType<Record<string, string>>;
|
124
|
+
};
|
125
|
+
}>> & {
|
126
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
127
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
128
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
129
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
130
|
+
}, {
|
131
|
+
content: string;
|
132
|
+
showBtn: boolean;
|
133
|
+
}>;
|
134
|
+
RecordingModal: import("vue").DefineComponent<{
|
135
|
+
content: {
|
136
|
+
type: StringConstructor;
|
137
|
+
default: string;
|
138
|
+
};
|
139
|
+
}, {
|
140
|
+
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
141
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
142
|
+
content: {
|
143
|
+
type: StringConstructor;
|
144
|
+
default: string;
|
145
|
+
};
|
146
|
+
}>> & {}>>;
|
147
|
+
NModal: any;
|
148
|
+
Recording: import("vue").DefineComponent<{
|
149
|
+
content: {
|
150
|
+
type: StringConstructor;
|
151
|
+
default: string;
|
152
|
+
};
|
153
|
+
showBtn: {
|
154
|
+
type: BooleanConstructor;
|
155
|
+
};
|
156
|
+
token: {
|
157
|
+
type: StringConstructor;
|
158
|
+
};
|
159
|
+
configs: {
|
160
|
+
type: import("vue").PropType<Record<string, string>>;
|
161
|
+
};
|
162
|
+
}, {
|
163
|
+
consultationRecordUrl: string;
|
164
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
165
|
+
content: {
|
166
|
+
type: StringConstructor;
|
167
|
+
default: string;
|
168
|
+
};
|
169
|
+
showBtn: {
|
170
|
+
type: BooleanConstructor;
|
171
|
+
};
|
172
|
+
token: {
|
173
|
+
type: StringConstructor;
|
174
|
+
};
|
175
|
+
configs: {
|
176
|
+
type: import("vue").PropType<Record<string, string>>;
|
177
|
+
};
|
178
|
+
}>> & {
|
179
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
180
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
181
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
182
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
183
|
+
}>>;
|
184
|
+
emit: (event: "edit" | "close" | "end" | "fail", ...args: any[]) => void;
|
185
|
+
loading: import("vue").Ref<boolean>;
|
186
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
187
|
+
close: () => void;
|
188
|
+
toEdit: () => Promise<void>;
|
189
|
+
NIcon: any;
|
190
|
+
NButton: any;
|
191
|
+
NSpin: any;
|
192
|
+
Mic: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
193
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "close" | "end" | "fail")[], "edit" | "close" | "end" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
194
|
+
content: {
|
195
|
+
type: StringConstructor;
|
196
|
+
default: string;
|
197
|
+
};
|
198
|
+
showBtn: {
|
199
|
+
type: BooleanConstructor;
|
200
|
+
};
|
201
|
+
token: {
|
202
|
+
type: StringConstructor;
|
203
|
+
};
|
204
|
+
configs: {
|
205
|
+
type: import("vue").PropType<Record<string, string>>;
|
206
|
+
};
|
207
|
+
}>> & {
|
208
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
209
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
210
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
211
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
212
|
+
}, {
|
213
|
+
content: string;
|
214
|
+
showBtn: boolean;
|
215
|
+
}>;
|
216
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
217
|
+
content: {
|
218
|
+
type: StringConstructor;
|
219
|
+
default: string;
|
220
|
+
};
|
221
|
+
}>>, {
|
222
|
+
content: string;
|
223
|
+
}>;
|
224
|
+
CForm: import("vue").DefineComponent<{
|
225
|
+
configs: {
|
226
|
+
type: import("vue").PropType<Record<string, string>>;
|
227
|
+
};
|
228
|
+
data: {
|
229
|
+
type: import("vue").PropType<Record<string, string>>;
|
230
|
+
};
|
231
|
+
}, {
|
232
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
233
|
+
configs: {
|
234
|
+
type: import("vue").PropType<Record<string, string>>;
|
235
|
+
};
|
236
|
+
data: {
|
237
|
+
type: import("vue").PropType<Record<string, string>>;
|
238
|
+
};
|
239
|
+
}>> & {
|
240
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
241
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
242
|
+
}>>;
|
243
|
+
emit: (event: "close" | "finish", ...args: any[]) => void;
|
244
|
+
dynamicForm: {
|
245
|
+
list: {
|
246
|
+
label: string;
|
247
|
+
key: string;
|
248
|
+
value: string;
|
249
|
+
}[];
|
250
|
+
};
|
251
|
+
initForm: () => void;
|
252
|
+
handleClear: () => void;
|
253
|
+
onFinish: () => void;
|
254
|
+
NForm: any;
|
255
|
+
NFormItem: any;
|
256
|
+
NSpace: any;
|
257
|
+
NButton: any;
|
258
|
+
NInput: any;
|
259
|
+
NScrollbar: any;
|
260
|
+
NIcon: any;
|
261
|
+
Close: 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<{}>>, {}>;
|
262
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "finish")[], "close" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
263
|
+
configs: {
|
264
|
+
type: import("vue").PropType<Record<string, string>>;
|
265
|
+
};
|
266
|
+
data: {
|
267
|
+
type: import("vue").PropType<Record<string, string>>;
|
268
|
+
};
|
269
|
+
}>> & {
|
270
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
271
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
272
|
+
}, {}>;
|
273
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail")[], "close" | "success" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
274
|
+
timed: {
|
275
|
+
type: NumberConstructor;
|
276
|
+
default: number;
|
277
|
+
};
|
278
|
+
realTimeRecognition: {
|
279
|
+
type: BooleanConstructor;
|
280
|
+
};
|
281
|
+
allowPunctuationMark: {
|
282
|
+
type: BooleanConstructor;
|
283
|
+
default: boolean;
|
284
|
+
};
|
285
|
+
isGenerateMedicalRecord: {
|
286
|
+
type: BooleanConstructor;
|
287
|
+
};
|
288
|
+
token: {
|
289
|
+
type: StringConstructor;
|
290
|
+
};
|
291
|
+
medicalTemplateInfo: {
|
292
|
+
type: import("vue").PropType<Record<string, any>[]>;
|
293
|
+
};
|
294
|
+
}>> & {
|
295
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
296
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
297
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
298
|
+
}, {
|
299
|
+
timed: number;
|
300
|
+
realTimeRecognition: boolean;
|
301
|
+
allowPunctuationMark: boolean;
|
302
|
+
isGenerateMedicalRecord: boolean;
|
303
|
+
}>>;
|
304
|
+
export default AudioSdk;
|
@@ -1 +1 @@
|
|
1
|
-
export{default as CAudioSDK}from"./src/audioSDK.js";
|
1
|
+
import{COMPONENT_NAMESPACE as o}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import s from"./src/Index.vue.js";export{default as CAudioSDK}from"./src/audioSDK.js";const a=s;a.install=function(s){r(s,a,o+"AudioSdk")};export{a as default};
|
@@ -0,0 +1,304 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../shared/types';
|
3
|
+
import AudioSDK from './audioSDK';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
timed: {
|
6
|
+
type: NumberConstructor;
|
7
|
+
default: number;
|
8
|
+
};
|
9
|
+
realTimeRecognition: {
|
10
|
+
type: BooleanConstructor;
|
11
|
+
};
|
12
|
+
allowPunctuationMark: {
|
13
|
+
type: BooleanConstructor;
|
14
|
+
default: boolean;
|
15
|
+
};
|
16
|
+
isGenerateMedicalRecord: {
|
17
|
+
type: BooleanConstructor;
|
18
|
+
};
|
19
|
+
token: {
|
20
|
+
type: StringConstructor;
|
21
|
+
};
|
22
|
+
medicalTemplateInfo: {
|
23
|
+
type: PropType<Record<string, any>[]>;
|
24
|
+
};
|
25
|
+
}, {
|
26
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
27
|
+
audioSdk: AudioSDK;
|
28
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
29
|
+
timed: {
|
30
|
+
type: NumberConstructor;
|
31
|
+
default: number;
|
32
|
+
};
|
33
|
+
realTimeRecognition: {
|
34
|
+
type: BooleanConstructor;
|
35
|
+
};
|
36
|
+
allowPunctuationMark: {
|
37
|
+
type: BooleanConstructor;
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
isGenerateMedicalRecord: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
};
|
43
|
+
token: {
|
44
|
+
type: StringConstructor;
|
45
|
+
};
|
46
|
+
medicalTemplateInfo: {
|
47
|
+
type: PropType<Record<string, any>[]>;
|
48
|
+
};
|
49
|
+
}>> & {
|
50
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
51
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
52
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
53
|
+
}>>;
|
54
|
+
emit: (event: "close" | "success" | "fail", ...args: any[]) => void;
|
55
|
+
recordingRef: import("vue").Ref<any>;
|
56
|
+
jsonData: import("vue").Ref<{}>;
|
57
|
+
isRecording: import("vue").Ref<boolean>;
|
58
|
+
isForm: import("vue").Ref<boolean>;
|
59
|
+
configs: import("vue").ComputedRef<AnyObject>;
|
60
|
+
content: import("vue").ComputedRef<string>;
|
61
|
+
onClose: () => void;
|
62
|
+
onFormClose: () => void;
|
63
|
+
onEnd: () => void;
|
64
|
+
onEdit: (data: AnyObject) => void;
|
65
|
+
onFinish: (data: AnyObject) => void;
|
66
|
+
CRecording: import("vue").DefineComponent<{
|
67
|
+
content: {
|
68
|
+
type: StringConstructor;
|
69
|
+
default: string;
|
70
|
+
};
|
71
|
+
showBtn: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
};
|
74
|
+
token: {
|
75
|
+
type: StringConstructor;
|
76
|
+
};
|
77
|
+
configs: {
|
78
|
+
type: PropType<Record<string, string>>;
|
79
|
+
};
|
80
|
+
}, {
|
81
|
+
consultationRecordUrl: string;
|
82
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
83
|
+
content: {
|
84
|
+
type: StringConstructor;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
showBtn: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
};
|
90
|
+
token: {
|
91
|
+
type: StringConstructor;
|
92
|
+
};
|
93
|
+
configs: {
|
94
|
+
type: PropType<Record<string, string>>;
|
95
|
+
};
|
96
|
+
}>> & {
|
97
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
98
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
99
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
100
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
101
|
+
}>>;
|
102
|
+
emit: (event: "edit" | "close" | "end" | "fail", ...args: any[]) => void;
|
103
|
+
loading: import("vue").Ref<boolean>;
|
104
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
105
|
+
close: () => void;
|
106
|
+
toEdit: () => Promise<void>;
|
107
|
+
NIcon: any;
|
108
|
+
NButton: any;
|
109
|
+
NSpin: any;
|
110
|
+
Mic: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
111
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "close" | "end" | "fail")[], "edit" | "close" | "end" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
112
|
+
content: {
|
113
|
+
type: StringConstructor;
|
114
|
+
default: string;
|
115
|
+
};
|
116
|
+
showBtn: {
|
117
|
+
type: BooleanConstructor;
|
118
|
+
};
|
119
|
+
token: {
|
120
|
+
type: StringConstructor;
|
121
|
+
};
|
122
|
+
configs: {
|
123
|
+
type: PropType<Record<string, string>>;
|
124
|
+
};
|
125
|
+
}>> & {
|
126
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
127
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
128
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
129
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
130
|
+
}, {
|
131
|
+
content: string;
|
132
|
+
showBtn: boolean;
|
133
|
+
}>;
|
134
|
+
RecordingModal: import("vue").DefineComponent<{
|
135
|
+
content: {
|
136
|
+
type: StringConstructor;
|
137
|
+
default: string;
|
138
|
+
};
|
139
|
+
}, {
|
140
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
141
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
142
|
+
content: {
|
143
|
+
type: StringConstructor;
|
144
|
+
default: string;
|
145
|
+
};
|
146
|
+
}>> & {}>>;
|
147
|
+
NModal: any;
|
148
|
+
Recording: import("vue").DefineComponent<{
|
149
|
+
content: {
|
150
|
+
type: StringConstructor;
|
151
|
+
default: string;
|
152
|
+
};
|
153
|
+
showBtn: {
|
154
|
+
type: BooleanConstructor;
|
155
|
+
};
|
156
|
+
token: {
|
157
|
+
type: StringConstructor;
|
158
|
+
};
|
159
|
+
configs: {
|
160
|
+
type: PropType<Record<string, string>>;
|
161
|
+
};
|
162
|
+
}, {
|
163
|
+
consultationRecordUrl: string;
|
164
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
165
|
+
content: {
|
166
|
+
type: StringConstructor;
|
167
|
+
default: string;
|
168
|
+
};
|
169
|
+
showBtn: {
|
170
|
+
type: BooleanConstructor;
|
171
|
+
};
|
172
|
+
token: {
|
173
|
+
type: StringConstructor;
|
174
|
+
};
|
175
|
+
configs: {
|
176
|
+
type: PropType<Record<string, string>>;
|
177
|
+
};
|
178
|
+
}>> & {
|
179
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
180
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
181
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
182
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
183
|
+
}>>;
|
184
|
+
emit: (event: "edit" | "close" | "end" | "fail", ...args: any[]) => void;
|
185
|
+
loading: import("vue").Ref<boolean>;
|
186
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
187
|
+
close: () => void;
|
188
|
+
toEdit: () => Promise<void>;
|
189
|
+
NIcon: any;
|
190
|
+
NButton: any;
|
191
|
+
NSpin: any;
|
192
|
+
Mic: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
193
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "close" | "end" | "fail")[], "edit" | "close" | "end" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
194
|
+
content: {
|
195
|
+
type: StringConstructor;
|
196
|
+
default: string;
|
197
|
+
};
|
198
|
+
showBtn: {
|
199
|
+
type: BooleanConstructor;
|
200
|
+
};
|
201
|
+
token: {
|
202
|
+
type: StringConstructor;
|
203
|
+
};
|
204
|
+
configs: {
|
205
|
+
type: PropType<Record<string, string>>;
|
206
|
+
};
|
207
|
+
}>> & {
|
208
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
209
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
210
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
211
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
212
|
+
}, {
|
213
|
+
content: string;
|
214
|
+
showBtn: boolean;
|
215
|
+
}>;
|
216
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
217
|
+
content: {
|
218
|
+
type: StringConstructor;
|
219
|
+
default: string;
|
220
|
+
};
|
221
|
+
}>>, {
|
222
|
+
content: string;
|
223
|
+
}>;
|
224
|
+
CForm: import("vue").DefineComponent<{
|
225
|
+
configs: {
|
226
|
+
type: PropType<Record<string, string>>;
|
227
|
+
};
|
228
|
+
data: {
|
229
|
+
type: PropType<Record<string, string>>;
|
230
|
+
};
|
231
|
+
}, {
|
232
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
233
|
+
configs: {
|
234
|
+
type: PropType<Record<string, string>>;
|
235
|
+
};
|
236
|
+
data: {
|
237
|
+
type: PropType<Record<string, string>>;
|
238
|
+
};
|
239
|
+
}>> & {
|
240
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
241
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
242
|
+
}>>;
|
243
|
+
emit: (event: "close" | "finish", ...args: any[]) => void;
|
244
|
+
dynamicForm: {
|
245
|
+
list: {
|
246
|
+
label: string;
|
247
|
+
key: string;
|
248
|
+
value: string;
|
249
|
+
}[];
|
250
|
+
};
|
251
|
+
initForm: () => void;
|
252
|
+
handleClear: () => void;
|
253
|
+
onFinish: () => void;
|
254
|
+
NForm: any;
|
255
|
+
NFormItem: any;
|
256
|
+
NSpace: any;
|
257
|
+
NButton: any;
|
258
|
+
NInput: any;
|
259
|
+
NScrollbar: any;
|
260
|
+
NIcon: any;
|
261
|
+
Close: 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<{}>>, {}>;
|
262
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "finish")[], "close" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
263
|
+
configs: {
|
264
|
+
type: PropType<Record<string, string>>;
|
265
|
+
};
|
266
|
+
data: {
|
267
|
+
type: PropType<Record<string, string>>;
|
268
|
+
};
|
269
|
+
}>> & {
|
270
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
271
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
272
|
+
}, {}>;
|
273
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail")[], "close" | "success" | "fail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
274
|
+
timed: {
|
275
|
+
type: NumberConstructor;
|
276
|
+
default: number;
|
277
|
+
};
|
278
|
+
realTimeRecognition: {
|
279
|
+
type: BooleanConstructor;
|
280
|
+
};
|
281
|
+
allowPunctuationMark: {
|
282
|
+
type: BooleanConstructor;
|
283
|
+
default: boolean;
|
284
|
+
};
|
285
|
+
isGenerateMedicalRecord: {
|
286
|
+
type: BooleanConstructor;
|
287
|
+
};
|
288
|
+
token: {
|
289
|
+
type: StringConstructor;
|
290
|
+
};
|
291
|
+
medicalTemplateInfo: {
|
292
|
+
type: PropType<Record<string, any>[]>;
|
293
|
+
};
|
294
|
+
}>> & {
|
295
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
296
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
297
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
298
|
+
}, {
|
299
|
+
timed: number;
|
300
|
+
realTimeRecognition: boolean;
|
301
|
+
allowPunctuationMark: boolean;
|
302
|
+
isGenerateMedicalRecord: boolean;
|
303
|
+
}>;
|
304
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Index.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,ref as o,computed as t,onBeforeUnmount as n,openBlock as i,createElementBlock as a,normalizeStyle as s,unref as r,Fragment as l,createBlock as c,createCommentVNode as u}from"vue";import d from"./components/recording.vue.js";import m from"./components/recording-modal.vue.js";import p from"./components/form.vue.js";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../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 f from"./audioSDK.js";import{getConfigs as h,getMedicalTemplateInfo as k}from"./utils/index.js";var y=e({__name:"Index",props:{timed:{type:Number,default:5},realTimeRecognition:{type:Boolean},allowPunctuationMark:{type:Boolean,default:!0},isGenerateMedicalRecord:{type:Boolean},token:{type:String},medicalTemplateInfo:{type:Object}},emits:["close","success","fail"],setup(e,{expose:y,emit:g}){const j=e,R=v(),M=f.create(),x=o(),T=o({}),w=o(!1),G=o(!1),I=t((()=>h(j.medicalTemplateInfo||[]))),S=t((()=>M.contentRef.value));function b(){M.stop(),w.value=!1,G.value=!1,g("close")}function B(){G.value=!1,g("close")}function C(){M.stop()}function E(e){w.value=!1,G.value=!0,T.value=e}function _(e){const o=k(e,j.medicalTemplateInfo||[]);g("success",o)}return n((()=>{f.destroy()})),y({createMedicalRecord:async()=>{var e;G.value=!1,w.value=!0;try{const o=await M.start(j),t=null==o?void 0:o.data;if(!j.isGenerateMedicalRecord)return g("success",t),w.value=!1,void(G.value=!1);if(j.isGenerateMedicalRecord&&(null==o?void 0:o.timeout))return S.value?void(null==(e=x.value)||e.toEdit()):(w.value=!1,void g("close"))}catch(e){w.value=!1,g("fail",e)}}}),(o,t)=>(i(),a("div",{style:s(r(R)),class:"c-recording-sdk-wrapper"},[e.isGenerateMedicalRecord?(i(),a(l,{key:0},[w.value?(i(),c(d,{key:0,ref_key:"recordingRef",ref:x,token:e.token,configs:r(I),content:r(S),"show-btn":"",onClose:b,onEnd:C,onFail:t[0]||(t[0]=e=>g("fail",e)),onEdit:E},null,8,["token","configs","content"])):u("v-if",!0),G.value?(i(),c(p,{key:1,configs:r(I),data:T.value,onClose:B,onFinish:_},null,8,["configs","data"])):u("v-if",!0)],64)):(i(),c(m,{key:1,content:r(S)},null,8,["content"]))],4))}});export{y as default};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ComponentInternalInstance } from 'vue';
|
2
1
|
import { AnyObject } from '../../../shared/types';
|
3
2
|
import 'recorder-core/src/engine/mp3';
|
4
3
|
import 'recorder-core/src/engine/mp3-engine';
|
@@ -9,30 +8,28 @@ export default class AudioSDK {
|
|
9
8
|
private webSocket;
|
10
9
|
private messageHandlerQueue;
|
11
10
|
private recorder;
|
12
|
-
private contentRef;
|
13
11
|
private realTimeSendStartTime;
|
14
12
|
private realTimeSendBytesChunks;
|
15
13
|
private realTimeSendClearPrevBufferIdx;
|
16
14
|
private timer;
|
17
15
|
private option;
|
18
16
|
private hasEventListener;
|
17
|
+
contentRef: import("vue").Ref<string>;
|
19
18
|
isReady: boolean;
|
20
19
|
constructor();
|
21
20
|
static create(): AudioSDK;
|
22
21
|
private initRecorder;
|
23
22
|
private onProcess;
|
24
23
|
private takeoffEncodeChunk;
|
24
|
+
private toSend;
|
25
25
|
run(handle: {
|
26
26
|
resolve: Function;
|
27
27
|
reject: Function;
|
28
|
-
}
|
29
|
-
start(
|
30
|
-
|
31
|
-
resume(): void;
|
32
|
-
stop(): void;
|
28
|
+
}): void;
|
29
|
+
start(option?: AnyObject): Promise<unknown>;
|
30
|
+
stop(params?: AnyObject): void;
|
33
31
|
private handleError;
|
34
32
|
private handleMessage;
|
35
|
-
private handleKeydown;
|
36
33
|
private reset;
|
37
34
|
destroy(): void;
|
38
35
|
static destroy(): void;
|