cnhis-design-vue 3.3.2-release.3 → 3.3.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/es/components/audio-sdk/index.d.ts +22 -9
  2. package/es/components/audio-sdk/src/Index.vue.d.ts +22 -9
  3. package/es/components/audio-sdk/src/Index.vue2.js +5 -1
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +6 -53
  5. package/es/components/audio-sdk/src/audioSDK.js +67 -425
  6. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +5 -5
  7. package/es/components/audio-sdk/src/components/recording.vue.d.ts +5 -5
  8. package/es/components/audio-sdk/src/types/index.d.ts +1 -1
  9. package/es/components/button-print/index.d.ts +2 -0
  10. package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -0
  11. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  12. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
  13. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +20 -8
  14. package/es/components/callback/src/components/render/popupMaps.d.ts +2 -2
  15. package/es/components/field-set/src/FieldSet.vue.d.ts +10 -0
  16. package/es/components/field-set/src/FieldSet.vue2.js +7 -1
  17. package/es/components/form-config/index.d.ts +35 -5
  18. package/es/components/form-config/src/FormConfig.vue.d.ts +35 -5
  19. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +28 -4
  20. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -1
  21. package/es/components/form-render/index.js +1 -1
  22. package/es/components/form-render/src/components/renderer/date.js +64 -55
  23. package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -9
  24. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +2 -2
  25. package/es/components/form-render/src/hooks/useFieldNormalize.js +6 -2
  26. package/es/components/form-render/src/types/fieldItem.d.ts +9 -1
  27. package/es/components/form-render/src/utils/business.d.ts +2 -1
  28. package/es/components/form-render/src/utils/business.js +45 -2
  29. package/es/components/form-render/src/utils/index.js +1 -1
  30. package/es/components/iho-table/index.d.ts +2 -2
  31. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -2
  32. package/es/components/iho-table/src/IhoTable.vue2.js +6 -6
  33. package/es/components/index.js +1 -1
  34. package/es/components/scale-view/index.d.ts +13 -0
  35. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  36. package/es/components/scale-view/src/ScaleView.vue2.js +4 -4
  37. package/es/components/scale-view/src/hooks/scaleview-computed.js +12 -7
  38. package/es/components/scale-view/src/hooks/scaleview-init.js +3 -3
  39. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  40. package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
  41. package/es/components/shortcut-setter/index.d.ts +7 -1
  42. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -1
  43. package/es/shared/package.json.js +1 -1
  44. package/package.json +3 -2
@@ -28,6 +28,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
28
28
  type: StringConstructor;
29
29
  default: string;
30
30
  };
31
+ textPrefix: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
31
35
  }, {
32
36
  consultationRecordUrl: string;
33
37
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
@@ -57,6 +61,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
57
61
  type: StringConstructor;
58
62
  default: string;
59
63
  };
64
+ textPrefix: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
60
68
  }>> & {
61
69
  onSuccess?: ((...args: any[]) => any) | undefined;
62
70
  onClose?: ((...args: any[]) => any) | undefined;
@@ -72,16 +80,16 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
72
80
  isRecording: import("vue").Ref<boolean>;
73
81
  loading: import("vue").Ref<boolean>;
74
82
  content: any;
75
- wsConnected: import("vue").ComputedRef<boolean>;
76
- recorderStatus: import("vue").ComputedRef<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
83
+ wsConnected: import("vue").ComputedRef<boolean | undefined>;
84
+ recorderStatus: import("vue").ComputedRef<"" | "fail">;
77
85
  recordingProps: import("vue").ComputedRef<{
78
86
  token: string | undefined;
79
87
  configs: import("../../shared/types").AnyObject;
80
88
  content: any;
81
89
  intentionCode: string;
82
90
  show: boolean;
83
- wsConnected: boolean;
84
- recorderStatus: "" | "fail" | "recording" | "pause" | "ws_close" | "stop";
91
+ wsConnected: boolean | undefined;
92
+ recorderStatus: string;
85
93
  startWaveViewMethod: (options: import("../../shared/types").AnyObject) => void;
86
94
  }>;
87
95
  isGenerateMedicalRecord: import("vue").ComputedRef<boolean>;
@@ -132,7 +140,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
132
140
  type: import("vue").PropType<import("../../shared/types").AnyFn>;
133
141
  };
134
142
  recorderStatus: {
135
- type: import("vue").PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
143
+ type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
136
144
  default: string;
137
145
  };
138
146
  }, {
@@ -174,7 +182,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
174
182
  type: import("vue").PropType<import("../../shared/types").AnyFn>;
175
183
  };
176
184
  recorderStatus: {
177
- type: import("vue").PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
185
+ type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
178
186
  default: string;
179
187
  };
180
188
  }>> & {
@@ -192,7 +200,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
192
200
  data: string;
193
201
  }>;
