cnhis-design-vue 3.3.1-release.5 → 3.3.2-release.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.
- package/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +20 -0
- package/es/components/audio-sdk/src/Index.vue.d.ts +20 -0
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +1 -0
- package/es/components/audio-sdk/src/audioSDK.js +11 -3
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue2.js +5 -0
- package/es/components/audio-sdk/src/constants/index.d.ts +1 -0
- package/es/components/audio-sdk/src/constants/index.js +3 -0
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recordingModal.js +13 -2
- 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 +17 -1
- package/es/components/card-render/index.d.ts +4 -4
- package/es/components/card-render/src/CardRender.vue.d.ts +4 -4
- 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/fabric-chart/src/hooks/useCumputedPoint.js +12 -6
- package/es/components/field-editor/index.d.ts +4 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +4 -0
- package/es/components/form-config/index.d.ts +80 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +80 -5
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +57 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +16 -1
- package/es/components/form-config/src/constants/index.d.ts +2 -1
- package/es/components/form-config/src/constants/index.js +1 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +19 -1
- package/es/components/form-config/src/hooks/useLocale.d.ts +1 -0
- package/es/components/form-config/src/hooks/useLocale.js +1 -0
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue2.js +3 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/input.d.ts +16 -4
- package/es/components/form-render/src/components/renderer/input.js +39 -7
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +3 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -8
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.d.ts +16 -1
- package/es/components/form-render/src/components/renderer/textarea.js +36 -8
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -0
- package/es/components/form-render/src/hooks/useComplexOptions.js +3 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +4 -3
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.js +5 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -0
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +11 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -0
- package/es/components/form-render/src/utils/schema.js +60 -15
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +13 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -2
- package/es/components/iho-table/src/IhoTable.vue2.js +27 -20
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +6 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -3
- package/es/components/info-header/index.d.ts +13 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +2 -2
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +2 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -5
- package/es/components/shortcut-setter/index.d.ts +16 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +11 -11
- package/es/env.d.ts +25 -25
- 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/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/CancelRadio/CancelRadio.d.ts +7 -0
- package/es/shared/components/CancelRadio/CancelRadio.js +6 -6
- 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 +76 -77
- package/es/components/ai-chat/index.d.ts +0 -680
- package/es/components/ai-chat/index.js +0 -10
- package/es/components/ai-chat/src/Index.vue.d.ts +0 -682
- package/es/components/ai-chat/src/Index.vue.js +0 -6
- package/es/components/ai-chat/src/Index.vue2.js +0 -175
- package/es/components/ai-chat/src/api/index.d.ts +0 -8
- package/es/components/ai-chat/src/api/index.js +0 -87
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -38
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -103
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +0 -101
- package/es/components/ai-chat/src/components/ChatBI.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +0 -73
- package/es/components/ai-chat/src/components/ChatCard.d.ts +0 -43
- package/es/components/ai-chat/src/components/ChatCard.js +0 -403
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +0 -203
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +0 -373
- package/es/components/ai-chat/src/components/ChatMain.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMain.js +0 -350
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainDefault.js +0 -278
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +0 -59
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +0 -218
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +0 -45
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +0 -143
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -57
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -190
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -574
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/CardRender.js +0 -80
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/FormRender.js +0 -173
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +0 -36
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +0 -96
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +0 -105
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +0 -260
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +0 -18
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +0 -37
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +0 -20
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +0 -48
- package/es/components/ai-chat/src/hooks/index.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/index.js +0 -2
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +0 -18
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +0 -202
- package/es/components/ai-chat/src/hooks/useData.d.ts +0 -77
- package/es/components/ai-chat/src/hooks/useData.js +0 -289
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +0 -38
- package/es/components/ai-chat/src/hooks/useFooterContext.js +0 -218
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -14
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -306
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +0 -9
- package/es/components/ai-chat/src/hooks/useSSE.js +0 -138
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -4
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -66
- package/es/components/ai-chat/src/types/index.d.ts +0 -45
- package/es/components/ai-chat/src/types/index.js +0 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -7
- package/es/components/ai-chat/src/utils/index.js +0 -41
- package/es/components/ai-chat/style/index.css +0 -1
- package/es/shared/assets/img/ai__avatar.png.js +0 -3
- package/es/shared/assets/img/file-emr.png.js +0 -3
- package/es/shared/assets/img/file.png.js +0 -3
- package/es/shared/assets/img/logo.png.js +0 -3
- package/es/shared/assets/img/use.png.js +0 -3
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
|
+
```
|
@@ -94,6 +94,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
94
94
|
type: BooleanConstructor;
|
95
95
|
default: boolean;
|
96
96
|
};
|
97
|
+
fromSdk: {
|
98
|
+
type: BooleanConstructor;
|
99
|
+
};
|
97
100
|
}, {
|
98
101
|
consultationRecordUrl: string;
|
99
102
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -119,6 +122,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
119
122
|
type: BooleanConstructor;
|
120
123
|
default: boolean;
|
121
124
|
};
|
125
|
+
fromSdk: {
|
126
|
+
type: BooleanConstructor;
|
127
|
+
};
|
122
128
|
}>> & {
|
123
129
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
124
130
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -156,6 +162,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
156
162
|
type: BooleanConstructor;
|
157
163
|
default: boolean;
|
158
164
|
};
|
165
|
+
fromSdk: {
|
166
|
+
type: BooleanConstructor;
|
167
|
+
};
|
159
168
|
}>> & {
|
160
169
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
161
170
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -168,6 +177,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
168
177
|
};
|
169
178
|
loading: boolean;
|
170
179
|
showBtn: boolean;
|
180
|
+
fromSdk: boolean;
|
171
181
|
}>;
|
172
182
|
RecordingModal: import("vue").DefineComponent<{
|
173
183
|
content: {
|
@@ -206,6 +216,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
206
216
|
type: BooleanConstructor;
|
207
217
|
default: boolean;
|
208
218
|
};
|
219
|
+
fromSdk: {
|
220
|
+
type: BooleanConstructor;
|
221
|
+
};
|
209
222
|
}, {
|
210
223
|
consultationRecordUrl: string;
|
211
224
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -231,6 +244,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
231
244
|
type: BooleanConstructor;
|
232
245
|
default: boolean;
|
233
246
|
};
|
247
|
+
fromSdk: {
|
248
|
+
type: BooleanConstructor;
|
249
|
+
};
|
234
250
|
}>> & {
|
235
251
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
236
252
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -268,6 +284,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
268
284
|
type: BooleanConstructor;
|
269
285
|
default: boolean;
|
270
286
|
};
|
287
|
+
fromSdk: {
|
288
|
+
type: BooleanConstructor;
|
289
|
+
};
|
271
290
|
}>> & {
|
272
291
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
273
292
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -280,6 +299,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
280
299
|
};
|
281
300
|
loading: boolean;
|
282
301
|
showBtn: boolean;
|
302
|
+
fromSdk: boolean;
|
283
303
|
}>;
|
284
304
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
285
305
|
content: {
|
@@ -92,6 +92,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: BooleanConstructor;
|
93
93
|
default: boolean;
|
94
94
|
};
|
95
|
+
fromSdk: {
|
96
|
+
type: BooleanConstructor;
|
97
|
+
};
|
95
98
|
}, {
|
96
99
|
consultationRecordUrl: string;
|
97
100
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -117,6 +120,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
117
120
|
type: BooleanConstructor;
|
118
121
|
default: boolean;
|
119
122
|
};
|
123
|
+
fromSdk: {
|
124
|
+
type: BooleanConstructor;
|
125
|
+
};
|
120
126
|
}>> & {
|
121
127
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
122
128
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -154,6 +160,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
154
160
|
type: BooleanConstructor;
|
155
161
|
default: boolean;
|
156
162
|
};
|
163
|
+
fromSdk: {
|
164
|
+
type: BooleanConstructor;
|
165
|
+
};
|
157
166
|
}>> & {
|
158
167
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
159
168
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -166,6 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
166
175
|
};
|
167
176
|
loading: boolean;
|
168
177
|
showBtn: boolean;
|
178
|
+
fromSdk: boolean;
|
169
179
|
}>;
|
170
180
|
RecordingModal: import("vue").DefineComponent<{
|
171
181
|
content: {
|
@@ -204,6 +214,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
204
214
|
type: BooleanConstructor;
|
205
215
|
default: boolean;
|
206
216
|
};
|
217
|
+
fromSdk: {
|
218
|
+
type: BooleanConstructor;
|
219
|
+
};
|
207
220
|
}, {
|
208
221
|
consultationRecordUrl: string;
|
209
222
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -229,6 +242,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
229
242
|
type: BooleanConstructor;
|
230
243
|
default: boolean;
|
231
244
|
};
|
245
|
+
fromSdk: {
|
246
|
+
type: BooleanConstructor;
|
247
|
+
};
|
232
248
|
}>> & {
|
233
249
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
234
250
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -266,6 +282,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
266
282
|
type: BooleanConstructor;
|
267
283
|
default: boolean;
|
268
284
|
};
|
285
|
+
fromSdk: {
|
286
|
+
type: BooleanConstructor;
|
287
|
+
};
|
269
288
|
}>> & {
|
270
289
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
271
290
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -278,6 +297,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
278
297
|
};
|
279
298
|
loading: boolean;
|
280
299
|
showBtn: boolean;
|
300
|
+
fromSdk: boolean;
|
281
301
|
}>;
|
282
302
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
283
303
|
content: {
|
@@ -130,7 +130,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
130
130
|
onEnd,
|
131
131
|
onFail: _cache[1] || (_cache[1] = (error) => emit("fail", error)),
|
132
132
|
onSuccess
|
133
|
-
}), null, 16, ["loading"])) : createCommentVNode("v-if", true), createCommentVNode(' <c-form\
|
133
|
+
}), null, 16, ["loading"])) : createCommentVNode("v-if", true), createCommentVNode(' <c-form\n v-if="isForm"\n :configs="configsAndBasicData.configs"\n :data="jsonData"\n @close="onFormClose"\n @finish="onFinish"\n /> ')], 64)) : (openBlock(), createBlock(RecordingModal$1, {
|
134
134
|
key: 1,
|
135
135
|
content: unref(content)
|
136
136
|
}, null, 8, ["content"]))], 4);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
2
2
|
import axios from 'axios';
|
3
3
|
import { isString, isObject } from 'lodash-es';
|
4
|
+
import { EMPTY_MP3 } from './constants/index.js';
|
4
5
|
import { loadRecorderPlugins } from './utils/recorder/index.js';
|
5
6
|
import { ref } from 'vue';
|
6
7
|
import { $message } from './utils/index.js';
|
@@ -29,6 +30,7 @@ const _AudioSDK = class {
|
|
29
30
|
this.options = {
|
30
31
|
...DEFAULT_OPTIONS
|
31
32
|
};
|
33
|
+
this.reqId = "";
|
32
34
|
this.connectionState = 0 /* DISCONNECTED */;
|
33
35
|
this.sendBuffer = [];
|
34
36
|
this.startTimestamp = 0;
|
@@ -68,6 +70,7 @@ const _AudioSDK = class {
|
|
68
70
|
}
|
69
71
|
if (!this.recorder)
|
70
72
|
this.initRecorder();
|
73
|
+
this.reqId = uuidGenerator();
|
71
74
|
this.contentRef.value = "";
|
72
75
|
if (this.options.type === "websocket") {
|
73
76
|
this.setWsConnected(false);
|
@@ -137,7 +140,8 @@ const _AudioSDK = class {
|
|
137
140
|
instance: this.options.instance,
|
138
141
|
onClose: () => this.stop(),
|
139
142
|
props: {
|
140
|
-
contentRef: this.contentRef
|
143
|
+
contentRef: this.contentRef,
|
144
|
+
wsConnected: this.wsConnected
|
141
145
|
}
|
142
146
|
});
|
143
147
|
}
|
@@ -203,13 +207,17 @@ const _AudioSDK = class {
|
|
203
207
|
const reader = new FileReader();
|
204
208
|
reader.onloadend = () => {
|
205
209
|
var _a, _b;
|
206
|
-
|
210
|
+
let base64 = (_a = reader.result) == null ? void 0 : _a.toString().split(",")[1];
|
211
|
+
if (isLast && !base64)
|
212
|
+
base64 = EMPTY_MP3;
|
207
213
|
if (!base64)
|
208
214
|
return;
|
209
215
|
(_b = this.webSocket) == null ? void 0 : _b.send(JSON.stringify({
|
210
216
|
type: 1,
|
211
217
|
isLast,
|
212
|
-
data: base64
|
218
|
+
data: base64,
|
219
|
+
auth: this.options.token,
|
220
|
+
reqId: this.reqId
|
213
221
|
}));
|
214
222
|
};
|
215
223
|
reader.readAsDataURL(blob);
|
@@ -35,6 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
type: BooleanConstructor;
|
36
36
|
default: boolean;
|
37
37
|
};
|
38
|
+
fromSdk: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
};
|
38
41
|
}, {
|
39
42
|
consultationRecordUrl: string;
|
40
43
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -60,6 +63,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
63
|
type: BooleanConstructor;
|
61
64
|
default: boolean;
|
62
65
|
};
|
66
|
+
fromSdk: {
|
67
|
+
type: BooleanConstructor;
|
68
|
+
};
|
63
69
|
}>> & {
|
64
70
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
65
71
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -97,6 +103,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
97
103
|
type: BooleanConstructor;
|
98
104
|
default: boolean;
|
99
105
|
};
|
106
|
+
fromSdk: {
|
107
|
+
type: BooleanConstructor;
|
108
|
+
};
|
100
109
|
}>> & {
|
101
110
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
102
111
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -109,6 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
118
|
};
|
110
119
|
loading: boolean;
|
111
120
|
showBtn: boolean;
|
121
|
+
fromSdk: boolean;
|
112
122
|
}>;
|
113
123
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
114
124
|
content: {
|
@@ -23,6 +23,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
type: BooleanConstructor;
|
24
24
|
default: boolean;
|
25
25
|
};
|
26
|
+
fromSdk: {
|
27
|
+
type: BooleanConstructor;
|
28
|
+
};
|
26
29
|
}, {
|
27
30
|
consultationRecordUrl: string;
|
28
31
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -48,6 +51,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
48
51
|
type: BooleanConstructor;
|
49
52
|
default: boolean;
|
50
53
|
};
|
54
|
+
fromSdk: {
|
55
|
+
type: BooleanConstructor;
|
56
|
+
};
|
51
57
|
}>> & {
|
52
58
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
53
59
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -85,6 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
91
|
type: BooleanConstructor;
|
86
92
|
default: boolean;
|
87
93
|
};
|
94
|
+
fromSdk: {
|
95
|
+
type: BooleanConstructor;
|
96
|
+
};
|
88
97
|
}>> & {
|
89
98
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
90
99
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -97,5 +106,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
97
106
|
};
|
98
107
|
loading: boolean;
|
99
108
|
showBtn: boolean;
|
109
|
+
fromSdk: boolean;
|
100
110
|
}>;
|
101
111
|
export default _default;
|
@@ -36,6 +36,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
loading: {
|
37
37
|
type: Boolean,
|
38
38
|
default: true
|
39
|
+
},
|
40
|
+
fromSdk: {
|
41
|
+
type: Boolean
|
39
42
|
}
|
40
43
|
},
|
41
44
|
emits: ["close", "success", "end", "fail", "update:loading"],
|
@@ -49,6 +52,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
52
|
emit("close");
|
50
53
|
}
|
51
54
|
async function toAnalyzing() {
|
55
|
+
if (props.fromSdk)
|
56
|
+
return close();
|
52
57
|
emit("end");
|
53
58
|
emit("update:loading", true);
|
54
59
|
try {
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const EMPTY_MP3 = "//MoxAAN+e5wEADKsCB/nYbAhQgzmVElvIc/hRg8xvdXPVrf1L1Yt/CyncYLG9/Xr91Nuw1hU1AmW/UoWef/4JsE+ucYmIKa//MoxAAN+e5oVABEvMFJVHOzQUxhClhBZPMMRHEx8k2Jm9VJ78IZS6saGfZGU3b/7bMoUYFRE/I/6/+9YBOhUxU1LiUmmIKa//MoxAANufpwWgBKwB9UiULTlHuVqlCjk/kI5GzzGQosjGX2R0WTRdb+yWntQda1C9v2/Io9A/9z34E/WB84/UAzD9aYgpqK";
|
@@ -0,0 +1,3 @@
|
|
1
|
+
const EMPTY_MP3 = "//MoxAAN+e5wEADKsCB/nYbAhQgzmVElvIc/hRg8xvdXPVrf1L1Yt/CyncYLG9/Xr91Nuw1hU1AmW/UoWef/4JsE+ucYmIKa//MoxAAN+e5oVABEvMFJVHOzQUxhClhBZPMMRHEx8k2Jm9VJ78IZS6saGfZGU3b/7bMoUYFRE/I/6/+9YBOhUxU1LiUmmIKa//MoxAANufpwWgBKwB9UiULTlHuVqlCjk/kI5GzzGQosjGX2R0WTRdb+yWntQda1C9v2/Io9A/9z34E/WB84/UAzD9aYgpqK";
|
2
|
+
|
3
|
+
export { EMPTY_MP3 };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref, render, createVNode, withCtx, mergeProps, nextTick } from 'vue';
|
1
|
+
import { ref, watch, render, createVNode, withCtx, mergeProps, nextTick } from 'vue';
|
2
2
|
import { createProviderWrapper } from '../../../../shared/utils/index.js';
|
3
3
|
import RecordingModal$1 from '../components/recording-modal.vue.js';
|
4
4
|
|
@@ -20,10 +20,19 @@ class RecordingModal {
|
|
20
20
|
this.rendered = true;
|
21
21
|
const container = document.createElement("div");
|
22
22
|
const visible = ref(false);
|
23
|
+
const loading = ref(true);
|
23
24
|
const ProviderWrapper = createProviderWrapper(instance);
|
24
25
|
const that = this;
|
26
|
+
watch(() => props.wsConnected.value, (wsConnected) => {
|
27
|
+
if (wsConnected) {
|
28
|
+
loading.value = false;
|
29
|
+
}
|
30
|
+
}, {
|
31
|
+
immediate: true
|
32
|
+
});
|
25
33
|
function getBaseProps() {
|
26
34
|
return {
|
35
|
+
fromSdk: true,
|
27
36
|
to: container,
|
28
37
|
onClose,
|
29
38
|
onAfterLeave: onClose
|
@@ -32,7 +41,9 @@ class RecordingModal {
|
|
32
41
|
render(createVNode(ProviderWrapper, null, {
|
33
42
|
default: withCtx(() => createVNode(RecordingModal$1, mergeProps({
|
34
43
|
"show": visible.value,
|
35
|
-
"onUpdate:show": ($event) => visible.value = $event
|
44
|
+
"onUpdate:show": ($event) => visible.value = $event,
|
45
|
+
"loading": loading.value,
|
46
|
+
"onUpdate:loading": ($event) => loading.value = $event
|
36
47
|
}, getBaseProps(), {
|
37
48
|
"content": props.contentRef.value
|
38
49
|
}), null), instance)
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
@@ -207,6 +207,7 @@ export declare const CallbackMaps: Map<string, {
|
|
207
207
|
type: BooleanConstructor;
|
208
208
|
};
|
209
209
|
lazyRender: BooleanConstructor;
|
210
|
+
dialogFn: {};
|
210
211
|
}, {
|
211
212
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
212
213
|
fieldList: {
|
@@ -410,6 +411,7 @@ export declare const CallbackMaps: Map<string, {
|
|
410
411
|
type: BooleanConstructor;
|
411
412
|
};
|
412
413
|
lazyRender: BooleanConstructor;
|
414
|
+
dialogFn: {};
|
413
415
|
}>> & {
|
414
416
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
415
417
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -586,6 +588,7 @@ export declare const CallbackMaps: Map<string, {
|
|
586
588
|
feedbackType: "default" | "tooltip";
|
587
589
|
fixMemoLeak: boolean;
|
588
590
|
lazyRender: boolean;
|
591
|
+
dialogFn: any;
|
589
592
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
590
593
|
[key: symbol]: any;
|
591
594
|
[key: `x-${string}`]: any;
|
@@ -973,6 +976,7 @@ export declare const CallbackMaps: Map<string, {
|
|
973
976
|
type: BooleanConstructor;
|
974
977
|
};
|
975
978
|
lazyRender: BooleanConstructor;
|
979
|
+
dialogFn: {};
|
976
980
|
}>> & {
|
977
981
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
978
982
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1050,6 +1054,9 @@ export declare const CallbackMaps: Map<string, {
|
|
1050
1054
|
type: BooleanConstructor;
|
1051
1055
|
default: boolean;
|
1052
1056
|
};
|
1057
|
+
nConfigProviderProps: {
|
1058
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1059
|
+
};
|
1053
1060
|
}, {
|
1054
1061
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1055
1062
|
tableConfig: {
|
@@ -1082,6 +1089,9 @@ export declare const CallbackMaps: Map<string, {
|
|
1082
1089
|
type: BooleanConstructor;
|
1083
1090
|
default: boolean;
|
1084
1091
|
};
|
1092
|
+
nConfigProviderProps: {
|
1093
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
1094
|
+
};
|
1085
1095
|
}>> & {
|
1086
1096
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1087
1097
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -4337,7 +4347,10 @@ export declare const CallbackMaps: Map<string, {
|
|
4337
4347
|
}>;
|
4338
4348
|
updateConfigRefDebounced: () => void;
|
4339
4349
|
updateConfigRef: () => void;
|
4340
|
-
|
4350
|
+
configBindProps: import("vue").ComputedRef<{
|
4351
|
+
namespace: string;
|
4352
|
+
themeOverrides: any;
|
4353
|
+
}>;
|
4341
4354
|
fieldListRef: import("vue").Ref<{
|
4342
4355
|
[x: string]: any;
|
4343
4356
|
property?: string | undefined;
|
@@ -7909,6 +7922,9 @@ export declare const CallbackMaps: Map<string, {
|
|
7909
7922
|
type: BooleanConstructor;
|
7910
7923
|
default: boolean;
|
7911
7924
|
};
|
7925
|
+
nConfigProviderProps: {
|
7926
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
7927
|
+
};
|
7912
7928
|
}>> & {
|
7913
7929
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
7914
7930
|
onScroll?: ((...args: any[]) => any) | undefined;
|