cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.7

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 (189) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/index.d.ts +13 -11
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +13 -11
  4. package/es/components/audio-sdk/src/Index.vue2.js +43 -11
  5. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  6. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +1 -1
  7. package/es/components/audio-sdk/src/components/recording.vue.d.ts +1 -1
  8. package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
  9. package/es/components/base-search/index.d.ts +3 -0
  10. package/es/components/base-search/src/index.vue.d.ts +3 -0
  11. package/es/components/big-table/src/components/NoData.vue2.js +8 -1
  12. package/es/components/big-table/src/hooks/useTableParse.js +8 -1
  13. package/es/components/button-print/index.d.ts +2 -1
  14. package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
  15. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  16. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
  17. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +11 -5
  18. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
  19. package/es/components/button-print/src/utils/print.d.ts +2 -2
  20. package/es/components/button-print/src/utils/print.js +29 -20
  21. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
  22. package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
  23. package/es/components/classification/index.d.ts +56 -6
  24. package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
  25. package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
  26. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  27. package/es/components/classification/src/index.vue.d.ts +56 -6
  28. package/es/components/expand-field/index.d.ts +792 -1
  29. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
  30. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
  31. package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
  32. package/es/components/expand-field/src/components/form.vue2.js +8 -1
  33. package/es/components/expand-field/src/index.vue.d.ts +792 -1
  34. package/es/components/field-editor/index.d.ts +13 -0
  35. package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
  36. package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
  37. package/es/components/field-editor/src/fields.d.ts +1 -0
  38. package/es/components/field-editor/src/fields.js +6 -0
  39. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  40. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  41. package/es/components/field-set/src/FieldSet.vue.d.ts +32 -1
  42. package/es/components/field-set/src/FieldSet.vue2.js +112 -65
  43. package/es/components/field-set/src/Index.vue2.js +8 -3
  44. package/es/components/field-set/src/TableStyle.vue2.js +2 -2
  45. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  46. package/es/components/field-set/src/constants/index.d.ts +1 -1
  47. package/es/components/field-set/style/index.css +1 -1
  48. package/es/components/form-config/index.d.ts +39 -0
  49. package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
  50. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
  51. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
  52. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
  53. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
  54. package/es/components/form-render/index.d.ts +13 -0
  55. package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
  56. package/es/components/form-render/src/FormRender.vue2.js +4 -0
  57. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
  58. package/es/components/form-render/src/components/renderer/formItem.js +8 -1
  59. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
  60. package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
  61. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  62. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  63. package/es/components/form-render/src/utils/business.d.ts +3 -1
  64. package/es/components/form-render/src/utils/business.js +7 -1
  65. package/es/components/iho-chat/index.d.ts +18 -1
  66. package/es/components/iho-chat/src/Index.vue.d.ts +18 -1
  67. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -1
  68. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +22 -10
  69. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
  70. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
  71. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
  72. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  73. package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
  74. package/es/components/iho-chat/src/hooks/index.js +1 -0
  75. package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
  76. package/es/components/iho-chat/src/hooks/useDraggable.js +151 -0
  77. package/es/components/iho-chat/style/index.css +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  79. package/es/components/index.css +1 -1
  80. package/es/components/info-header/index.d.ts +26 -0
  81. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  82. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
  83. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
  84. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  85. package/es/components/quick-search/index.d.ts +2 -0
  86. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  87. package/es/components/scale-view/index.d.ts +67 -17
  88. package/es/components/scale-view/src/ScaleView.vue.d.ts +70 -19
  89. package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
  90. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  91. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  92. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
  93. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
  94. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
  95. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
  96. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  97. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  98. package/es/components/scale-view/src/components/ScaleScore.js +47 -4
  99. package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
  100. package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
  101. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  102. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  103. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  104. package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
  105. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  106. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  107. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
  108. package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
  109. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
  110. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  111. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  112. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  113. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  114. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  115. package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
  116. package/es/components/scale-view/src/utils/judge-types.js +10 -10
  117. package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
  118. package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
  119. package/es/components/scale-view/style/index.css +1 -1
  120. package/es/components/select-person/index.d.ts +792 -1
  121. package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
  122. package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
  123. package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
  124. package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
  125. package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
  126. package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
  127. package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
  128. package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
  129. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
  130. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  131. package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
  132. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  133. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  134. package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
  135. package/es/components/select-person/src/components/TagItem.vue.js +6 -0
  136. package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
  137. package/es/components/select-person/src/index.vue.d.ts +793 -1
  138. package/es/components/select-person/src/index.vue2.js +21 -4
  139. package/es/components/select-person/src/types/index.d.ts +35 -0
  140. package/es/components/select-person/src/types/index.js +1 -0
  141. package/es/components/select-person/src/utils/index.d.ts +3 -0
  142. package/es/components/select-person/src/utils/index.js +29 -8
  143. package/es/components/select-person/style/index.css +1 -1
  144. package/es/components/shortcut-setter/index.d.ts +13 -0
  145. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
  146. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  147. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
  148. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
  149. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  150. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
  151. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
  152. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
  153. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
  154. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
  155. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
  156. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
  157. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  158. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
  159. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
  160. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
  161. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  162. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
  163. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
  165. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  166. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
  167. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
  168. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
  169. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  170. package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
  171. package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
  172. package/es/components/table-filter/src/tool/date.d.ts +3 -0
  173. package/es/components/table-filter/src/tool/date.js +139 -0
  174. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  175. package/es/components/table-filter/src/tool/transformData.js +11 -8
  176. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  177. package/es/components/table-filter/src/types/enums.js +2 -1
  178. package/es/components/table-filter/src/types/index.d.ts +12 -0
  179. package/es/components/vod-chunk-upload/index.d.ts +3 -0
  180. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
  181. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
  182. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
  183. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
  184. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
  185. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
  186. package/es/env.d.ts +25 -25
  187. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  188. package/es/shared/package.json.js +1 -1
  189. package/package.json +2 -2
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -8,9 +8,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
8
8
  type: NumberConstructor;