194
202
  wsConnected: import("vue").Ref<boolean>;
195
- recorderStatus: import("vue").Ref<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
203
+ recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
196
204
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
197
205
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
198
206
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
@@ -308,7 +316,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
308
316
  type: import("vue").PropType<import("../../shared/types").AnyFn>;
309
317
  };
310
318
  recorderStatus: {
311
- type: import("vue").PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
319
+ type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
312
320
  default: string;
313
321
  };
314
322
  }>> & {
@@ -328,7 +336,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
328
336
  showBtn: boolean;
329
337
  wsConnected: boolean;
330
338
  fromSdk: boolean;
331
- recorderStatus: "" | "fail" | "recording" | "pause" | "ws_close" | "stop";
339
+ recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
332
340
  }>;
333
341
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail" | "recordingHeightChange")[], "close" | "success" | "fail" | "recordingHeightChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
334
342
  timed: {
@@ -355,6 +363,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
355
363
  type: StringConstructor;
356
364
  default: string;
357
365
  };
366
+ textPrefix: {
367
+ type: StringConstructor;
368
+ default: string;
369
+ };
358
370
  }>> & {
359
371
  onSuccess?: ((...args: any[]) => any) | undefined;
360
372
  onClose?: ((...args: any[]) => any) | undefined;
@@ -365,5 +377,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
365
377
  realTimeRecognition: boolean;
366
378
  allowPunctuationMark: boolean;
367
379
  useSource: string;
380
+ textPrefix: string;
368
381
  }>>;
369
382
  export default AudioSdk;
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: StringConstructor;
27
27
  default: string;
28
28
  };
29
+ textPrefix: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
29
33
  }, {
30
34
  consultationRecordUrl: string;
31
35
  cssVars: import("vue").ComputedRef<AnyObject>;
@@ -55,6 +59,10 @@ declare const _default: import("vue").DefineComponent<{
55
59
  type: StringConstructor;
56
60
  default: string;
57
61
  };
62
+ textPrefix: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
58
66
  }>> & {
59
67
  onSuccess?: ((...args: any[]) => any) | undefined;
60
68
  onClose?: ((...args: any[]) => any) | undefined;
@@ -70,16 +78,16 @@ declare const _default: import("vue").DefineComponent<{
70
78
  isRecording: import("vue").Ref<boolean>;
71
79
  loading: import("vue").Ref<boolean>;
72
80
  content: any;
73
- wsConnected: import("vue").ComputedRef<boolean>;
74
- recorderStatus: import("vue").ComputedRef<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
81
+ wsConnected: import("vue").ComputedRef<boolean | undefined>;
82
+ recorderStatus: import("vue").ComputedRef<"" | "fail">;
75
83
  recordingProps: import("vue").ComputedRef<{
76
84
  token: string | undefined;
77
85
  configs: AnyObject;
78
86
  content: any;
79
87
  intentionCode: string;
80
88
  show: boolean;
81
- wsConnected: boolean;
82
- recorderStatus: "" | "fail" | "recording" | "pause" | "ws_close" | "stop";
89
+ wsConnected: boolean | undefined;
90
+ recorderStatus: string;
83
91
  startWaveViewMethod: (options: AnyObject) => void;
84
92
  }>;
85
93
  isGenerateMedicalRecord: import("vue").ComputedRef<boolean>;
@@ -130,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
130
138
  type: PropType<import("../../../shared/types").AnyFn>;
131
139
  };
132
140
  recorderStatus: {
133
- type: PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
141
+ type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
134
142
  default: string;
135
143
  };
136
144
  }, {
@@ -172,7 +180,7 @@ declare const _default: import("vue").DefineComponent<{
172
180
  type: PropType<import("../../../shared/types").AnyFn>;
173
181
  };
174
182
  recorderStatus: {
175
- type: PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
183
+ type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
176
184
  default: string;
177
185
  };
178
186
  }>> & {
@@ -190,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
190
198
  data: string;
191
199
  }>;
192
200
  wsConnected: import("vue").Ref<boolean>;
193
- recorderStatus: import("vue").Ref<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
201
+ recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
194
202
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
195
203
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
196
204
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
@@ -306,7 +314,7 @@ declare const _default: import("vue").DefineComponent<{
306
314
  type: PropType<import("../../../shared/types").AnyFn>;
307
315
  };
308
316
  recorderStatus: {
309
- type: PropType<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
317
+ type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
310
318
  default: string;
311
319
  };