9
9
  default: number;
10
10
  };
11
- realTimeRecognition: {
12
- type: BooleanConstructor;
13
- };
14
11
  allowPunctuationMark: {
15
12
  type: BooleanConstructor;
16
13
  default: boolean;
@@ -32,8 +29,12 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
32
29
  type: StringConstructor;
33
30
  default: string;
34
31
  };
32
+ appCode: {
33
+ type: StringConstructor;
34
+ };
35
35
  }, {
36
36
  consultationRecordUrl: string;
37
+ chatBoxinit: string;
37
38
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
38
39
  audioSdk: AudioSDK;
39
40
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -41,9 +42,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
41
42
  type: NumberConstructor;
42
43
  default: number;
43
44
  };
44
- realTimeRecognition: {
45
- type: BooleanConstructor;
46
- };
47
45
  allowPunctuationMark: {
48
46
  type: BooleanConstructor;
49
47
  default: boolean;
@@ -65,6 +63,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
65
63
  type: StringConstructor;
66
64
  default: string;
67
65
  };
66
+ appCode: {
67
+ type: StringConstructor;
68
+ };
68
69
  }>> & {
69
70
  onSuccess?: ((...args: any[]) => any) | undefined;
70
71
  onClose?: ((...args: any[]) => any) | undefined;
@@ -79,6 +80,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
79
80
  recordingRef: import("vue").Ref<any>;
80
81
  isRecording: import("vue").Ref<boolean>;
81
82
  loading: import("vue").Ref<boolean>;
83
+ audioType: import("vue").Ref<"websocket" | "http" | undefined>;
82
84
  content: any;
83
85
  wsConnected: import("vue").ComputedRef<boolean | undefined>;
84
86
  recorderStatus: import("vue").ComputedRef<"" | "fail">;
@@ -101,6 +103,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
101
103
  onPause: () => void;
102
104
  onResume: () => void;
103
105
  handleToAnalyzing: (obj?: import("../../shared/types").AnyObject) => Promise<void>;
106
+ getAudioType: () => Promise<void>;
104
107
  createMedicalRecord: () => Promise<void>;
105
108
  CRecording: import("vue").DefineComponent<{
106
109
  content: {
@@ -204,8 +207,8 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
204
207
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
205
208
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
206
209
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
207
- isActive: import("vue").Ref<boolean>;
208
210
  isWarning: import("vue").Ref<boolean>;
211
+ isActive: import("vue").Ref<boolean>;
209
212
  formattedTime: import("vue").ComputedRef<string>;
210
213
  isCountFinished: import("vue").Ref<boolean>;
211
214
  isCountActive: import("vue").Ref<boolean>;
@@ -343,9 +346,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
343
346
  type: NumberConstructor;
344
347
  default: number;
345
348
  };
346
- realTimeRecognition: {
347
- type: BooleanConstructor;
348
- };
349
349
  allowPunctuationMark: {
350
350
  type: BooleanConstructor;
351
351
  default: boolean;
@@ -367,6 +367,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
367
367
  type: StringConstructor;
368
368
  default: string;
369
369
  };
370
+ appCode: {
371
+ type: StringConstructor;
372
+ };
370
373
  }>> & {
371
374
  onSuccess?: ((...args: any[]) => any) | undefined;
372
375
  onClose?: ((...args: any[]) => any) | undefined;
@@ -374,7 +377,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
374
377
  onRecordingHeightChange?: ((...args: any[]) => any) | undefined;
375
378
  }, {
376
379
  timed: number;
377
- realTimeRecognition: boolean;
378
380
  allowPunctuationMark: boolean;
379
381
  useSource: string;
380
382
  textPrefix: string;
@@ -6,9 +6,6 @@ declare const _default: import("vue").DefineComponent<{
6
6
  type: NumberConstructor;
7
7
  default: number;
8
8
  };
9
- realTimeRecognition: {
10
- type: BooleanConstructor;
11
- };
12
9
  allowPunctuationMark: {
13
10
  type: BooleanConstructor;
14
11
  default: boolean;
@@ -30,8 +27,12 @@ declare const _default: import("vue").DefineComponent<{
30
27
  type: StringConstructor;
31
28
  default: string;
32
29
  };
30
+ appCode: {
31
+ type: StringConstructor;
32
+ };
33
33
  }, {
34
34
  consultationRecordUrl: string;
35
+ chatBoxinit: string;
35
36
  cssVars: import("vue").ComputedRef<AnyObject>;
36
37
  audioSdk: AudioSDK;
37
38
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -39,9 +40,6 @@ declare const _default: import("vue").DefineComponent<{
39
40
  type: NumberConstructor;
40
41
  default: number;
41
42
  };
42
- realTimeRecognition: {
43
- type: BooleanConstructor;
44
- };
45
43
  allowPunctuationMark: {
46
44
  type: BooleanConstructor;
47
45
  default: boolean;
@@ -63,6 +61,9 @@ declare const _default: import("vue").DefineComponent<{
63
61
  type: StringConstructor;
64
62
  default: string;
65
63
  };
64
+ appCode: {
65
+ type: StringConstructor;
66
+ };
66
67
  }>> & {
67
68
  onSuccess?: ((...args: any[]) => any) | undefined;
68
69
  onClose?: ((...args: any[]) => any) | undefined;
@@ -77,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
77
78
  recordingRef: import("vue").Ref<any>;
78
79
  isRecording: import("vue").Ref<boolean>;
79
80
  loading: import("vue").Ref<boolean>;
81
+ audioType: import("vue").Ref<"websocket" | "http" | undefined>;
80
82
  content: any;
81
83
  wsConnected: import("vue").ComputedRef<boolean | undefined>;
82
84
  recorderStatus: import("vue").ComputedRef<"" | "fail">;
@@ -99,6 +101,7 @@ declare const _default: import("vue").DefineComponent<{
99
101
  onPause: () => void;
100
102
  onResume: () => void;
101
103
  handleToAnalyzing: (obj?: AnyObject) => Promise<void>;
104
+ getAudioType: () => Promise<void>;
102
105
  createMedicalRecord: () => Promise<void>;
103
106
  CRecording: import("vue").DefineComponent<{
104
107
  content: {
@@ -202,8 +205,8 @@ declare const _default: import("vue").DefineComponent<{
202
205
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
203
206
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
204
207
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
205
- isActive: import("vue").Ref<boolean>;
206
208
  isWarning: import("vue").Ref<boolean>;
209
+ isActive: import("vue").Ref<boolean>;
207
210
  formattedTime: import("vue").ComputedRef<string>;
208
211
  isCountFinished: import("vue").Ref<boolean>;
209
212
  isCountActive: import("vue").Ref<boolean>;
@@ -341,9 +344,6 @@ declare const _default: import("vue").DefineComponent<{
341
344
  type: NumberConstructor;
342
345
  default: number;
343
346
  };
344
- realTimeRecognition: {
345
- type: BooleanConstructor;
346
- };
347
347
  allowPunctuationMark: {
348
348
  type: BooleanConstructor;
349
349
  default: boolean;
@@ -365,6 +365,9 @@ declare const _default: import("vue").DefineComponent<{
365
365
  type: StringConstructor;
366
366
  default: string;
367
367
  };
368
+ appCode: {
369
+ type: StringConstructor;
370
+ };
368
371
  }>> & {
369
372
  onSuccess?: ((...args: any[]) => any) | undefined;
370
373
  onClose?: ((...args: any[]) => any) | undefined;
@@ -372,7 +375,6 @@ declare const _default: import("vue").DefineComponent<{
372
375
  onRecordingHeightChange?: ((...args: any[]) => any) | undefined;
373
376
  }, {
374
377
  timed: number;
375
- realTimeRecognition: boolean;
376
378
  allowPunctuationMark: boolean;
377
379
  useSource: string;
378
380
  textPrefix: string;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode } from 'vue';
1
+ import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import axios from 'axios';
3
3
  import { isString, isObject } from 'lodash-es';
4
4
  import CRecording from './components/recording.vue.js';
@@ -21,9 +21,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  type: Number,
22
22
  default: 5
23
23
  },
24
- realTimeRecognition: {
25
- type: Boolean
26
- },
27
24
  allowPunctuationMark: {
28
25
  type: Boolean,
29
26
  default: true
@@ -44,6 +41,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44
41
  textPrefix: {
45
42
  type: String,
46
43
  default: ""
44
+ },
45
+ appCode: {
46
+ type: String
47
47
  }
48
48
  },
49
49
  emits: ["close", "success", "fail", "recordingHeightChange"],
@@ -53,6 +53,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  }) {
54
54
  const props = __props;
55
55
  const consultationRecordUrl = "/flow/openApi/consultationRecord";
56
+ const chatBoxinit = "/flow/ai/api/chatBoxInit";
56
57
  const cssVars = useTheme();
57
58
  const audioSdk = AudioSDK.create();
58
59
  const attrs = useAttrs();
@@ -60,10 +61,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
60
61
  const recordingRef = ref();
61
62
  const isRecording = ref(false);
62
63
  const loading = ref(false);
64
+ const audioType = ref();
63
65
  const content = computed(() => {
64
66
  return audioSdk.contentRef.value;
65
67
  });
66
- const wsConnected = computed(() => audioSdk.wsConnected.value);
68
+ const wsConnected = computed(() => {
69
+ if (audioType.value === "http")
70
+ return true;
71
+ return audioSdk.wsConnected.value;
72
+ });
67
73
  const recorderStatus = computed(() => audioSdk.recorderStatus.value);
68
74
  const recordingProps = computed(() => {
69
75
  return {
@@ -127,6 +133,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
127
133
  const audioText = isString(content.value) ? content.value : isObject(content.value) ? (_b = content.value) == null ? void 0 : _b.data : "";
128
134
  if (!audioText)
129
135
  return;
136
+ if (!isGenerateMedicalRecord.value)
137
+ return;
130
138
  const {
131
139
  data
132
140
  } = await axios.post(consultationRecordUrl, {
@@ -155,18 +163,44 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
155
163
  isRecording.value = false;
156
164
  }
157
165
  };
166
+ const getAudioType = async () => {
167
+ if (!props.appCode || !props.token)
168
+ return;
169
+ try {
170
+ const {
171
+ data
172
+ } = await axios.post(chatBoxinit, {
173
+ appCode: props.appCode,
174
+ configs: props.configs || {}
175
+ }, {
176
+ headers: {
177
+ authorization: props.token
178
+ }
179
+ });
180
+ if (!(data == null ? void 0 : data.success))
181
+ return;
182
+ if (Reflect.has((data == null ? void 0 : data.data) || {}, "voiceStreamFlag")) {
183
+ audioType.value = data.data.voiceStreamFlag ? "websocket" : "http";
184
+ }
185
+ } catch (error) {
186
+ }
187
+ };
158
188
  const createMedicalRecord = async () => {
189
+ var _a;
159
190
  isRecording.value = true;
160
191
  try {
192
+ if (!audioType.value)
193
+ await getAudioType();
161
194
  const res = await audioSdk.start({
195
+ type: (_a = audioType.value) != null ? _a : "websocket",
162
196
  ...props,
163
197
  ...attrs
164
198
  });
165
199
  const {
166
- result,
167
- data
200
+ data,
201
+ success
168
202
  } = res || {};
169
- if (result !== "success") {
203
+ if (!success) {
170
204
  onFail(res);
171
205
  return;
172
206
  }
@@ -198,8 +232,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
198
232
  return openBlock(), createElementBlock("div", {
199
233
  style: normalizeStyle(unref(cssVars)),
200
234
  class: normalizeClass(["c-recording-sdk-wrapper", ["c-recording-sdk-wrapper-" + props.useSource]])
201
- }, [unref(isGenerateMedicalRecord) ? (openBlock(), createElementBlock(Fragment, {
202
- key: 0
203
235
  }, [isRecording.value ? (openBlock(), createBlock(CRecording, mergeProps({
204
236
  key: 0,
205
237
  ref_key: "recordingRef",
@@ -215,7 +247,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
215
247
  onResume,
216
248
  onToAnalyzing: handleToAnalyzing,
217
249
  onHeightChange: handleHeightChange
218
- }), null, 16, ["loading"])) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true)], 6);
250
+ }), null, 16, ["loading"])) : createCommentVNode("v-if", true)], 6);
219
251
  };
220
252
  }
221
253
  });
@@ -100,7 +100,7 @@ const _AudioSDK2 = class {
100
100
  }
101
101
  async startWaveView(options) {
102
102
  this._audioSDK.clearWaveView();
103
- this._audioSDK.createWaveView(options.waveSelector, options.waveProps);
103
+ this._audioSDK.createWaveView(options.waveSelector(), options.waveProps);
104
104
  }
105
105
  async pause() {
106
106
  return this._audioSDK.pause();
@@ -114,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
114
114
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
115
115
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
116
116
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
117
- isActive: import("vue").Ref<boolean>;
118
117
  isWarning: import("vue").Ref<boolean>;
118
+ isActive: import("vue").Ref<boolean>;
119
119
  formattedTime: import("vue").ComputedRef<string>;
120
120
  isCountFinished: import("vue").Ref<boolean>;
121
121
  isCountActive: import("vue").Ref<boolean>;
@@ -102,8 +102,8 @@ declare const _default: import("vue").DefineComponent<{
102
102
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
103
103
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
104
104
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
105
- isActive: import("vue").Ref<boolean>;
106
105
  isWarning: import("vue").Ref<boolean>;
106
+ isActive: import("vue").Ref<boolean>;
107
107
  formattedTime: import("vue").ComputedRef<string>;
108
108
  isCountFinished: import("vue").Ref<boolean>;
109
109
  isCountActive: import("vue").Ref<boolean>;
@@ -24,7 +24,14 @@ const _hoisted_3 = {
24
24
  const _hoisted_4 = {
25
25
  class: "tip-small"
26
26
  };
27
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", null, "\u6682\u505C", -1);
27
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", null, function() {
28
+ var _a, _b, _c;
29
+ try {
30
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.630")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.630")) || "\u6682\u505C";
31
+ } catch (e) {
32
+ return "\u6682\u505C";
33
+ }
34
+ }(), -1);
28
35
  const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", null, "\u7EE7\u7EED", -1);
29
36
  const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, function() {
30
37
  var _a, _b, _c;
@@ -120,9 +127,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
127
  const audioChartRef = ref();
121
128
  const audioChartSamllRef = ref();
122
129
  const contentScrollRef = ref();
130
+ const isWarning = ref(false);
123
131
  const {
124
132
  isActive,
125
- isWarning,
126
133
  formattedTime,
127
134
  isCountFinished,
128
135
  isCountActive,
@@ -322,7 +329,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
322
329
  disabled: unref(btnDisabled),
323
330
  onClick: unref(onPause)
324
331
  }, {
325
- default: withCtx(() => [createTextVNode("\u6682\u505C")]),
332
+ default: withCtx(() => [createTextVNode(function() {
333
+ var _a, _b, _c;
334
+ try {
335
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.630")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.630")) || "\u6682\u505C";
336
+ } catch (e) {
337
+ return "\u6682\u505C";
338
+ }
339
+ }())]),
326
340
  _: 1
327
341
  }, 8, ["disabled", "onClick"]), [[vShow, unref(isActive)]]), withDirectives(createVNode(unref(NButton), {
328
342
  size: "large",
@@ -53,6 +53,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
53
53
  defaultValue: any;
54
54
  defValueUnit: any;
55
55
  optionSetting: string | undefined;
56
+ dateShortcuts: any[] | undefined;
56
57
  multiple: boolean;
57
58
  manualMapping: boolean | null | undefined;
58
59
  showWholeOption: boolean | undefined;
@@ -76,6 +77,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
76
77
  accurateSearch: any;
77
78
  extendKey: string;
78
79
  extendType: string;
80
+ dateShortcuts: any[];
79
81
  }[];
80
82
  transformParams: (paramsList: any[]) => any;
81
83
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -120,6 +122,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
120
122
  unit: "custom" | null;
121
123
  widgetType?: string | undefined;
122
124
  dynamicBaseList?: any[] | undefined;
125
+ dateShortcuts?: any[] | undefined;
123
126
  isAccurateSearch?: boolean | undefined;
124
127
  accurateSearchKey?: string | undefined;
125
128
  }[]>;
@@ -54,6 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  defaultValue: any;
55
55
  defValueUnit: any;
56
56
  optionSetting: string | undefined;
57
+ dateShortcuts: any[] | undefined;
57
58
  multiple: boolean;
58
59
  manualMapping: boolean | null | undefined;
59
60
  showWholeOption: boolean | undefined;
@@ -77,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
77
78
  accurateSearch: any;
78
79
  extendKey: string;
79
80
  extendType: string;
81
+ dateShortcuts: any[];
80
82
  }[];
81
83
  transformParams: (paramsList: any[]) => any;
82
84
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -121,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
121
123
  unit: "custom" | null;
122
124
  widgetType?: string | undefined;
123
125
  dynamicBaseList?: any[] | undefined;
126
+ dateShortcuts?: any[] | undefined;
124
127
  isAccurateSearch?: boolean | undefined;
125
128
  accurateSearchKey?: string | undefined;
126
129
  }[]>;