312
320
  }>> & {
@@ -326,7 +334,7 @@ declare const _default: import("vue").DefineComponent<{
326
334
  showBtn: boolean;
327
335
  wsConnected: boolean;
328
336
  fromSdk: boolean;
329
- recorderStatus: "" | "fail" | "recording" | "pause" | "ws_close" | "stop";
337
+ recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
330
338
  }>;
331
339
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail" | "recordingHeightChange")[], "close" | "success" | "fail" | "recordingHeightChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
332
340
  timed: {
@@ -353,6 +361,10 @@ declare const _default: import("vue").DefineComponent<{
353
361
  type: StringConstructor;
354
362
  default: string;
355
363
  };
364
+ textPrefix: {
365
+ type: StringConstructor;
366
+ default: string;
367
+ };
356
368
  }>> & {
357
369
  onSuccess?: ((...args: any[]) => any) | undefined;
358
370
  onClose?: ((...args: any[]) => any) | undefined;
@@ -363,5 +375,6 @@ declare const _default: import("vue").DefineComponent<{
363
375
  realTimeRecognition: boolean;
364
376
  allowPunctuationMark: boolean;
365
377
  useSource: string;
378
+ textPrefix: string;
366
379
  }>;
367
380
  export default _default;
@@ -40,6 +40,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  useSource: {
41
41
  type: String,
42
42
  default: ""
43
+ },
44
+ textPrefix: {
45
+ type: String,
46
+ default: ""
43
47
  }
44
48
  },
45
49
  emits: ["close", "success", "fail", "recordingHeightChange"],
@@ -127,7 +131,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
127
131
  data
128
132
  } = await axios.post(consultationRecordUrl, {
129
133
  taskId: 1,
130
- audioText,
134
+ audioText: props.textPrefix + audioText,
131
135
  intentionCode: props.intentionCode,
132
136
  configs: props.configs || {}
133
137
  }, {
@@ -1,62 +1,20 @@
1
1
  import { AudioTypes } from './types';
2
2
  export default class AudioSDK {
3
- private plugins;
4
- private static instance;
5
- private recorder;
6
- private webSocket;
7
- private messageQueue;
8
- private options;
9
- private reqId;
10
- private connectionState;
11
- private sendBuffer;
12
- private startTimestamp;
13
- private bufferIndex;
14
- private timer;
3
+ static instance: AudioSDK | null;
4
+ private _audioSDK;
5
+ contentRef: import("vue").WritableComputedRef<string>;
6
+ wsConnected: import("vue").ComputedRef<boolean | undefined>;
7
+ recorderStatus: import("vue").ComputedRef<"" | "fail">;
15
8
  private recordingModal;
16
- contentRef: import("vue").Ref<string>;
17
- wsConnected: import("vue").Ref<boolean>;
18
- private loading;
19
- private pauseContent;
20
- recorderStatus: import("vue").Ref<"" | "fail" | "recording" | "pause" | "ws_close" | "stop">;
21
- recorderClosing: import("vue").Ref<boolean>;
22
- waveView: any;
23
9
  constructor();
24
10
  static create(): AudioSDK;
25
- private initRecorder;
26
- start(options: AudioTypes.AudioOptions): Promise<AudioTypes.SpeechResult>;
27
- private setWsConnected;
28
- private setupWebSocket;
29
- private startRecording;
30
11
  private showRecordingModal;
31
- private handleProcess;
32
- private cleanProcessedBuffers;
33
- private updateAudioVisualization;
34
- private handleChunk;
35
- private sendBufferedData;
36
- private mergeBuffers;
37
- private sendBlob;
38
- private messageResolver;
39
- private lastChunkTimer;
40
- /**
41
- * 关闭录音
42
- * isErrorSet 错误状态需要关闭录音, 关闭页面或者弹框, 并提示
43
- * isEndSet 结束 需要校验录音空值并提示
44
- * isCloseSet 关闭 不要返回this.contentRef.value
45
- * @param params
46
- * @returns
47
- */
12
+ start(options: AudioTypes.AudioOptions): Promise<AudioTypes.SpeechResult>;
48
13
  stop(params?: {
49
14
  timeout?: boolean;
50
- isErrorSet?: boolean;
51
15
  isEndSet?: boolean;
52
16
  isCloseSet?: boolean;
53
17
  }): Promise<void>;
54
- private resolvePendingRequest;
55
- private processHttpRecording;
56
- private getErrorMessage;
57
- private handleMessage;
58
- private handleLastChunk;
59
- private parseMessageData;
60
18
  /**
61
19
  * 错误处理
62
20
  * @param msg 错误信息
@@ -66,11 +24,6 @@ export default class AudioSDK {
66
24
  * @returns
67
25
  */
68
26
  handleError(msg: string, isUserNotAllow?: boolean, messageType?: 'warning' | 'error', errorType?: 'stop'): Promise<void>;
69
- private cleanupWebSocket;
70
- private cleanupResources;
71
- private resetState;
72
- private checkEnvironment;
73
- private cleanupWaveView;
74
27
  startWaveView(options: AudioTypes.WaveViewOptions): Promise<void>;
75
28
  pause(): Promise<void>;
76
29
  resume(): Promise<void>;