@@ -58,7 +58,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  let res = "";
59
59
  switch (props.noDataImg) {
60
60
  case "no-permission":
61
- res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
61
+ res = function() {
62
+ var _a, _b, _c;
63
+ try {
64
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.622")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.622")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
65
+ } catch (e) {
66
+ return "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
67
+ }
68
+ }();
62
69
  break;
63
70
  case "failure":
64
71
  res = function() {
@@ -25,7 +25,14 @@ const useTableParse = (formatData) => {
25
25
  const du = hu * 24;
26
26
  if (value < du) {
27
27
  const v2 = Math.floor(value / 60) % 60;
28
- return `${Math.floor(value / hu)}\u5C0F\u65F6${v2 ? v2 + "\u5206" : ""}`;
28
+ return `${Math.floor(value / hu)}\u5C0F\u65F6${v2 ? v2 + function() {
29
+ var _a, _b, _c;
30
+ try {
31
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
32
+ } catch (e) {
33
+ return "\u5206";
34
+ }
35
+ }() : ""}`;
29
36
  }
30
37
  const MU = du * 30;
31
38
  if (value < MU) {
@@ -540,7 +540,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
540
540
  mergeTemplateList: (list: any[]) => any;
541
541
  initCRM: (formatListResult: any) => Promise<void>;
542
542
  init: () => Promise<boolean>;
543
- registerShort: () => Promise<void>;
543
+ registerShort: (obj?: any) => Promise<void>;
544
544
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
545
545
  reformatPrintParams: () => void;
546
546
  verifiySuccess: (token: string) => void;
@@ -1592,6 +1592,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1592
1592
  emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
1593
1593
  directPrint: () => Promise<void>;
1594
1594
  handleShortcutStartAndStop: (status: "start" | "stop") => void;
1595
+ registerShort: (obj: any) => void;
1595
1596
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1596
1597
  printParams: {
1597
1598
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;